跳至內容

Qwen Image 3 Text to Image

整合

模型 id alibaba/qwen-image-3/text-to-image
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/alibaba/qwen-image-3/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cozy bookstore window at dusk with a hand-painted wooden sign that reads \"Moonlight Books · 月光书店\", stacks of books, warm string lights, light rain on the glass, photorealistic."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

此請求: $0.04 40 API 點數 · ≈ ₽4.30 在此頁面執行

取得 API 金鑰
Alibaba 文字轉圖像 #typography#bilingual#budget

Alibaba 的影像模型,具備出色的雙語文字呈現能力,支援 1K 或 2K。

範例

輸出 · ~125 秒
A cozy bookstore window at dusk with a hand-painted wooden sign that reads "Moonlight Books · 月光书店", stacks of books,...

提示詞A cozy bookstore window at dusk with a hand-painted wooden sign that reads "Moonlight Books · 月光书店", stacks of books, warm string lights, light rain on the glass, photorealistic.

$0.04 · 40 API 點數

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

•必填 178 / 5000

描述要建立之圖像的文字,可使用中文或英文,上限為 5000 個字元。

0 / 500

要從生成圖像中排除的內容,上限為 500 個字元。

image_size 預設 square_hd

設定輸出尺寸,使圖像總像素數介於 512 × 512 和 2048 × 2048 之間。

num_images 預設 1

請求生成的圖像數量。

進階 output_format · seed · enable_prompt_expansion
output_format 預設 png

生成圖像的檔案格式。

用於產生可重現結果的隨機種子,範圍為 0 至 2147483647。

POST /run/alibaba/qwen-image-3/text-to-image?wait=20 報價 → $0.04
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/alibaba/qwen-image-3/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cozy bookstore window at dusk with a hand-painted wooden sign that reads \"Moonlight Books · 月光书店\", stacks of books, warm string lights, light rain on the glass, photorealistic."
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 Qwen Image 3 Text to Image

Qwen Image 3 特別擅長將清晰可辨的英文與中文文字放入圖片中:標誌、標籤、投影片與迷因。它接受負面提示詞、可選的自動提示詞擴展與種子,並可從 512x512 渲染至 2048x2048 畫素。每次請求最多可產生六張 PNG、JPEG 或 WebP 圖像。

參數

請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱

名稱類型 預設值允許值 說明
prompt必填
類型string
≤ 5,000 個字元
描述要建立之圖像的文字,可使用中文或英文,上限為 5000 個字元。
negative_prompt選填
類型string | null
預設值
≤ 500 個字元
要從生成圖像中排除的內容,上限為 500 個字元。
image_size選填
類型object
預設值square_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
設定輸出尺寸,使圖像總像素數介於 512 × 512 和 2048 × 2048 之間。
enable_prompt_expansion選填
類型boolean
預設值true
控制 LLM 是否自動改寫提示詞以改善結果。
seed選填
類型integer | null
用於產生可重現結果的隨機種子,範圍為 0 至 2147483647。
num_images選填 num_outputs
類型integer
預設值1
1 – 6
請求生成的圖像數量。
output_format選填
類型enum
預設值png
jpegpngwebp
生成圖像的檔案格式。
必填 標準名稱,也可使用

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "alibaba/qwen-image-3/text-to-image",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "prompt": "A cute baby koala on a water slide holding a card that says \"Summer starts now\", bright afternoon light",
    "negative_prompt": "low resolution, blurry, deformed",
    "image_size": "square_hd"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      }
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
您的檔案,由您選擇每個 outputs[].url 都是儲存空間中的副本:可永久保留(按 GB-月計費),或免費保留 7 天;可透過帳戶設定或 ?storage= 設定。
所有模型使用相同結構圖片、影片和音訊皆包含 type、url、content_type、width、height 和 duration。output 是模型自己的結果物件。
輸出欄位
images
array of object {url, content_type, file_name, file_size}生成產生的圖像。
seed
integer生成期間套用的種子值。

更多模型:文字轉圖像

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/alibaba/qwen-image-3/text-to-image.md. 所有模型與指南: https://doitong.com/developers/llms.txt