Kling Long Image 4.0
Kling 4.0 tall images: ecommerce detail pages (short, medium or long) from 1 to 3 product images, or a web page from role-tagged pictures. 1K or 2K, one image per request. Billed per image. 1K: short $0.2142856, medium $0.4285712, long $0.7142856, web page $0.5. 2K: short $0.2571432, medium $0.5, long $0.7857144, web page $0.5428568. Plus $0.0028568 per reference image. Prices are before group discounts.
Price
$0.428571/ call
$0.385714/ call
Endpoint
/images/tasks
Delivery pattern
Async task lifecycle
Availability
Available now
API documentation
Build and copy the request
Choose the options this model accepts. The code below updates as you choose.
https://apiking.ai/v1/images/tasksBearer API keyAsync taskOptionsOnly options published for this model are shown.
# Requires curl and jq
API_KEY="${API_KEY:-YOUR_API_KEY}"
# 1. Submit once
SUBMITTED=$(curl --fail-with-body -sS https://apiking.ai/v1/images/tasks \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: model-docs-$(date +%s)-$$" \\
-d '{
"model": "Kling Long Image 4.0",
"prompt": "A cinematic scene with careful composition",
"resolution": "1K",
"skill": "ecommerce"
}')
TASK_ID=$(printf '%s' "$SUBMITTED" | jq -r '.task_id // .id // empty')
if [ -z "$TASK_ID" ]; then
printf '%s\n' "$SUBMITTED" >&2
exit 1
fi
echo "task_id=$TASK_ID"
# 2. Poll until terminal
while true; do
STATUS_JSON=$(curl --fail-with-body -sS \
"https://apiking.ai/v1/images/tasks/$TASK_ID" \
-H "Authorization: Bearer $API_KEY")
STATUS=$(printf '%s' "$STATUS_JSON" | jq -r '.status // empty' | tr '[:upper:]' '[:lower:]')
echo "status=$STATUS"
case "$STATUS" in
completed|succeeded|success) break ;;
failed|failure|cancelled|canceled)
printf '%s\n' "$STATUS_JSON" | jq .
exit 1
;;
esac
sleep 3
done
# 3. Fetch the final result
curl --fail-with-body -sS \
"https://apiking.ai/v1/images/tasks/$TASK_ID/content" \
-H "Authorization: Bearer $API_KEY" | jq .- 1Submit the task
- 2Poll the status
- 3Fetch the content
This model requires public media URLs. Upload a local file first, then put public_url into the model request. Avoid large Base64 bodies.
Read the upload guideParameter reference
modelExact model identifier for this request.
kling-v4-long-imagepromptInstruction describing the desired result.
resolutionRequested output resolution.
1K2KsizeOutput aspect ratio or dimensions.
skillecommercewebpageimagesPublic HTTP(S) reference image URLs. Maximum 3 items. Public URLs are required.
Response lifecycle
Task status, terminal states, and result response examples.
Response lifecycle
Task status, terminal states, and result response examples.
{
"id": "task_xxx",
"task_id": "task_xxx",
"object": "image.task",
"model": "Kling Long Image 4.0",
"status": "queued"
}{
"created": 1720000000,
"data": [
{
"url": "https://media.example/result.png"
}
]
}Waiting
queued · submitted · in_progress · processing
Success
completed · succeeded · success
Failure
failed · failure · cancelled · canceled
Errors and production
Retry rules, idempotency, and the minimum production checklist.
Errors and production
Retry rules, idempotency, and the minimum production checklist.
400 / 422Fix the request fields or unsupported option; do not retry unchanged.
401Check that the API key is present, active, and sent as a Bearer token.
402The account balance is insufficient.
409The Idempotency-Key is processing or was reused with another body.
429Back off according to Retry-After before retrying.
5xxRetry with exponential backoff and keep the original Idempotency-Key.
- Keep API keys on your server for public mobile and browser applications.
- Set a unique Idempotency-Key for every billable async operation.
- Persist task_id so polling can resume after a restart.
- Use a timeout for every HTTP request and surface the request ID in support reports.
- Read live model metadata instead of hard-coding prices and supported options.
Price and tiers
List price, for everyone.
Request price
$0.428571/ call
Tiered pricing
Each input picture adds $0.002857.
The price shown here is exactly what you are billed — failed calls are refunded automatically.
Kling Long Image 4.0 at a glance
- Model ID
- Kling Long Image 4.0
- Type
- Image generation
- Vendor
- Kling
- Resolutions
- 1K · 2K
- Reference inputs
- Up to 3 images
- Endpoint
- POST /v1/images/tasks
- Delivery
- Async task: poll it or get a webhook
- Billed by
- Per image
What Kling Long Image 4.0 costs
- One image$0.428571
- 100 images$42.85712
At the list price. Failed calls are not charged.
Common questions
How much does the Kling Long Image 4.0 API cost?
Kling Long Image 4.0 costs $0.428571 per image on APIKing. Pay as you go from your balance.
How do I call the Kling Long Image 4.0 API?
Send a request to https://apiking.ai/v1/images/tasks with your APIKing key as a Bearer token and set the model to Kling Long Image 4.0. The call returns a task. Poll it until it finishes, or set a webhook to be told when it does.
What is the model ID of Kling Long Image 4.0?
Set the model parameter to Kling Long Image 4.0.
Which resolutions does Kling Long Image 4.0 support?
Resolutions: 1K, 2K.
Can Kling Long Image 4.0 work from reference images?
Yes. Reference inputs: Up to 3 images.
Am I charged when a Kling Long Image 4.0 call fails?
A failed call or a failed generation is not charged. Tasks are estimated first and settled at what they actually used.
Compare Kling Long Image 4.0 with similar models
| Model | Vendor | Price | Spec |
|---|---|---|---|
| Kling Long Image 4.0 | Kling | $0.428571 / request | Up to 2K |
| GPT Image 2.5 Ext | OpenAI | $0.006 / request | Up to 4K |
| GPT Image 2 | OpenAI | $0.006 / request | Up to 4K |
| GPT Image 2.6 Flare | OpenAI | $3.75 in · $22.50 out / 1M | Up to 4K |
| Nano Banana Pro | $0.0196 / request | Up to 4K | |
| Seedream 5.5 | ByteDance | $0.017075 / request | Up to 2K |