Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt

Use this file to discover all available pages before exploring further.

HappyHorse 1.0 Video Edit modifies an input video guided by a reference image and a prompt. It uses the async task API — submit a task, then poll until ready.
⚠️ Native format required. Because video-edit needs both a video and a reference image at the same time, the unified flat-field shortcut cannot express it. You must use the native DashScope-style request body with input.media[].

Key capabilities

  • Video editing — Modify objects, clothing, scenes inside an existing video
  • Resolution — 720P / 1080P
  • Watermark control — Optionally disable the bottom-right watermark
⚠️ Output duration is determined by the input video length. The duration parameter may not take effect for video-edit.

Workflow

1. POST /v1/video/generations  →  task_id   (must use input.media[] format)
2. GET  /v1/video/generations/{task_id}  →  poll until SUCCESS / FAILURE
3. Read data.result_url  (valid 24 hours)

Quick example

curl -X POST https://www.anyfast.ai/v1/video/generations \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "happyhorse-1.0-video-edit",
    "input": {
      "prompt": "Make the character in the video wear the striped sweater from the image",
      "media": [
        {"type": "video", "url": "https://example.com/source.mp4"},
        {"type": "reference_image", "url": "https://example.com/cloth.webp"}
      ]
    },
    "parameters": {
      "resolution": "720P",
      "watermark": false
    }
  }'

Parameters

ParameterTypeRequiredDescription
modelstringYesMust be happyhorse-1.0-video-edit
input.promptstringYesText description of the edit
input.mediaarrayYesExactly 2 items: one video + one reference_image
input.media[].typestringYesvideo or reference_image
input.media[].urlstringYesPublic URL of the video or reference image
parameters.resolutionstringNo720P / 1080P. Default: 1080P
parameters.watermarkbooleanNoDefault true. Set false to remove watermark
parameters.seedintegerNoRandom seed [0, 2147483647]

Billing

Charged by resolution tier × billed duration. If duration is not provided, defaults to 5 seconds. Failed tasks are automatically refunded.

API Reference

Interactive playground for HappyHorse 1.0 Video Edit.

Task Query

Poll task status and retrieve the final video URL.