Skip to content
Halaman ini belum tersedia dalam bahasa Anda, jadi ditampilkan dalam bahasa Inggris.
Alibaba · HappyHorse

happyhorse API

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

Pembuatan videoVideoTugas asinkron
ID model
happyhorse-1.0

Harga API happyhorse

Semua harga dalam USD. Bandingkan tarif APISea dengan harga resmi untuk satuan yang sama.

OpsiAPISeaResmiHemat
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%

Harga dalam per detik.

Apa itu 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.

Keunggulan happyhorse

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.

Cara memanggil API happyhorse dalam 4 langkah

  1. 01

    Dapatkan API key

    Masuk ke APISea, isi saldo mulai dari $50, lalu buat key sk-sea di konsol.

  2. 02

    Atur base URL

    Gunakan https://api.apisea.ai/v1 sebagai base URL di SDK atau klien HTTP Anda.

  3. 03

    Kirim permintaan

    Panggil POST /v1/videos/generations dengan "model": "happyhorse-1.0" dan parameter berikut.

  4. 04

    Tangani respons

    Respons berisi task_id. Lakukan polling ke GET /v1/tasks/{task_id} sampai statusnya completed, lalu unduh URL hasilnya.

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
  }'

Parameter

ParameterJenisWajibDefaultDeskripsi
modelstringWajib—Video generation model name, fixed as `happyhorse-1.0`
nsfw_checkbooleanOpsionalfalseWhether to run content moderation before submitting the video task.
promptstringOpsional—Video content description, up to 2500 characters; cannot contain special tokens
first_frame_imagestringOpsional—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\>Opsional—Image array:
video_urlstringOpsional—Source video URL, triggers **EDIT** (Video Edit). **Base64 is not supported** — provide an HTTP/HTTPS direct link
audio_settingstringOpsionalautoAudio setting, **only effective in EDIT mode** (must pass `video_url`)
resolutionstringOpsional1080PVideo resolution (affects billing)
durationintegerOpsional5Video duration in seconds (affects billing)
sizestringOpsional16:9Aspect ratio
watermarkbooleanOpsionalfalseWhether to add a watermark to the generated video
seedintegerOpsional—Random seed used to control the randomness of generated content

Yang bisa Anda buat dengan 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 untuk hasil yang lebih baik

  • 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.

Batasan dan hal yang perlu diketahui

  • 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.

FAQ API happyhorse

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.

Model terkait

Pilihan: 250+ model · Minimum isi saldo $50

Mulai berkarya dengan happyhorse

Satu API key, bayar sesuai penggunaan mulai dari $50, dan hanya dikenai biaya untuk permintaan yang berhasil.