APIMart
Grok Imagine Image Quality model icon
Image

Grok Imagine Image Quality

The Grok Imagine API is xAI's Grok image API for powerful image generation and editing. Create stunning photorealistic images from text prompts with grok-imagine-image-quality, or intelligently edit existing images with natural language using grok-imagine-image-quality.

Image GenerationImage EditingText to Image

Service Highlights

  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Input

74 / 8000

Output
Model preview

Grok Imagine Image Quality API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
grok-imagine-image-quality1K0.4Credits(~$0.04)/pic0.38Credits(~$0.038)/pic0.36Credits(~$0.036)/pic0.5Credits(~$0.05)/pic20%
2K0.56Credits(~$0.056)/pic0.532Credits(~$0.0532)/pic0.504Credits(~$0.0504)/pic0.7Credits(~$0.07)/pic20%
Reference image (each)0.08Credits(~$0.008)/pic0.076Credits(~$0.0076)/pic0.072Credits(~$0.0072)/pic0.1Credits(~$0.01)/pic20%

* Actual costs are subject to final output.

Grok Imagine API Key Features

Powerful capabilities for professional AI image generation and editing

Photorealistic Text-to-Image

Generate stunning photorealistic images from text prompts using grok-imagine-image-quality. Exceptional detail, accurate composition, and lifelike color handling for professional-quality outputs.

Natural Language Image Editing

Use grok-imagine-image-quality to intelligently modify existing images with text instructions. No masks required — just describe the changes and Grok Imagine handles the rest.

Expressive Style Control

Grok Imagine interprets creative prompts with nuance, enabling photorealistic portraits, stylized illustrations, concept art, and abstract visuals from the same simple API.

Simple Two-Parameter API

For text-to-image generation, the Grok Imagine API requires just model and prompt. Minimal setup, maximum flexibility — integrate image generation into your app in minutes.

Cost-Effective Pricing

Each model uses its own original price and actual discount shown in this page’s pricing details. APIMart's optimized infrastructure delivers reliable performance at competitive pay-as-you-go rates.

Enterprise Reliability

Redundant infrastructure with automatic failover. APIMart keeps your image generation pipeline running reliably at scale.

Global CDN Delivery

Generated images are delivered via APIMart's global CDN for fast, reliable access worldwide. Optimized for low-latency delivery across all regions.

Ultra-Fast Generation

Powered by xAI's high-performance inference engine, Grok Imagine delivers high-quality images in seconds — perfect for real-time applications and interactive workflows.

Grok Imagine Use Cases

Design & Branding

Create logos, mockups, and brand identity assets. Grok Imagine produces crisp, detailed visuals that match brand guidelines precisely.

Advertising & Marketing

Generate photorealistic product shots, lifestyle images, and campaign visuals with grok-imagine-image-quality for professional marketing materials.

Digital Art & Illustration

Bring creative concepts to life with Grok Imagine's nuanced prompt interpretation. From photorealism to stylized art, the model adapts to your vision.

Image Editing & Retouching

Use grok-imagine-image-quality to naturally modify existing images — change backgrounds, remove objects, adjust lighting, or alter styles with text instructions.

UI/UX & Web Mockups

Generate interface designs, splash screens, and hero images for web and mobile projects. Fast iteration keeps creative workflows moving.

App & Platform Integration

Embed Grok Imagine into apps and platforms to enable dynamic image generation. The simple two-parameter API makes integration fast for any developer.

Getting Started with Grok Imagine

Follow these simple steps to start generating images with Grok Imagine

1

Sign up

Create your free APIMart account to access Grok Imagine API.

2

Add funds

Top up your account balance to use Grok Imagine.

3

Generate your API key

Create an API key for Grok Imagine in your dashboard.

Grok Imagine Customer Stories

“Grok Imagine delivers photorealistic quality that honestly surprised me. The color accuracy and texture detail are exceptional — we use it daily for product campaign visuals.”

Alex Chen

Creative Director at DesignWorks

“The edit model is a game-changer. I just describe what needs changing in plain text and grok-imagine-1.5-edit-apimart handles it cleanly. No more fiddling with masks in Photoshop.”

Sarah Mitchell

UI/UX Designer

“The prompt interpretation is incredibly nuanced. Grok Imagine picks up on subtle stylistic cues that other models miss entirely. My clients are constantly asking how I generate these so fast.”

Marcus Weber

Freelance Illustrator

“APIMart's pricing for Grok Imagine is unbeatable. We generate hundreds of product visuals per week and the cost is a fraction of what we paid before.”

Emma Rodriguez

Marketing Manager

“The two-parameter API is refreshingly simple. I integrated Grok Imagine into our platform in under an hour. The reliability via APIMart is rock solid.”

James Liu

Full-Stack Developer

“We switched to Grok Imagine for all our campaign concepting. The speed-to-quality ratio is the best we've found, and the APIMart pricing makes scaling completely viable.”

Sophie Anderson

Art Director at AdVision

Grok Imagine API FAQ

What is the difference between grok-imagine-image and grok-imagine-image-quality?

grok-imagine-image and grok-imagine-image-quality are separate official model IDs, with their own pages and pricing. grok-imagine-image accepts up to 5 reference images; grok-imagine-image-quality accepts up to 3. Both support 1–10 output images at 1k or 2k.

What parameters does the Grok Imagine API support?

grok-imagine-image-quality uses model, prompt and n (1–10 outputs, default 1), with optional nsfw_check. It uses aspect_ratio (auto or 13 preset ratios) and resolution (1k/2k), and accepts 0–3 reference images through image_urls. It does not accept a quality parameter.

Can Grok Imagine edit existing images?

Yes. Use grok-imagine-image-quality with an editing prompt and 1–3 HTTP(S) reference images in image_urls. The model applies your instructions to the references without requiring masks.

How much does the Grok Imagine API cost on APIMart?

This page’s model uses its own current per-output-image price, calculated from its original price and actual discount. Output fees scale with n. Official reference images have their own price and discount, charged once per reference per request without multiplying by n. See the pricing details for current rates.

What image quality and resolution does Grok Imagine produce?

grok-imagine-image-quality uses aspect_ratio for composition and resolution for 1k/2k output. It does not accept a quality parameter.

How do I get started with the Grok Imagine API, and where are the docs?

Create an APIMart account, add credits, and generate an API key. Then send a POST request to /v1/images/generations with your model and prompt. The Grok image API reference in our documentation (docs.apimart.ai) has complete code examples in Python, JavaScript, and more.

Is the Grok Imagine API free?

No, there is no free quota for the Grok Imagine API. It is pay-as-you-go: you only pay for successful requests, and every price already comes with 20% off. Platinum and Diamond members save up to 28%.

How do I get a Grok Imagine API key?

Sign up for APIMart, open the API Keys page in your dashboard and create a key. The same key calls the xAI Grok Imagine API and every other model on the platform, with pay-as-you-go billing and no subscription.

Is there a discount on the Grok Imagine API?

Yes. The Grok Imagine API is billed per generated image. The pricing table on this page lists every specification and shows the Gold member price, 20% off. Platinum and Diamond members save even more, up to 28%. You only pay for successful requests.

How can I contact support for help?

You can reach us via the live chat in the bottom-right corner, email us at [email protected], or join our Discord community. Our team will get back to you as soon as possible.