Skip to content

Happy Horse Video Edit

Integrate

Model id alibaba/happy-horse/video-edit
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/alibaba/happy-horse/video-edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Files like the example: $5.60 5,600 API credits your files are measured before the run Run it on this page

Get API key
Alibaba Video to Video Reference inputsup to 1080p #happy-horse#video-editing#video-to-video

Edits an existing video from a natural-language prompt, with up to 5 reference images

Alibaba · Video

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

Text describing the edit to make, limited to 2500 characters. Refer to supplied images with @Image1, @Image2, through @Image5.

•required video_url
Drop a file, or

Source video URL for editing; output keeps its aspect ratio and matches its duration up to 15 s, retaining only that initial portion for longer inputs. Supply MP4 or MOV (preferably H.264), lasting 3–60 s and no larger than 100 MB, with a frame rate above 8 fps, an aspect ratio within 1:2.5–2.5:1, a longer edge at most 2160 px, and a shorter edge at least 320 px. The timeout is 30.0 s.

resolution default 1080p

Resolution tier for the resulting video.

Advanced images · audio_setting · seed · enable_safety_checker
reference_image_urls
Drop a file, or

Optional edit-guidance images, each limited to 10 MB with both dimensions at least 300px. Supply no more than 5 in JPEG, JPG, PNG, WEBP format, with aspect ratios within 1:2.5–2.5:1.

audio_setting default auto

Choose 'origin' to carry over the input video's audio unchanged, or 'auto' to let the model determine whether audio should be regenerated.

Random seed enabling reproducible results, ranging from 0 to 2147483647.

POST /run/alibaba/happy-horse/video-edit?wait=20 quote → $5.60
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/alibaba/happy-horse/video-edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Happy Horse Video Edit

Edits a source video of 3 to 60 seconds (MP4 or MOV, up to 100 MB) according to a `prompt`. Up to 5 reference images can be cited in the prompt as @Image1 to @Image5. `resolution` is 720p or 1080p, and `audio_setting` either lets the model decide ('auto') or keeps the original audio ('origin').

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
video_urlrequired video
Typeurl · video
Source video URL for editing; output keeps its aspect ratio and matches its duration up to 15 s, retaining only that initial portion for longer inputs. Supply MP4 or MOV (preferably H.264), lasting 3–60 s and no larger than 100 MB, with a frame rate above 8 fps, an aspect ratio within 1:2.5–2.5:1, a longer edge at most 2160 px, and a shorter edge at least 320 px. The timeout is 30.0 s.
promptrequired
Typestring
Text describing the edit to make, limited to 2500 characters. Refer to supplied images with @Image1, @Image2, through @Image5.
reference_image_urlsoptional images
Typeurl[] · image
Optional edit-guidance images, each limited to 10 MB with both dimensions at least 300px. Supply no more than 5 in JPEG, JPG, PNG, WEBP format, with aspect ratios within 1:2.5–2.5:1.
resolutionoptional
Typeenum
Default1080p
720p1080p
Resolution tier for the resulting video.
audio_settingoptional
Typeenum
Defaultauto
autoorigin
Choose 'origin' to carry over the input video's audio unchanged, or 'auto' to let the model determine whether audio should be regenerated.
seedoptional
Typeinteger | null
Random seed enabling reproducible results, ranging from 0 to 2147483647.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Moderation of both input and output, enforced on every request unless the account is authorized to disable it and the option is turned off.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "alibaba/happy-horse/video-edit",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 5600,
    "usd": "5.60",
    "charged": 5600,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "seed": 42
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}Video file produced by generation.
seed
integerSeed value applied during generation.

More models: Video to Video

For AI agents: this page as Markdown is at https://doitong.com/developers/models/alibaba/happy-horse/video-edit.md. All models and guides: https://doitong.com/developers/llms.txt