Generate Video
Interface description: Submit a video generation task, and you can pass in reference pictures, videos, and audios. The task is executed asynchronously and taskId is returned for polling results.
Before calling this interface, please request the “Video Generation Model” interface (GET /api/ai/models/video/generation) to obtain the currently available model list and the parameter restrictions of each model (resolution, duration, aspect ratio, reference media constraints and price), and then fill in the parameters of this interface accordingly.
Authorizations
Need to get API Key from AiToEarn. Click to go to "API Key Obtaining Tutorial".
Body
Video generation model name. First call the "Video Generation Model" interface (GET /api/ai/models/video/generation) and pass in the data[n].name returned by it; the resolution, duration, aspect ratio and price supported by each model are subject to the return of this interface.
1Prompt word, length 1-4000 characters
1 - 4000Reference image URL list. The maximum number and format limits vary from model to model, and are subject to the data[n].maxInputImages and data[n].inputConstraints returned by the "Video Generation Model" interface.
Reference video URL list. Whether video input is supported, as well as the quantity, format, duration, and size limits vary from model to model, and are subject to the data[n].modes and data[n].inputConstraints returned by the "Video Generation Model" interface.
Reference audio URL list. Whether audio input is supported, as well as the quantity, format, duration, and size limits vary from model to model, and are subject to the data[n].modes and data[n].inputConstraints returned by the "Video Generation Model" interface.
Video resolution. The optional values vary from model to model, and are subject to the data[n].resolutions returned by the "Video Generation Model" interface.
480p, 720p, 1080p Video aspect ratio. The optional values vary from model to model, and are subject to the data[n].aspectRatios returned by the "Video Generation Model" interface.
Video duration (seconds). The optional range varies with the model, and is subject to the data[n].durations returned by the "Video Generation Model" interface.
Response
The request has been processed by the service. Business success is determined by whether the response body has code === 0.

