← All models

Grok Imagine Image

xAI · Image

xAI Grok Imagine image model, generating high-quality images from text prompts. Billed per generation through getmodel's image group. Grok Imagine Image is available on GetModel via an OpenAI-compatible API, billed pay-as-you-go. Get one key and call it from any OpenAI SDK.

Text-to-image

Pricing

ItemPrice
Per generation$0.032

How to call

curl https://getmodel.ai/v1/chat/completions \
  -H "Authorization: Bearer $GETMODEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-imagine-image","messages":[{"role":"user","content":"Hello"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://getmodel.ai/v1", api_key="$GETMODEL_API_KEY")
resp = client.chat.completions.create(
    model="grok-imagine-image",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Details

ProviderxAI
TypeImage
Endpointsimage-generation
Available groupsDefault

FAQ

How much does the Grok Imagine Image API cost?

Grok Imagine Image on GetModel costs $0.032 / Per generation, billed pay-as-you-go with no subscription.

How do I call Grok Imagine Image via API?

Point any OpenAI-compatible client at https://getmodel.ai/v1 with your GetModel API key and set the model to "grok-imagine-image".

Can I use Grok Imagine Image together with other models?

Yes — one GetModel API key works for Grok Imagine Image and 30+ other models. Just change the model field.