AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Video generationHappyHorse

Create a video

Create a HappyHorse video task through the platform or OpenAI Videos path.

Supports text-to-video, image-to-video, and reference-image-to-video. The request body can use either the platform fields or the input / parameters structure.

POST/v1/video/generations
POST/v1/videos

Create an asynchronous HappyHorse video task with either the platform structure or the Alibaba-native input / parameters structure. Both structures are converted into the same upstream request.

Text-to-video does not require an image. Image-to-video requires one first-frame image. Reference-image-to-video requires 1–9 reference images, which can be referenced in the prompt with markers such as [Image 1] and [Image 2].

Authorization

bearerAuth
AuthorizationBearer <token>

Use Bearer your-api-key in the Authorization Header.

In: header

Request Body

application/json

Submit a HappyHorse request with either the platform structure or the Alibaba-native structure.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json