Build with HappyHorse 1.1
Make your first request
Use your Sorceress API key on your server. The playground uses your signed-in account; your application uses the same model with an API key.
curl -X POST 'https://sorceress.games/api/v1/jobs' \
-H 'Authorization: Bearer $SORCERESS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "happyhorse-1-1-reference-to-video",
"input": {
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9",
"prompt": "<prompt>",
"reference_image": "<reference_image>"
}
}'Inputs & settings
promptstringRequiredA description of the desired elements and visual style for the generated video. Input in any language is supported. Up to 5,000 characters. Use "[Image 1]", "[Image 2]" to refer to the images in reference_image, in the same order. When using a reference, specify the object in the image, such as "the woman in a red qipao in [Image 1]".
durationnumberThe duration of the generated video, in seconds. Value range: An integer from 3 to 15.
resolutionstringThe resolution tier of the generated video. Options: 720p; 1080p
Options: 720p, 1080p
aspect_ratiostringThe aspect ratio of the generated video. Options: 16:9; 9:16; 3:4; 4:3; 4:5; 5:4; 1:1; 9:21; 21:9
Options: 16:9, 9:16, 3:4, 4:3, 4:5, 5:4, 1:1, 9:21, 21:9
reference_imagearrayRequiredThe URL of a reference image. Image requirements: 1. Formats: JPEG, JPG, PNG, WEBP. 2. Resolution: The shortest side must be at least 400 pixels. A clear image with a resolution of 720P or higher is recommended. Avoid using images that are too small, blurry, or overly compressed, as this can degrade the output quality. 3. Maximum file size: 20 MB.
Full input schema
{
"type": "object",
"required": [
"prompt",
"reference_image"
],
"properties": {
"prompt": {
"type": "string",
"title": "Prompt",
"maxLength": 5000,
"description": "A description of the desired elements and visual style for the generated video. Input in any language is supported. Up to 5,000 characters. Use \"[Image 1]\", \"[Image 2]\" to refer to the images in reference_image, in the same order. When using a reference, specify the object in the image, such as \"the woman in a red qipao in [Image 1]\"."
},
"duration": {
"type": "number",
"title": "Duration",
"default": 5,
"maximum": 15,
"minimum": 3,
"description": "The duration of the generated video, in seconds. Value range: An integer from 3 to 15."
},
"resolution": {
"enum": [
"720p",
"1080p"
],
"type": "string",
"title": "Resolution",
"default": "1080p",
"description": "The resolution tier of the generated video. Options: 720p; 1080p"
},
"aspect_ratio": {
"enum": [
"16:9",
"9:16",
"3:4",
"4:3",
"4:5",
"5:4",
"1:1",
"9:21",
"21:9"
],
"type": "string",
"title": "Aspect ratio",
"default": "16:9",
"description": "The aspect ratio of the generated video. Options: 16:9; 9:16; 3:4; 4:3; 4:5; 5:4; 1:1; 9:21; 21:9"
},
"reference_image": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Reference image",
"x-media": "image",
"maxItems": 9,
"description": "The URL of a reference image. Image requirements: 1. Formats: JPEG, JPG, PNG, WEBP. 2. Resolution: The shortest side must be at least 400 pixels. A clear image with a resolution of 720P or higher is recommended. Avoid using images that are too small, blurry, or overly compressed, as this can degrade the output quality. 3. Maximum file size: 20 MB."
}
}
}Results, saved runs & billing
Media requests return a job ID. Poll GET /api/v1/jobs/:id until it succeeds or fails; keep the same ID while it is processing. Long chat requests can also return a saved job to poll. Completed outputs are stored in your account, and successful work is billed using your model's current rates.
A multi-step workflow may include separately billed successful actions. If a connection drops, check your saved run before submitting it again.






