GPT Image 2
OpenAIAvailableOpenAI's GPT Image 2: prompt-faithful generation and editing with up to 16 input images, at 1K, 2K or 4K.
- Text → image
- Edit
1K
39 cr / image
$0.039
2K
65 cr / image
$0.065
4K
104 cr / image
$0.104

- Queued
- Processing
- Succeeded
What GPT Image 2 is good for
Low-cost drafts
1K is the lowest starting price among the image models here, which suits trying many prompts.
Edits with many inputs
Pass up to 16 input images to edit a picture or draw on a larger set of references.
Unusual formats
Ratios include 2:1, 1:2 and 21:9 at every resolution, plus 3:1, 1:3 and 9:21 at 1K.
Input parameters
JSON Schema| Name | Type | Default | Description |
|---|---|---|---|
| prompt (required) | string | — | What to generate, or how to change the input images. Up to 20,000 characters. |
| image_urls | string[] | — | Up to 16 reference or source images, as public HTTPS URLs. |
| aspect_ratio | enum | "auto" | Output aspect ratio. One of auto, 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 3:1, 1:3, 21:9, 9:21. |
| resolution | enum | "1K" | Output resolution. One of 1K, 2K, 4K. Sets the price. |
Fields of the input object. Unknown fields are rejected with 400 invalid_request.
curl -X POST https://genkiln.com/v1/tasks \
-H "Authorization: Bearer $GENKILN_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "gpt-image-2",
"input": {
"prompt": "Product photo of a matte ceramic coffee cup on a walnut desk, morning window light",
"aspect_ratio": "auto",
"resolution": "1K"
}
}'
# 202 Accepted -> { "id": "task_...", "status": "queued", "cost_credits": ... }
curl https://genkiln.com/v1/tasks/task_... \
-H "Authorization: Bearer $GENKILN_API_KEY"The samples use the values in the Playground form. Create a task, then poll it until it is final, or add callback_url to get a signed webhook.
GPT Image 2 API pricing
| Variant | Credits | USD | 100 images |
|---|---|---|---|
| 1K | 39 | $0.039 | $3.900 |
| 2K | 65 | $0.065 | $6.500 |
| 4K | 104 | $0.104 | $10.400 |
The cost is set by the parameters you send and returned as cost_credits when the task is created. 1 credit = US$0.001. Buy credits
GPT Image 2 questions
Compare with similar models
Ship your first generation today.
Create a key, top up from $10, and call any model with the same request.

