Unlimited Open Source Models

Get Plan
Skip to main content
Grok Imagine Text To Image thumbnail

Grok Imagine Text To Image

by 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 ModelLLMs.txt
API Playground

Input

Your request will cost $0.024 per image

Looking for something different?

Models that trade off differently against the one you are viewing

Related Models

Discover similar models you might be interested in

View all Image Models

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.

Overview: Grok Imagine API

Grok Imagine Text To Image facts

Provider
xAI
Price
$0.024 per image
Added to ModelsLab
February 3, 2026
Model ID
grok-imagine-image-t2i

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 to get started.

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": "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.",
"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}")

Pricing

Grok Imagine Text To Image API costs $0.024 per generation. Plans start at $21/month, and open-source models are unlimited on the $149/month plan. View pricing plans

Use Cases

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

Grok Imagine Text To Image FAQ

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

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.

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

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.

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.