HappyHorse 1.0 API integration
Rivya Public API v1 দিয়ে HappyHorse 1.0 ব্যবহার করুন: model id happyhorse-1-0, supported inputs, parameters, Files API rules, credits এবং response examples সহ।
happyhorse-1-0
text, file
reference modes-এর জন্য required
28
ভিডিও
FIXED
5000 characters
Request contract
model id top level-এ পাঠান। Model-specific controls params-এ থাকবে।
| Key | Type | Required | Default | বিবরণ |
|---|---|---|---|---|
| model | string | Yes | happyhorse-1-0 | happyhorse-1-0 API model id ব্যবহার করুন। |
| prompt | string | Yes | - | এই model-এর জন্য maximum 5000 characters। |
| params | object | No | - | Model-specific parameter object। allowed keys-এর জন্য নিচের rows ব্যবহার করুন। |
| client_request_id | string | No | - | আপনার system-এ requests trace করার optional client-side id। |
Model parameters
| Key | Type | Required | Default | Range | Options | বিবরণ |
|---|---|---|---|---|---|---|
| resolution | select | No | 1080p | - | 720p, 1080p | রেজোলিউশন |
| aspect_ratio | select | No | 16:9 | - | 16:9, 9:16, 1:1, 4:3, 3:4 | Aspect ratio |
| duration | number | No | 5 | min 3 / max 15 | - | সময়কাল |
| audio_setting | select | No | auto | - | auto, origin | ভিডিও audio |
| seed | number | No | 0 | min 0 / max 2147483647 | - | প্রতিবার নতুন random result চাইলে empty রাখুন। একই integer reuse করলে আগের result reproduce বা fine-tune করা সহজ হয়। Prompt এবং অন্য key setting একই রকম থাকলেই শুধু result কাছাকাছি থাকে, এবং এটি guaranteed 1:1 match নয়। |
Upload policy
প্রথমে reference files upload করুন, তারপর returned URL এবং duration token params.referenceMediaItems-এর মধ্যে দিন।
রেফারেন্স media: video ছাড়া সর্বোচ্চ 9টি image ব্যবহার করুন, অথবা video editing-এর জন্য 1টি video ও সর্বোচ্চ 5টি image reference ব্যবহার করুন।
10
image, video
duration verification required হলে video এবং audio references /api/v1/files থেকে durationToken carry করবে।
| kind | Max size | MIME types |
|---|---|---|
| image | 10 MB | image/jpeg, image/png, image/webp |
| video | 95 MB | video/mp4, video/quicktime |
Minimal request
{
"model": "happyhorse-1-0",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 5,
"audio_setting": "auto",
"seed": 0
}
}রেফারেন্স ফাইল রিকোয়েস্ট
{
"model": "happyhorse-1-0",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 5,
"audio_setting": "auto",
"seed": 0,
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-image.png",
"kind": "image",
"name": "reference-image.png",
"mimeType": "image/png"
}
]
}
}Create response
create endpoint public task id return করে। task succeeds বা fails না করা পর্যন্ত status endpoint poll করুন।
{
"id": "task_happyhorse_1_0_example",
"status": "queued",
"model": "happyhorse-1-0",
"reserved_credits": 28,
"final_credits": 0,
"created_at": "2026-05-11T00:00:00.000Z",
"updated_at": "2026-05-11T00:00:00.000Z",
"result": null,
"error": null
}Common errors
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
কিছু modes-এর জন্য Files API reference uploads দরকার।