gpt-image-1 和 gemini-nano-banana 模型支持图片编辑,示例代码如下:
gpt-image-1 和 gemini-nano-banana 模型支持图片编辑,示例代码如下:
curl --location --request POST 'https://geekai.co/api/v1/images/edits' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
"model": "gpt-image-1",
"prompt": "修复这张破损的照片",
"image": "https://static.geekai.co/storage/2025/04/02/broken-picture.jpg"
}'
curl --location --request POST 'https://geekai.co/api/v1/images/edits' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
"model": "gpt-image-1",
"prompt": "修复这张破损的照片",
"image": ["https://static.geekai.co/storage/2025/04/02/broken-picture.jpg"]
}'
此页面对您有帮助吗?