简体中文
cURL
curl --request POST \ --url https://geekai.co/api/v1/images/edits \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-image-1", "prompt": "在小猫的脚下画一只老鼠", "image": "<string>", "mask": "<string>", "size": "1024x1024", "n": 1, "quality": "auto", "response_format": "url", "retries": 0 }'
{ "created": 123, "data": [ { "url": "<string>", "revised_prompt": "<string>" } ] }
基于文本提示对图片进行编辑,支持多种图片生成模型和参数配置,目前仅 GPT-Image-1 模型支持该接口
JWT认证token
成功响应
The response is of type object.
object