OpenAI's natively multimodal image generation model, served through the LLM gateway via the OpenAI Images API. Accurate in-image text rendering, strong instruction following, and fine-grained style control, billed by tokens.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "gpt-image-1",
"input": {
"model": "gpt-image-1",
"prompt": "A storefront window poster that reads \"GRAND OPENING - 50% OFF\", warm evening light, photorealistic",
"size": "1024x1024",
"quality": "high"
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | gpt-image-1 | Model identifier |
prompt | string | Yes | - | A text description of the desired image |
size | string | No | auto | Output image size 1024x10241536x10241024x1536auto |
quality | string | No | auto | Rendering quality. Higher quality produces more image output tokens and therefore costs more lowmediumhighauto |
background | string | No | auto | Set whether the background is transparent, opaque, or chosen automatically autotransparentopaque |
output_format | string | No | png | Output image format pngjpegwebp |
n | integer | No | 1 | Number of images to generate. Each image bills its own output tokens |
Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
Generate an image via the OpenAI Images API
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "gpt-image-1",
"input": {
"model": "gpt-image-1",
"prompt": "A storefront window poster that reads \"GRAND OPENING - 50% OFF\", warm evening light, photorealistic",
"size": "1024x1024",
"quality": "high"
}
}'POST /llm/openai/v1/images/generations