Text-to-Image (Sync)
图片服务
文生图(同步)
同步文生图,兼容 OpenAI POST /v1/images/generations。成功响应后立即扣费,在 data 中返回图片结果,无需轮询。
POST
Text-to-Image (Sync)
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
application/json
Text prompt for image generation
Model name. Default: gpt-image-2
示例:
"gpt-image-2"
Output size. Default: 1024x1024
示例:
"1024x1024"
Number of images. MAX: 1
Quality tier (affects billing for gpt-image-2)
可用选项:
low, medium, high, auto 可用选项:
transparent, opaque, auto 可用选项:
png, jpeg, webp