---
title: Grok Imagine Image 2.0 Text To Image API | ModelsLab
description: Generate 2K images from text with Grok Imagine Image 2.0 — sharper detail, accurate text rendering, and five aspect ratios from one REST endpoint.
url: https://modelslab.com/models/xai/grok-imagine-image-2-text-to-image.md
canonical: https://modelslab.com/models/xai/grok-imagine-image-2-text-to-image
type: product
component: Playground/Endpoint/Index
generated_at: 2026-08-12T11:32:04.464449Z
---

[![Grok Imagine Image 2.0 Text To Image thumbnail](https://assets.modelslab.ai/api-logos/01KMSWGVZBFDSH0VHDHYBM8GM4.jpg)](https://modelslab.com/models/xai)Grok Imagine Image 2.0 Text To Image
---

[by xAI](https://modelslab.com/models/xai)Grok Imagine Image 2.0 turns text prompts into 2K images with stronger prompt adherence, cleaner in-image text, and sharper detail than the original Grok Imagine. Five aspect ratios, 1K or 2K output, one ModelsLab endpoint.

`grok-imagine-image-2.0-t2i`

Closed Source Model [LLMs.txt](https://modelslab.com/models/x-ai/grok-imagine-image-2.0-t2i/llms.txt)

[API Playground](/models/xai/grok-imagine-image-2-text-to-image)API DocumentationVibe CodeRelated ModelsDeveloper SupportModel Specs

Input
---

Prompt 

a dramatic scene with a large, menacing dragon and a cloaked figure. The dragon, with its intricate scales and sharp horns, dominates the background, its wings partially spread and its mouth slightly open, revealing sharp teeth. Its scales are a mix of dark red and gray, adding to its intimidating presence. In the foreground, a person stands with their back to the viewer, wearing a detailed, medieval-style cloak and armor. The cloak is deep red with intricate patterns, and the armor is metallic, with a weathered appearance. The setting is a rugged, mountainous landscape with snow-covered peaks and a cloudy sky, enhancing the epic and mystical atmosphere of the scene.

Aspect ratio 

Resolution 

Login to Generate

Per image generation **1K** will cost : **$0.072** and **2K** will cost : **$0.096**

Output
---

Idle

Unknown content type

Looking for something different?
---

Models that trade off differently against the one you are viewing

### Better quality

Newer flagship models that generally produce stronger results.

[![Flux Dev](https://images.modelslab.sh/?Image=https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/INUhOmK2vRypASxSSePFMDbbUqKXQs-metaMC0yNWU4MGE5ZC03Yjc4LTRmYWQtODI4Zi0xNTI4ZmZjOThlNzMuanBn-.jpg)Popular](https://modelslab.com/models/modelslab/flux)[ModelsLab](https://modelslab.com/models/modelslab)

 [Flux Dev

Open Source Model](https://modelslab.com/models/modelslab/flux)

[![Gemini 2.5 Flash (nano banana)](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/2fda7bb1-ecb1-4ab4-a15b-6f2ad7ba715d.webp)](https://modelslab.com/models/google/nano-banana)[Google](https://modelslab.com/models/google)

 [Gemini 2.5 Flash (nano banana)

Closed Source Model](https://modelslab.com/models/google/nano-banana)

[![Imagen 4](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/6570e8e8-45e4-4dd8-a636-0fd599ad306b.webp)](https://modelslab.com/models/google/imagen-4)[Google](https://modelslab.com/models/google)

 [Imagen 4

Closed Source Model](https://modelslab.com/models/google/imagen-4)

[![Nano Banana Pro](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/5ee72f26-dfa9-4d26-a546-7d496ef71be7.webp)](https://modelslab.com/models/google/nano-banana-pro)[Google](https://modelslab.com/models/google)

 [Nano Banana Pro

Closed Source Model](https://modelslab.com/models/google/nano-banana-pro)

[![Seedream 5.0 Lite Image Edit](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/70af0fa2-f20f-4a47-b8c3-71f66f6252a0.webp)](https://modelslab.com/models/byteplus/seedream-5-lite-i2i)[BytePlus](https://modelslab.com/models/byteplus)

 [Seedream 5.0 Lite Image Edit

Closed Source Model](https://modelslab.com/models/byteplus/seedream-5-lite-i2i)

[![Imagen 3.0](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/8af88782-3a7a-4d95-9e6f-38c8a7b24b2a.webp)](https://modelslab.com/models/google/imagen-3)[Google](https://modelslab.com/models/google)

 [Imagen 3.0

Closed Source Model](https://modelslab.com/models/google/imagen-3)

### Faster turnaround

Built for speed when you are iterating on a prompt.

[![Grok Imagine Text To Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/77fe7302-eee2-45bd-baae-45d2a822b52f.webp)](https://modelslab.com/models/xai/grok-imagine-image-t2i)[xAI](https://modelslab.com/models/xai)

 [Grok Imagine Text To Image](https://modelslab.com/models/xai/grok-imagine-image-t2i)

[![Wan 2.7 Image Edit](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/eb0785a4-e281-44c1-9c1e-7a9c6a07d6e2.webp)](https://modelslab.com/models/alibaba_cloud/wan-2.7-i2i)[Alibaba](https://modelslab.com/models/alibaba_cloud)

 [Wan 2.7 Image Edit](https://modelslab.com/models/alibaba_cloud/wan-2.7-i2i)

[![Wan 2.7 Text To Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/aba76d25-b19c-4fee-9123-4cbb29e71646.webp)](https://modelslab.com/models/alibaba_cloud/wan-2.7-t2i)[Alibaba](https://modelslab.com/models/alibaba_cloud)

 [Wan 2.7 Text To Image](https://modelslab.com/models/alibaba_cloud/wan-2.7-t2i)

### Lower cost per run

Open-source models we host, unlimited on the $149/month plan.

[![Flux_Schnell](https://images.modelslab.sh/?Image=https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/IfZdpaGRLHTDRJCGxIqH4fNjeKgpLs-metaMC1lNThiNDFhMi1jZTBlLTQ0NjEtOTYyZi0zMzQzNjhhNDkyZWIuanBn-.jpg)Popular](https://modelslab.com/models/modelslab/fluxschnell)[ModelsLab](https://modelslab.com/models/modelslab)

 [Flux\_Schnell](https://modelslab.com/models/modelslab/fluxschnell)

[![Realistic Vision V6.0 B1 - V5.0 (VAE)](https://images.modelslab.sh/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/81b08d96-8a6e-4c3e-a3c3-8e4aadbfaa71/width=640/1713726.jpeg)Popular](https://modelslab.com/models/modelslab/realisticvisionv60b1-v50vae)[ModelsLab](https://modelslab.com/models/modelslab)

 [Realistic Vision V6.0 B1 - V5.0 (VAE)](https://modelslab.com/models/modelslab/realisticvisionv60b1-v50vae)

[![DreamShaper - 7-inpainting](https://images.modelslab.sh/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/1ed02b7d-cc30-4ce5-b219-81072ad5a3f5/width=832/1402662.jpeg)Popular](https://modelslab.com/models/modelslab/dreamshaper-7inpainting)[ModelsLab](https://modelslab.com/models/modelslab)

 [DreamShaper - 7-inpainting](https://modelslab.com/models/modelslab/dreamshaper-7inpainting)

[![majicMIX realistic - v7](https://images.modelslab.sh/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/4fd40408-f963-4d2d-8caa-8d3f176139cf/original=true/2805533.jpeg)Popular](https://modelslab.com/models/modelslab/majicmix-realistic-v7)[ModelsLab](https://modelslab.com/models/modelslab)

 [majicMIX realistic - v7](https://modelslab.com/models/modelslab/majicmix-realistic-v7)

[![majicMIX realistic 麦橘写实 -V7 inpaint](https://images.modelslab.sh/?Image=https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/8590f685-1020-495f-b004-b1f1e22b394b/width=715/3572813.jpeg)Popular](https://modelslab.com/models/modelslab/majicmixrealistic-v7inpainting)[ModelsLab](https://modelslab.com/models/modelslab)

 [majicMIX realistic 麦橘写实 -V7 inpaint](https://modelslab.com/models/modelslab/majicmixrealistic-v7inpainting)

Related Models
---

Discover similar models you might be interested in

 [View all Image Models](https://modelslab.com/models?feature=imagen)

[![Qwen Image 3.0 Text To Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/c74036a0-1fe8-4b09-82ba-b8e0f61d09b0.webp)](https://modelslab.com/models/alibaba_cloud/qwen-image-3.0-pro-t2i)[Alibaba Cloud](https://modelslab.com/models/alibaba_cloud)

 [Qwen Image 3.0 Text To Image](https://modelslab.com/models/alibaba_cloud/qwen-image-3.0-pro-t2i)

[![Recraft V4.1 Text To Image ](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/0eade021-e398-4126-8e0a-b1ca6f788a23.webp)](https://modelslab.com/models/recraft/recraft-v4.1-t2i)[Recraft](https://modelslab.com/models/recraft)

 [Recraft V4.1 Text To Image](https://modelslab.com/models/recraft/recraft-v4.1-t2i)

[![Qwen Image 2.0 Pro Image Edit](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/28d71f2b-b983-4159-a0fc-011020d73222.webp)](https://modelslab.com/models/alibaba_cloud/qwen-image-2.0-pro-i2i)[Alibaba Cloud](https://modelslab.com/models/alibaba_cloud)

 [Qwen Image 2.0 Pro Image Edit](https://modelslab.com/models/alibaba_cloud/qwen-image-2.0-pro-i2i)

[![Qwen Image 2.0 Pro Text To Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/816d5dd6-dc85-4968-b31a-22127a65971d.webp)](https://modelslab.com/models/alibaba_cloud/qwen-image-2.0-pro-t2i)[Alibaba Cloud](https://modelslab.com/models/alibaba_cloud)

 [Qwen Image 2.0 Pro Text To Image](https://modelslab.com/models/alibaba_cloud/qwen-image-2.0-pro-t2i)

[![Seedream 4.0 Text to Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/266221eb-e1d3-43c6-a082-35068ec1594a.webp)](https://modelslab.com/models/byteplus/seedream-4)[BytePlus](https://modelslab.com/models/byteplus)

 [Seedream 4.0 Text to Image](https://modelslab.com/models/byteplus/seedream-4)

[![Gen4 Text to Image](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/b656bfe5-c402-456b-9980-f7447198887d.webp)](https://modelslab.com/models/runway_ml/gen4_image)[Runway ML](https://modelslab.com/models/runway_ml)

 [Gen4 Text to Image](https://modelslab.com/models/runway_ml/gen4_image)

View all 17 related models

About Grok Imagine Image 2.0 Text To Image
---

Grok Imagine Image 2.0 Text To Image is a text to image AI model by xAI available on ModelsLab. Access Grok Imagine Image 2.0 Text To Image through our API with pay-per-use pricing and no minimum commitments.

### Technical Specifications

Model IDgrok-imagine-image-2.0-t2i

ProviderxAI

CategoryImage Models

TaskText to Image

Price$0.072 per generation, scaled by your settings

AddedAugust 12, 2026

### Key Features

- High-resolution AI image generation from text prompts
- Negative prompt support for precise control
- Multiple output formats and aspect ratios
- Adjustable inference steps and guidance scale
- Batch generation support via API

### Quick Start

Integrate Grok Imagine Image 2.0 Text To Image into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/images/text-to-image"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "grok-imagine-image-2.0-t2i",
        "prompt": "your prompt here",
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

Grok Imagine Image 2.0 Text To Image API costs $0.072 per generation, scaled by your settings. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- Product photography and e-commerce visuals
- Marketing and social media content creation
- Concept art and design prototyping
- Custom illustrations and artwork

[Browse Image Models](https://modelslab.com/models?feature=imagen) [More from xAI](https://modelslab.com/models/xai) [View Pricing](https://modelslab.com/pricing)

Grok Imagine Image 2.0 Text To Image FAQ
---

### What is Grok Imagine Image 2.0 Text To Image?

Grok Imagine Image 2.0 Text To Image is a text to image AI model by xAI available on ModelsLab. Access it through our API with pay-per-use pricing and no minimum commitments.

### How do I use the Grok Imagine Image 2.0 Text To Image API?

You can integrate Grok Imagine Image 2.0 Text To Image into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "grok-imagine-image-2.0-t2i" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Grok Imagine Image 2.0 Text To Image cost?

Grok Imagine Image 2.0 Text To Image costs $0.072 per generation, scaled by your settings. ModelsLab plans start at $21/month (Basic), and the $149/month Open Source plan includes unlimited generation on open-source models.

### What is the Grok Imagine Image 2.0 Text To Image model ID?

The model ID for Grok Imagine Image 2.0 Text To Image is "grok-imagine-image-2.0-t2i". Use this ID in your API requests to specify this model.

### Do I need a paid plan to use Grok Imagine Image 2.0 Text To Image?

Yes. ModelsLab is subscription-based with no free tier — plans start at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generation across open-source models; premium third-party models are billed per call from your wallet.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-08-12*