Skip to content
Alibaba · HappyHorse

happyhorse API

Generate and edit videos from text, images, or source footage with happyhorse on APISea.

Video generationVideoAsync task
Model id
happyhorse-1.0

happyhorse API pricing

All prices in USD. APISea rates compared with the official list price for the same unit.

OptionAPISeaOfficialSave
DefaultDefault$0.253$0.2875−12%
1080P$0.253$0.2875−12%
720P$0.143$0.1625−12%
edit-1080P$0.253$0.2875−12%
edit-720P$0.143$0.1625−12%

Prices are per second.

What is happyhorse?

happyhorse is Alibaba's HappyHorse family video model, available on APISea through the unified model ID happyhorse-1.0. It generates video from text, animates a first-frame image, creates scenes from reference images, or rewrites and restyles source footage. The request's media fields determine the mode automatically, so developers can support these workflows through one model entry. Generation supports 720P and 1080P output and integer durations from 3 to 15 seconds, with controls for aspect ratio, watermark, and random seed.

APISea bills by resolution and video duration only, regardless of mode, and charges only for successful requests. The 720P and edit-720P configurations cost $0.143 per second; Default, 1080P, and edit-1080P cost $0.253 per second. The default configuration is about 12% below the provider list price. In edit mode, output length follows the source video, capped at 15 seconds, rather than the requested duration.

happyhorse highlights

Four Video Workflows

Generate from text, animate a first-frame image, build scenes from reference images, or edit source footage. Input parameters automatically select the mode.

Reference Image Support

Use 1–9 images as subject or style references for a new scene. Video editing accepts up to 5 style-reference images alongside the source video.

Resolution And Duration Controls

Choose 720P or 1080P and an integer generation duration from 3 to 15 seconds. Defaults are 1080P and 5 seconds.

Output Configuration Controls

Set aspect ratio, watermark inclusion, and a random seed to control generation randomness. Optional pre-submission moderation reviews prompts and input images.

How to call the happyhorse API in 4 steps

  1. 01

    Get an API key

    Sign in to APISea, top up from $50, and create an sk-sea key in the console.

  2. 02

    Set the base URL

    Use https://api.apisea.ai/v1 as the base URL in your SDK or HTTP client.

  3. 03

    Send the request

    Call POST /v1/videos/generations with "model": "happyhorse-1.0" and the parameters below.

  4. 04

    Handle the response

    The response contains a task_id. Poll GET /v1/tasks/{task_id} until the status is completed, then download the result URLs.

curl --request POST \
  --url https://api.apisea.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "happyhorse-1.0",
    "prompt": "A little girl walking down the road, cinematic feel",
    "resolution": "1080P",
    "size": "16:9",
    "duration": 5,
    "seed": 42
  }'

Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequired—Video generation model name, fixed as `happyhorse-1.0`
nsfw_checkbooleanOptionalfalseWhether to run content moderation before submitting the video task.
promptstringOptional—Video content description, up to 2500 characters; cannot contain special tokens
first_frame_imagestringOptional—First-frame image, triggers **I2V** (Image-to-Video). Supports URL or base64 (`data:image/<mime>;base64,<payload>`, the gateway uploads it to OSS automatically)
image_urlsarray\<string\>Optional—Image array:
video_urlstringOptional—Source video URL, triggers **EDIT** (Video Edit). **Base64 is not supported** — provide an HTTP/HTTPS direct link
audio_settingstringOptionalautoAudio setting, **only effective in EDIT mode** (must pass `video_url`)
resolutionstringOptional1080PVideo resolution (affects billing)
durationintegerOptional5Video duration in seconds (affects billing)
sizestringOptional16:9Aspect ratio
watermarkbooleanOptionalfalseWhether to add a watermark to the generated video
seedintegerOptional—Random seed used to control the randomness of generated content

What you can build with happyhorse

Text-to-Video Prototypes

Build a tool that turns written scene descriptions into short video drafts for creative review.

Still Image Animation

Let users supply a first-frame image and a prompt describing actions or camera movement to create an animated clip.

Reference-Based Scene Creation

Create a scene-generation workflow where teams submit subject or style reference images alongside a text description.

Source Footage Restyling

Build an editing interface that rewrites or restyles an uploaded source video, optionally using reference images for style guidance.

Tips for better results

  • 01

    Choose Inputs Deliberately

    Use only the media fields needed for your mode. The only supported pairing is a source video with reference images; other paired media fields return a 400 mixed_media_not_allowed error.

  • 02

    Budget By Resolution

    Choose 720P at $0.143 per second when that resolution meets your needs, or 1080P at $0.253 per second. Billing depends on resolution and seconds, not the selected workflow.

  • 03

    Trim Before Editing

    Trim source footage to the desired output length before submitting it. The duration parameter has no effect in edit mode, and sources longer than 15 seconds are truncated to their first 15 seconds.

  • 04

    Guide Image Animation

    Although a prompt is optional for first-frame image animation, include one to guide camera movement and actions. Keep prompts within 2500 characters and avoid special tokens.

Limits and things to know

  • Generated duration is limited to 3–15 seconds; edit output follows the source length, capped at 15 seconds.

  • Source videos must use an HTTP/HTTPS direct link; base64 video input is not supported.

  • The audio_setting parameter is effective only in edit mode with a source video.

happyhorse API FAQ

How much does happyhorse cost on APISea?

APISea 720P and edit-720P cost $0.143 per second. Default, 1080P, and edit-1080P cost $0.253 per second; the default configuration is about 12% below the provider list price. Only successful requests are billed.

How do I call the happyhorse API?

Send a POST request to https://api.apisea.ai/v1/videos/generations with Bearer Token authentication and the model field set to happyhorse-1.0. Include a prompt and the appropriate media fields for your workflow.

Does happyhorse support image-to-video and video editing?

Yes. A first-frame image selects image-to-video, reference images select reference-image-to-video, and a source video URL selects editing. A prompt alone selects text-to-video.

What resolutions and video lengths are supported?

Generation supports 720P and 1080P with integer durations from 3 to 15 seconds. Defaults are 1080P and 5 seconds; in edit mode, output duration matches the source, capped at 15 seconds.

What input limits should I check before submitting?

Prompts allow up to 2500 characters and cannot contain special tokens. Reference-based generation accepts 1–9 images, while editing accepts up to 5 reference images. Source videos must be MP4 or MOV, 3–60 seconds long, and no larger than 100MB; sources over 15 seconds are truncated.

Can I use happyhorse videos commercially?

Commercial use is subject to the provider's terms. Review the applicable terms and confirm that you have the necessary rights to your input images and source footage.

Related models

Depth: 250+ models · Minimum top-up $50

Start building with happyhorse

One key, pay as you go from $50, billed only for successful requests.