POST /v1/videos用于任务型视频生成,例如 sora-2、veo 这类模型。
curl https://123api.co/v1/videos \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "sora-2",
"prompt": "A cinematic city sunrise with smooth camera movement",
"seconds": 10,
"size": "1280x720"
}'视频时长、分辨率和模型类型会直接影响实际扣费和生成时间,生产接入前建议用默认参数跑完整流程。