Generate 2K, 4K, or 8K images from a prompt, with standard or coherent series output. Submit a generation and retrieve its result from the unified task endpoint.
Developer API pricing
Provider: SeeAPI
USD estimate: $0.0037 / credit · Estimated equivalent, not an additional charge.
2K: 15.231 credits/gen (≈ $0.057/gen)
4K: 22.913 credits/gen (≈ $0.086/gen)
8K: 38.143 credits/gen (≈ $0.14/gen)
/v1/generationsA stable key for this generation request. The same key makes a retry idempotent.
order-20260818-001The SeeAPI model ID that will generate the image.
kling-image-4-0kling-image-4-0kling-image-4-0The Endpoint ID that selects prompt-based image generation.
text-to-imagetext-to-imagetext-to-imageOptional public Provider ID. If omitted, the Endpoint default Provider is used.
seeapiseeapiseeapiThe model input object containing the prompt and generation options.
Provider parameters
seeapiDefault ProviderThe text prompt that describes the image to generate.
A cinematic city at nightSelects the output mode. default creates standard images, while series requests a coherent image set.
defaultseriesdefaultThe maximum number of images requested for this generation.
1Controls the output framing. auto lets the model choose the aspect ratio.
auto1:116:99:164:33:43:22:321:9autoSelects the output resolution tier.
2K4K8K2KAn optional absolute HTTPS URL that receives terminal generation Webhooks.
https://client.example.com/webhooks/seeapiThe accepted generation record and its current lifecycle state.
The unique generation ID used to query status and retrieve results.
task_xxxThe model ID used for this generation.
kling-image-4-0The Endpoint ID used for this request.
text-to-imageThe public Provider ID that processed the request.
seeapiseeapi: SeeAPIseeapiThe current lifecycle state. An accepted generation starts in processing.
processingprocessingThe estimated public credits for this request.
15.231The public credits actually consumed. This can remain zero while the generation is processing.
0The public credits returned when a request is refunded.
0The time when the generation was created.
2026-08-18T10:00:00ZThe time when the generation was last updated.
2026-08-18T10:00:00ZWhether this response replays an earlier request with the same Idempotency-Key.
falseThe accepted generation record and its current lifecycle state.
The unique generation ID used to query status and retrieve results.
task_xxxThe model ID used for this generation.
kling-image-4-0The Endpoint ID used for this request.
text-to-imageThe public Provider ID that processed the request.
seeapiseeapi: SeeAPIseeapiThe current lifecycle state. An accepted generation starts in processing.
processingprocessingThe estimated public credits for this request.
15.231The public credits actually consumed. This can remain zero while the generation is processing.
0The public credits returned when a request is refunded.
0The time when the generation was created.
2026-08-18T10:00:00ZThe time when the generation was last updated.
2026-08-18T10:00:00ZWhether this response replays an earlier request with the same Idempotency-Key.
falseInvalid JSON, parameters, Schema, or API Policy
Invalid API Key or authentication failed
Insufficient credits
The current request is not allowed
Model, Endpoint, or task not found
Idempotency conflict or the same request is still being created
Request body is too large
Too many requests
Service temporarily unavailable
After submitting a task, use the unified query endpoint to check progress and retrieve results:
For production workloads, prefer Webhooks for terminal updates and use task-status queries as a fallback when a callback is not available.
Manage the secret used to verify generation webhook signatures. Callback URLs are supplied when you create each generation.
Callback URL per generation.
const response = await fetch("https://api.seeapi.com/v1/generations", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": "order-20260818-001",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "kling-image-4-0",
"endpoint": "text-to-image",
"provider": "seeapi",
"input": {
"prompt": "A cinematic city at night",
"mode": "default",
"num_output_images": 1,
"aspect_ratio": "auto",
"resolution": "2K"
},
"callback_url": "https://client.example.com/webhooks/seeapi"
})
});
const result = await response.json();{
"generation": {
"id": "task_xxx",
"model": "kling-image-4-0",
"endpoint": "text-to-image",
"provider": "seeapi",
"status": "processing",
"estimated_credits": 15.231,
"consumed_credits": 0,
"refunded_credits": 0,
"created_at": "2026-08-18T10:00:00Z",
"updated_at": "2026-08-18T10:00:00Z"
},
"idempotent": false
}