---
title: "qwen-2-text-to-image API — Qwen 2 定价与规格 | RunAPI"
url: "https://runapi.ai/zh-CN/models/qwen-2/text-to-image.md"
canonical: "https://runapi.ai/zh-CN/models/qwen-2/text-to-image.md"
locale: "zh-CN"
model: "Qwen 2"
provider: "Alibaba"
variant_id: "qwen-2-text-to-image"
sdk_model_id: "qwen-2-text-to-image"
modality: "image"
price_from_cents: 6
billing_unit: "call"
status: "active"
---

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

通过 RunAPI 使用 %{model} 系列的 %{variant}。按次计费，无需订阅，失败的生成不计费。

## Pricing

**$0.060** per call

失败的生成不计费

## Spec sheet

| Field | Value |
|---|---|
| Model ID | `qwen-2-text-to-image` |
| Provider | Alibaba |
| Modality | image |
| Task type | asynchronous |
| Billing unit | call |
| API endpoint | `/api/v1/qwen_2/text_to_image` |
| Status | active |

## Request example

```json
{
  "model": "qwen-2-text-to-image",
  "prompt": "生成一张等距视角的温馨家庭办公室插画，暖色照明，桌面上有绿植。"
}
```

## Install the skill

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

The skill gives your coding tool the model docs, schemas, pricing notes, and setup steps needed to add Qwen 2 qwen-2-text-to-image features to an application.

```json
{
  "model": "qwen-2-text-to-image"
}
```

## FAQ

### 模型 ID 跨版本稳定吗？

RunAPI 保持模型 ID 稳定，并在不改变请求形态的前提下处理兼容版本刷新。

### 该变体的限流？

Key 级限流随使用层级伸缩。当前限制见定价页。

### 能切到其它变体吗？

可以——变体只是参数，改 model 字段即可。

### 支持流式吗？

模型支持流式时，RunAPI 端到端流式。

### 质量问题在哪里报？

在公共 GitHub 仓库提 issue 或邮件联系 support。


## Related

Other Qwen 2 variants:

- [qwen-2-edit-image](https://runapi.ai/zh-CN/models/qwen-2/edit-image.md) — `edit-image` · $0.060
- [qwen-2-remix-image](https://runapi.ai/zh-CN/models/qwen-2/remix-image.md) — `remix-image` · $0.040
