Model parameters
- Model IDs:
gpt-image-2.6-sunburst/gpt-image-2.6-flare - Pricing: GPT-Image-2.6-Sunburst, GPT-Image-2.6-Flare
- Endpoint:
https://geekai.co/api/v1/images/generations - Parameters: See the Image API reference.
- Authentication: Get an API key.
The following common Image API parameters are not supported:
negative_promptseedstrengthaspect_ratiostyle_preset
size defaults to auto. You can also use any size that meets these requirements:
- Both width and height must be integer multiples of 16.
- Neither dimension may exceed 3840 pixels.
- The total pixel count must be between 655360 and 8294400.
- The aspect ratio must be between 1:3 and 3:1.
quality defaults to medium and supports the following values:
lowmediumhighxhighmax
Pricing
GPT-Image-2.6 Sunburst and GPT-Image-2.6 Flare have identical pricing. Prices vary by image size and quality:These prices are examples for common sizes. GPT-Image-2.6 supports many other sizes; the actual price depends on the size and quality you select.
quality defaults to medium and size defaults to 1024x1024.
When using a GeekAI discounted proxy channel, multiply the listed price by the channel’s discount factor. For example, the high-availability channel has a factor of 0.5. An image with size set to 1024x1024 and quality set to medium costs 0.099 x 0.5 = 0.0495 CNY. At the same size but with quality set to high, it costs 0.395 x 0.5 = 0.1975 CNY. Apply the same calculation to other settings.
Text-to-image generation
Generate an image from a text description:Image-to-image generation
Single image Edit an existing image using a text instruction to generate a new image:image accepts an image URL or a Base64-encoded image. For the mainland China version, use a URL publicly accessible from mainland China; otherwise, send the image as Base64.markup to mark the region to edit. The model uses the marks and your prompt to guide the edit:
- Use a PNG with a transparent background and the same dimensions as the original image.
- Marks apply to the first input image. Additional images can serve as references.
- The annotation image and first input image must each contain at most 16,777,216 pixels. The annotation image must not exceed 50 MB.
- Do not supply both an annotation image (
markup) and a mask (mask).
mask to specify the area to edit. The model edits only the masked area and leaves the rest of the original unchanged:
- Use a PNG with a transparent background and the same dimensions as the original image, no larger than 50 MB.
- The mask must contain an alpha channel.
- Do not supply both a mask (
mask) and an annotation image (markup).
Generate animated GIFs
To generate an animated GIF, setoutput_format to gif:
json
frame_count in extra_body to set the GIF frame count (2–16), and use frame_duration_ms to set each frame’s duration in milliseconds (default: 200).
Generate SVG images
To generate an SVG, setoutput_format to svg and pass svg.model in extra_body to specify the SVG model:
json
For long-running requests, set
async to true to enable asynchronous processing. The endpoint returns a task_id. Poll https://geekai.co/api/v1/images/{task_id} for the latest status and retrieve the final image URL when the task completes. See Asynchronous image generation.