wenwen
  1. 绘图模型-OpenAI格式(/images)
wenwen
  • 聊天对话-OpenAI格式(/chat/completions)
    • 聊天
      POST
    • 流式返回
      POST
    • 结构化输出
      POST
    • 工具调用(function call)
      POST
    • 分析图片
      POST
    • 修改图片
      POST
    • 生成图片
      POST
    • 语音回复
      POST
  • 聊天对话-OpenAI格式(/responses)
    • Responses API与Chat API对比
    • 创建对话
      POST
    • 流式返回
      POST
    • 调用联网
      POST
  • 聊天对话-Anthropic格式(/messages)
    • 聊天
      POST
    • 流式返回
      POST
    • 分析图片
      POST
    • 工具使用
      POST
  • 绘图模型-OpenAI格式(/images)
    • 文生图(dall-e-3)
      POST
    • 文生图(gpt-image-1)
      POST
    • 图像编辑(dall-e-2)
      POST
    • 图像编辑(gpt-image-1)
      POST
  • 绘图模型-Midjourney(/mj)
    • 文生图(Imagine)
      POST
    • 图片融合(Blend)
      POST
    • 任务查询接口
      GET
    • 任务批量查询接口
      POST
    • 获取种子(Seed)
      GET
    • 按钮点击(Action)-选择图片
      POST
  • 向量化(/embeddings)
    • 文本向量化
  • 语音识别
    • 语音识别(whisper-1)
  1. 绘图模型-OpenAI格式(/images)

文生图(dall-e-3)

POST
/v1/images/generations
根据提示词创建图像。
使用 DALL·E3 模型生成图片
模型价格请参考问问平台:https://api.wenwen-ai.com/pricing
BASE_URL: https://api.wenwen-ai.com/v1

请求参数

Header 参数

Body 参数application/json

示例
{
  "prompt": "A colorful sunset over the mountains",
  "n": 1,
  "model": "dall-e-3"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.wenwen-ai.com/v1/images/generations' \
--header 'Authorization: Bearer {YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "prompt": "A colorful sunset over the mountains",
  "n": 1,
  "model": "dall-e-3"
}'

返回响应

🟢200成功
application/json
Body

示例
{
  "created": 1753350624,
  "data": [
    {
      "revised_prompt": "Visualize the breathtaking beauty of a vibrant, multi-hued sunset over majestic mountains. The sun is casting its final golden gleams on the day, emblazoning the canvas of the sky with shades of orange, red, purple, and pink. The fiery palette is reflected on the peaks of the mountain range, creating an awe-inspiring blend of light and shadows. The tranquility of the scene is enhanced by the calming silhouette of the mountain range against the radiant backdrop.",
      "url": "https://oaidalleapiprodscus.blob.core.windows.net/private/org-Yh2D9AofHwq7Azpv0wBS6fv9/user-LxBP5T8fFcBwxX6BxX7jvrYo/img-yvqkgqPPaADjrVCk2LnnDNT8.png?st=2025-07-24T08%3A50%3A23Z&se=2025-07-24T10%3A50%3A23Z&sp=r&sv=2024-08-04&sr=b&rscd=inline&rsct=image/png&skoid=ed3ea2f9-5e38-44be-9a1b-7c1e65e4d54f&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2025-07-24T09%3A50%3A23Z&ske=2025-07-25T09%3A50%3A23Z&sks=b&skv=2024-08-04&sig=aJACqwgcFUNwLO6FVosguYQrGMOxZbV8SCT%2B8rTcExo%3D"
    }
  ]
}
修改于 2025-08-05 08:14:12
上一页
工具使用
下一页
文生图(gpt-image-1)
Built with