Kling Avatar 2.0 Standard
Use kling-avatar-2.0-standard to create video output. This page contains the complete request needed for this model.
Model facts
| Property | Value |
|---|---|
| Model ID | kling-avatar-2.0-standard |
| Endpoint | POST /api/v1/generation/create |
| Output | Video |
| Modes | portrait and audio to video |
| Pricing | View current pricing |
Minimal request
curl -X POST https://api.api-stock.com/api/v1/generation/create \
-H "Authorization: Bearer $API_STOCK_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-avatar-2.0-standard",
"input": {
"imageUrls": [
"https://example.com/input.jpg"
],
"audioUrl": "https://example.com/input.mp3"
}
}'The create response contains a task ID:
{
"code": 200,
"data": {
"taskId": "019ca881-9503-7270-a560-f00fc2b15785",
"status": "not_started",
"createdAt": "2026-08-22T12:00:00.000Z"
}
}Parameters
Parameters belong inside the top-level input object. Unknown fields are rejected.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
imageUrls | string[] | Yes | — | Public URL of one portrait image. JPEG, PNG or WebP, up to 10 MB. |
audioUrl | string | Yes | — | Public URL of the driving audio. Use a 2–60 second audio file of up to 5 MB. |
prompt | string | No | — | Optional direction for the avatar’s performance. max 5000 chars |
Constraints
prompt: maximum 5000 characters.- The driving audio determines the video length. The service measures it before charging and rounds up to whole seconds.
Invalid types, unsupported enum values, out-of-range numbers, and missing required fields return HTTP 400 with error.code: "invalid_input". Correct the request rather than retrying it unchanged.
Result
Poll the task or provide a top-level webhook URL in the create request:
curl https://api.api-stock.com/api/v1/task/status/$TASK_ID \
-H "Authorization: Bearer $API_STOCK_KEY"A successful media task returns one or more files:
{
"code": 200,
"data": {
"taskId": "019ca881-9503-7270-a560-f00fc2b15785",
"status": "finished",
"files": [
{
"fileUrl": "https://s3.api-stock.com/result.mp4",
"fileType": "video"
}
],
"createdTime": "2026-08-22T12:00:00.000Z"
}
}See Tasks and webhooks for terminal statuses, retries and webhook delivery.