Grok Imagine API 是 xAI 的 Grok 图像 API(Grok image API),提供强大的图像生成与编辑能力。使用 grok-imagine-image 从文本提示生成超写实图像,或使用 grok-imagine-image 通过自然语言智能编辑现有图像。
74 / 8000

透明定价,无隐藏费用。按量付费,用多少付多少。
| 型号 | 规格 | 黄金价当前价格 | 铂金价 | 钻石价 | 官方价 | 为你节省 |
|---|---|---|---|---|---|---|
grok-imagine-image | 1K | 0.16Credits(~$0.016)/张 | 0.152Credits(~$0.0152)/张 | 0.144Credits(~$0.0144)/张 | 0.2Credits(~$0.02)/张 | 20% |
| 2K | 0.16Credits(~$0.016)/张 | 0.152Credits(~$0.0152)/张 | 0.144Credits(~$0.0144)/张 | 0.2Credits(~$0.02)/张 | 20% | |
| 参考图片(每张) | 0.016Credits(~$0.0016)/张 | 0.0152Credits(~$0.0015)/张 | 0.0144Credits(~$0.0014)/张 | 0.02Credits(~$0.002)/张 | 20% |
* 实际费用以最终输出为准。
专业级 AI 图像生成与编辑的强大能力
按照以下简单步骤开始使用 Grok Imagine 生成图像
创建免费的 APIMart 账号以访问 Grok Imagine API。
为账户充值以开始使用 Grok Imagine。
在控制台为 Grok Imagine 创建专属 API 密钥。
“Grok Imagine 的超写实质量让我真的很惊喜。色彩准确度和纹理细节都非常出色——我们每天都用它来制作产品营销视觉素材。”
Alex Chen
DesignWorks 创意总监
“编辑模型真是太厉害了。我只需用文字描述要改什么,grok-imagine-1.5-edit-apimart 就能干净利落地完成,再也不用在 Photoshop 里折腾蒙版了。”
Sarah Mitchell
UI/UX 设计师
“提示词的理解非常细腻。Grok Imagine 能捕捉到其他模型完全忽略的细微风格暗示。我的客户总在问我是怎么做到生成速度这么快的。”
Marcus Weber
自由插画师
“APIMart 上 Grok Imagine 的定价无可比拟。我们每周生成数百张产品图,成本只有以前的一小部分。”
Emma Rodriguez
市场经理
“双参数 API 简单得让人耳目一新。我不到一小时就把 Grok Imagine 集成到了我们的平台里。通过 APIMart 的稳定性非常可靠。”
James Liu
全栈开发者
“我们把所有活动创意概念都切换到了 Grok Imagine。它是我们找到的速度与质量比最好的方案,APIMart 的定价让大规模使用完全可行。”
Sophie Anderson
AdVision 艺术总监
grok-imagine-image 与 grok-imagine-image-quality 是两个独立的官方型号,分别使用自己的页面与定价。grok-imagine-image 最多支持 5 张参考图,grok-imagine-image-quality 最多支持 3 张参考图;两者均支持输出 1–10 张 1k 或 2k 图像。
grok-imagine-image 使用 model、prompt 和 n(输出 1–10 张,默认 1 张),可选 nsfw_check。通过 aspect_ratio 选择 auto 或 13 种预设比例,通过 resolution 选择 1k/2k,image_urls 支持 0–5 张参考图,不传 quality 参数。
可以。使用 grok-imagine-image,提供编辑提示词,并在 image_urls 中传入 1–5 张 HTTP(S) 参考图。模型会根据指令修改参考图,无需蒙版。
本页型号按自己的原价与实际折扣计算当前单张输出价格,输出费用随 n 增加。官方参考图按自己的原价和折扣另行计费,每次请求每张参考图只计一次,不乘输出张数 n。实时费率请查看本页定价详情。
grok-imagine-image 通过 aspect_ratio 控制画面比例,通过 resolution 选择 1k/2k,不传 quality 参数。
注册 APIMart 账号,充值余额,生成 API 密钥,然后向 /v1/images/generations 发送 POST 请求,包含 model 和 prompt 参数即可。文档(docs.apimart.ai)中的 Grok 图像 API 参考提供 Python、JavaScript 等语言的完整代码示例。
Grok Imagine API 没有免费额度,按量付费,只为成功的请求付费;所有价格均享 8 折(立省 20%),铂金、钻石会员最高立省 28%。
注册 APIMart 账号,在控制台的 API Keys 页面创建密钥即可。同一个 key 可调用 xAI Grok Imagine API 及平台上的全部模型,按量付费,无需订阅。
有。Grok Imagine API 按生成图片张数计费。本页价格表列出全部规格,展示的是黄金会员价(8 折,立省 20%);铂金、钻石会员更省,最高立省 28%。只为成功的请求付费。
你可以通过页面右下角的在线客服、发送邮件至 [email protected],或在 Discord 社区中联系我们。我们的团队会尽快回复你的问题。
探索同类型的其他模型。

Flux 3 Image Klein
FLUX 3 Image Klein is a compact, open-weight image generation and editing model developed by Black Forest Labs. It combines text-to-image creation, image editing, and composition using up to 10 reference images in a single model. With support for up to 4K resolution and bounding-box layout control, it gives creators flexible tools to bring their ideas to life.

Mai Image 2.6
MAI-Image-2.6 is Microsoft's image model for text-to-image, single-image editing and composition with up to 5 reference images. It is available in high-quality and Flash versions, with 1K and 2K output and sharp text rendering.

Mai Image 2.6 Flash
MAI-Image-2.6 Flash is the Flash version of Microsoft MAI-Image-2.6 for text-to-image and image editing with up to 5 references, 1K/2K PNG output and optional Bing grounding, billed by actual token usage.

Flux 3 Image
FLUX 3 Image by Black Forest Labs handles text-to-image, single-image editing and generation with up to 10 reference images. It supports multiple aspect ratios and resolutions up to 4K, priced by resolution with no extra charge for references.