modelApiDoc_getStartedBeforeModelalibaba/happyhorse-1.1/text-to-videomodelApiDoc_getStartedAfterModel modelApiDoc_getStartedMid modelApiDoc_schemaLinkmodelApiDoc_getStartedAfterSchema
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/alibaba/happyhorse-1.1/text-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A miniature city built from cardboard and bottle caps comes alive after dark. A small cardboard train rolls slowly through the streets while tiny warm lights flicker along the tracks, gentle ambient hum and soft click-clack of wheels, cozy handmade diorama mood."
}'modelApiDoc_authP1 YOUR_API_TOKEN modelApiDoc_authP2 modelApiDoc_profilemodelApiDoc_authP3 Authorization modelApiDoc_authP4 Authorization: Bearer $YOUR_API_TOKENmodelApiDoc_authP5
modelApiDoc_submitBody
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/alibaba/happyhorse-1.1/text-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A miniature city built from cardboard and bottle caps comes alive after dark. A small cardboard train rolls slowly through the streets while tiny warm lights flicker along the tracks, gentle ambient hum and soft click-clack of wheels, cozy handmade diorama mood."
}'modelApiDoc_monitorBody
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
--header "Authorization: Bearer <token>"modelApiDoc_retrieveBody
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
--header "Authorization: Bearer <token>"modelApiDoc_cancelBody
curl --request POST \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
--header "Authorization: Bearer <token>"modelApiDoc_hostedFileBody
{
"type": "object",
"title": "modelApiDoc_navInputSchema",
"required": [
"prompt"
],
"properties": {
"prompt": {
"title": "Prompt",
"description": "Text description of the scene, action, and camera movement you want in the video.",
"type": "string",
"default": "A miniature city built from cardboard and bottle caps comes alive after dark. A small cardboard train rolls slowly through the streets while tiny warm lights flicker along the tracks, gentle ambient hum and soft click-clack of wheels, cozy handmade diorama mood."
},
"resolution": {
"title": "Resolution",
"description": "Output resolution tier of the generated video.",
"type": "string",
"enum": [
"720P",
"1080P"
],
"default": "1080P"
},
"ratio": {
"title": "Ratio",
"description": "Aspect ratio of the generated video.",
"type": "string",
"enum": [
"16:9",
"9:16",
"1:1"
],
"default": "16:9"
},
"duration": {
"title": "Duration",
"description": "Length of the generated video in seconds.",
"type": "integer",
"minimum": 3,
"maximum": 15,
"default": 5
}
}
}{
"output": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "uri",
"description": "modelApiDoc_outDescImage"
},
"video": {
"type": "string",
"format": "uri",
"description": "modelApiDoc_outDescVideo"
},
"images": {
"type": "array",
"description": "modelApiDoc_outDescImages",
"items": {
"type": "string",
"format": "uri"
}
},
"videos": {
"type": "array",
"description": "modelApiDoc_outDescVideos",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
}RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.