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

# GPT Image 2 t2i



## OpenAPI

````yaml openapi-spec/gpt-image-2-t2i.json POST /v1/images/generations/async
openapi: 3.1.0
info:
  description: >-
    GPT Image 2 t2i is OpenAI's advanced text-to-image model with exceptional
    prompt understanding. Generate stunning visuals from text descriptions with
    industry-leading accuracy and detail.
  summary: API for GPT Image 2 t2i model
  title: GPT Image 2 t2i API
  version: 1.0.0
servers:
  - description: Model Verse API Server
    url: https://api.siray.ai
security: []
tags:
  - description: >-
      GPT Image 2 t2i - GPT Image 2 t2i is OpenAI's advanced text-to-image model
      with exceptional prompt understanding. Generate stunning visuals from text
      descriptions with industry-leading accuracy and detail.
    name: GPT Image 2 t2i
paths:
  /v1/images/generations/async:
    post:
      tags:
        - GPT Image 2 t2i
      summary: Generate image
      description: Generate an image using the GPT Image 2 t2i model
      operationId: image_model-abcommdan3uf5iaq
      requestBody:
        content:
          application/json:
            example:
              height: 1
              model: openai/gpt-image-2-t2i
              moderation: auto
              'n': 1
              output_format: jpg
              prompt: example_value
              quality: low
              size: 1024x1024
              width: 1
            schema:
              description: Request format for image generation models
              properties:
                height:
                  description: >-
                    Height of the output. Only takes effect when size is
                    "custom".
                  type: integer
                model:
                  description: Model name to use for the request
                  enum:
                    - openai/gpt-image-2-t2i
                  type: string
                moderation:
                  description: Content moderation strategy
                  enum:
                    - auto
                    - low
                  type: string
                'n':
                  default: 1
                  description: Number of outputs to generate
                  maximum: 10
                  minimum: 1
                  type: integer
                output_format:
                  description: Output format for the 3D model
                  enum:
                    - jpg
                    - png
                  type: string
                prompt:
                  description: Text prompt for generation
                  type: string
                quality:
                  description: Quality option
                  enum:
                    - low
                    - medium
                    - high
                  type: string
                size:
                  description: >-
                    Output size. Choose a preset, or set to "custom" to specify
                    an arbitrary size; the width and height fields only take
                    effect when size is "custom".
                  enum:
                    - 1024x1024
                    - 512x512
                    - 768x1024
                    - 576x1024
                    - 1024x768
                    - 1024x576
                    - auto
                    - custom
                  type: string
                width:
                  description: >-
                    Width of the output. Only takes effect when size is
                    "custom".
                  type: integer
              required:
                - model
                - prompt
                - size
              title: Image Generation Request
              type: object
        description: Request payload
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskResponse'
          description: Successful response
      security:
        - bearerAuth: []
components:
  schemas:
    TaskResponse:
      description: Standard async task creation response
      properties:
        code:
          description: Status code returned by the service
          example: success
          type: string
        data:
          description: Response payload containing task details
          properties:
            task_id:
              description: Identifier of the created task
              type: string
          required:
            - task_id
          type: object
        message:
          description: Additional information about the request result
          type: string
      required:
        - data
        - code
        - message
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: Bearer authentication using API key
      scheme: bearer
      type: http

````