Grok Imagine 2.0 Ext
Text-to-image requests, asynchronous results, and pricing.
Use a Discount Group API key with grok-imagine-2.0-ext. The rate is US$0.051 per successfully delivered image.
curl https://app.apipool.dev/v1/images/generations \
-H "Authorization: Bearer $APIPOOL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-imagine-2.0-ext","prompt":"A green ceramic cup on a gray table","size":"1:1","n":1}'Set n to an integer from 1 to 12 and provide a prompt of 1–8,000 characters. Choose an aspect ratio for size from the model page. This endpoint takes text and returns image URLs. Reference images, region editing, streaming, quality controls, and resolution tiers are unavailable.
Poll GET /v1/tasks/{task_id} until completion. Only delivered images are billed. See asynchronous image tasks, or try the Discount Group playground.