---
title: qwen-2.1-text-to-image API — Qwen 2.1 收費詳情與規格 | RunAPI
description: 透過 RunAPI 使用 qwen-2.1-text-to-image，Qwen 2.1 系列。按次收費，含 model ID、技術規格與開發者設定指南。
url: https://runapi.ai/zh-HK/models/qwen-2.1/text-to-image.md
canonical: https://runapi.ai/zh-HK/models/qwen-2.1/text-to-image
locale: zh-HK
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/models/qwen-2.1/text-to-image
  zh-CN: https://runapi.ai/zh-CN/models/qwen-2.1/text-to-image
  es: https://runapi.ai/es/models/qwen-2.1/text-to-image
  ja: https://runapi.ai/ja/models/qwen-2.1/text-to-image
  de: https://runapi.ai/de/models/qwen-2.1/text-to-image
  fr: https://runapi.ai/fr/models/qwen-2.1/text-to-image
  pt-BR: https://runapi.ai/pt-BR/models/qwen-2.1/text-to-image
  ko: https://runapi.ai/ko/models/qwen-2.1/text-to-image
  it: https://runapi.ai/it/models/qwen-2.1/text-to-image
  nl: https://runapi.ai/nl/models/qwen-2.1/text-to-image
  pl: https://runapi.ai/pl/models/qwen-2.1/text-to-image
  tr: https://runapi.ai/tr/models/qwen-2.1/text-to-image
  zh-TW: https://runapi.ai/zh-TW/models/qwen-2.1/text-to-image
  zh-HK: https://runapi.ai/zh-HK/models/qwen-2.1/text-to-image
  ar: https://runapi.ai/ar/models/qwen-2.1/text-to-image
  x-default: https://runapi.ai/models/qwen-2.1/text-to-image
model: Qwen 2.1
provider: Alibaba
variant_id: qwen-2.1-text-to-image
sdk_model_id: qwen-2.1-text-to-image
modality: image
billing_unit: 次請求
status: upcoming
---

> HTML version: https://runapi.ai/zh-HK/models/qwen-2.1/text-to-image
> Site index for agents: https://runapi.ai/llms.txt


# qwen-2.1-text-to-image API

**即將推出:** 此模型尚未在 RunAPI 推出，API 呼叫將於發佈時開放。

透過 RunAPI 使用 Qwen 2.1 系列的 qwen-2.1-text-to-image。按次收費，無需訂閱，失敗的生成不扣費。

**Alibaba / [Qwen 2.1](https://runapi.ai/zh-HK/models/qwen-2.1.md)**
**即將推出 · image · 可商用**




### 切換 variant

- [qwen-2.1-edit-image](https://runapi.ai/zh-HK/models/qwen-2.1/edit-image.md)
- **qwen-2.1-text-to-image** (current)

2 個版本可用





qwen-2.1-text-to-image 針對 Qwen 2.1 系列中品質與成本的最佳平衡點。

- 按次收費，美元計價
- 生成失敗不收費
- 如模型支援，提供串流輸出
- 各模型的請求參數及能力限制
- 只需變更一個 model ID 參數即可切換 variant
- 所有模型與供應商統一計費




## 技術詳情

| 欄位 | 值 |
|---|---|
| 提供者 | Alibaba |
| 模型 ID | qwen-2.1-text-to-image |
| 模態 | 圖像 |
| 任務類型 | Asynchronous |
| API 端點 | [/api/v1/qwen_2_1/text_to_image](https://runapi.ai/zh-HK/docs/api/qwen-2-1/edit-image) |
| 計費單位 | 次請求 |
| 輸入參數 | aspect_ratio, background, callback_url, enable_prompt_expansion, enable_safety_checker, model, output_format, output_resolution, prompt, seed |
| 最大解像度 | 1k, 2k |
| 長寬比 | 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, 21:9, 9:21 |
| 輸出格式 | png, webp, jpeg |
| 目錄狀態 | 即將推出 |



**使用方法**

## 3 個步驟使用此模型

1. **取得 API 金鑰** - 免費註冊後，在控制台建立 qwen-2.1-text-to-image 的 API 金鑰。
2. **發送請求** - 向 /api/v1/qwen_2_1/text_to_image 發送 POST 請求，並傳入 qwen-2.1-text-to-image 模型 ID 和參數。
3. **取得結果** - 輪詢工作或按照回呼取得已完成的 qwen-2.1-text-to-image 結果。



<!-- catalog-model-detail-slot: feature-cards -->

## 此模型提供的功能

- **輸出解析度** — 根據已發布的 endpoint schema，支援 1k, 2k。
- **靈活的參數** — 可設定 8 個已記錄的參數，包括 aspect_ratio, background, enable_prompt_expansion, enable_safety_checker, output_format。
- **Endpoint 涵蓋範圍** — 開放 1 個公開 endpoint：text_to_image。
- **Webhook 推送** — 非同步任務接受回調 URL，用於接收完成通知。
<!-- /catalog-model-detail-slot: feature-cards -->



**API 參考**

## 端點規格

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


<!-- catalog-model-detail-slot: request-parameters -->

## 請求參數

### `seed`

**選填** · `integer`

Integer seed for reproducible results; omit for a random seed.

### `prompt`

**必填** · `string`

Image generation prompt.

### `background`

**選填** · `string`

Background type. A transparent background requires output_format png or webp; describe only the subject in the prompt. (opaque, transparent)

### `aspect_ratio`

**選填** · `string`

Output aspect ratio. (1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, 21:9, 9:21)

### `callback_url`

**選填** · `string`

Webhook URL for asynchronous task updates.

### `output_format`

**選填** · `string`

Output image format. jpeg cannot be combined with a transparent background. (png, webp, jpeg)

### `output_resolution`

**選填** · `string`

Output image resolution. (1k, 2k)

### `enable_safety_checker`

**選填** · `boolean`

Whether RunAPI checks generated content for safety.

### `enable_prompt_expansion`

**選填** · `boolean`

Whether RunAPI expands the prompt before generation.

<!-- /catalog-model-detail-slot: request-parameters -->

**Request example**

```json
{
  "model": "qwen-2.1-text-to-image",
  "prompt": "生成一張 4K 產品主圖，主體為啞黑色水樽，擺放在米色石面上，柔和側光。"
}
```

### 快速開始 — qwen-2.1-text-to-image

結構一致 · variant 已固定於 model 中

```sh
npx skills add runapi-ai/qwen-2.1 -g
```

```text
Install the Qwen 2.1 skill for this app:

1. Add runapi-ai/qwen-2.1 with the skills installer.
2. Load SKILL.md in this workspace.
3. Use its docs, schemas, pricing notes, and setup steps with model ID qwen-2.1-text-to-image.
4. Confirm the install path when done.
```

### 四步使用 qwen-2.1-text-to-image

1. **安裝** — 為此模型系列安裝 model skill。
2. **設定** — 將 model 欄位設為本頁顯示的完整 model ID。
3. **呼叫** — 連同 prompt、inputs 及 callback 設定，送出一個 typed request。
4. **接收** — 從 RunAPI 讀取 task response、webhook callback 或 cached output URL。

### qwen-2.1-text-to-image 有咩不同

- **VS QWEN-2.1-EDIT-IMAGE: Qwen 2.1 文字生圖，支援 1K 及 2K 及透明背景** — Qwen 2.1 圖片編輯，最多十張來源圖片，支援遮罩局部編輯

## 使用場景

**產品攝影**

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

**遊戲及概念美術**

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

**編輯插畫**

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



## 關於 Qwen 2.1 text to image 的常見問題

### 點樣選擇 qwen-2.1-text-to-image？

傳入 quickstart 顯示嘅 model ID。

### 這個 variant 的 rate limit 係多少？

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

### 之後可以切換 variant 嗎？

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

### 支援 streaming 嗎？

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

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

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

### 需要獨立的供應商帳戶嗎？

不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型，無需底層供應商帳戶。


### RELATED

- [qwen-2.1-edit-image](https://runapi.ai/zh-HK/models/qwen-2.1/edit-image.md) — 由 Alibaba 提供 · 即將推出
- [Flux](https://runapi.ai/zh-HK/models/flux.md) — 由 Black Forest Labs 提供 · $0.04 / 次請求
- [Flux 2](https://runapi.ai/zh-HK/models/flux-2.md) — 由 Black Forest Labs 提供 · $0.04 / 次請求
- [Flux Kontext](https://runapi.ai/zh-HK/models/flux-kontext.md) — 由 Black Forest Labs 提供 · $0.03 / 次請求

### 開始用 Qwen 2.1 建立產品。

- [建立免費帳戶](https://runapi.ai/zh-HK/login)
- [閱讀快速開始 →](https://runapi.ai/zh-HK/docs/api/qwen-2-1/edit-image)
## 正在與團隊一起建立？

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

[聯絡我們](https://runapi.ai/zh-HK/contact.md)



---

## More from RunAPI

- [Home](https://runapi.ai/zh-HK/.md)
### 產品
- [模型目錄](https://runapi.ai/zh-HK/models.md)
- [收費](https://runapi.ai/zh-HK/pricing.md)
- [服務商](https://runapi.ai/zh-HK/models#all-models)
- [Prompt 素材庫](https://runapi.ai/zh-HK/prompts.md)
### 開發者
- [文件](https://runapi.ai/zh-HK/docs/guides)
- [SDK](https://runapi.ai/zh-HK/sdk.md)
- [CLI](https://runapi.ai/zh-HK/cli.md)
- [MCP Server](https://runapi.ai/zh-HK/mcp.md)
- [x402](https://runapi.ai/zh-HK/x402.md)
### 指南
- [Claude Code 與 Cursor](https://runapi.ai/zh-HK/claude-code-vs-cursor.md)
- [Cursor API 設定](https://runapi.ai/zh-HK/cursor-api-setup.md)
- [RunAPI 與 OpenRouter](https://runapi.ai/zh-HK/openrouter-alternative.md)
### 公司
- [企業版](https://runapi.ai/zh-HK/contact.md)
- [邀請返利](https://runapi.ai/zh-HK/referral-program.md)
- [聯絡](https://runapi.ai/zh-HK/contact.md)
### 法律
- [條款](https://runapi.ai/zh-HK/terms.md)
- [私隱](https://runapi.ai/zh-HK/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-HK/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/icon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "SoftwareApplication",
    "name": "Qwen 2.1 qwen-2.1-text-to-image",
    "applicationCategory": "DeveloperApplication"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://runapi.ai/zh-HK"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Models",
        "item": "https://runapi.ai/zh-HK/models"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Qwen 2.1",
        "item": "https://runapi.ai/zh-HK/models/qwen-2.1"
      },
      {
        "@type": "ListItem",
        "position": 4,
        "name": "qwen-2.1-text-to-image",
        "item": "https://runapi.ai/zh-HK/models/qwen-2.1/text-to-image"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "點樣選擇 qwen-2.1-text-to-image？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "傳入 quickstart 顯示嘅 model ID。"
        }
      },
      {
        "@type": "Question",
        "name": "這個 variant 的 rate limit 係多少？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。"
        }
      },
      {
        "@type": "Question",
        "name": "之後可以切換 variant 嗎？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "可以——variant 只係一個旗標。只要更改 model 參數就可以切換。"
        }
      },
      {
        "@type": "Question",
        "name": "支援 streaming 嗎？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "在可用 streaming 的情況下，RunAPI 會端到端串流。"
        }
      },
      {
        "@type": "Question",
        "name": "我應該在邊度回報品質問題？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "可以在公開 GitHub repo 開 issue，或者電郵支援團隊。"
        }
      },
      {
        "@type": "Question",
        "name": "需要獨立的供應商帳戶嗎？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型，無需底層供應商帳戶。"
        }
      }
    ]
  }
]
```
