---
title: 创建文生图任务-通义万相-文生图V2版-API黄页|万维易源ShowAPI
canonical_url: "https://www.showapi.com/playground/aliyun/bailian/tywx-image-gen"
last_updated: "2026-09-22T11:42:28.210Z"
meta:
  description: 阿里云大模型服务平台百炼提供通义万相-文生图V2版API，支持异步创建高质量AI文生图任务，助力企业高效生成视觉内容。
  keywords: 阿里云大模型，通义万相文生图，AI文生图API，百炼大模型平台，异步文生图任务
  "og:description": 阿里云大模型服务平台百炼提供通义万相-文生图V2版API，支持异步创建高质量AI文生图任务，助力企业高效生成视觉内容。
  "og:title": 创建文生图任务-通义万相-文生图V2版-API黄页|万维易源ShowAPI
---

*

*

*

# **通义万相-文生图V2版**

[阿里云-大模型服务平台百炼](https://www.showapi.com/playground/aliyun/bailian)** 产品首页 [**API文档](https://bailian.console.aliyun.com/?tab=api#/api/?type=model&url=https%3A%2F%2Fhelp.aliyun.com%2Fdocument_detail%2F2862677.html) [**应用示例](https://www.showapi.com/aiapp/aliyun/bailian/tywx-image-gen.html)

**1.5w

2025-04-10更新

**489 [提交收录](https://www.showapi.com/island/feedback-page?submitrequire=true) [反馈问题](https://www.showapi.com/island/feedback-page?apiurl=/playground/aliyun/bailian/tywx-image-gen) [ 创建我的API](https://www.showapi.com/playground)

通义万相-文生图V2版是阿里云提供的一个图像生成API，用户可以通过输入文本描述来生成相应的图像。该API适用于多种场景，如创意设计、广告制作等。

**基础配置**

**Token****\*****[去获取Token](https://bailian.console.aliyun.com/?tab=api#/api/?type=model&url=https%3A%2F%2Fhelp.aliyun.com%2Fdocument_detail%2F2712195.html&renderType=iframe)

请求身份认证

选择接入点：

**POST**

**

**Run

**接入点文档：**[查看](https://bailian.console.aliyun.com/?tab=api#/api/?type=model&url=https%3A%2F%2Fhelp.aliyun.com%2Fdocument_detail%2F2862677.html)

Run: Ctrl+

↵

接入点描述：通过HTTP POST请求创建文生图任务，支持异步获取模型结果。

**请求参数**

**input.prompt****\***

正向提示词

**model****\***

模型名称

**parameters.size**

输出图像的分辨率。图像宽高边长的像素范围为：\[512, 1440]，单位像素。可任意组合以设置不同的图像分辨率，最高可达200万像素。

**parameters.n**

生成图片的数量

**返回结果**

当前为示例返回

**

返回体

返回头

**使用其他软件测试API**

您可以拷贝Curl语句，直接导入Postman进行测试

**拷贝Curl语句