元曜星辰 Docs
OpenAI

生成图片(兼容 DALL-E)

POST
/openai/images/generations

授权

授权Bearer <token>

位置: header

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

响应主体

application/json

curl -X POST "https://example.com/openai/images/generations" \  -H "Content-Type: application/json" \  -d '{    "prompt": "string"  }'
{  "created": 0,  "data": [    {      "url": "string",      "b64_json": "string",      "revised_prompt": "string"    }  ]}