Docs / video / HappyHorse 1.1 Text to Video
HappyHorse 1.1 Text to Video online
Alibaba's video model for text-to-video — smooth motion and strong prompt adherence at 720p or 1080p.
Rp Mulai Rp5.460 / video
Rp7.550 −27.7%
happyhorse-1-1/text-to-video model id
1 · Create a task
Kirim permintaan untuk membuat tugas generasi video. Wajib header Idempotency-Key. Saldo direservasi sebesar estimasi; task gagal tidak ditagih.
curl -X POST https://run.getcore.id/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: my-task-001" \
-H "Content-Type: application/json" \
-d '{
"model": "happyhorse-1-1/text-to-video",
"input": {
"prompt": "A female sprinter crouches in the starting blocks in the ready position, shown in an extreme close-up of her face. She slowly raises her head, her gaze locked firmly on the finish line, her eyes tense and focused with laser-like intensity. Cinematic stadium spotlights fall across her skin, rendered in hyper-realistic detail, with fine pores and subtle skin texture clearly visible. A few strands of hair are gently stirred by the breeze.\n\nShot 2: Smooth Pullback \nThe camera pulls back smoothly and seamlessly, transitioning steadily into a tight medium shot. It pans downward along her arm, revealing both hands gripping the rough red rubber track, her fingertips lightly dusted with white chalk. The image naturally captures the rise and fall of her breathing and the taut, coiled state of her muscles, with no visual distortion or deformation.\n\nShot 3: Dynamic Low-Angle Wide Shot \nA precise, clean cut shifts to a highly dramatic low-angle wide shot: she is fully crouched over the starting blocks, poised and ready to sprint forward at any moment. The blurred stadium lights in the background form beautiful, soft halo bokeh. Throughout, the character’s appearance remains consistent, her body structure coherent, and the editing rhythm professional and polished.",
"resolution": "1080p",
"aspect_ratio": "16:9"
}
}'const res = await fetch('https://run.getcore.id/v1/tasks', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Idempotency-Key': 'my-task-001',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "happyhorse-1-1/text-to-video",
"input": {
"prompt": "A female sprinter crouches in the starting blocks in the ready position, shown in an extreme close-up of her face. She slowly raises her head, her gaze locked firmly on the finish line, her eyes tense and focused with laser-like intensity. Cinematic stadium spotlights fall across her skin, rendered in hyper-realistic detail, with fine pores and subtle skin texture clearly visible. A few strands of hair are gently stirred by the breeze.\n\nShot 2: Smooth Pullback \nThe camera pulls back smoothly and seamlessly, transitioning steadily into a tight medium shot. It pans downward along her arm, revealing both hands gripping the rough red rubber track, her fingertips lightly dusted with white chalk. The image naturally captures the rise and fall of her breathing and the taut, coiled state of her muscles, with no visual distortion or deformation.\n\nShot 3: Dynamic Low-Angle Wide Shot \nA precise, clean cut shifts to a highly dramatic low-angle wide shot: she is fully crouched over the starting blocks, poised and ready to sprint forward at any moment. The blurred stadium lights in the background form beautiful, soft halo bokeh. Throughout, the character’s appearance remains consistent, her body structure coherent, and the editing rhythm professional and polished.",
"resolution": "1080p",
"aspect_ratio": "16:9"
}
}),
});
const task = await res.json();import requests
res = requests.post(
"https://run.getcore.id/v1/tasks",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": "my-task-001",
},
json={
"model": "happyhorse-1-1/text-to-video",
"input": {
"prompt": "A female sprinter crouches in the starting blocks in the ready position, shown in an extreme close-up of her face. She slowly raises her head, her gaze locked firmly on the finish line, her eyes tense and focused with laser-like intensity. Cinematic stadium spotlights fall across her skin, rendered in hyper-realistic detail, with fine pores and subtle skin texture clearly visible. A few strands of hair are gently stirred by the breeze.\n\nShot 2: Smooth Pullback \nThe camera pulls back smoothly and seamlessly, transitioning steadily into a tight medium shot. It pans downward along her arm, revealing both hands gripping the rough red rubber track, her fingertips lightly dusted with white chalk. The image naturally captures the rise and fall of her breathing and the taut, coiled state of her muscles, with no visual distortion or deformation.\n\nShot 3: Dynamic Low-Angle Wide Shot \nA precise, clean cut shifts to a highly dramatic low-angle wide shot: she is fully crouched over the starting blocks, poised and ready to sprint forward at any moment. The blurred stadium lights in the background form beautiful, soft halo bokeh. Throughout, the character’s appearance remains consistent, her body structure coherent, and the editing rhythm professional and polished.",
"resolution": "1080p",
"aspect_ratio": "16:9"
}
},
)
task = res.json()Input parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
prompt |
string | Yes | Text description of the video to generate. Supports any language. Maximum 5,000 non-Chinese characters or 2,500 Chinese (max 5000 chars) | A female sprinter crouches in the starting blo |
duration |
integer | No | Output video duration in seconds. (min 3, max 15) | 5 |
resolution |
string | No | Output video resolution. Opsi: 720p 1080p |
1080p |
aspect_ratio |
string | No | Output video aspect ratio. Opsi: 16:9 9:16 1:1 4:3 3:4 4:5 5:4 9:21 21:9 |
16:9 |
2 · Poll the result
Ambil status tugas hingga selesai — poll tiap 2–5 detik.
Respons saat sukses:
{
"id": "task_9f2c…",
"status": "succeeded",
"model": "happyhorse-1-1/text-to-video",
"price": {
"currency": "IDR",
"estimated": 5460,
"reserved": 5460,
"final": 5460
},
"output": {
"urls": [
"https://storage.getcore.id/outputs/task_9f2c…/0.mp4"
],
"expires_at": "(7 hari setelah selesai)"
}
}
Status values
| Status | Keterangan |
|---|---|
queued | Tugas sedang diantrikan. |
processing | Sedang diproses. |
succeeded | Berhasil. |
failed | Gagal — lihat error detail, tidak ditagih. |
video/mp4, dilayani dari CDN kami dan berlaku 7 hari — salin ke penyimpananmu sendiri untuk jangka panjang.Best practices
Bila generation gagal, task berstatus failed dengan error.code ternormalisasi (mis. moderation_blocked, upstream_error) dan price.final = 0 — saldo dikembalikan otomatis. Daftar lengkap kode error ada di Error handling. Selalu kirim Idempotency-Key unik per tugas agar retry aman.
Coba tanpa kode: jalankan model ini langsung dari Playground atau lihat di API Market.
