xAI: grok-imagine-image
grok-imagine-image- Price
- From $0.02
- Modalities
- Image
Getting started
Create API key
Create a key in Console, then use it with every model on the platform.
Send your first request
Copy the example for your language and run it against the endpoint.
Image editingImage to imageText to imageTokenLab endpointPOST/v1/images/generationscurl -X POST "https://api.tokenlab.sh/v1/images/generations" \ -H "Authorization: Bearer sk-xxx" \ -H "Content-Type: application/json" \ -d '{ "operation": "text-to-image", "model": "grok-imagine-image", "prompt": "A minimalist product photo of matte black headphones on a soft blue background." }'
Pricing
Official price is the model maker's public baseline. TokenLab price is what you pay for this model on TokenLab.
Image editing / Image to image · Image input
Per request- Official price
- $0.002/image
- TokenLab price
- $0.002/image
- Discount
- -
Text to image / Image editing / Image to image
Per request- Official price
- $0.02
- TokenLab price
- $0.02
- Discount
- -
| Official pricePer request | TokenLab pricePer request | Discount | |
|---|---|---|---|
| Image editing / Image to image · Image input | $0.002/image | $0.002/image | - |
| Text to image / Image editing / Image to image | $0.02 | $0.02 | - |
Usage & activity
Success rate is the share of requests that completed. Latency is how long a full response takes; P95 means 95% of requests finished within that time.
Usage & availability
Last 24 hoursNo data yet
Data is based on aggregate user requests, excluding status checks.
Open in Console
Open grok-imagine-image in Console with a prompt ready to edit or send.
Help me create an image with grok-imagine-image using text-to-image at /v1/images/generations. Show the result, cost, and any limits I should know.
Use cases
Best forText to Image
Producing product imagery, illustrations, and design variations
Product visuals
Make campaign images, catalog scenes, and design directions from a few prompts.
Iterative editing
Create edits and variations from an existing image.
Creative testing
Compare prompt results, output counts, and response formats.
Side-by-side test
Compare response quality, latency, and price side by side.
Prompt examples
Generate a clean product shot of matte black headphones on a soft blue gradient.
Edit the source image into a premium ecommerce hero with natural shadows.
Give me three visual directions for a developer-tool launch banner.
FAQ
How much does grok-imagine-image cost?
On TokenLab, grok-imagine-image costs $0.02 Per request. The pricing table above shows the full breakdown. Rates depend on the billing unit, specification, and usage. Compare matching conditions in the model's detailed pricing; a single rate does not determine the total cost.
What is grok-imagine-image best for?
grok-imagine-image supports Image to Image, Text to Image, Image Edit. You can open it directly in Create.
How do I test grok-imagine-image?
Open grok-imagine-image in Create. A sample for /v1/images/generations will be ready to try.
Which endpoint should grok-imagine-image use?
Use https://api.tokenlab.sh/v1/images/generations for grok-imagine-image. The request example below shows the matching code shape.
Can I test grok-imagine-image before integrating it?
Yes. Open Console starts a ready draft for grok-imagine-image and keeps your prompt after sign-in, so you don’t lose context.
Which operations does grok-imagine-image support?
grok-imagine-image supports Image editing, Image to image, Text to image. Select an operation above to see its endpoint and request example.