> ## 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.

# Grok Imagine Image t2i



## OpenAPI

````yaml openapi-spec/grok-imagine-image-t2i.json POST /v1/images/generations/async
openapi: 3.1.0
info:
  description: >-
    Grok Imagine Image t2i is xAI's text-to-image model for creative image
    generation. Create unique visuals from text prompts with Grok's distinctive
    AI style and artistic flair.
  summary: API for Grok Imagine Image t2i model
  title: Grok Imagine Image t2i API
  version: 1.0.0
servers:
  - description: Model Verse API Server
    url: https://api.siray.ai
security: []
tags:
  - description: >-
      Grok Imagine Image t2i - Grok Imagine Image t2i is xAI's text-to-image
      model for creative image generation. Create unique visuals from text
      prompts with Grok's distinctive AI style and artistic flair.
    name: Grok Imagine Image t2i
paths:
  /v1/images/generations/async:
    post:
      tags:
        - Grok Imagine Image t2i
      summary: Generate image
      description: Generate an image using the Grok Imagine Image t2i model
      operationId: image_model-iu3ozqsgez2xpzt8
      requestBody:
        content:
          application/json:
            example:
              aspect_ratio: '1:1'
              model: x-ai/grok-imagine-image-t2i
              prompt: example_value
              size: 1k
            schema:
              description: Request format for image generation models
              properties:
                aspect_ratio:
                  description: Aspect ratio
                  enum:
                    - '1:1'
                    - '3:4'
                    - '4:3'
                    - '9:16'
                    - '16:9'
                    - '2:3'
                    - '3:2'
                    - '9:19.5'
                    - 19.5:9
                    - '9:20'
                    - '20:9'
                    - '1:2'
                    - '2:1'
                    - auto
                  type: string
                model:
                  description: Model name to use for the request
                  enum:
                    - x-ai/grok-imagine-image-t2i
                  type: string
                prompt:
                  description: Text prompt for generation
                  type: string
                size:
                  description: Size
                  enum:
                    - 1k
                    - 2k
                  type: string
              required:
                - model
                - prompt
                - size
                - aspect_ratio
              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

````