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
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
概要
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
- 失敗した生成は課金されません
料金
料金
失敗した生成は課金されません
Edit image
$0.04
/ image
仕様
仕様
| Model ID | qwen-2-edit-image |
| プロバイダー | Alibaba |
| モダリティ | image |
| Task type | asynchronous |
| 課金 | call |
| Endpoint | /api/v1/qwen_2/edit_image |
| Commercial | Yes |
| Status | Operational |
クイックスタート
Quickstart — qwen-2-edit-image
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."
)
仕組み
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.
違い
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
ユースケース
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.
Other Qwen 2 variants
qwen-2-remix-image
Cheapest
remix-image
$0.040 / call
qwen-2-text-to-image
text-to-image
$0.060 / call
Related models
Text-to-image and remix-image with strong prompt adherence from Black Forest Labs.
In-context image editing — local edits, style transfer, and character-consistent generation.
Voice, character, and multimodal video generation resources for narration, dialogue, and agent media workflows.
今すぐ開始