选了 gpt-image 模型发聊天请求,结果报错。图片生成应该怎么调用?
图片生成不走聊天接口,要用专门的图片接口:
curl https://apirove.com/v1/images/generations \
-H "Authorization: Bearer $APIROVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2.6-flare",
"prompt": "a simple red circle on white background",
"size": "1024x1024",
"n": 1
}'