Felo API PlatformFelo API Platform
Back to models

Qwen Image 2.1 Turbo API

Qwen Image 2.1 Turbo is a distilled 7B text-to-image and image-editing model that compresses denoising to 8 steps while retaining 2K-level output.

Qwen Image 2.1 Turbo is a distilled accelerated checkpoint in the Qwen-Image-2.1 series, built on the same 7B vision generation architecture as the base model. It uses knowledge distillation to compress denoising to an 8-step sampling schedule at CFG 1.0 while keeping 2K-level image generation. The model runs at BF16 native precision and is about 14.2GB in size. Weights are available on Hugging Face and ModelScope and can be loaded through the Diffusers QwenImage21Pipeline.

It supports text-to-image generation and image editing driven by natural language instructions, with up to 4 additional reference images per editing request. It also supports RGBA output for transparent-background images. For editing, it offers stronger restoration of facial details and better consistency of product text and textures across new scenes. The recommended generation resolution is about 2 megapixels, such as 2048x2048 at 1:1.

This model is best suited to high-frequency local image generation workflows and rapid iteration, including product visual design for posters, concept art, and ad assets, as well as e-commerce product imagery and model outfit changes. It must use its dedicated 8-step sampling schedule, as the standard default schedule produces different images. At 4-bit quantization and below, output deviates noticeably from the original, and higher-quality quantized text encoders are recommended because heavily quantized encoders degrade output. It is released under the Qwen Research license, which carries restrictions on commercial use.

Updated:

MODEL ID

qwen-image-2.1-turbo
Input
text / image
Output
image

Highlights

  • 8-step distilled sampling at CFG 1.0
  • 7B parameters, BF16, about 14.2GB
  • Text-to-image and instruction-based editing
  • Up to 4 reference images per edit
  • RGBA transparent-background output
  • 2K-level generation at about 2 megapixels

Providers

1 providers

Compare API prices across providers. Select a provider to view all charges and conditions.

Provider · Pricing details
Uptime
$0$0.0184

Benchmarks

  • Qwen-Image-Bench

    Base Qwen-Image-2.1 score estimated by Unsloth, in points

    60.28

Scores as published by the model provider.

Quick Start

Submit an image task, poll its status, then save the images. These examples use curl and Python 3 (standard library only).

POST https://openapi.felo.ai/api/v1/images/generations

1Get your API key

Create a key from your Felo API Platform account and set it as an environment variable.

export FELO_API_KEY="YOUR_API_KEY"

2Make your first request

Optional values vary by model. This example leaves them unset; confirm supported values in Playground before adding them. Request fields sit alongside model and prompt, without an input wrapper.

curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -o created.json \
  -d '{
  "prompt": "A studio product photo of a ceramic coffee cup on warm linen, soft morning light",
  "model": "qwen-image-2.1-turbo"
}'

3Poll the task

Submission returns task_id. Poll every 3 seconds while queued or running; stop on succeeded, failed or interrupted. This example stops waiting after 30 minutes. Keep created.json to resume querying the same task instead of submitting again.

python3 - <<'PY'
import json, os, time
from pathlib import Path
from urllib.parse import quote
from urllib.request import Request, urlopen

task = json.loads(Path("created.json").read_text())
task_id = task["task_id"]
url = "https://openapi.felo.ai/api/v1/images/generations/" + quote(task_id, safe="")
headers = {"Authorization": "Bearer " + os.environ["FELO_API_KEY"]}
deadline = time.monotonic() + 1800

while task["status"] in ("queued", "running"):
    if time.monotonic() >= deadline:
        raise TimeoutError(f"Keep task_id={task_id} to resume polling")
    time.sleep(3)
    with urlopen(Request(url, headers=headers), timeout=60) as response:
        task = json.load(response)
    if task.get("task_id") != task_id or task.get("kind") != "image":
        raise ValueError("Unexpected task response")
    print(task["status"])

if task["status"] != "succeeded":
    raise RuntimeError(task.get("error") or task["status"])
if not task.get("outputs"):
    raise ValueError("Task succeeded without image outputs")
Path("task.json").write_text(json.dumps(task))
print("Saved task.json")
PY

4Download the output

After success, save outputs from task.json. Results may be HTTPS URLs, URL objects or b64_json. Download signed URLs promptly; media downloads do not use your API key.

python3 - <<'PY'
import base64, json
from pathlib import Path
from urllib.request import urlopen

task = json.loads(Path("task.json").read_text())
if task.get("status") != "succeeded" or not task.get("outputs"):
    raise ValueError("No completed image outputs")
extensions = {"image/png": ".png", "image/jpeg": ".jpg", "image/webp": ".webp", "image/gif": ".gif", "image/avif": ".avif"}

for index, output in enumerate(task["outputs"], 1):
    item = output if isinstance(output, dict) else {}
    url = output if isinstance(output, str) else item.get("url") or item.get("unsigned_url")
    mime = item.get("media_type") or "image/png"
    if url and url.startswith("https://"):
        with urlopen(url, timeout=60) as response:
            data = response.read()
            mime = response.headers.get_content_type()
    elif url and url.startswith("data:image/") and ";base64," in url:
        header, encoded = url.split(",", 1)
        mime = header[5:].split(";", 1)[0]
        data = base64.b64decode(encoded, validate=True)
    elif item.get("b64_json"):
        data = base64.b64decode(item["b64_json"], validate=True)
    else:
        raise ValueError("Unrecognized image output")
    path = Path(f"image-{index}" + extensions.get(mime, ".bin"))
    path.write_bytes(data)
    print(path)
PY
input_references

For image editing, replace the example URL with your HTTPS image URL or a base64 image data URL. Submit once, then use the same polling and saving steps.

curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -o created.json \
  -d '{
  "prompt": "Keep the product and framing. Replace the background with a sunlit marble countertop.",
  "model": "qwen-image-2.1-turbo",
  "input_references": [
    {
      "type": "image_url",
      "image_url": {
        "url": "https://example.com/product.png"
      }
    }
  ]
}'

Supported parameters

  • n
  • seed
  • resolution
  • aspect_ratio
  • input_references

Prefer the full reference?

API reference →

Frequently asked questions

What is Qwen Image 2.1 Turbo?

Qwen Image 2.1 Turbo is a distilled accelerated checkpoint in the Qwen-Image-2.1 series, built on the same 7B vision generation architecture as the base model. It uses knowledge distillation to compress denoising to an 8-step sampling schedule at CFG 1.0 while keeping 2K-level image generation. The model runs at BF16 native precision and is about 14.2GB in size. Weights are available on Hugging Face and ModelScope and can be loaded through the Diffusers QwenImage21Pipeline. It supports text-to-image generation and image editing driven by natural language instructions, with up to 4 additional reference images per editing request. It also supports RGBA output for transparent-background images. For editing, it offers stronger restoration of facial details and better consistency of product text and textures across new scenes. The recommended generation resolution is about 2 megapixels, such as 2048x2048 at 1:1. This model is best suited to high-frequency local image generation workflows and rapid iteration, including product visual design for posters, concept art, and ad assets, as well as e-commerce product imagery and model outfit changes. It must use its dedicated 8-step sampling schedule, as the standard default schedule produces different images. At 4-bit quantization and below, output deviates noticeably from the original, and higher-quality quantized text encoders are recommended because heavily quantized encoders degrade output. It is released under the Qwen Research license, which carries restrictions on commercial use.

How is usage billed?

Your bill depends on the provider you use, its prices and your usage. Longer inputs or other conditions may have different prices.

What input modalities does Qwen Image 2.1 Turbo support?

It supports text-to-image generation and image editing driven by natural language instructions. Editing requests can include up to 4 additional reference images.

What output formats and resolution does it produce?

It supports RGBA output for transparent-background images. The recommended generation resolution is about 2 megapixels, for example 2048x2048 at 1:1.

What sampling settings should be used?

It runs with a dedicated 8-step sampling schedule at CFG 1.0 and recommends the euler sampling method. Using the standard default schedule produces different images.

What tasks is it best suited for?

It is designed for high-frequency local image generation workflows and rapid iteration, including product visual design such as posters, concept art, and ad assets, as well as e-commerce product imagery and model outfit changes.

How does it differ from the standard Qwen-Image-2.1?

Turbo is a distilled accelerated checkpoint that compresses denoising to 8 steps while keeping 2K-level image generation. The standard version serves as the quality baseline, while Turbo prioritizes speed.

What are the limitations of quantization?

At 4-bit quantization and below, output deviates noticeably from the original. Higher-quality quantized text encoders are recommended, and Q8_0 precision is suggested for the text encoder.

Related models