Qwen 2 qwen-2-text-to-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
APERÇU
Qwen 2 qwen-2-text-to-image is available through the same RunAPI auth, SDKs, and agent skill workflow.
- Unified endpoint
- SDK snippets
- Agent install path
- Les générations échouées ne sont pas facturées
TARIFS
TARIFS
Les générations échouées ne sont pas facturées
Text to image
$0.06
/ image
FICHE TECHNIQUE
FICHE TECHNIQUE
| Model ID | qwen-2-text-to-image |
| Fournisseur | Alibaba |
| Modalité | image |
| Task type | asynchronous |
| Facturation | call |
| Endpoint | /api/v1/qwen_2/text_to_image |
| Commercial | Yes |
| Status | Operational |
DÉMARRAGE RAPIDE
Quickstart — qwen-2-text-to-image
curl -X POST https://runapi.ai/api/v1/qwen_2/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-2-text-to-image",
"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.textToImage.run({
model: "qwen-2-text-to-image",
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.text_to_image.run(
model: "qwen-2-text-to-image",
prompt: "Generate an isometric illustration of a cozy home office with warm lighting and plants on the desk."
)
FONCTIONNEMENT
How to use qwen-2-text-to-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.
DIFFÉRENCES
How qwen-2-text-to-image compares
VS QWEN-2-EDIT-IMAGE
Qwen2 text-to-image with 5 aspect ratios
Targeted region editing from text instructions
VS QWEN-2-REMIX-IMAGE
Qwen2 text-to-image with 5 aspect ratios
Prompt-guided image remix from a source image
CAS D’USAGE
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-text-to-image
How do I select qwen-2-text-to-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
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.
COMMENCER