---
title: "qwen-image"
url: "https://docs.api.pruna.ai/apis/models-api-0/versions/7dfbc266-0f94-4c90-8518-d9e4d1a245ec/schemas/qwen-image"
---

> Full API specification: https://docs.api.pruna.ai/apis/models-api-0/versions/7dfbc266-0f94-4c90-8518-d9e4d1a245ec.md

# qwen-image

AI model for content generation. Rate limit: 150 requests per minute.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: P-API
  version: 0.3.0
servers:
  - url: https://api.pruna.ai
    description: Production server
components:
  schemas:
    qwen-image:
      type: object
      required:
        - input
      properties:
        input:
          type: object
          properties:
            seed:
              title: Seed
              description: Random seed. Set for reproducible generation
              type: integer
            image:
              title: Image
              format: uri
              description: Input image for img2img pipeline
              type: string
            prompt:
              title: Prompt
              description: Prompt for generated image
              type: string
            go_fast:
              title: Go Fast
              default: true
              description: Run faster predictions with additional optimizations.
              type: boolean
            guidance:
              title: Guidance
              default: 3
              maximum: 10
              minimum: 0
              description: Guidance for generated image. Lower values can give more realistic
                images. Good values to try are 2, 2.5, 3 and 3.5
              type: number
            strength:
              title: Strength
              default: 0.9
              maximum: 1
              minimum: 0
              description: Strength for img2img pipeline
              type: number
            image_size:
              enum:
                - optimize_for_quality
                - optimize_for_speed
              title: image_size
              description: Image size for the generated image
              default: optimize_for_quality
              type: string
            lora_scale:
              title: Lora Scale
              default: 1
              description: Determines how strongly the main LoRA should be applied.
              type: number
            aspect_ratio:
              enum:
                - 1:1
                - 16:9
                - 9:16
                - 4:3
                - 3:4
                - 3:2
                - 2:3
              title: aspect_ratio
              description: Aspect ratio for the generated image
              default: 16:9
              type: string
            lora_weights:
              title: Lora Weights
              description: Load LoRA weights. Only works with text to image pipeline. Supports
                arbitrary .safetensors URLs, tar files, and zip files from the
                Internet (for example,
                'https://huggingface.co/flymy-ai/qwen-image-lora/resolve/main/pytorch_lora_weights.safetensors',
                'https://example.com/lora_weights.tar.gz', or
                'https://example.com/lora_weights.zip')
              type: string
            output_format:
              enum:
                - webp
                - jpg
                - png
              title: output_format
              description: Format of the output images
              default: webp
              type: string
            enhance_prompt:
              title: Enhance Prompt
              default: false
              description: Enhance the prompt with positive magic.
              type: boolean
            output_quality:
              title: Output Quality
              default: 80
              maximum: 100
              minimum: 0
              description: Quality when saving the output images, from 0 to 100. 100 is best
                quality, 0 is lowest quality. Not relevant for .png outputs
              type: integer
            negative_prompt:
              title: Negative Prompt
              default: " "
              description: Negative prompt for generated image
              type: string
            extra_lora_scale:
              items:
                type: number
              title: Extra Lora Scale
              description: Scales for additional LoRAs as an array of numbers (e.g., 0.5,
                0.7). Must match the number of weights in extra_lora_weights.
              type: array
            extra_lora_weights:
              items:
                type: string
              title: Extra Lora Weights
              description: Additional LoRA weights as an array of URLs. Same formats supported
                as lora_weights (e.g.,
                ['https://huggingface.co/flymy-ai/qwen-image-lora/resolve/main/pytorch_lora_weights.safetensors',
                'https://huggingface.co/flymy-ai/qwen-image-realism-lora/resolve/main/flymy_realism.safetensors'])
              type: array
            num_inference_steps:
              title: Num Inference Steps
              default: 30
              maximum: 50
              minimum: 1
              description: Number of denoising steps. Recommended range is 28-50, and lower
                number of steps produce lower quality outputs, faster.
              type: integer
            disable_safety_checker:
              title: Disable Safety Checker
              default: false
              description: Disable safety checker for generated images.
              type: boolean
          required:
            - prompt
          additionalProperties: false
      description: "AI model for content generation. Rate limit: 150 requests per minute."
```
