Skip to main content
POST
/
video
/
submit
Submit video
curl --request POST \
  --url https://api.siliconflow.cn/v1/video/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "Wan-AI/Wan2.2-I2V-A14B",
  "prompt": "<string>"
}
'
import requests

url = "https://api.siliconflow.cn/v1/video/submit"

payload = {
    "model": "Wan-AI/Wan2.2-I2V-A14B",
    "prompt": "<string>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({model: 'Wan-AI/Wan2.2-I2V-A14B', prompt: '<string>'})
};

fetch('https://api.siliconflow.cn/v1/video/submit', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "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>"

Authorizations

Authorization
string
header
required

Use the following format for authentication: Bearer

Body

application/json
model
enum<string>
required

Corresponding Model Name. To better enhance service quality, we will make periodic changes to the models provided by this service, including but not limited to model on/offlining and adjustments to model service capabilities. We will notify you of such changes through appropriate means such as announcements or message pushes where feasible. For a complete list of available models, please check the Models.

Available options:
Wan-AI/Wan2.2-I2V-A14B,
Wan-AI/Wan2.2-T2V-A14B
Example:

"Wan-AI/Wan2.2-I2V-A14B"

prompt
string
required

The text prompt to generate the video description from.

image_size
enum<string>
required

Length-width ratio of the generated image.

Available options:
1280x720,
720x1280,
960x960
negative_prompt
string

negative prompt

image
enum<string>

When selecting the model Wan-AI/Wan2.2-I2V-14B-720P, the image parameter is a required field.

Available options:
data:image/png;base64, XXX,
img_url
Example:

"https://inews.gtimg.com/om_bt/Os3eJ8u3SgB3Kd-zrRRhgfR5hUvdwcVPKUTNO6O7sZfUwAA/641"

seed
integer

The seed for the random number generator.

Response

The response from the model. The response header contains the x-siliconcloud-trace-id field, which serves as a unique identifier for tracing requests, facilitating log queries and issue troubleshooting.

requestId
string

The requestId generated by this request needs to be used when calling the status interface.