Generate images from text prompts with Flux Kontext Pro through the unified SeeAPI generation endpoint. Submit a request, then use the returned generation ID to track status and retrieve the final assets.
Developer API pricing
Provider: SeeAPI
USD estimate: $0.0037 / credit · Estimated equivalent, not an additional charge.
Price: 8 credits/gen (≈ $0.03/gen)
After submitting a task, use the unified query endpoint to check progress and retrieve results:
For production integrations, provide callback_url to receive terminal status updates instead of polling continuously.
Manage the secret used to verify generation webhook signatures. Callback URLs are supplied when you create each generation.
Callback URL per generation.
/v1/generationsA unique key for this request. Reuse the same value only when retrying an identical request body; use a new value for a different generation.
order-20260818-001The public model ID documented on this page. Use flux-kontext-pro for this Endpoint.
flux-kontext-proflux-kontext-proflux-kontext-proThe model capability to invoke. Use text-to-image for this page.
text-to-imagetext-to-imagetext-to-imageOptional public provider ID. Omit this field to use the default provider, seeapi; supported values are seeapi and replicate.
seeapireplicateseeapiseeapiProvider-specific generation settings. Include only fields listed under the selected provider.
Provider parameters
seeapiDefault ProviderDescribe the image to generate, including subject, composition, style, lighting, and other important visual details.
A modern glass pavilion in a misty pine forest, soft morning light, cinematic architectural photographySelect the output width-to-height ratio of the generated image.
21:916:94:31:13:49:161:1Choose the file format used for the generated image asset.
jpegpngjpegEnable prompt upsampling to enhance the prompt before generation.
falseEnable automatic prompt translation before generation.
trueSet the Provider safety tolerance for this request.
2replicateDescribe the image to generate, including subject, composition, style, lighting, and other important visual details.
A cinematic city at nightSelect the output width-to-height ratio of the generated image.
1:116:99:164:33:43:22:34:55:421:99:212:11:21:1Choose the file format used for the generated image asset.
jpgpngpngSet a seed to make repeated requests more reproducible, or omit it to let the Provider choose a seed.
Enhance the prompt before generation.
falseSet the upstream safety tolerance.
2An absolute HTTPS endpoint that receives terminal generation updates. Omit it if your application will poll the task details endpoint.
https://client.example.com/webhooks/seeapiThe generation task created for this request.
Unique generation ID used to query task status and retrieve results.
task_xxxModel ID used for the generation.
flux-kontext-proEndpoint ID used for the generation.
text-to-imagePublic provider selected to process the generation.
seeapireplicateseeapi: SeeAPIreplicate: ReplicateseeapiCurrent lifecycle status of the generation.
processingprocessingEstimated credits for the generation at task creation.
8Credits consumed by the generation so far.
0Credits refunded for the generation so far.
0UTC timestamp when the generation was created.
2026-08-18T10:00:00ZUTC timestamp when the generation was last updated.
2026-08-18T10:00:00ZTrue when this response reuses an earlier generation for the same idempotency key.
falseThe generation task created for this request.
Unique generation ID used to query task status and retrieve results.
task_xxxModel ID used for the generation.
flux-kontext-proEndpoint ID used for the generation.
text-to-imagePublic provider selected to process the generation.
seeapireplicateseeapi: SeeAPIreplicate: ReplicateseeapiCurrent lifecycle status of the generation.
processingprocessingEstimated credits for the generation at task creation.
8Credits consumed by the generation so far.
0Credits refunded for the generation so far.
0UTC timestamp when the generation was created.
2026-08-18T10:00:00ZUTC timestamp when the generation was last updated.
2026-08-18T10:00:00ZTrue when this response reuses an earlier generation for 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
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": "flux-kontext-pro",
"endpoint": "text-to-image",
"provider": "seeapi",
"input": {
"prompt": "A modern glass pavilion in a misty pine forest, soft morning light, cinematic architectural photography",
"aspect_ratio": "1:1",
"output_format": "jpeg",
"prompt_upsampling": false,
"enable_translation": true,
"safety_tolerance": 2
},
"callback_url": "https://client.example.com/webhooks/seeapi"
})
});
const result = await response.json();{
"generation": {
"id": "task_xxx",
"model": "flux-kontext-pro",
"endpoint": "text-to-image",
"provider": "seeapi",
"status": "processing",
"estimated_credits": 8,
"consumed_credits": 0,
"refunded_credits": 0,
"created_at": "2026-08-18T10:00:00Z",
"updated_at": "2026-08-18T10:00:00Z"
},
"idempotent": false
}