Image model API

Qwen2.1 Image to Image API

Qwen Image 2.1 – Image to Image is Alibaba’s compact image generation and editing model designed to transform existing images using natural-language instructions and reference images. It combines image understanding with generation, allowing users to make broad visual transformations, preserve important details, or perform targeted edits. Kie.ai supports up to 10 reference images for this workflow. The model supports 1K and 2K output, multiple aspect ratios, transparent backgrounds, prompt enhancement, and optional masking for localized edits. Its compact 7B visual-generation architecture is

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

Call Qwen2.1 Image to Image

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

Model qwen21-image-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-image-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 Image to Image's published price (2 J / image). You pay only for successful results, from your Joule balance.
  • 1 image2 Joules
  • 4 images8 Joules

Send requests to POST /api/v1/images/generations. Qwen2.1 Image 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
backgroundselect——
output_formatselect——
Qwen2.1 Image to Image API Pricing | RentPrompts