{"modality":"video","operations":["text-to-video","image-to-video","reference-to-video"],"commonArguments":["prompt","duration","resolution","aspectRatio","audio","seed","count"],"modelSpecificArguments":[],"defaults":{"resolution":"1080p","duration":5,"aspectRatio":"16:9"},"capabilities":{"resolutions":["480p","720p","1080p"],"aspectRatios":["source","16:9","9:16","1:1","4:3","3:4","21:9","9:21","5:4","4:5"],"duration":{"minimum":3,"maximum":15,"integer":true,"auto":false},"references":{"types":["image"],"maximum":{"image":9}},"frames":{"first":true,"last":false,"lastOnly":false,"keyframesMaximum":0,"timed":false},"frameReferenceMix":false,"audio":"always-on","countMaximum":1},"promptRequired":true,"promptMaximum":null,"verification":"documented","sources":[{"url":"https://www.alibabacloud.com/help/en/model-studio/happyhorse-api-reference/","checkedAt":"2026-11-03"},{"url":"https://fal.ai/models/alibaba/happy-horse/v1.1/text-to-video/api","checkedAt":"2026-11-03"},{"url":"https://fal.ai/models/alibaba/happy-horse/v1.1/reference-to-video/api","checkedAt":"2026-11-03"}],"notices":["HappyHorse 1.1 generates video with native synchronized audio and up to nine reference images across 480p/720p/1080p on Alibaba Model Studio (720p/1080p on fal); end-frame interpolation is not exposed."],"modelId":"alibaba/happy-horse-1.1","operation":"text-to-video","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"prompt":{"type":"string","maxLength":100000,"minLength":1,"pattern":"\\S"},"duration":{"anyOf":[{"type":"number","exclusiveMinimum":0,"maximum":300},{"type":"string","const":"auto"}],"default":5},"resolution":{"type":"string","minLength":1,"maxLength":30,"default":"1080p"},"aspectRatio":{"type":"string","pattern":"^(source|auto|\\d+(\\.\\d+)?:\\d+(\\.\\d+)?)$","default":"16:9"},"audio":{"type":"boolean"},"seed":{"type":"integer","minimum":-1,"maximum":9007199254740991},"count":{"type":"integer","minimum":1,"maximum":15}},"additionalProperties":false,"allOf":[{"not":{"required":["size","resolution"]}},{"not":{"required":["size","aspectRatio"]}}],"required":["prompt"],"x-opengen":{"modelId":"alibaba/happy-horse-1.1","operation":"text-to-video","capabilities":{"resolutions":["480p","720p","1080p"],"aspectRatios":["source","16:9","9:16","1:1","4:3","3:4","21:9","9:21","5:4","4:5"],"duration":{"minimum":3,"maximum":15,"integer":true,"auto":false},"references":{"types":["image"],"maximum":{"image":9}},"frames":{"first":true,"last":false,"lastOnly":false,"keyframesMaximum":0,"timed":false},"frameReferenceMix":false,"audio":"always-on","countMaximum":1},"notices":["HappyHorse 1.1 generates video with native synchronized audio and up to nine reference images across 480p/720p/1080p on Alibaba Model Studio (720p/1080p on fal); end-frame interpolation is not exposed.","aspectRatio source requires source media or an owned top-level previousJobId. An arguments-only schema cannot validate that outer request context.","Runtime validation also checks model-specific combinations, media contents and regional route restrictions."],"sources":[{"url":"https://www.alibabacloud.com/help/en/model-studio/happyhorse-api-reference/","checkedAt":"2026-11-03"},{"url":"https://fal.ai/models/alibaba/happy-horse/v1.1/text-to-video/api","checkedAt":"2026-11-03"},{"url":"https://fal.ai/models/alibaba/happy-horse/v1.1/reference-to-video/api","checkedAt":"2026-11-03"}]}},"examples":{"request":{"modelId":"alibaba/happy-horse-1.1","operation":"text-to-video","input":{"resolution":"1080p","duration":5,"aspectRatio":"16:9","prompt":"Describe the desired result."},"billing":"managed"},"generate":{"operationId":"media.generate","input":{"modelId":"alibaba/happy-horse-1.1","operation":"text-to-video","input":{"resolution":"1080p","duration":5,"aspectRatio":"16:9","prompt":"Describe the desired result."},"billing":"managed"},"idempotencyKey":"REPLACE_WITH_SAVED_IDEMPOTENCY_KEY"},"cli":"opengen generate --input request.json --idempotency-key \"$OPENGEN_IDEMPOTENCY_KEY\"","placeholders":[],"notices":["Template only. Replace owned asset placeholders after upload prepare/PUT/complete; edit the prompt before submitting.","Inspect published route pricing, regional restrictions and budget before authorizing a separate billable submission. Persist a unique idempotency key with the request before submitting.","Managed billing is explicit in this example. Select BYOK only when the user chooses their provider account as payer; unknown direct charges cannot be capped by OpenGen."]}}