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

# Generate image (qwen-image)

> High-quality image generation using Alibaba Bailian Qwen-Image models. Supports advanced prompt engineering and specific style controls for professional visual content.




## OpenAPI

````yaml /fr/api-reference/openapi.json post /v1/images/generations
openapi: 3.0.1
info:
  title: Rock API API de modèles IA
  version: 1.0.0
  description: Référence de l’API de modèles IA compatible OpenAI pour Rock API.
servers:
  - url: https://rockapi.ai
security:
  - BearerAuth: []
tags:
  - name: List models
  - name: OpenAI format (Chat)
  - name: OpenAI format (Responses)
  - name: Image generation
  - name: Image generation/OpenAI-compatible format
  - name: Image generation/Qwen
  - name: Video generation
  - name: Video generation/Sora-compatible format
  - name: Video generation/Kling format
  - name: Video generation/Jimeng format
  - name: Claude format (Messages)
  - name: Gemini format
  - name: OpenAI format (Embeddings)
  - name: Text completions
  - name: OpenAI audio
  - name: Rerank
  - name: Moderations
  - name: Realtime
  - name: Not implemented
  - name: Not implemented/Fine-tunes
  - name: Not implemented/Files
paths:
  /v1/images/generations:
    post:
      tags:
        - Image generation/Qwen
      summary: Generate image (qwen-image)
      description: >
        High-quality image generation using Alibaba Bailian Qwen-Image models.
        Supports advanced prompt engineering and specific style controls for
        professional visual content.
      operationId: createImage
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                input:
                  type: object
                  properties:
                    messages:
                      type: array
                      items:
                        type: object
                        properties:
                          role:
                            type: string
                          content:
                            type: array
                            items:
                              type: object
                              properties:
                                text:
                                  type: string
                  required:
                    - messages
                parameters:
                  type: object
                  properties:
                    negative_prompt:
                      type: string
                    prompt_extend:
                      type: boolean
                    watermark:
                      type: boolean
                    size:
                      type: string
              required:
                - model
                - input
            example:
              model: qwen-image-plus
              input:
                messages:
                  - role: user
                    content:
                      - text: >-
                          An elegant, solemn pair of couplets hangs in a quiet
                          classical Chinese room. Blue-and-white porcelain sits
                          on the table. The left couplet reads "Wisdom arises
                          naturally, humans and machines share the same path and
                          think anew," the right reads "Cloud intelligence opens
                          the universe and reaches high ambitions," and the
                          horizontal scroll reads "Wisdom opens Tongyi." The
                          calligraphy is graceful, and a Chinese-style painting
                          of Yueyang Tower hangs in the center.
              parameters:
                negative_prompt: ''
                prompt_extend: true
                watermark: false
                size: 1328*1328
      responses:
        '200':
          description: Image generated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    ImageResponse:
      type: object
      properties:
        created:
          type: integer
        data:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
              b64_json:
                type: string
              revised_prompt:
                type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        Authenticate with a Bearer Token.
        Format: `Authorization: Bearer sk-xxxxxx`

````