根据文本提示词生成图片,可选传入参考图片实现图生图/编辑。 返回 taskId,使用 /xai/tasks 查询结果
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
图片描述提示词(最大 1000 字符)
1000"a cute cat sitting on a windowsill"
图片模型
grok-imagine-image "grok-imagine-image"
图片宽高比
2:3, 3:2, 1:1, 9:16, 16:9 参考图片 URL(图生图 / 编辑图片,最多 1 张, 提供后图片尺寸跟随参考图片)
1任务 ID,用于后续查询结果