Image model API

Qwen2.1 Text to Image API

Qwen Image 2.1 is Alibaba’s compact image-generation model designed for high-quality text-to-image creation with strong visual fidelity, typography, and fine-detail rendering. It uses a unified generation and editing architecture, while the text-to-image endpoint focuses on creating polished visuals directly from natural-language prompts. The model supports native 2K generation, transparent backgrounds, prompt enhancement, multiple aspect ratios, and reproducible generation through seed control. Its compact 7B visual-generation architecture is designed for efficient inference while retaining

Model id
qwen21-text-to-image
Takes
Text (required)
Makes
Image
Endpoint
POST /api/v1/images/generations
Made by
Alibaba (Qwen)
Mode
Async (job polling)

Call Qwen2.1 Text to Image

Base URL https://payload.rentprompts.com/api/v1. Replace the placeholder with your key.

Model qwen21-text-to-image

POST /api/v1/images/generationsasync · poll /v1/jobs/:id

curl https://payload.rentprompts.com/api/v1/images/generations \
  -H "Authorization: Bearer rp_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen21-text-to-image",
  "prompt": "A lighthouse at dusk, watercolor",
  "n": 1
}'

# Async models answer HTTP 202 with a job. Poll it until status is
# "succeeded" (output.url / output.urls) or "failed" (error):
curl https://payload.rentprompts.com/api/v1/jobs/JOB_ID \
  -H "Authorization: Bearer rp_live_YOUR_KEY"

Replace rp_live_YOUR_KEY with your key, ideally via the RENTPROMPTS_API_KEY environment variable. Keys are shown only once, so they are never filled in here. Get your API key →

What a typical call costs

Worked out from Qwen2.1 Text to Image's published price (2.5 J / image). You pay only for successful results, from your Joule balance.
  • 1 image2.5 Joules
  • 4 images10 Joules

Send requests to POST /api/v1/images/generations. Qwen2.1 Text to Image runs asynchronously: the request answers HTTP 202 with a job, and you poll GET /api/v1/jobs/{id} until the result is ready.

Settings

Optional parameters this model accepts (pass them in settings on /v1/run, or as top-level fields where OpenAI defines them).
NameTypeDefaultRange / options
aspect_ratioselect——
backgroundselect——
output_formatselect——
Qwen2.1 Text to Image API Pricing | RentPrompts