Alibaba

Qwen 2 text to image

Image

Qwen2 text-to-image with 5 aspect ratios

模型健康狀態 數據不足
curl -X POST https://runapi.ai/api/v1/qwen_2/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_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."
}'
https://runapi.ai 1 endpoint

2 個版本可用

Playground

試用 Qwen 2 text to image

選擇任意模型,數秒內即可開始生成。

立即試用模型

選擇任意模型,數秒內即可開始生成。

模型
Mode
預計費用: $0.06 / image
生成

登入以使用 RunAPI 生成內容。

規格

技術詳情

提供者 Alibaba
模型 ID qwen-2-text-to-image
模態 Image
任務類型 Asynchronous
API 端點 /api/v1/qwen_2/text_to_image
計費單位 call
輸入參數 aspect_ratio, output_format, prompt
長寬比 1:1, 3:4, 4:3, 9:16, 16:9
輸出格式 png, jpeg
目錄狀態 可正常運作
使用方法

3 個步驟使用此模型

  1. 取得 API 金鑰

    免費註冊後,在控制台建立 qwen-2-text-to-image 的 API 金鑰。

  2. 發送請求

    向 /api/v1/qwen_2/text_to_image 發送 POST 請求,並傳入 qwen-2-text-to-image 模型 ID 和參數。

  3. 取得結果

    輪詢工作或按照回呼取得已完成的 qwen-2-text-to-image 結果。

此模型提供的功能

靈活的參數

可設定 3 個已記錄的參數,包括 aspect_ratio, output_format, prompt。

Endpoint 涵蓋範圍

開放 1 個公開 endpoint:text_to_image。

按用量計費

按 call 計量,無需訂閱。

Qwen 2 text to image 收費

API endpoint
解析度
時長
價格
text_to_image
暫不可用
call
$0.06 / image
API 參考

端點規格

端點
POST /api/v1/qwen_2/text_to_image
模型 ID
qwen-2-text-to-image
工作類型
text_to_image
最長時長
暫無資料
解析度
暫無資料
長寬比
1:1, 3:4, 4:3, 9:16, 16:9
輸出格式
PNG, JPEG
平均生成時間
暫無資料

請求參數

prompt

必填 value

暫無描述。

aspect_ratio

選填 value

暫無描述。 (1:1, 3:4, 4:3, 9:16, 16:9)

output_format

選填 value

暫無描述。 (png, jpeg)

使用場景

產品攝影

自動生成適合電商 catalog、但冇 studio 攝影的 lifestyle 產品相。

遊戲及概念美術

在落實最終美術之前,快速構思場景同角色。

編輯插畫

大規模生成獨特封面圖同插畫,適合 blog post 同文章。

FAQ

關於 Qwen 2 text to image 的常見問題

點樣選擇 qwen-2-text-to-image?

傳入 quickstart 顯示嘅 model ID。

這個 variant 的 rate limit 係多少?

每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。

之後可以切換 variant 嗎?

可以——variant 只係一個旗標。只要更改 model 參數就可以切換。

支援 streaming 嗎?

在可用 streaming 的情況下,RunAPI 會端到端串流。

我應該在邊度回報品質問題?

可以在公開 GitHub repo 開 issue,或者電郵支援團隊。

正在與團隊一起建立?

我們可以協助企業設定、整合和技術問題。

聯絡我們