happyhorse-1.1 API guide
happyhorse-1.1 API: Create video from text, a first-frame image, or reference images with happyhorse-1.1. Select the relevant input mode and keep its media inputs separate from output duration and resolution controls.
Model overview
Create video from text, a first-frame image, or reference images with happyhorse-1.1. Select the relevant input mode and keep its media inputs separate from output duration and resolution controls.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | happyhorse-1.1 |
| Integration | Async task API |
Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.
Request parameters
Select a mode to highlight its required inputs. Mode selection does not change the API field names.
Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.
Additional requirements depend on other values. See model rules.
Text prompt describing the desired video.
Length: maximum 2500.
Required for Image to Video.
Additional requirements depend on other values. See model rules.
First-frame image URL or complete image data URI. Mutually exclusive with reference image_urls. JPEG/JPG, PNG, BMP, or WebP; at most 10 MB, short side at least 300 pixels, aspect ratio from 1:2.5 to 2.5:1.
Required for Reference to Video.
Additional requirements depend on other values. See model rules.
Reference images as URLs or complete base64 data URIs, mutually exclusive with first_frame_image. Reference generation accepts 1-9 images. JPEG/JPG, PNG, BMP, or WebP; at most 10 MB each, short-to-long-side ratio at least 0.4, recommended short side at least 720 pixels.
Item count: maximum 9.
Output video resolution.
Allowed values: "720P", "1080P".
Studio preset: "1080P".
Video duration in seconds.
Value: minimum 3; maximum 15.
Studio preset: 5.
Output aspect ratio for text and reference-image generation. First-frame input determines the aspect ratio in image-to-video mode.
Allowed values: "16:9", "9:16", "1:1", "4:3", "3:4".
Standard quantity control field. The allowed range for this item is 1-4.
Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.
Value: minimum 1; maximum 4.
Studio preset: 1.
Random seed from 0 to 2147483647. Use -1 for a random result.
Value: minimum -1; maximum 2147483647.
Studio preset: -1.
Pre-generation content checks are unavailable for the selected provider. Omit this option or leave it false.
Allowed values: false.
Add a watermark to the output.
No parameters match. Clear the search or reset the filters.
Model rules
Input modes
Select a mode by supplying its required public inputs. The mode identifier describes a documentation/form choice; do not send input_mode as a model parameter.
| Mode | Required inputs |
|---|---|
| Text to Video | No reference media required |
| Image to Video | first_frame_image |
| Reference to Video | image_urls |
- When the input mode is Text to Video, provide
prompt. - When
first_frame_imageis omitted andimage_urlsis omitted, provideprompt; keepprompt, when supplied, at least 1. - When
first_frame_imageis provided, omitimage_urls. - When
image_urlsis provided, omitfirst_frame_image. - When
image_urlsis provided, provideprompt; keepprompt, when supplied, at least 1. - When the input mode is Text to Video, provide
prompt; omitimage_urls; omitfirst_frame_image. - When the input mode is Image to Video, provide
first_frame_image; keepfirst_frame_image, when supplied, at least 1. - When the input mode is Reference to Video, provide
image_urls; keepimage_urls, when supplied, at least 1 items.
Dependencies
- First-frame input and reference-image input are separate, mutually exclusive modes. Supply exactly the media fields for the intended mode.
- In first-frame generation, output shape follows the first-frame image. An explicit ratio cannot be assumed to override it.
batch_size controls repeated MuseSpark executions. Output grouping, sequential image generation, and video shot count are separate concepts.
Request examples
Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.
Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.
Text to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "happyhorse-1.1",
"parameters": {
"seed": -1,
"duration": 5,
"batch_size": 1,
"resolution": "1080P",
"prompt": "A paper city under soft morning light"
}
}'Parameters used: seed · duration · batch_size · resolution · prompt.
Image to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "happyhorse-1.1",
"parameters": {
"seed": -1,
"duration": 5,
"batch_size": 1,
"resolution": "1080P",
"prompt": "A paper city under soft morning light",
"first_frame_image": "YOUR_FIRST_FRAME_IMAGE"
}
}'Parameters used: seed · duration · batch_size · resolution · prompt · first_frame_image.
Reference to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "happyhorse-1.1",
"parameters": {
"seed": -1,
"duration": 5,
"batch_size": 1,
"resolution": "1080P",
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png"
]
}
}'Parameters used: seed · duration · batch_size · resolution · prompt · image_urls.
Output
Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.
Troubleshooting
For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.
If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.
Related docs
The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.