VARIANTE · Alibaba / Qwen 2

Qwen 2 qwen-2-edit-image API

A model variant exposed through RunAPI's unified AI API.

Operational · image · Commercial use supported
# Works with Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents
npx skills add runapi-ai/qwen-2 -g
The -g flag installs globally so every project picks it up.
Or paste this prompt to your AI agent:
Install the Qwen 2 skill for me:

1. Clone https://github.com/runapi-ai/qwen-2
2. Copy the skills/qwen-2/ directory into your
   user-level skills directory (e.g. ~/.claude/skills/
   for Claude Code, ~/.codex/skills/ for Codex).
3. Verify that SKILL.md is present.
4. Confirm the install path when done.
Switch variant
RESUMEN

Qwen 2 qwen-2-edit-image is available through the same RunAPI auth, SDKs, and agent skill workflow.

  • Unified endpoint
  • SDK snippets
  • Agent install path
  • Las generaciones fallidas no se cobran
PRECIOS

PRECIOS

Las generaciones fallidas no se cobran
Edit image
$0.04 / image
FICHA TÉCNICA

FICHA TÉCNICA

Model ID qwen-2-edit-image
Proveedor Alibaba
Modalidad image
Task type asynchronous
Facturación call
Endpoint /api/v1/qwen_2/edit_image
Commercial Yes
Status Operational
INICIO RÁPIDO

Quickstart — qwen-2-edit-image

runapi.ai
curl -X POST https://runapi.ai/api/v1/qwen_2/edit_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen-2-edit-image",
  "image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
  "prompt": "Generate an isometric illustration of a cozy home office with warm lighting and plants on the desk."
}'
import { Qwen2Client } from "@runapi.ai/qwen-2";

const client = new Qwen2Client();
const result = await client.editImage.run({
    model: "qwen-2-edit-image",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "Generate an isometric illustration of a cozy home office with warm lighting and plants on the desk.",
});
require "runapi/qwen_2"

client = RunApi::Qwen2::Client.new
result = client.edit_image.run(
    model: "qwen-2-edit-image",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "Generate an isometric illustration of a cozy home office with warm lighting and plants on the desk."
)
@runapi.ai/qwen-2 v1
CÓMO FUNCIONA

How to use qwen-2-edit-image

01

Choose endpoint

Pick the endpoint and copy the SDK snippet.

02

Pass model ID

Use this variant ID in the request body.

03

Run task

Submit the request and store the returned task ID.

04

Collect output

Poll or receive the callback when the task finishes.

DIFERENCIAS

How qwen-2-edit-image compares

VS QWEN-2-REMIX-IMAGE

Targeted region editing from text instructions

Prompt-guided image remix from a source image

VS QWEN-2-TEXT-TO-IMAGE

Targeted region editing from text instructions

Qwen2 text-to-image with 5 aspect ratios

CASOS DE USO

Where to use this variant

Image generation

Create visual assets from text prompts.

Editing

Transform existing images with prompt guidance.

Batch creative work

Use SDKs for repeatable generation.

FAQ

Frequently asked questions about qwen-2-edit-image

How do I select qwen-2-edit-image?

Pass the model ID shown in the quickstart.

Is pricing usage-based?

Yes. Pricing is metered per call or unit.

EMPEZAR

Start with Qwen 2 today.