创建视频生成任务 API
POST
https://ark.cn-beijing.volces.com/api/v3/contents/generations/tasks
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ark.cn-beijing.volces.com/api/v3/contents/generations/tasks' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "<YOUR_MODEL_EP>",
"content": [
{
"type": "text",
"text": "戴着帽子的老爷爷面带微笑往前走 --ratio 1:1 --fps 24 --dur 5"
}
]
}'
响应示例响应示例
{
"id": "cgt-2024****-**",
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Authorization
string
必需
示例值:
Bearer {{ARK_API_KEY}}
Body 参数application/json