HappyHorse Video API · Unified video generation and editing interface

HappyHorse Video API

Use a single, reliable REST API for text-to-video, first-frame image-to-video, reference-image-to-video, and video editing. Integrate creative storyboards, product assets, character references, and post-production workflows into your own product.

4 actions720P / 1080PAsynchronous callbacks + task queries
🎬
4
Generation and editing modes
⏱️
3-15s
Output video duration
🖼️
1-9
Reference images
📡
REST
Unified API endpoint

Cover the key actions in video production

Use a unified request structure for common video generation and editing tasks.

✍️

Text-to-video

Enter camera directions, scenes, and actions to quickly generate short video prototypes.

🖼️

First-frame image-to-video

Use a fixed first frame to control composition and bring static visuals naturally to life.

🎭

Reference-image-to-video

Use multiple reference images to guide characters, props, styles, and visual elements.

✂️

Video editing

Apply style transfer, outfit changes, and partial replacements using input videos and reference images.

curl
export ACEDATACLOUD_API_KEY="YOUR_API_KEY"
curl -X POST 'https://api.acedata.cloud/happyhorse/videos' \
  -H "authorization: Bearer $ACEDATACLOUD_API_KEY" \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  -d '{
    "action": "image_to_video",
    "model": "happyhorse-1.1-i2v",
    "image_url": "https://cdn.acedata.cloud/b1c82e4937.png",
    "prompt": "A cinematic white horse lifts its head, the mane moves gently in the sunrise wind, slow camera push in, warm film lighting",
    "resolution": "720P",
    "duration": 5,
    "async": true
  }'

Submission Response JSON

The following response excerpt from the existing API guide shows the fields used to read the result. The example model, task identifiers, and media content come from that historical example; refer to the actual response for this request.

{
  "task_id": "b8976e18-32dc-4718-9ed8-1ea090fcb6ea",
  "trace_id": "fb751e1e-4705-49ea-9fd4-5024b7865ea2"
}

Query the Original Task

Replace id with the task_id from the submission response, using the same API Key.

curl --request POST "https://api.acedata.cloud/happyhorse/tasks" \
  --header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"action":"retrieve","id":"YOUR_TASK_ID"}'

Processing Response JSON

Example of key fields while processing; continue querying the same task ID.

{
  "id": "b8976e18-32dc-4718-9ed8-1ea090fcb6ea"
}

Completion Response JSON

The following response excerpt from the existing API guide shows the fields used to read the result. The example model, task identifiers, and media content come from that historical example; refer to the actual response for this request.

{
  "id": "b8976e18-32dc-4718-9ed8-1ea090fcb6ea",
  "type": "videos",
  "finished_at": 1769262774.423,
  "response": {
    "success": true,
    "task_id": "b8976e18-32dc-4718-9ed8-1ea090fcb6ea",
    "trace_id": "fb751e1e-4705-49ea-9fd4-5024b7865ea2",
    "data": [
      {
        "id": "1469cfc3-3004-4d9e-ab10-xxxxxx",
        "state": "succeeded",
        "video_url": "https://cdn.acedata.cloud/happyhorse/c8cbf53aa0.mp4"
      }
    ]
  }
}

Submit a Video Task in One Request

Use async to return a task ID immediately, then query the result via /happyhorse/tasks; if you provide callback_url, the final result will be pushed to your service when the task is complete.

1

Choose an action

Text-to-video, image-to-video, reference images, and editing all use the same endpoint.

2

Provide media

Images and videos must have publicly accessible URLs; Ace Data Cloud CDN is recommended.

3

Query the result

Use task_id to retrieve the final CDN video URL, duration, and resolution.

Three Use Cases for Real-World Products

From marketing assets to content tools, HappyHorse is better suited as a reliable video capability module than a one-off toy.

Brand Video Prototypes

Quickly generate short videos of products, characters, and scenes using text and a first frame to validate visual directions.

Character and Prop Consistency

Use multiple reference images to lock in characters, outfits, props, and visual styles.

Video Post-Production

Apply style transfer, partial replacement, and audio preservation strategies to existing clips.

Launch Video Capabilities in Three Steps

Use Ace Data Cloud's unified authentication, billing, task, and callback model for a clear, manageable integration path.

01

Copy the General Application API Key

Sign in to the application list, open General Application, and click the copy button to the right of API KEY. Keep the Key on your server and use it to replace YOUR_API_KEY in the example.

Get an Ace Data Cloud API Key
02

Submit a Task

Pass prompt, image_url, image_urls, or video_url according to the action.

03

Retrieve the Result

Get a downloadable CDN video URL through the task API or callback.

Why Use a Unified API

Bring model calls, task polling, CDN transfers, error classification, and billing records together on the platform.

CapabilityAce Data Cloud HappyHorseSome Others
Multiple video actionsUnified /happyhorse/videosCombine multiple endpoints yourself
Output filesAutomatically transferred to CDNTemporary URLs often expire
BillingRecorded by actual secondsRequires your own usage ledger
Failure handlingStructured error codesInconsistent error messages

Choose a Model by Task

1.1 models are preferred for generation tasks; video editing currently uses 1.0 video-edit.

T2V

happyhorse-1.1-t2v

The default text-to-video model, suitable for generating short videos from scripts and shot descriptions.

I2V

happyhorse-1.1-i2v

Control composition and visual tone with a first-frame image, ideal for animating product and character images.

R2V

happyhorse-1.1-r2v

Use multiple reference images to guide characters and props, ideal for scenarios requiring greater consistency.

EDIT

happyhorse-1.0-video-edit

Edit an input video, with the option to preserve the original audio.

Clear Per-Second Pricing

Failed tasks are not charged; video editing is billed based on the combined input and output duration.

720P Generation

From $0.105 / second
  • Ideal for rapid prototyping
  • Supports t2v / i2v / r2v
  • 3–15 second output
View Pricing

Video Editing

Based on actual seconds
  • Input + output duration
  • Supports reference images
  • Original audio can be retained
View Parameters

Frequently Asked Questions

Common questions about parameters, assets, and billing before launch.

What input assets does HappyHorse support?

Text-to-video requires only a prompt; first-frame image-to-video requires image_url; reference image-to-video requires 1–9 image_urls; video editing requires video_url, with 0–5 optional reference images.

Does the returned video URL expire?

The documentation and API response provide an accessible CDN URL.

How should I handle long generation times?

We recommend using async or callback_url. The API first returns a task_id, which you can use to query /happyhorse/tasks or wait for a callback.

Are failed tasks charged?

No. Only tasks that are successfully completed and have their results recorded are billed by duration and resolution.

Integrate HappyHorse into Your Video Product

Use a unified Token, unified billing, and unified task queries to reliably integrate video generation and editing capabilities into your application.