Skip to main content
POST

Authorization

  • Auth Type: Bearer Auth (In: header)
  • Format: Authorization: Bearer <YOUR_API_KEY>
  • Description: Use Bearer <YOUR_API_KEY>. Format: Authorization: Bearer sk-xxxxxx.
  • API Key: where API Key is your AGCloud API KEY
Generate images from a text prompt using gpt-image-2.6-sunburst. Send a JSON request to https://aiandgpu.com/v1/images/generations.

Request Examples

The success response is illustrative; replace the Base64 placeholder with actual image data before decoding. OpenAI GPT Image responses use data[].b64_json, not image URLs. Do not send response_format or style; describe the desired style in prompt.

Request Parameters

Checked against the OpenAI generation reference and image guide on November 12, 2026. These are upstream parameters; gateway availability depends on the enabled route.

GPT Image 2.6 controls

GIF requires preview access and cannot use streaming, partial images, masks, or custom compression. Use size: "auto" unless the model’s GIF pixel limits are known. SVG generation requires n: 1 and cannot use streaming, partial images, custom compression, or prompt_rewriter.

Official documentation boundaries

The reference explicitly associates xhigh/max quality and custom static-image dimensions with earlier named models, without clearly listing 2.6. Do not infer 2.6 support from a cross-model enum. Examples use standard sizes and medium quality. The edit reference lists SVG fields, but the guide says SVG output is not supported by the edit endpoint. Use the generation endpoint for SVG until this discrepancy is resolved. Do not send response_format, style, or unconfirmed input_fidelity settings for this model.