POST https://api.frimodel.com/v1/images/generationsAuthorization: Bearer YOUR_API_KEYContent-Type: application/jsonmodel:图片模型。当前实测为 gpt-image-2。prompt:图片内容描述。size:目标尺寸或比例提示。quality:质量等级。output_format:输出格式。background:背景模式。{
"model": "gpt-image-2",
"prompt": "A minimal blue circle centered on a white background, no text",
"size": "1024x1024"
}data[0].b64_jsonsizequalityoutput_formatusagesize 是目标参数,不保证输出像素完全相同。实测请求 1024x1024,响应 size 和解码后的图片均为 1254×1254。业务代码应读取响应和实际文件尺寸,不要只依赖请求参数。