VARIANT · Alibaba / Qwen 2

Qwen 2 qwen-2-text-to-image API

透過 RunAPI 統一 AI API 提供的模型變體。

可直接上線 · image · 可商用
# Install the model skill for app development workflows
npx skills add runapi-ai/qwen-2 -g
Installs docs, schemas, pricing context, and setup notes into your developer workspace.
Or use this setup request in your coding tool:
Install the Qwen 2 skill for this app:

1. Add runapi-ai/qwen-2 with the skills installer.
2. Load SKILL.md in this workspace.
3. Use its docs, schemas, pricing notes, and setup steps when adding model features.
4. Confirm the install path when done.
切換 variant
qwen-2-edit-image qwen-2-remix-image
OVERVIEW

qwen-2-text-to-image 在 Qwen 2 系列中,兼顧品質與成本的最佳平衡。

  • 以美元按次計費
  • 生成失敗不收費
  • 模型支援時可串流輸出
  • Model skill setup
PRICING

價格

失敗的生成不收費
Text to image
$0.06 / image
規格表

技術細節

Model ID qwen-2-text-to-image
供應商 Alibaba
模態 image
任務類型 asynchronous
計費單位 call
API endpoint /api/v1/qwen_2/text_to_image
商用授權 是 — 已透過 API 包含
狀態 可直接上線
SKILLS

快速開始 — qwen-2-text-to-image

相同格式 · variant 固定在 model 中

# Install the model skill for app development workflows
npx skills add runapi-ai/qwen-2 -g
Installs docs, schemas, pricing context, and setup notes into your developer workspace.
Or use this setup request in your coding tool:
Install the Qwen 2 skill for this app:

1. Add runapi-ai/qwen-2 with the skills installer.
2. Load SKILL.md in this workspace.
3. Use its docs, schemas, pricing notes, and setup steps when adding model features.
4. Confirm the install path when done.
運作方式

四步驟使用 qwen-2-text-to-image

01

安裝

安裝此 model line 的 model skill。

02

設定

將 model 欄位設定為此頁面顯示的完整 model ID。

03

呼叫

使用您的 prompt、inputs 和 callback 設定送出型別化請求。

04

接收

讀取 RunAPI 的 task 回應、webhook callback 或快取輸出 URL。

DIFFERENCES

qwen-2-text-to-image 有什麼不同

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

使用情境

最適合

產品攝影

為缺少棚拍照片的電商型錄,自動生成生活風格產品照片。

遊戲與概念美術

在定稿前快速發想場景與角色概念。

編輯插畫

大規模生成部落格文章與專欄所需的獨特封面與插圖。

FAQ

關於 qwen-2-text-to-image 的常見問題

模型 ID 在不同版本之間會保持穩定嗎?

RunAPI 會維持 model ID 穩定,並在不改變請求格式的情況下處理相容版本更新。

這個 variant 的速率限制是多少?

每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。

之後可以切換 variant 嗎?

可以——variant 只是旗標。只要變更 model 參數即可切換。

它支援串流嗎?

只要支援串流,RunAPI 就會端到端串流。

我該在哪裡回報品質問題?

請在公開 GitHub repo 提交 issue,或寄信給支援。

立即開始

開始使用 Qwen 2 進行開發。