---
title: Qwen 2.1 API — 全部变体、定价与 Model Skill | RunAPI
description: 对比 Qwen 2.1 API 的全部变体、价格，以及用于应用开发的 Qwen 2.1 skill。一把 API key，skill-first 工作流。
url: https://runapi.ai/zh-CN/models/qwen-2.1.md
canonical: https://runapi.ai/zh-CN/models/qwen-2.1
locale: zh-CN
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/models/qwen-2.1
  zh-CN: https://runapi.ai/zh-CN/models/qwen-2.1
  es: https://runapi.ai/es/models/qwen-2.1
  ja: https://runapi.ai/ja/models/qwen-2.1
  de: https://runapi.ai/de/models/qwen-2.1
  fr: https://runapi.ai/fr/models/qwen-2.1
  pt-BR: https://runapi.ai/pt-BR/models/qwen-2.1
  ko: https://runapi.ai/ko/models/qwen-2.1
  it: https://runapi.ai/it/models/qwen-2.1
  nl: https://runapi.ai/nl/models/qwen-2.1
  pl: https://runapi.ai/pl/models/qwen-2.1
  tr: https://runapi.ai/tr/models/qwen-2.1
  zh-TW: https://runapi.ai/zh-TW/models/qwen-2.1
  zh-HK: https://runapi.ai/zh-HK/models/qwen-2.1
  ar: https://runapi.ai/ar/models/qwen-2.1
  x-default: https://runapi.ai/models/qwen-2.1
model: Qwen 2.1
provider: Alibaba
modality: image
variant_count: 2
status: upcoming
---

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

[首页](https://runapi.ai/zh-CN/.md) / [模型](https://runapi.ai/zh-CN/models.md) / Qwen 2.1


# Qwen 2.1 API

**即将上线:** 该模型尚未在 RunAPI 上线，API 调用将在发布时开放。

Qwen 2.1 文生图和图像编辑 API，支持透明背景和蒙版局部编辑。

- [在 Playground 试试](https://runapi.ai/zh-CN/login)
- [API 参考 →](https://runapi.ai/zh-CN/docs/api/qwen-2-1/edit-image)

**Provider:** Alibaba
**Modality:** 图像
**Catalog:** 2 variants

## 关于 Qwen 2.1

Qwen 2.1 API 以在 图像 领域的质量/成本平衡见长。安装它的 model skill，把文档、schema、定价说明和接入步骤带进应用开发工作流。

**提供方:** Alibaba
**模态:** 图像



## 对比全部 API 变体

| 版本 | 变体 | 价格 | 计费方式 | URL |
|---|---|---|---|---|
| qwen-2.1-edit-image | `qwen-2.1-edit-image` | 即将上线 | — | [查看 →](https://runapi.ai/zh-CN/models/qwen-2.1/edit-image.md) |
| qwen-2.1-text-to-image | `qwen-2.1-text-to-image` | 即将上线 | — | [查看 →](https://runapi.ai/zh-CN/models/qwen-2.1/text-to-image.md) |







## 开始使用 Qwen 2.1

1. **选择模型** — 根据输出类型、质量要求和延迟目标选择模型与变体。
2. **配置** — 设置 RunAPI key，并在代码工作区安装对应 model skill。
3. **调用** — 按 skill 里的说明，把模型能力接入到你的应用里。
4. **接收** — 按 task ID 轮询、在支持时使用流式，或处理 webhook 回调。



## Qwen 2.1 API 是什么？

Qwen 2.1 API 提供 Alibaba 系列的图像模型。通过 RunAPI 可使用统一接口和账单，并安装模型技能包，为 AI 编程助手提供接入文档和参数说明。

**提供方:** [Alibaba](https://runapi.ai/zh-CN/providers/alibaba.md) — 查看全部 →
**模态:** [图像](https://runapi.ai/zh-CN/models#all-models) — 浏览模型 →



## 为什么用 RunAPI 调用 Qwen 2.1 API

- **统一认证，接入所有提供方** — 一把 RunAPI key 解锁整个模型目录。无需为每家提供方单独建账户。
- **统一的定价与账单** — USD 按次定价，按月结算。失败的生成不计费。
- **Schema 优先的 SDK** — Typed schema 和接入说明已打包进 model skill，让实现从正确契约开始。


## Qwen 2.1 常见问题

### RunAPI 提供哪些 Qwen 2.1 端点？

提供文生图和图像编辑。图像编辑最多接受十张源图，也可以用一张源图加一张蒙版做局部编辑。

### Qwen 2.1 能输出透明背景吗？

可以。将背景设为透明，并选择 PNG 或 WebP 输出；JPEG 不支持透明。

### 蒙版局部编辑怎么用？

提供一张源图和一张蒙版图。蒙版中的白色区域按提示词重新生成，黑色区域保持不变。

### 应该从哪个变体开始？

选满足质量要求的最便宜变体。多数团队从 fast 起步，生产时升级到 pro。

### 有免费额度吗？

创建账户和 API Key 免费。API 调用采用预付费按量计费，充值后即可使用。

### 支持流式吗？

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



## 如果喜欢 Qwen 2.1 API，也可以试试这些

- [Flux](https://runapi.ai/zh-CN/models/flux.md) - Black Forest Labs - 起价 $0.01 / 次调用
- [Flux 2](https://runapi.ai/zh-CN/models/flux-2.md) - Black Forest Labs - 起价 $0.06 / 次调用
- [Flux Kontext](https://runapi.ai/zh-CN/models/flux-kontext.md) - Black Forest Labs - 起价 $0.03 / 次调用
- [GPT Image](https://runapi.ai/zh-CN/models/gpt-image.md) - OpenAI - 起价 $0.12 / 次调用


## 立即体验 Qwen 2.1 API。

- [免费注册](https://runapi.ai/zh-CN/login)
- [阅读快速开始 →](https://runapi.ai/zh-CN/docs/api/qwen-2-1/edit-image)

## 变体

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

## 同类

- [Flux](https://runapi.ai/zh-CN/models/flux.md)
- [Flux 2](https://runapi.ai/zh-CN/models/flux-2.md)
- [Flux Kontext](https://runapi.ai/zh-CN/models/flux-kontext.md)
- [GPT Image](https://runapi.ai/zh-CN/models/gpt-image.md)

## 同提供方

- [HappyHorse](https://runapi.ai/zh-CN/models/happyhorse.md)
- [Qwen](https://runapi.ai/zh-CN/models/qwen.md)
- [Qwen 2](https://runapi.ai/zh-CN/models/qwen-2.md)
- [Qwen 3](https://runapi.ai/zh-CN/models/qwen-3.md)

## 文档

- [快速开始](https://runapi.ai/zh-CN/docs)
- [API 参考](https://runapi.ai/zh-CN/docs)
- [SDK README](https://github.com/runapi-ai)
- 更新日志


---

## More from RunAPI

- [Home](https://runapi.ai/zh-CN/.md)
### 产品
- [模型目录](https://runapi.ai/zh-CN/models.md)
- [定价](https://runapi.ai/zh-CN/pricing.md)
- [提供方](https://runapi.ai/zh-CN/models#all-models)
### 开发者
- [文档](https://runapi.ai/zh-CN/docs/guides)
- [SDK](https://runapi.ai/zh-CN/sdk.md)
- [CLI](https://runapi.ai/zh-CN/cli.md)
- [MCP Server](https://runapi.ai/zh-CN/mcp.md)
- [x402](https://runapi.ai/zh-CN/x402.md)
### 指南
- [Claude Code 与 Cursor](https://runapi.ai/zh-CN/claude-code-vs-cursor.md)
- [Cursor API 设置](https://runapi.ai/zh-CN/cursor-api-setup.md)
- [RunAPI 与 OpenRouter](https://runapi.ai/zh-CN/openrouter-alternative.md)
### 公司
- [企业版](https://runapi.ai/zh-CN/contact.md)
- [联系](https://runapi.ai/zh-CN/contact.md)
### 法律
- [服务条款](https://runapi.ai/zh-CN/terms.md)
- [隐私政策](https://runapi.ai/zh-CN/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-CN/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-CNicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "SoftwareApplication",
    "name": "Qwen 2.1",
    "applicationCategory": "DeveloperApplication",
    "operatingSystem": "Cross-platform",
    "hasVariant": [
      {
        "@type": "SoftwareApplication",
        "name": "Qwen 2.1 qwen-2.1-edit-image"
      },
      {
        "@type": "SoftwareApplication",
        "name": "Qwen 2.1 qwen-2.1-text-to-image"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://runapi.ai/zh-CN"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Models",
        "item": "https://runapi.ai/zh-CN/models"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Qwen 2.1",
        "item": "https://runapi.ai/zh-CN/models/qwen-2.1"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "RunAPI 提供哪些 Qwen 2.1 端点？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "提供文生图和图像编辑。图像编辑最多接受十张源图，也可以用一张源图加一张蒙版做局部编辑。"
        }
      },
      {
        "@type": "Question",
        "name": "Qwen 2.1 能输出透明背景吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "可以。将背景设为透明，并选择 PNG 或 WebP 输出；JPEG 不支持透明。"
        }
      },
      {
        "@type": "Question",
        "name": "蒙版局部编辑怎么用？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "提供一张源图和一张蒙版图。蒙版中的白色区域按提示词重新生成，黑色区域保持不变。"
        }
      },
      {
        "@type": "Question",
        "name": "应该从哪个变体开始？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "选满足质量要求的最便宜变体。多数团队从 fast 起步，生产时升级到 pro。"
        }
      },
      {
        "@type": "Question",
        "name": "有免费额度吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "创建账户和 API Key 免费。API 调用采用预付费按量计费，充值后即可使用。"
        }
      },
      {
        "@type": "Question",
        "name": "支持流式吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "模型支持流式时，RunAPI 端到端流式。"
        }
      },
      {
        "@type": "Question",
        "name": "失败怎么计费？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "失败的生成不计费。"
        }
      },
      {
        "@type": "Question",
        "name": "输出会缓存吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "输出按任务 ID 存储在 R2 供回取。输入不缓存。"
        }
      },
      {
        "@type": "Question",
        "name": "可以商用吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "可以——所有变体默认含商用许可，除非模型许可明确限制；有例外会在变体页面注明。"
        }
      },
      {
        "@type": "Question",
        "name": "速率限制？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Key 级限流随使用层级伸缩。当前限制见定价页。"
        }
      },
      {
        "@type": "Question",
        "name": "在哪里报问题？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "在公共 GitHub 仓库提 issue 或邮件联系 support。"
        }
      }
    ]
  }
]
```
