Learn how to use Flux Kontext Pro · Image Edit.
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:
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 generation request. Reuse the same value only when retrying the identical request body.
order-20260818-001The public model ID documented on this page. Use flux-kontext-pro for this Endpoint.
flux-kontext-proflux-kontext-proflux-kontext-proThe public Endpoint ID for the selected model. Use the Endpoint whose input schema matches this request.
image-to-imageimage-to-imageimage-to-imageOptional public Provider ID. Omit this field to use the Endpoint's default Provider.
seeapireplicateseeapiseeapiProvider-specific input object. Its accepted fields and validation rules depend on the selected provider.
Provider parameters
seeapiDefault ProviderSource images used by this Endpoint. Provide reachable image URLs and follow the count and format limits shown for this Provider.
["https://client.example.com/input.png"]Describe the content to generate, including the subject, scene, action, visual style, camera behavior, and other important details.
A cinematic city at nightSelect the output width-to-height ratio.
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.
2replicateProvide one reachable JPEG, PNG, GIF, or WebP image URL.
["https://client.example.com/input.png"]Describe the content to generate, including the subject, scene, action, visual style, camera behavior, and other important details.
A cinematic city at nightSelect the output width-to-height ratio. Use `auto` to preserve the input image aspect ratio.
auto1:116:99:164:33:43:22:34:55:421:99:212:11:2autoChoose 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.
2Optional absolute HTTPS URL that receives terminal generation updates. If omitted, query the task-details endpoint with the returned generation ID.
https://client.example.com/webhooks/seeapitask_xxxflux-kontext-proimage-to-imageseeapireplicateseeapi: SeeAPIreplicate: ReplicateseeapiprocessingprocessingEstimated public credits. Values can include up to three decimal places.
8Consumed public credits, with up to three decimal places.
0Refunded public credits, with up to three decimal places.
02026-08-18T10:00:00Z2026-08-18T10:00:00ZWhether this response is an idempotent replay of an earlier request.
falsetask_xxxflux-kontext-proimage-to-imageseeapireplicateseeapi: SeeAPIreplicate: ReplicateseeapiprocessingprocessingEstimated public credits. Values can include up to three decimal places.
8Consumed public credits, with up to three decimal places.
0Refunded public credits, with up to three decimal places.
02026-08-18T10:00:00Z2026-08-18T10:00:00ZWhether this response is an idempotent replay of an earlier request.
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": "image-to-image",
"provider": "seeapi",
"input": {
"input_images": [
"https://client.example.com/input.png"
],
"prompt": "A cinematic city at night",
"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": "image-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
}