Skip to content
هذه الصفحة غير متاحة بلغتك بعد، لذا تُعرض باللغة الإنجليزية.
Alibaba · HappyHorse

happyhorse API

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

إنشاء الفيديوالفيديومهمة غير متزامنة
معرّف النموذج
happyhorse-1.0

تسعير API لنموذج happyhorse

جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.

الخيارAPISeaرسميوفّر
افتراضيافتراضي$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%

الأسعار لكل ثانية.

ما هو 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

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.

كيفية استدعاء API الخاص بـ happyhorse في 4 خطوات

  1. 01

    احصل على API key

    سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.

  2. 02

    اضبط عنوان URL الأساسي

    استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.

  3. 03

    أرسل الطلب

    استدعِ POST /v1/videos/generations مع "model": "happyhorse-1.0" والمعلمات أدناه.

  4. 04

    تعامل مع الاستجابة

    تتضمن الاستجابة task_id. أرسل طلبات GET /v1/tasks/{task_id} دوريًا حتى تصبح الحالة completed، ثم نزّل روابط النتائج.

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

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
modelstringمطلوب—Video generation model name, fixed as `happyhorse-1.0`
nsfw_checkbooleanاختياريfalseWhether to run content moderation before submitting the video task.
promptstringاختياري—Video content description, up to 2500 characters; cannot contain special tokens
first_frame_imagestringاختياري—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\>اختياري—Image array:
video_urlstringاختياري—Source video URL, triggers **EDIT** (Video Edit). **Base64 is not supported** — provide an HTTP/HTTPS direct link
audio_settingstringاختياريautoAudio setting, **only effective in EDIT mode** (must pass `video_url`)
resolutionstringاختياري1080PVideo resolution (affects billing)
durationintegerاختياري5Video duration in seconds (affects billing)
sizestringاختياري16:9Aspect ratio
watermarkbooleanاختياريfalseWhether to add a watermark to the generated video
seedintegerاختياري—Random seed used to control the randomness of generated content

ما الذي يمكنك إنشاؤه باستخدام 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.

نصائح للحصول على نتائج أفضل

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

القيود ومعلومات مهمة

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

الأسئلة الشائعة حول 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.

نماذج ذات صلة

العمق: أكثر من 250 نموذجًا · الحد الأدنى لشحن الرصيد $50

ابدأ التطوير باستخدام happyhorse

مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.