AvailablexAIImageSync
grok-imagine-image-2.0New

Build next-gen apps with Grok Imagine Image 2.0

API Code Example

Pricing

Official Price

公式规则

TokenLab Price

公式规则
价格详情
每张图片
支持
图像编辑图生图文生图
支持的规格
质量 · 低 / 中等分辨率 · 1k / 2k
公式规则
质量 · 低
文生图图像编辑图生图质量 · 低分辨率 · 1k
计费数量: 图片数量 计算结果:所选数量的总价 基础费用: 官方 $0.00 · 平台 $0.00 默认数量: 1 图片数量 > 0 · 每增加 1 个单位计一次,不足向上取整: 官方 $0.04 · 平台 $0.04 附加费用: 官方 $0.01 · 平台 $0.01 × 参考图数量
质量 · 低
文生图图像编辑图生图质量 · 低分辨率 · 2k
计费数量: 图片数量 计算结果:所选数量的总价 基础费用: 官方 $0.00 · 平台 $0.00 默认数量: 1 图片数量 > 0 · 每增加 1 个单位计一次,不足向上取整: 官方 $0.06 · 平台 $0.06 附加费用: 官方 $0.01 · 平台 $0.01 × 参考图数量
质量 · 中等
文生图图像编辑图生图质量 · 中等分辨率 · 1k
计费数量: 图片数量 计算结果:所选数量的总价 基础费用: 官方 $0.00 · 平台 $0.00 默认数量: 1 图片数量 > 0 · 每增加 1 个单位计一次,不足向上取整: 官方 $0.06 · 平台 $0.06 附加费用: 官方 $0.01 · 平台 $0.01 × 参考图数量
质量 · 中等
文生图图像编辑图生图质量 · 中等分辨率 · 2k
计费数量: 图片数量 计算结果:所选数量的总价 基础费用: 官方 $0.00 · 平台 $0.00 默认数量: 1 图片数量 > 0 · 每增加 1 个单位计一次,不足向上取整: 官方 $0.08 · 平台 $0.08 附加费用: 官方 $0.01 · 平台 $0.01 × 参考图数量

One-click test

Sign in once and Web Agent keeps this model, prompt, and request preset for you.

Test grok-imagine-image-2.0 in Web Agent. Run the recommended text-to-image image request at /v1/images/generations, then show the request body, returned image or task status, and model-specific constraints.

API workbench

The default route for production. The code sample below uses this endpoint with the format you pick.

Image EditImage to ImageText to ImageTokenLab endpoint
POST/v1/images/generations
curl -X POST "https://api.tokenlab.sh/v1/images/generations" \
  -H "Authorization: Bearer sk-xxx" \
  -H "Content-Type: application/json" \
  -d '{
  "quality": "medium",
  "operation": "text-to-image",
  "resolution": "1k",
  "model": "grok-imagine-image-2.0",
  "prompt": "A minimalist product photo of matte black headphones on a soft blue background."
}'

Use cases

Best for

Text to Image

Producing product imagery, illustrations, and design variations

01

Product visuals

Make campaign images, catalog scenes, and design directions from a few prompts.

02

Iterative editing

Try edits and variations using the request shape this model already accepts.

03

Creative QA

Sanity-check prompt behavior, output count, and response mode before you ship.

04

Side-by-side test

Compare real response quality, latency, and price for production defaults.

Prompt examples

Generate a clean product shot of matte black headphones on a soft blue gradient.

Edit the source image into a premium ecommerce hero with natural shadows.

Give me three visual directions for a developer-tool launch banner.

FAQ

How much does Grok Imagine Image 2.0 cost?

On TokenLab, Grok Imagine Image 2.0 costs Formula Rules . The pricing table above shows the full breakdown. Rates depend on the billing unit, specification, and usage. Compare matching conditions in the model's detailed pricing; a single rate does not determine the total cost.

What is Grok Imagine Image 2.0 best for?

Grok Imagine Image 2.0 is a strong fit for Image Edit, Image to Image, Text to Image. You can call it through TokenLab with one API key.

How do I call the Grok Imagine Image 2.0 API?

Get a TokenLab API key, then send your request to https://api.tokenlab.sh/v1/images/generations. The API workbench above has a recommended endpoint and copy-ready code.

Which endpoint should Grok Imagine Image 2.0 use?

Use https://api.tokenlab.sh/v1/images/generations as the default for Grok Imagine Image 2.0. If a provider-native format is supported, the API workbench shows that endpoint too.

Can I test Grok Imagine Image 2.0 before integrating it?

Yes. Try in Web Agent opens a ready test for Grok Imagine Image 2.0 and keeps your prompt after sign-in, so you don’t lose context.

Which operations does Grok Imagine Image 2.0 support?

Grok Imagine Image 2.0 supports Image Edit, Image to Image, Text to Image. Pick an operation in the API workbench above to see the matching endpoint and code sample.

Related Models