外观
图像生成
图像生成模型当前公告为 gpt-image-2。
text
POST https://api.774966.xyz/v1/images/generations请求示例
bash
curl https://api.774966.xyz/v1/images/generations \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "一个干净现代的 AI API 平台官网首屏,蓝绿配色,科技感但不夸张",
"size": "1024x1024"
}'注意事项
- 首次调用建议使用简单 prompt 测试。
- 如果客户端不支持图像接口,可以先用 curl 或接口调试工具验证。
- 输出格式以接口实际返回为准。