forked from QuantumNous/new-api
-
Notifications
You must be signed in to change notification settings - Fork 2
混元生视频curl案例 #7
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
创建生视频任务【案例:混元生视频模型:HY-Video】
curl -X POST 'https://api.thinkarts.cn/v1/video/generations'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer sk-xxx'
-d '{
"model": "HY-Video",
"prompt": "一只可爱的猫咪在草地上奔跑",
"resolution": "1080p"
}'
查询生视频任务-根据生视频任务返回的任务id
curl -X GET 'https://api.thinkarts.cn/v1/videos/{task_id}'
-H 'Authorization: Bearer sk-xxx'
说明:
-{task_id} 替换为实际的任务 ID(提交任务时返回)
-sk-xxx 替换为你的 API Key