# GPT Image 2.6 Sunburst > OpenAI's image model for detailed compositions and precise edits. Generate and edit images from text and image inputs, with a complexity setting that controls how much the model plans before it renders. - **Provider**: replicate - **Model ID**: openai/gpt-image-2.6-sunburst - **Category**: image_generation - **Credits**: from 580 for the default configuration — varies by input, see Pricing - **Pricing Type**: input_based ## API Endpoint Base URL: https://api.core.today/v1 ### Create Prediction POST /predictions ### Get Status GET /predictions/{job_id} ### Cancel DELETE /predictions/{job_id} ## Authentication Header: `X-API-Key: YOUR_API_KEY` ## Input Parameters - `prompt` (string, **required**): A text description of the desired image - `aspect_ratio` (string, optional): The size of the generated image. Use 'auto' to let the model pick. Sizes above 2560x1440 are experimental and may give more variable results. (Default: `1:1`; Options: `1:1`, `3:2`, `2:3`, `4:3`, `3:4`, `16:9`, `9:16`, `auto`, `1024x1024`, `1536x1024`, `1024x1536`, `1536x1152`, `1152x1536`, `2048x2048`, `2048x1152`, `1152x2048`, `3840x2160`, `2160x3840`) - `background` (string, optional): Set whether the background is transparent or opaque or choose automatically (Default: `auto`; Options: `auto`, `transparent`, `opaque`) - `complexity` (string, optional): How much the model plans before rendering. Higher complexity helps with dense text and complex layouts but can increase latency. Does not change the price. (Default: `high`; Options: `low`, `medium`, `high`) - `input_images` (array, optional): A list of images to use as input for the generation - `moderation` (string, optional): Content moderation level (Default: `auto`; Options: `auto`, `low`) - `number_of_images` (integer, optional): Number of images to generate (1-10) (Default: `1`; Range: min: 1, max: 10) - `openai_api_key` (string, optional): Your OpenAI API key (optional - uses proxy if not provided) - `output_compression` (integer, optional): Quality for jpeg/webp output (0-100). Higher = better quality and larger files; 100 on webp is lossless. Ignored for png. (Default: `100`; Range: min: 0, max: 100) - `output_format` (string, optional): Output format (Default: `png`; Options: `png`, `jpeg`, `webp`) - `quality` (string, optional): The quality of the generated image. Higher quality takes longer and costs more. (Default: `auto`; Options: `low`, `medium`, `high`, `xhigh`, `max`, `auto`) ## Example Request ```json { "model": "openai/gpt-image-2.6-sunburst", "input": { "aspect_ratio": "4:3", "complexity": "medium", "number_of_images": 1, "output_format": "png", "prompt": "A photorealistic studio product photograph of a matte sage-green ceramic\ncoffee canister with a cork lid on a light oak counter. The canister has a minimal\nprinted label that reads \"SUNBURST ROASTERS\" in bold geometric sans-serif, with\n\"Single Origin · Ethiopia\" in small text beneath. Soft window light from the left,\ngentle shadow, a few coffee beans scattered in front. 85mm lens, shallow depth of\nfield.", "quality": "high" } } ``` ## Response Format ```json { "job_id": "abc123", "status": "pending", "provider": "replicate", "model": "openai/gpt-image-2.6-sunburst", "created_at": "2026-01-01T00:00:00Z", "result": null, "error": null, "credits_used": null } ``` Status values: `pending`, `processing`, `completed`, `failed`, `cancelled` When the job is `completed`, `result` holds the output URL(s) or data and `credits_used` the net credits charged. When it is `failed`, `error` and `error_code` say why and the charge is refunded. ## Usage Flow 1. POST /predictions with model and input → receive job_id 2. Poll GET /predictions/{job_id} until status is `completed` or `failed` 3. Result contains output URL(s) or data ## Pricing Charged by input. Rules are checked top to bottom and the first match applies: - When `quality` = `low`: 116.25 credits per image (`number_of_images`, 1–10, default 1) - When `quality` = `medium`: 209.25 credits per image (`number_of_images`, 1–10, default 1) - When `quality` = `high`: 297.6 credits per image (`number_of_images`, 1–10, default 1) - When `quality` = `xhigh`: 581.25 credits per image (`number_of_images`, 1–10, default 1) - When `quality` = `max`: 1,162.5 credits per image (`number_of_images`, 1–10, default 1) - When `quality` = `auto`: 581.25 credits per image (`number_of_images`, 1–10, default 1) - Otherwise: 581.25 credits per image (`number_of_images`, 1–10, default 1) The request reserves the amount above; the final charge is settled on the measured output, and any unused part of the reservation is refunded. Default configuration: 580 credits. These are list prices. The amount charged is rounded, and large charges are discounted progressively. `POST /predictions/estimate` with the same `model` and `input` returns the charge for that input without creating a job (an estimate when the price depends on the output). ## Output Type url ## Tags image-generation, text-to-image, image-editing, openai, typography, photorealistic, text-rendering, character-consistency, frontier ## Documentation https://replicate.com/openai/gpt-image-2.6-sunburst