DocsVeo3 Generate
POST
Veo3 Generate
POST
https://api.example.com/v1/veo3-generate请求参数
Headers
AuthorizationstringRequiredBearer token for authentication. Format: Bearer YOUR_API_KEY
Content-TypestringRequiredMust be application/json
Body
modelstringRequiredThe model identifier to use for generation.
promptstringRequiredText prompt describing the desired output.
callback_urlstringURL to receive webhook notifications when the task completes.
optionsobjectAdditional model-specific parameters.
响应结构
200Success
codenumberResponse status code. 200 indicates success.
messagestringHuman-readable status message.
dataobjectResponse payload containing task details and results.
data.task_idstringUnique identifier for the created task.
data.statusstringTask status: "pending", "processing", "completed", or "failed".
Code Examples
curl -X POST "https://api.example.com/v1/veo3-generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "veo3-generate",
"prompt": "A beautiful sunset over mountains",
"callback_url": "https://your-server.com/webhook"
}'200Success Response
{
"code": 200,
"message": "success",
"data": {
"task_id": "tsk_a1b2c3d4e5f6",
"status": "processing",
"model": "veo3-generate",
"created_at": "2025-01-01T12:00:00Z",
"estimated_time": 30
}
}