Alibaba Happyhorse 1.0 Video Extend
Playground
Try it on WaveSpeedAI!Alibaba Happy Horse 1.0 (Video Extend) extends existing videos with seamless AI-generated continuation, supporting 720p/1080p output. Ready-to-use REST API, best performance, no coldstarts, affordable pricing.
Features
Alibaba Happy Horse 1.0 Video Extend continues an existing video clip with new AI-generated footage, seamlessly extending the scene from where the original ends. Upload a source video, describe how the video should continue, and the model generates a coherent continuation in 720p or 1080p.
- Need to edit an existing clip instead of extending it? Try Alibaba Happy Horse 1.0 Video Edit.
- Need to generate a new video from text? Try Alibaba Happy Horse 1.0 Text-to-Video.
Why Choose This?
-
Seamless video continuation Extend an existing clip with newly generated footage that picks up naturally from the original ending.
-
Prompt-guided scene progression Describe how the action, camera movement, atmosphere, or story should continue using natural language.
-
Cinematic motion Generate smooth, expressive motion while preserving the overall feel and flow of the source video.
-
Flexible resolution options Choose
720pfor lower-cost iteration or1080pfor higher-quality final output. -
Production-ready API Access the model through a REST inference API with no cold starts for scalable integration into creative workflows.
Parameters
| Parameter | Required | Description |
|---|---|---|
| video | Yes | Source video to extend. |
| prompt | Yes | Text description of the desired continuation. |
| resolution | No | Output resolution: 720p (default) or 1080p. |
| duration | No | Total output duration in seconds. Range: 3–15, default 5. |
| seed | No | Random seed for reproducibility. Range: 0–2147483647. |
How to Use
- Upload your source video — provide the clip you want to continue.
- Write your prompt — describe how the scene, subject, camera, or atmosphere should progress after the original ending.
- Choose resolution — use
720pfor lower-cost iteration or1080pfor higher-quality results. - Set duration — choose the total output duration between
3and15seconds. - Set a seed (optional) — use a fixed seed if you want more reproducible results.
- Submit — generate and download the extended video.
Example Prompt
Continue the scene with a slow forward camera movement, the subject walking deeper into the alley, soft rain beginning to fall, stronger reflections on the ground, and a cinematic moody nighttime atmosphere
Pricing
Per 5 Seconds
| Resolution | Cost |
|---|---|
| 720p | $0.70 |
| 1080p | $1.40 |
Example Costs
| Resolution | 3s | 5s | 10s | 15s |
|---|---|---|---|---|
| 720p | $0.42 | $0.70 | $1.40 | $2.10 |
| 1080p | $0.84 | $1.40 | $2.80 | $4.20 |
Billing Rules
- Base price:
720pcosts $0.70 per 5 seconds - 1080p surcharge:
1080pcosts 2× the720prate - Total price formula:
total_price = 0.70 × (resolution == "1080p" ? 2 : 1) × duration / 5
Best Use Cases
- Scene continuation — Extend cinematic clips with natural motion and coherent progression.
- Storyboarding and concept work — Explore how a shot or sequence might continue without manual video production.
- Ad creative development — Expand short promo clips into longer variations for campaigns and testing.
- Social media content — Create longer edits from short source footage for platform-specific needs.
- Atmospheric scene building — Continue motion, lighting, and mood from an existing clip into a richer sequence.
- Creative prototyping — Quickly test alternate continuations before investing in full production.
Pro Tips
- Use a source video with a clear ending frame for smoother continuation.
- Be explicit about what should happen next, including subject action, camera motion, lighting, and atmosphere.
- Keep prompts visually concrete, such as “camera slowly pushes in,” “the subject turns and walks away,” or “fog begins to roll in.”
- Use
720pfor quick testing, then switch to1080pfor final-quality output. - Reuse the same
seedwhen you want more reproducible generations. - Start with shorter durations to validate continuity before generating longer clips.
Notes
- Both
videoandpromptare required. - Ensure video URLs are publicly accessible.
- Supported resolutions are
720pand1080p. - Supported total output duration is
3–15 seconds. - Pricing scales linearly with
duration. 1080ppricing is exactly 2× the720prate.
Related Models
- Alibaba Happy Horse 1.0 Video Edit — Perform prompt-driven editing on existing videos.
- Alibaba Happy Horse 1.0 Text-to-Video — Generate cinematic videos directly from natural-language prompts.
- Alibaba Happy Horse 1.0 Image-to-Video — Animate a single reference image into a cinematic clip.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
set -euo pipefail
export WAVESPEED_API_KEY="your-api-key"
REQUEST_BODY=$(cat <<'JSON'
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"video": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
"resolution": "720p",
"duration": 5
}
JSON
)
# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
-X POST "https://api.wavespeed.ai/api/v3/alibaba/happyhorse-1.0/video-extend" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}" \
-H "Content-Type: application/json" \
-d "${REQUEST_BODY}")
TASK=$(printf '%s' "${SUBMIT_RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "${TASK}" | jq -r '.id // empty')
if [ -z "${PREDICTION_ID}" ]; then
printf 'Submission response did not contain a prediction id
' >&2
exit 1
fi
RESULT_URL=$(printf '%s' "${TASK}" | jq -r '.urls.get // empty')
if [ -z "${RESULT_URL}" ]; then RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/${PREDICTION_ID}/result"; fi
# 2. Poll until the prediction finishes.
while true; do
RESPONSE=$(curl --silent --show-error --fail-with-body \
"${RESULT_URL}" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}")
RESULT=$(printf '%s' "${RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
STATUS=$(printf '%s' "${RESULT}" | jq -r '.status // empty')
case "${STATUS}" in
completed) printf '%s\n' "${RESULT}" | jq '.outputs'; break ;;
failed|cancelled|timeout) printf '%s\n' "${RESULT}" | jq . >&2; exit 1 ;;
created|processing) sleep 2 ;;
*) printf 'Unexpected status: %s
' "${STATUS}" >&2; exit 1 ;;
esac
doneParameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| prompt | string | Yes | - | Text description of the desired continuation. | |
| video | string | Yes | - | The source video to extend. | |
| resolution | string | No | 720p | 720p, 1080p | Output video resolution. |
| duration | integer | No | 5 | 3 ~ 15 | Total duration of the final output video in seconds (3-15). |
| seed | integer | No | - | - | Random seed for reproducibility. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Output values, usually URL strings; some models return text strings or structured result objects (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction |
| data.model | string | Model ID used for the prediction |
| data.outputs | array<string | object> | Array of generated outputs (empty when status is not completed). Items are usually URL strings, but may be text strings or structured result objects, depending on the model. |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to poll for the prediction result |
| data.status | string | Status: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |