> ## Documentation Index
> Fetch the complete documentation index at: https://docs.imini.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT Image 2.6 Sunburst

> PNG generation and editing, animated GIF, and SVG output.

## Output format

| `output_format` | Size parameters | References and restrictions |
| - | - | - |
| `png` (default) | `resolution`, `aspect_ratio` | Accepts reference images. Only PNG uses `background` and the edit mask `extra_params.mask`. |
| `gif` | `extra_params.size`, default `512x512` | Accepts reference images. Does not use `resolution`, `aspect_ratio`, background, or mask. |
| `svg` | `resolution`, `aspect_ratio`, defaults `1K` and `1:1` | Text-to-image only. Nonempty `images` returns `400`. Does not use GIF size, background, or mask. |

For GIF, set `frame_count` and `frame_duration_ms` in `extra_params`:

* `frame_count` defaults to `9`. `768x768` supports 2–12 frames; other sizes support 2–16.
* `frame_duration_ms` defaults to `200`. Set 20–2000 ms in 10 ms increments.

PNG edits without `aspect_ratio` are billed initially by the first reference image. A higher output tier may cost more. Set `resolution` and a fixed ratio to lock the tier.

After submission, [poll the task](https://docs.imini.ai/en/api-reference/images/task-query.md). See [pricing](https://docs.imini.ai/en/guide/pricing.md).


## OpenAPI

````yaml en/openapi/images/gpt-image-2-6-sunburst.yaml POST /v1/images/generate
openapi: 3.1.0
info:
  title: GPT Image 2.6 Sunburst
  version: '1.0'
  description: PNG generation and editing, animated GIF, and SVG output.
servers:
  - url: https://openapi.imini.ai/imini/router
security:
  - ApiKeyAuth: []
paths:
  /v1/images/generate:
    post:
      summary: GPT Image 2.6 Sunburst
      description: |
        Generate or edit PNG, configure GIF frames, or generate SVG from text.
        See [format options](/en/api-reference/images/gpt-image-2-6-sunburst).
      operationId: generateGptImage26Sunburst
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - prompt
              properties:
                model:
                  type: string
                  const: gpt-image-2.6-sunburst
                prompt:
                  type: string
                  minLength: 1
                  maxLength: 32000
                  description: Image generation or edit prompt.
                images:
                  type: array
                  maxItems: 16
                  description: >-
                    Reference images. Omit or pass an empty array for
                    text-to-image.
                  items:
                    type: object
                    required:
                      - url
                    properties:
                      url:
                        type: string
                        description: >-
                          Public image URL or Base64 data URI (up to 20 MiB
                          decoded).
                      reference_type:
                        type: string
                        enum:
                          - asset
                        default: asset
                        description: Reference image role.
                resolution:
                  type: string
                  enum:
                    - 1K
                    - 2K
                    - 4K
                  default: 1K
                  description: PNG and SVG only.
                aspect_ratio:
                  type: string
                  enum:
                    - '1:1'
                    - '1:2'
                    - '2:1'
                    - '1:3'
                    - '3:1'
                    - '2:3'
                    - '3:2'
                    - '3:4'
                    - '4:3'
                    - '4:5'
                    - '5:4'
                    - '9:16'
                    - '16:9'
                    - '21:9'
                    - '9:21'
                  description: For PNG edits, omit to match the first reference.
                num:
                  type: integer
                  minimum: 1
                  maximum: 4
                  default: 1
                  description: Output count.
                quality:
                  type: string
                  enum:
                    - low
                    - medium
                    - high
                    - xhigh
                    - max
                  default: high
                  description: Quality tier.
                background:
                  type: string
                  enum:
                    - auto
                    - opaque
                    - transparent
                  default: auto
                  description: PNG only.
                extra_params:
                  type: object
                  additionalProperties: false
                  properties:
                    mask:
                      type: string
                      description: Public mask URL for PNG edits with a reference.
                    size:
                      type: string
                      enum:
                        - 288x288
                        - 384x384
                        - 512x288
                        - 288x512
                        - 768x432
                        - 432x768
                        - 512x512
                        - 768x768
                      default: 512x512
                      description: GIF frame dimensions.
                    frame_count:
                      type: integer
                      minimum: 2
                      maximum: 16
                      default: 9
                      description: GIF only. Maximum 12 frames at 768x768.
                    frame_duration_ms:
                      type: integer
                      minimum: 20
                      maximum: 2000
                      multipleOf: 10
                      default: 200
                      description: GIF only. Frame duration in milliseconds.
                output_format:
                  type: string
                  enum:
                    - png
                    - gif
                    - svg
                  default: png
            examples:
              text:
                summary: Text to image
                value:
                  model: gpt-image-2.6-sunburst
                  prompt: A watercolor illustration of a seaside city at sunrise.
                  resolution: 1K
                  aspect_ratio: '1:1'
                  quality: high
              edit:
                summary: Reference image edit
                value:
                  model: gpt-image-2.6-sunburst
                  prompt: Keep the composition and change the background to pale blue.
                  images:
                    - url: https://example.com/reference.png
                      reference_type: asset
                  resolution: 1K
                  aspect_ratio: '1:1'
                  quality: high
              gif:
                summary: Animated GIF
                value:
                  model: gpt-image-2.6-sunburst
                  prompt: A looping animation of an orange icon bouncing gently.
                  output_format: gif
                  quality: high
                  extra_params:
                    size: 512x512
              gif_custom:
                summary: GIF with custom frames
                value:
                  model: gpt-image-2.6-sunburst
                  prompt: Make the icon bounce gently in a seamless loop.
                  output_format: gif
                  extra_params:
                    size: 768x768
                    frame_count: 12
                    frame_duration_ms: 300
              svg:
                summary: SVG vector image
                value:
                  model: gpt-image-2.6-sunburst
                  prompt: A monochrome paper-airplane icon with a clean outline.
                  output_format: svg
                  resolution: 1K
                  aspect_ratio: '1:1'
                  quality: high
      responses:
        '200':
          description: Task accepted.
          content:
            application/json:
              schema:
                type: object
                required:
                  - task_id
                  - model
                  - created_at
                  - request_id
                properties:
                  task_id:
                    type: string
                    description: Task ID to poll.
                  model:
                    type: string
                    description: Echoes the supplied model ID.
                  created_at:
                    type: string
                    format: date-time
                    description: Task creation time (UTC).
                  request_id:
                    type: string
                    description: Request ID.
              example:
                task_id: task_2041350318103396352
                model: gpt-image-2.6-sunburst
                created_at: '2026-11-16T07:00:00.000Z'
                request_id: task_2041350318103396352
        '400':
          description: Invalid model or request parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  code: INVALID_PARAMETER
                  message: Parameter value is out of range or has incorrect type
                  status: 400
                  request_id: req_example
        '402':
          description: Insufficient credits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  code: INSUFFICIENT_CREDITS
                  message: >-
                    Insufficient credits. Upgrade your plan or purchase
                    additional credits.
                  status: 402
                  request_id: req_example
        '413':
          description: Request body or Base64 media exceeds a size limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  code: PAYLOAD_TOO_LARGE
                  message: Request payload exceeds the supported size
                  status: 413
                  request_id: req_example
components:
  schemas:
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - status
          properties:
            code:
              type: string
            message:
              type: string
            status:
              type: integer
            request_id:
              type: string
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        `Bearer YOUR_API_KEY`. Manage keys in [API
        Keys](https://imini.ai/api-keys).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.