---
title: "qwen-image"
url: "https://docs.api.pruna.ai/apis/models-api-0/versions/e82c070d-36fc-4aa3-b8cc-8140e0221f53/schemas/qwen-image"
---

> Full API specification: https://docs.api.pruna.ai/apis/models-api-0/versions/e82c070d-36fc-4aa3-b8cc-8140e0221f53.md

# qwen-image

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: P-API
  version: 0.1.0
servers:
  - url: https://api.pruna.ai
    description: Production server
components:
  schemas:
    qwen-image:
      type: object
      required:
        - input
      properties:
        input:
          type: object
          required:
            - prompt
          properties:
            prompt:
              type: string
              description: Text prompt for image generation
            enhance_prompt:
              type: boolean
              description: Enhance the prompt with positive magic
              default: false
            lora_weights:
              type: string
              format: uri
              description: Load LoRA weights. Supports arbitrary .safetensors URLs, tar files,
                and zip files from the Internet
            replicate_weights:
              type: string
              format: uri
              description: Load LoRA weights from Replicate training. Supports arbitrary
                .safetensors URLs, tar files, and zip files
            lora_scale:
              type: number
              description: Determines how strongly the main LoRA should be applied
              default: 1
            extra_lora_weights:
              type: array
              items:
                type: string
                format: uri
              description: Additional LoRA weights as an array of URLs. Same formats supported
                as lora_weights
            extra_lora_scale:
              type: array
              items:
                type: number
              description: Scales for additional LoRAs as an array of numbers. Must match the
                number of weights in extra_lora_weights
            image:
              type: string
              format: uri
              description: Input image for img2img pipeline
            strength:
              type: number
              description: Strength for img2img pipeline
              minimum: 0
              maximum: 1
              default: 0.9
            negative_prompt:
              type: string
              description: Negative prompt for generated image
              default: " "
            aspect_ratio:
              type: string
              description: Aspect ratio for the generated image
              enum:
                - 1:1
                - 16:9
                - 9:16
                - 4:3
                - 3:4
              default: 16:9
            image_size:
              type: string
              description: Image size for the generated image
              enum:
                - optimize_for_quality
                - optimize_for_speed
              default: optimize_for_quality
            go_fast:
              type: boolean
              description: Run faster predictions with additional optimizations
              default: true
            num_inference_steps:
              type: integer
              description: Number of denoising steps. Recommended range is 28-50
              minimum: 1
              maximum: 50
              default: 30
            guidance:
              type: number
              description: Guidance for generated image. Lower values can give more realistic
                images
              minimum: 0
              maximum: 10
              default: 3
            seed:
              type: integer
              description: Random seed. Set for reproducible generation
            output_format:
              type: string
              description: Format of the output images
              enum:
                - webp
                - jpg
                - png
              default: webp
            output_quality:
              type: integer
              description: Quality when saving the output images
              minimum: 0
              maximum: 100
              default: 80
            disable_safety_checker:
              type: boolean
              description: Disable safety checker for generated images
              default: false
          additionalProperties: false
```
