Qwen-Image-Edit-Plus

Edit images using text instructions with multi-image support and pose transfer

Overview

Qwen-Image-Edit-Plus is a powerful image editing model that transforms images based on text descriptions. It supports editing single images, composing multiple images (1-2), and can transfer poses or styles between images. Perfect for making targeted changes to existing images.

Rate Limit: 150 requests per minute

Category: Image Editing

Price: 0.03$ / image

Quickstart

Start with uploading an image

curl -X POST "https://api.pruna.ai/v1/files" \
  -H "apikey: YOUR_API_KEY" \
  -F "content=@/path/to/your/file.jpg"

Note: Use -F (form) with @ prefix to upload a file from your local filesystem. The file path should be absolute or relative to your current directory.

Response:

{
  "id": "fqadqq42xq",
  "name": "test.jpg",
  "content_type": "image/jpeg",
  "size": 185093,
  "etag": "\"14e9a51deaac6bee2dd8b5c52d7d0b5f\"",
  "checksums": {
    "sha256": "aa10d5d09bcee5cb5d854bd81899308b0cf0c0c50e29d4f00c2c06e51f0e2fe6"
  },
  "metadata": {
    "content_length": 185093,
    "width": 1344,
    "height": 768
  },
  "created_at": "2025-01-08T18:51:26.729Z",
  "expires_at": "2025-01-09T18:51:26.729Z",
  "urls": {
    "get": "https://api.pruna.ai/v1/files/fqadqq42xq"
  }
}

Single Image Edit (Asynchronous)

curl -X POST 'https://api.pruna.ai/v1/predictions' \
  -H 'Content-Type: application/json' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Model: qwen-image-edit-plus' \
  -d '{
    "input": {
      "image": "https://your-url.com/photo.jpg",
      "prompt": "Change the background to a beach sunset scene",
      "aspect_ratio": "16:9"
    }
  }'

Single Image Edit (Synchronous)

curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: qwen-image-edit-plus' \
-H 'Try-Sync: true' \
-d '{
"input": {
"image": "https://your-url.com/photo.jpg",
"prompt": "Change the background to a beach sunset scene",
"aspect_ratio": "16:9"
}
}'

Multiple Images (Composition/Pose Transfer)

curl -X POST 'https://api.pruna.ai/v1/predictions' \
-H 'Content-Type: application/json' \
-H 'apikey: YOUR_API_KEY' \
-H 'Model: qwen-image-edit-plus' \
-d '{
"input": {
"image": [
"https://your-url.com/person.jpg",
"https://your-url.com/pose-reference.jpg"
],
"prompt": "Transfer the pose from the second image to the person in the first image",
"aspect_ratio": "match_input_image"
}
}'

Parameters

Required Parameters

ParameterTypeDescription
imagestring or arraySingle image URL or array of 1-2 image URLs
promptstringText description of the desired edit or transformation

Optional Parameters

ParameterTypeDefaultDescription
aspect_ratiostring"match_input_image"Output aspect ratio. Options: "match_input_image", "16:9", "9:16", "1:1", "4:3", "3:4"
output_formatstring"webp"Output format: "webp", "jpg", or "png"
output_qualityinteger95Quality for jpg/webp (1-100)