---
title: Grok Imagine Text To Image API | Text to Image | ModelsLab
description: Fast AI image generator with 2K resolution, 7 aspect ratios, multilingual prompts, text rendering, and commercial license for creators and businesses.
url: https://modelslab.com/models/xai/grok-imagine-text-to-image.md
canonical: https://modelslab.com/models/xai/grok-imagine-text-to-image.md
type: product
component: Playground/Endpoint/Index
generated_at: 2026-04-16T06:16:34.210353Z
---

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

[by Xai](https://modelslab.com/models/xai)Fast AI image generator with 2K resolution, 7 aspect ratios, multilingual prompts, text rendering, and commercial license for creators and businesses.

`grok-imagine-image-t2i`

Closed Source Model [LLMs.txt](https://modelslab.com/models/xai/grok-imagine-image-t2i/llms.txt) [Learn more](https://modelslab.com/grok-imagine-text-to-image)

[API Playground](/models/xai/grok-imagine-text-to-image) [API Documentation](/models/xai/grok-imagine-text-to-image/api)Vibe 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 

Add FundsLogin to Generate

Your request will cost **$0.024** per image

Output
---

Idle

Unknown content type

Related Models
---

Discover similar models you might be interested in

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

[![Out Painting](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/58f8b236-530f-43a5-b5c4-136365516e7f.webp)](https://modelslab.com/models/modelslab/outpainting)[ModelsLab](https://modelslab.com/models/modelslab)

 [Out Painting

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

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

 [Seedream 4.0 Text to Image

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

[![Ultra Resolution](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/3ff3733f-ef3b-4b2c-a939-45c0ed3f9dca.webp)](https://modelslab.com/models/modelslab/ultra_resolution)[ModelsLab](https://modelslab.com/models/modelslab)

 [Ultra Resolution

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

[![Imagen 4 Ultra](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/fa0f0f0c-14a1-487d-9247-b17f150bbebb.webp)](https://modelslab.com/models/google/imagen-4.0-ultra)[Google](https://modelslab.com/models/google)

 [Imagen 4 Ultra

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

[![Gen4 Image turbo](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/fce12230-39c7-461e-b737-3cc03b243f98.webp)](https://modelslab.com/models/runway_ml/gen4_image_turbo)[Runway ML](https://modelslab.com/models/runway_ml)

 [Gen4 Image turbo

Closed Source Model](https://modelslab.com/models/runway_ml/gen4_image_turbo)

[![Imagen 3 Generate 001](https://images.stablediffusionapi.com/?Image=https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/us5gUqiCuyEpVMCJMlHJgFa7aaonYP-metaaW1hZ2VuLTMtZ2VuZXJhdGUtMDAxWzFdLndlYnA=-.webp)](https://modelslab.com/models/google/imagen-3.0-generate-001)[Google](https://modelslab.com/models/google)

 [Imagen 3 Generate 001

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

[![Seedream 4.0 Image to image](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/d050da31-b346-4c6c-b087-20fdc87d17b7.webp)](https://modelslab.com/models/byteplus/seedream-4.0-i2i)[Bytedance](https://modelslab.com/models/byteplus)

 [Seedream 4.0 Image to image

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

[![Flux Headshot](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/4100d418-16be-409e-b4eb-306c6dd1c8e2.webp)](https://modelslab.com/models/modelslab/flux_headshot)[ModelsLab](https://modelslab.com/models/modelslab)

 [Flux Headshot

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

[![Imagen 3.0](https://images.stablediffusionapi.com/?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)

[![Seedream Text to Image](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/5a01da64-7caf-4fc5-bad1-3588c5e0e160.webp)](https://modelslab.com/models/byteplus/seedream-t2i)[Bytedance](https://modelslab.com/models/byteplus)

 [Seedream Text to Image

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

[![Imagen 4](https://images.stablediffusionapi.com/?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)

[![ Object Remover](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/4d0c2c20-80a3-4441-97d4-353f39f86f52.webp)](https://modelslab.com/models/modelslab/object_remover)[ModelsLab](https://modelslab.com/models/modelslab)

 [ Object Remover

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

[![Z Image Turbo Image To Image](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/e72edae5-94d7-4a03-a23d-1c633efd647f.webp)](https://modelslab.com/models/modelslab/z-image-turbo)[ModelsLab](https://modelslab.com/models/modelslab)

 [Z Image Turbo Image To Image

Open Source Model](https://modelslab.com/models/modelslab/z-image-turbo)

[![Grok Imagine Image Edit](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/b94d1192-9d5b-4dd7-be5a-ddc9c10b8a0e.webp)](https://modelslab.com/models/xai/grok-imagine-image-i2i)[xAI](https://modelslab.com/models/xai)

 [Grok Imagine Image Edit

Closed Source Model](https://modelslab.com/models/xai/grok-imagine-image-i2i)

[![Flux 2 Max Text To Image](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/ca67c957-44a1-4644-aa07-e5db4db8e2be.png)](https://modelslab.com/models/bfl/flux-2-max)[Black Forest Labs](https://modelslab.com/models/bfl)

 [Flux 2 Max Text To Image

Closed Source Model](https://modelslab.com/models/bfl/flux-2-max)

[![SDXL Headshot](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/9f56a804-6b85-4bbc-92e3-eeb3454c24e0.webp)](https://modelslab.com/models/modelslab/sdxl_headshot)[ModelsLab](https://modelslab.com/models/modelslab)

 [SDXL Headshot

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

[![Qwen](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/4fb32c7b-02a8-469f-bb10-04aaf1238991.webp)](https://modelslab.com/models/modelslab/qwen)[ModelsLab](https://modelslab.com/models/modelslab)

 [Qwen

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

[![Flux 2 Pro Image Editing](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/42d25fcd-d558-4bcb-a46a-a678f3f4c1b1.png)](https://modelslab.com/models/bfl/flux-2-pro)[Black Forest Labs](https://modelslab.com/models/bfl)

 [Flux 2 Pro Image Editing

Closed Source Model](https://modelslab.com/models/bfl/flux-2-pro)

Open Source Alternatives
---

Explore open-source models that offer similar capabilities with full transparency and flexibility

 [View all open source models](https://modelslab.com/models?feature=image&provider=open-source-models)

[![Qwen](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/4fb32c7b-02a8-469f-bb10-04aaf1238991.webp)](https://modelslab.com/models/modelslab/qwen)[ModelsLab](https://modelslab.com/models/modelslab)

 [Qwen

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

[![Flux](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/b445e176-1565-48ec-b0f4-816bd42e3ce5.webp)](https://modelslab.com/models/modelslab/flux)[ModelsLab](https://modelslab.com/models/modelslab)

 [Flux

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

[![Z Image Turbo Image To Image](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/e72edae5-94d7-4a03-a23d-1c633efd647f.webp)](https://modelslab.com/models/modelslab/z-image-turbo)[ModelsLab](https://modelslab.com/models/modelslab)

 [Z Image Turbo Image To Image

Open Source Model](https://modelslab.com/models/modelslab/z-image-turbo)

[![Ultra Resolution](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/3ff3733f-ef3b-4b2c-a939-45c0ed3f9dca.webp)](https://modelslab.com/models/modelslab/ultra_resolution)[ModelsLab](https://modelslab.com/models/modelslab)

 [Ultra Resolution

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

[![Flux Headshot](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/4100d418-16be-409e-b4eb-306c6dd1c8e2.webp)](https://modelslab.com/models/modelslab/flux_headshot)[ModelsLab](https://modelslab.com/models/modelslab)

 [Flux Headshot

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

[![Out Painting](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/58f8b236-530f-43a5-b5c4-136365516e7f.webp)](https://modelslab.com/models/modelslab/outpainting)[ModelsLab](https://modelslab.com/models/modelslab)

 [Out Painting

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

About Grok Imagine Text To Image
---

Fast AI image generator with 2K resolution, 7 aspect ratios, multilingual prompts, text rendering, and commercial license for creators and businesses.

### Technical Specifications

Model IDgrok-imagine-image-t2iProviderXaiCategoryImage ModelsTaskText to ImagePrice$0.024000 per generationAddedFebruary 3, 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 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-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>
```

View the [full API documentation](https://modelslab.com/models/xai/grok-imagine-image-t2i/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Grok Imagine Text To Image API costs $0.024000 per generation. 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

[Learn more about Grok Imagine Text To Image](https://modelslab.com/grok-imagine-text-to-image) [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 Text To Image FAQ
---

### What is Grok Imagine Text To Image?

Fast AI image generator with 2K resolution, 7 aspect ratios, multilingual prompts, text rendering, and commercial license for creators and businesses.

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

You can integrate Grok Imagine 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-t2i" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

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

Grok Imagine Text To Image costs $0.024000 per generation. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

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

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

### Does Grok Imagine Text To Image have a free tier?

Yes, ModelsLab offers a free tier that lets you try Grok Imagine Text To Image and other AI models. Sign up to get free API credits and start building immediately.

---

*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-04-16*