外观
创建 gpt-image-1
POST
https://www.aipro2.com/v1/images/generations给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。
为提供的提示和参数创建完成
官方文档:https://platform.openai.com/docs/api-reference/images/create
Header 参数
Content-Type*string示例application/jsonAccept*string示例application/jsonAuthorizationstring示例Bearer {{YOUR_API_KEY}}
请求体参数
application/jsonn*integer要生成的图像数。必须介于 1 和 10 之间。prompt*string所需图像的文本描述。最大长度为 1000 个字符。size*string生成图像的大小。必须是256x256、512x512或 1024x1024之一。
响应
application/json
created*integerdata*array<object>
