Submit a Video
Generate a video through the input prompt. This API returns the user's current request ID. The user needs to poll the status interface to get the specific video link. The generated result is valid for 10 minutes, so please retrieve the video link promptly. The Wan2.2 series models will be retired on 2026-11-10; this documentation has been updated for MiniMax-H3. See the release notes for details.
Set the header 'Authorization: Bearer {your API key}' for authentication
In: header
Header Parameters
Request trace ID. You can pass a custom value to mark the request; if omitted, the platform generates one automatically. For troubleshooting, either this value or the x-siliconcloud-trace-id in the response header can be provided.
The W3C Trace Context standard tracing header. When present, the platform uses its trace-id part as the tracing identifier of the request.
The model name. To improve service quality, we periodically change the models offered by this service, including but not limited to adding and removing models and adjusting model capabilities. Where feasible, we will notify you of such changes through announcements or message notifications. For a complete list of available video generation models, please check Models.
"MiniMaxAI/MiniMax-H3""MiniMaxAI/MiniMax-H3"The text prompt that describes the video to generate.
Duration of the generated video in seconds. The range is 5 to 15, and the default is 5. Videos are billed by the requested duration; a successful request is billed at this value and a failed generation is refunded accordingly.
55 <= value <= 155Resolution of the generated video. Available values are 480p and 768p; the default is 768p.
"768p""480p" | "768p"Aspect ratio of the generated video. Available values are 1:1, 3:4, 4:3, 9:16, 16:9, and 21:9; the default is 16:9. When a reference image is provided, the video is scaled to the resolution while keeping the image's aspect ratio.
"16:9""1:1" | "3:4" | "4:3" | "9:16" | "16:9" | "21:9"Reference image list, used for first-frame-to-video, last-frame-to-video, and first-and-last-frame-to-video. It can be omitted or passed as an empty array; when a non-empty array is passed, each element must provide both url and role.
Random seed value.
Response Headers
Request trace ID. The unique identifier for this request, useful for log lookup and troubleshooting. Generated by the platform when X-Trace-Id is not provided, and echoed back as-is when it is. When troubleshooting, either trace ID can be provided.
Response Body
The response from the model.
TypeScript Definitions
Use the response body type in TypeScript.
The requestId generated by this request needs to be used when calling the status interface.
curl --request POST \
--url https://api.siliconflow.cn/v1/video/submit \
--header 'Authorization: Bearer ***' \
--header 'Content-Type: application/json' \
--data '{
"model": "MiniMaxAI/MiniMax-H3",
"prompt": "A cat running on grass",
"duration": 5,
"resolution": "768p",
"ratio": "16:9"
}'
import requests
url = "https://api.siliconflow.cn/v1/video/submit"
payload = {
"model": "MiniMaxAI/MiniMax-H3",
"prompt": "A smooth transition from a morning meadow to dusk",
"duration": 5,
"resolution": "768p",
"ratio": "16:9",
"images": [
{"url": "https://example.com/first-frame.jpg", "role": "first_frame"},
{"url": "https://example.com/last-frame.jpg", "role": "last_frame"}
]
}
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
{
"requestId": "string"
}{
"code": 20012,
"message": "string",
"data": "string"
}"Invalid token""Forbidden""404 page not found"{
"message": "Request was rejected due to rate limiting. If you want more, please contact contact@siliconflow.cn. Details:TPM limit reached.",
"data": "string"
}{
"code": 50505,
"message": "Model service overloaded. Please try again later.",
"data": "string"
}"string"