
grok-4.2-imageGrok 4.2 Image 是 apimodels.app 上 Grok 图片生成的便宜档:$0.0075/张,是标准档 Grok Imagine Image($0.03)的四分之一,跑的是同一个模型、同一个端点,生产实测中位 19 秒出图。支持文生图和单参考图编辑(把图片地址放进 image_url、用提示词描述改动 —— 字段名写成 image 会被静默丢掉),画幅 10 个值:1:1、16:9、9:16、4:3、3:4、3:2、2:3、2:1、1:2、auto。分辨率传 resolution 取 1k 或 2k,不传默认 2k,而且两档同价 —— 2K 方图实测 2048×2048、16:9 为 2816×1584,一分钱不多收(对比 grok-imagine-image-pro 的 2K 要 $0.12)。三件事它做不到:四个超宽比例(19.5:9 / 9:19.5 / 20:9 / 9:20,要超宽用 grok-imagine-image)、蒙版修复、多图融合(要多图用 gpt-image-2 的 16 张或 grok-imagine-image-pro 的 3 张)。走量试稿选它,通用出图选 Grok Imagine Image,要 2K 照片级细节上 Pro 档,换档只改 model 一个字段。
$0.0075 per image against $0.03 on the standard Grok Imagine Image tier — same model, same endpoint. Switching tiers is a one-field change, so drafts can run cheap and only the final render needs the expensive tier
Create-then-poll by default; pass an OpenAI-style size (e.g. 1024x1024) with no callback_url and the single request blocks until the image is ready instead. Measured in production: 19s median, 22s at p90, tail to 28s — set the client timeout above 60s
Prompt only is text-to-image; add image_url (or image_base64) and the same call edits instead — no endpoint switch, no separate model name. Editing holds the input: framing, camera angle, background and lighting survive, so a recolour stays a recolour
Pass resolution 1k or 2k — the price is flat either way, so a 2K frame costs the same $0.0075 as a 1K one. Measured output: 2048x2048 for a square 2K request, 2816x1584 at 16:9. Omit the field and you get 2k by default. For comparison, grok-imagine-image-pro charges $0.12 for its 2K tier
1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2 and auto — square, portrait, landscape and the 2:1 shape social previews want. Measured against the live channel, not copied from a spec sheet: the four ultra-wide ratios (19.5:9, 9:19.5, 20:9, 9:20) are rejected on this tier, and grok-imagine-image is where you go for those
High-volume drafting and iteration, social and ad creative in odd ratios, thumbnail and banner batches, and any pipeline where per-image cost decides whether the feature ships
Mask-based inpainting (not offered — pass the original and describe the change in words), multi-image fusion (single reference only), or work needing the photoreal ceiling — use grok-imagine-image-pro for that
Both tiers bill the same flat $0.0075 — 2K costs no extra (2048x2048 square, 2816x1584 at 16:9). 1K is about twice as fast.
Generated image will appear here
Enter a prompt and click Generate
Grok 4.2 Image 是由 xAI 提供的图片生成 API。Grok 4.2 Image 是 apimodels.app 上 Grok 图片生成的便宜档:$0.0075/张,是标准档 Grok Imagine Image($0.03)的四分之一,跑的是同一个模型、同一个端点,生产实测中位 19 秒出图。支持文生图和单参考图编辑(把图片地址放进 image_url、用提示词描述改动 —— 字段名写成 image 会被静默丢掉),画幅 10 个值:1:1、16:9、9:16、4:3、3:4、3:2、2:3、2:1、1:2、auto。分辨率传 resolution 取 1k 或 2k,不传默认 2k,而且两档同价 —— 2K 方图实测 2048×2048、16:9 为 2816×1584,一分钱不多收(对比 grok-imagine-image-pro 的 2K 要 $0.12)。三件事它做不到:四个超宽比例(19.5:9 / 9:19.5 / 20:9 / 9:20,要超宽用 grok-imagine-image)、蒙版修复、多图融合(要多图用 gpt-image-2 的 16 张或 grok-imagine-image-pro 的 3 张)。走量试稿选它,通用出图选 Grok Imagine Image,要 2K 照片级细节上 Pro 档,换档只改 model 一个字段。 通过 APIMODELS 平台,您可以使用统一的 API 接口调用该模型,按量计费、价格透明。当前定价:per image: $0.0075。







$0.0075 一张,探二十个方向的花费还不到 Pro 档一张图。挑中之后把 model 换成 grok-imagine-image-pro,同一个端点、同一套参数,把那一条提示词重出一张高保真的。
一张产品图放进 image_url,一次调用出一个配色、材质或季节版本。构图、机位、背景、光线都保住,整组看起来像同一场拍的,而不是各生成一张。
封面 A/B、博客头图、类目 banner:16:9 与 2:1,图内文字缩小后仍然清楚。一百张封面 $0.75。
9:16 和 3:4 供 Story、Reels、Pin 用,画面里留出文案位。广告创意里那种"要三十个版本才挑出两个能用"的场景,成本才撑得住。
给商品库、设计系统、预发布环境铺上像样的图,而不是灰色方块。便宜到需求一改就能整套重出。
超宽壁纸(19.5:9、20:9)要用 grok-imagine-image;把多张参考图融进一个画面要用 gpt-image-2(16 张)或 grok-imagine-image-pro(3 张);蒙版局部重绘我们在 Grok 全部档位上都不提供。
Grok 4.2 Image 通过 APIMODELS 平台调用,当前定价:per image: $0.0075。按量计费,用多少付多少。
在 APIMODELS 注册账号并获取 API Key,然后通过我们的统一 API 端点调用即可。我们提供详细的 API 文档和 cURL、Python、Node.js 代码示例。
APIMODELS 通过聚合平台提供与官方相同的 Grok 4.2 Image 模型。我们提供统一的 API 接口,无需分别注册各平台账号,一个 API Key 即可调用所有模型。
它是 apimodels.app 上 Grok 图片生成的【便宜档】:$0.0075/张,是标准档 Grok Imagine Image($0.03)的四分之一,跑的是同一个模型、同一个端点。文生图与单参考图编辑都支持,生产实测中位 19 秒出图。说明一句:xAI 官方并没有名为 grok-4.2-image 的模型(它的图像模型是 grok-imagine-image / -2.0 / -quality),这个名字是我们平台上的可调模型名,便宜档就挂在它上面。
$0.0075/张,扁平价 —— 不分画幅、不分提示词长短,带参考图做编辑也是同一个价。失败不扣费,没有起充门槛也没有订阅。对比一下:标准档 grok-imagine-image 是 $0.03/张,Pro 档 grok-imagine-image-pro 是 1K $0.08 / 2K $0.12。
同一个上游模型,差别在价格和能力边界。走量、试稿、批量出缩略图和 banner,用 grok-4.2-image($0.0075)最划算;要更宽的画幅集(含超宽 19.5:9 / 20:9)或更稳的通用出图用 grok-imagine-image($0.03);要照片级细节、微表情和 2K 分辨率就上 grok-imagine-image-pro($0.08 / $0.12,最多 3 张参考图)。三者同一端点同样参数,换档只改 model 一个字段,所以常见做法是便宜档试稿、定稿再用 Pro 出一张。
POST https://api.apimodels.app/v1/images/generations,带 Authorization: Bearer YOUR_API_KEY,body 是 {"model":"grok-4.2-image","prompt":"..."}。默认返回 taskId 和 state:"pending",再 GET 同一路径 ?task_id=xxx 取结果。想一次调用直接拿到图,就按 OpenAI 的写法多传一个 size(如 "1024x1024")且不传 callback_url —— 这时请求会一直等到出图,返回 OpenAI 形状的 {created, data:[...]};再加 response_format:"url" 就返回链接而不是 base64。
把图片地址放进 **image_url**(或用 image_base64 传 base64),prompt 写要改什么,模型名不用换、端点也不用换。⚠️ 字段名就是 image_url —— 写成 image 会被静默丢掉,你会拿到一张纯文生图的结果,而且照样收费。编辑的保真度不错:实测「保持构图、机位、背景、光线不变,只把器物釉色从哑光黑改成陶土红并在旁边加三颗咖啡豆」,除了指定的改动其余全部保住了。
10 个值:1:1、16:9、9:16、4:3、3:4、3:2、2:3、2:1、1:2,以及 auto。这份表是对现役渠道逐个实调出来的,不是抄规格书 —— 四个超宽比例(19.5:9、9:19.5、20:9、9:20)在这一档会被拒,要超宽请用 grok-imagine-image(那条通道支持)。不传 aspect_ratio 时按上游默认走;做编辑时画幅跟随参考图。
支持,而且**不加钱**。传 resolution 为 1k 或 2k,**不传默认就是 2k**;两档都是 $0.0075/张,扁平价。实测输出:2K 方图 2048×2048(4.19MP),16:9 为 2816×1584;1K 方图 1024×1024。参考一下同门的 grok-imagine-image-pro,它的 2K 档要 $0.12 —— 同样是 2K,这里便宜 16 倍。耗时两档量级相近(生产实测默认档中位 13 秒、1K 中位 7 秒),尾部都可能拖到 100 秒以上,所以超时照旧设 60 秒以上。⚠️ 一个坑:如果你按 OpenAI 风格传了 size 却没传 resolution,分辨率会由 size 反推 —— 传 1024x1024 就落到 1K 了。想要 2K 就显式写 resolution。
都不支持,直说。蒙版修复是随一条已退役的通道一起走的能力,不属于这个模型;局部修改的做法是把原图放进 image_url,再用提示词描述"把哪里改成什么"。多图融合也不行,参考图只吃一张 —— 需要多图请用 gpt-image-2(最多 16 张)或 grok-imagine-image-pro(3 张)。
生产实测:中位 19 秒、p90 22 秒,尾部到过 28 秒(最快 6 秒)。**把超时设到 60 秒以上**,别用默认的 10 秒或 30 秒。用默认的建任务+轮询模式时,建任务本身是立即返回的,慢的只是出图。真出问题会直接给错误码:内容审核拒绝就改提示词,上游繁忙直接重试(两种都不扣费)。
结果文件在我们的存储上保留 7 天,到期自动删除。要长期使用请拿到 URL 后自行下载转存,别把我们的链接当图床写进你的数据库或页面。
在 APIMODELS,Grok 4.2 Image 与 60+ 个模型共用一个 API Key、一个余额,所以选型只看合不合适,不存在锁定。它支持 Text to Image、Image Editing、Native 1K / 2K、Cheapest Grok Tier,你可以在价格和能力上把它和其它图片生成模型对比,换模型只需改一个模型名字符串——无需新账号、无需重新对接。所有图片生成模型与实时价格见 apimodels.app/models。
Grok 4.2 Image 支持:Text to Image、Image Editing、Native 1K / 2K、Cheapest Grok Tier。完整参数与调用方式见 APIMODELS 的 API 文档。
可以。APIMODELS 提供可直接访问的统一 API,一个 API Key 即可调用 Grok 4.2 Image,无需分别注册官方账号、也无需自行处理官方接口的网络访问。
我们支持 Stripe(Visa、Mastercard 等国际信用卡)和支付宝付款。充值后积分即时到账。