Kie.ai - 4o Image API
Kie.ai - 4o Image API 是一个开发者图像生成 API,通过 Kie.ai 在 api.kie.ai 的网关暴露 OpenAI 的 GPT-Image-1 模型。您可以通过 REST 发送文本提示或源图像,并接收生成或编辑后的视觉内容,产品页面上有浏览器游乐场供集成前测试。该模型被称为 ChatGPT 4o Image,针对提示、布局和可读文本重要的工作流程。
Kie.ai 采用统一积分系统计费,而非 OpenAI 基于令牌的图像计费。单张图像生成费用为 6 积分,约 0.03 美元,无需订阅,积分充值起价为 5 美元。此方案偏向于每次调用成本可预测,避免自行运行 GPU 堆栈或解码 OpenAI 输出令牌计算。
该 API 适合需要遵循指令生成、图像中文字可读且批次风格一致的产品团队、市场人员和应用开发者。Kie.ai 文档列举了产品模型、带标签的信息图、吉卜力风格艺术及保持角色跨场景一致等用例。
单图像API调用耗费6积分,大约$0.03每次生成
输出宽高比限制为1:1、3:2和2:3
每个请求可以通过nVariants参数返回1、2或4个变体
在playground中接受PNG、JPG和WEBP文件的图像到图像上传
异步任务通过/record-info端点轮询返回任务ID
每次调用固定价格,大约$0.03每张单图像,无需订阅
支持文本到图像、遮罩编辑和多变体输出在一个API中
可读文本渲染和风格一致性是产品页面的核心卖点
官方快速入门文档包括curl、JavaScript和Python示例
浏览器playground让你在编写集成代码前测试提示词
输出尺寸限制为三种宽高比:1:1、3:2和2:3
生成是异步的,因此应用需要轮询或回调而非即时响应
你购买Kie.ai积分而不是直接计费OpenAI,这增加了一个经销商层
How much does Kie.ai 4o Image API cost?
Kie.ai 4o Image API charges 6 credits per single-image call, about $0.03. Calls that return 2 images cost $0.035 and 4-image calls cost $0.04. Credit top-ups start at $5 with no subscription.
What image sizes does Kie.ai 4o Image API support?
Kie.ai 4o Image API supports three aspect ratios: 1:1, 3:2, and 2:3. You pass the size value in the generate request body alongside your prompt and variant count.
Does Kie.ai 4o Image API support image editing?
Yes. Kie.ai 4o Image API supports image editing by sending filesUrl for source images and an optional maskUrl to limit edited regions. The docs also cover image-to-image variants from an uploaded base image.
How do you authenticate Kie.ai 4o Image API requests?
Kie.ai 4o Image API uses Bearer token authentication. Generate an API key from the Kie.ai API Key page and send it in the Authorization header on requests to https://api.kie.ai.
Can Kie.ai 4o Image API be used commercially?
Yes. The Kie.ai 4o Image API product page labels the model for commercial use, and the docs describe business applications such as product visualization and infographic design.
How does Kie.ai 4o Image API report generation status?
Kie.ai 4o Image API returns a task ID after you submit a job. Poll the /record-info endpoint for progress and final image URLs, or pass a callback URL to receive completion updates automatically.

