APIMart
Grok Imagine Image Quality model icon
Image

Grok Imagine Image Quality API

The Grok Imagine Image Quality API on APIMart gives you xAI's grok-imagine-image-quality model: text to image and natural-language editing with up to three reference images, 1K or 2K output, auto plus 13 aspect ratios and 1–10 images per request.

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 Image Quality API Features

What grok-imagine-image-quality supports on APIMart, based on APIMart's API documentation

Text to Image

Send a prompt of up to 8,000 characters without image_urls to generate images from text alone.

Editing with Up to 3 Reference Images

Put one image in image_urls to edit it with a plain-language instruction, or two or three to combine references. No masks are needed.

1K or 2K Output

Set resolution to 1k or 2k; the default is 1k. On APIMart, 2K output costs more per image than 1K.

Auto plus 13 Aspect Ratios

aspect_ratio accepts auto, 1:1, 3:4, 4:3, 9:16, 16:9, 2:3, 3:2, 9:19.5, 19.5:9, 9:20, 20:9, 1:2, 2:1. The default is auto.

1–10 Images per Request

Set n from 1 to 10 to get several variations in one task. Each output image is billed.

Below xAI's List Price

xAI lists grok-imagine-image-quality at $0.05 per image. On APIMart, Gold members pay $0.04 at 1K and $0.056 at 2K, plus $0.008 per reference image (October 2026).

Asynchronous Tasks, 72-Hour Results

Each request returns a task ID; poll the task endpoint until the status is completed or failed. Results are kept for 72 hours, so save the images promptly.

Optional Moderation

Set nsfw_check to true to review the prompt and input images before the task is submitted. Leave it off to skip the extra check and its latency.

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. Only model and prompt are required, and the API example below has copy-ready cURL and Python code.

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 Image Quality API Example: Text to Image and Image Editing

Call grok-imagine-image-quality on APIMart with one POST request. Generation is asynchronous: submit a task, then poll the task endpoint for the image URLs. This code sends no X-APIMart-Response-Version header, so the submit response is HTTP 200 with data[0].task_id; the docs example sends that header and gets HTTP 202 with data.id.

  1. 1

    Authenticate Grok Imagine Image Quality API requests

    Save the key you created above in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key> on every request.

  2. 2

    Submit a grok-imagine-image-quality task

    POST /v1/images/generations with model grok-imagine-image-quality, your prompt, aspect_ratio, resolution and n. Add image_urls to edit an image, and do not send a quality field. The task ID is in data[0].task_id.

  3. 3

    Get the Grok Imagine Image Quality result

    Poll GET /v1/tasks/{task_id} until status is completed, then read the image URL from data.result.images[0].url[0]. Results are kept for 72 hours. Failed tasks are not charged.

    See the Grok Imagine Image Quality API reference for every parameter and response field.

POST /v1/images/generations
curl -X POST https://api.apimart.ai/v1/images/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-image-quality",
    "prompt": "Minimal product photography of a white ceramic cup on a stone surface, soft window light, clean background",
    "n": 1,
    "aspect_ratio": "1:1",
    "resolution": "2k"
  }'

Grok Imagine Image Quality API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: grok-imagine-image-qualitygrok-imagine-image-quality. The same model handles text to image and editing.
promptstringRequiredDefault: —Image description, or the edit instruction when image_urls is set. Up to 8,000 characters.
aspect_ratiostringOptionalDefault: autoAspect ratio: auto, 1:1, 3:4, 4:3, 9:16, 16:9, 2:3, 3:2, 9:19.5, 19.5:9, 9:20, 20:9, 1:2, 2:1.
resolutionstringOptionalDefault: 1kOutput resolution: 1k or 2k. 2K costs more per image than 1K.
nintegerOptionalDefault: 1Number of images, 1–10.
image_urlsarrayOptionalDefault: —Reference images for editing, 1–3 public HTTP(S) URLs. Omit the field for text to image.
nsfw_checkbooleanOptionalDefault: falseSet true to moderate the prompt and input images before the task is submitted.

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 Image Quality API FAQ

Pricing, parameters, model choice and results for grok-imagine-image-quality

What is the Grok Imagine Image Quality API?

It is API access to grok-imagine-image-quality, an image model in xAI's Grok Imagine API. On APIMart it supports text to image and editing with up to three reference images, 1K or 2K output and 1–10 images per request.

How much does the Grok Imagine Image Quality API cost?

xAI lists grok-imagine-image-quality at $0.05 per image. In October 2026, APIMart Gold members paid $0.04 per image at 1K and $0.056 at 2K, plus $0.008 per reference image; Platinum and Diamond members save up to 28%. Failed tasks are not charged. The pricing table shows live rates.

grok-imagine-image-quality vs grok-imagine-image: what is the difference?

Both use the same parameters, 1K or 2K output and up to 10 images per request. grok-imagine-image-quality accepts up to three reference images and costs more; grok-imagine-image accepts up to five and costs less (xAI lists it at $0.02 per image). Each has its own page and pricing on APIMart.

How does it compare with Grok Imagine 2.0?

Grok Imagine 2.0 is xAI's newer image model, released on August 7, 2026, with low or medium quality settings. On APIMart its official model starts at $0.032 per 1K image, and an Ext model costs $0.015 per image. Compare both on the Grok Imagine 2.0 page before you choose.

What parameters does grok-imagine-image-quality accept?

model and prompt are required; the prompt can be up to 8,000 characters. Optional fields are n (1–10, default 1), aspect_ratio (default auto), resolution (1k or 2k, default 1k), image_urls (1–3 images) and nsfw_check. Despite the model name, there is no quality field; do not send one.

Can it edit images?

Yes. Add one public HTTP(S) image URL to image_urls with an editing instruction, or up to three URLs to combine references. Omit image_urls for text to image. Upload local files with POST /v1/uploads/images first.

Which aspect ratios and resolutions are supported?

aspect_ratio accepts auto, 1:1, 3:4, 4:3, 9:16, 16:9, 2:3, 3:2, 9:19.5, 19.5:9, 9:20, 20:9, 1:2, 2:1, with auto as the default. resolution accepts 1k or 2k; 2K costs more per image than 1K.

How many images can one request generate, and how are they billed?

Set n from 1 to 10. Each output image is billed at the price of the selected resolution. Reference images are billed once per input per request; they are not multiplied by n.

How do I get the generated images?

Send the request to POST /v1/images/generations, save the task ID and poll GET /v1/tasks/{task_id} until the status is completed. Read the image URLs from the result. Results are kept for 72 hours, so download them to your own storage.

How do I get a Grok Imagine Image Quality API key?

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

Is the Grok Imagine Image Quality API free?

No. There is no free quota on APIMart. Billing is pay-as-you-go per image: failed tasks are not charged, and members get 20% or more off every price.

Is my data used to train AI models?

No. Under APIMart's Terms of Service, your prompts and images are not used to train AI models or shared with third parties except as needed to provide the service.