---
title: "SDXL（图片生成）-302AI 图像生成-API黄页|万维易源ShowAPI"
canonical_url: "https://www.showapi.com/playground/302ai/302ai/302-ai-image-gen"
last_updated: "2026-09-21T09:36:33.294Z"
meta:
  description: "302AI提供高效SDXL图片生成API，5-10秒快速出图，每次仅需0.015 PTC，助力开发者实现AI绘画功能。"
  keywords: AI图片生成，SDXL图像生成，AI绘画API，快速图片生成，302AI图像API
  "og:description": "302AI提供高效SDXL图片生成API，5-10秒快速出图，每次仅需0.015 PTC，助力开发者实现AI绘画功能。"
  "og:title": "SDXL（图片生成）-302AI 图像生成-API黄页|万维易源ShowAPI"
---

*

*

*

# **302AI 图像生成**

[302 AI-302 AI](https://www.showapi.com/playground/302ai/302ai) [** 产品首页](https://302ai.apifox.cn/api-170721455) [**API文档](https://302ai.apifox.cn/api-170721455) [**应用示例](https://www.showapi.com/aiapp/302ai/302ai/302-ai-image-gen.html)

**7467

2025-07-16更新

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

图片生成API允许用户通过提供宽度、高度、提示词和负面提示词等参数，生成指定内容的图片。API运行在302.AI的云GPU上，平均运行时长为5-10秒。

**基础配置**

**YOUR\_API\_KEY****\*****[去获取YOUR\_API\_KEY](https://dash.302.ai/apis/list)

鉴权信息

选择接入点：

**POST**

**

**Run

**接入点文档：**[查看](https://302ai.apifox.cn/api-170721455)

Run: Ctrl+

↵

接入点描述：302.AI的API，用于图片生成，平均运行时长5-10s，价格：0.015 PTC/次

**请求参数**

**prompt****\***

生成图片的提示词

**height****\***

图片高度

**width****\***

图片宽度

**negative\_prompt**

生成图片的负面提示词

**返回结果**

当前为示例返回

**

返回体

返回头

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

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

**拷贝Curl语句