创建 Image
POST
/v1/images/generations
- 使用 Grok 模型根据文本描述生成图像
- 官方文档:Image Generations
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
prompt
string
Required
所需图像的文本描述。最大长度为 1000 个字符。
size
string
生成图像的尺寸:960x960、720x1280、1280x720、1168x784、784x1168
model
string
Required
用于生成图像的模型。
Responses
成功
application/json
object
created
integer
data
object[]
usage
object