一組驗證,全部供應商通用
一把 RunAPI 金鑰就能開通整個目錄。無需分開註冊帳戶,也不用為每個整合各自輪替金鑰。
透過 RunAPI 使用 Qwen Image API,包含 model skill、統一驗證與按用量計費。
curl -X POST https://runapi.ai/api/v1/qwen_image/edit_image \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-image-text-to-image",
"source_image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
"prompt": "製作一張黃昏杭州的電影感旅遊海報,湖面倒映清晰的中英雙語標題文字。"
}'
import { QwenImageClient } from "@runapi.ai/qwen-image";
const client = new QwenImageClient();
const result = await client.editImage.run({
model: "qwen-image-text-to-image",
source_image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "製作一張黃昏杭州的電影感旅遊海報,湖面倒映清晰的中英雙語標題文字。",
});
require "runapi/qwen_image"
client = RunApi::QwenImage::Client.new
result = client.edit_image.run(
model: "qwen-image-text-to-image",
source_image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "製作一張黃昏杭州的電影感旅遊海報,湖面倒映清晰的中英雙語標題文字。"
)
npx skills add runapi-ai/qwen-image -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
# Codex
codex plugin install runapi-mcp@agents
# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
Qwen Image 是阿里巴巴的視覺生成模型系列,可建立新圖片、重混來源圖片,並依自然語言指令進行精準編輯。它具備出色的語言與視覺對齊、可靠的文字渲染,以及語意圖片編輯能力。
| Endpoint | 解析度 | 時長 | 價格 | |
|---|---|---|---|---|
| edit_image | — | — | $0.06 / 張圖片 |
顯示 qwen-image-edit-image 的定價。其他變體保有各自的 endpoint 定價。
挑選符合輸出類型、品質門檻與延遲目標的模型與變體。
設定 RunAPI key,並在 coding workspace 安裝 model skill。
使用 skill 指引,在你的 app 內加入模型功能。
透過 task ID 查詢、在支援時串流,或處理 webhook callback。
一把 RunAPI 金鑰就能開通整個目錄。無需分開註冊帳戶,也不用為每個整合各自輪替金鑰。
以美元按次計費,每月結帳。失敗的生成不收費。
型別化 schema 與 setup 備註打包在 model skill 內,讓實作從正確契約開始。
可以用提示詞建立圖片、依提示詞引導重混來源圖片以產生新結果,或按照文字指令編輯現有圖片。
兩者屬於不同世代的模型,也使用不同的 RunAPI 模型 ID。如需使用最初一代 Qwen Image 的生成、重混或編輯流程,請選擇 Qwen Image,避免與 Qwen 2 混淆。
可以。出色的文字渲染能力是 Qwen Image 系列的核心優勢之一,包括中文與英文文字。
重混會依新提示詞重新詮釋來源圖片;編輯則透過更精準的指令修改選定內容,同時保留構圖的其餘部分。
支援。編輯模型會遵循自然語言指令加入、移除或更改視覺元素,同時保留相關場景脈絡。
先選擇符合你品質標準中最便宜的版本。大多數團隊會先用快速版本,之後再升級到專業版用於正式上線。