Grok Imagine Image 2.0 API
Grok Imagine Image 2.0 is an image generation model by xAI. On Evrona you call it with the same API key and balance as every other model in the catalog. Requests go to the OpenAI-compatible /v1/images/generations.
- Model ID
x-ai/grok-imagine-image-2.0- Developer
- xAI
- Type
- Picture
Grok Imagine Image 2.0 pricing
| Billed for | Price |
|---|---|
| Generation, per unit | $0.06 |
Accounting inside the service is in USD; EUR prices are recalculated at the current rate and may change.
Grok Imagine Image 2.0 request example
Use https://evrona.ru/v1 as the base URL and pass x-ai/grok-imagine-image-2.0 in the model field. You create the key in your account after signing up.
curl request
curl
curl https://evrona.ru/v1/images/generations \
-H "Authorization: Bearer ev-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "x-ai/grok-imagine-image-2.0",
"prompt": "A lighthouse on a rocky shore at sunset, watercolor",
"n": 1
}'Python with the official OpenAI SDK
Python
from openai import OpenAI
client = OpenAI(
base_url="https://evrona.ru/v1",
api_key="ev-YOUR_KEY",
)
image = client.images.generate(
model="x-ai/grok-imagine-image-2.0",
prompt="A lighthouse on a rocky shore at sunset, watercolor",
n=1,
)
print(image.data[0])More models by xAI
Start using Grok Imagine Image 2.0 with Evrona
Sign up, top up your balance and create a key. The same key works for Grok Imagine Image 2.0 and every other model in the catalog.