# Grok Imagine Image > Generate images using xAI's Grok Imagine model. Sibling to Grok Imagine Video, sharing the same underlying Grok Imagine architecture for fast text-to-image generation. - **Provider**: replicate - **Model ID**: xai/grok-imagine-image - **Category**: image_generation - **Credits**: 47 per request - **Pricing Type**: fixed ## API Endpoint Base URL: https://api.core.today/v1 ### Create Prediction POST /predictions ### Get Status GET /predictions/{job_id} ### Cancel DELETE /predictions/{job_id} ## Authentication Header: `X-API-Key: YOUR_API_KEY` ## Input Parameters - `prompt` (string, **required**): Text prompt for image generation or editing - `image` (string, optional): Input image for editing. When provided, the model edits this image based on the prompt. Supports jpg, jpeg, png, webp. - `aspect_ratio` (string, optional): Aspect ratio of the generated image. Ignored when editing an image. (Default: `1:1`; Options: `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `2:1`, `1:2`, `19.5:9`, `9:19.5`, `20:9`, `9:20`, `auto`) ## Example Request ```json { "model": "xai/grok-imagine-image", "input": { "prompt": "your prompt here" } } ``` ## Response Format ```json { "job_id": "abc123", "status": "pending", "provider": "replicate", "model": "black-forest-labs/flux-schnell", "created_at": "2026-01-01T00:00:00Z", "result": null, "error": null } ``` Status values: `pending`, `processing`, `completed`, `failed`, `cancelled` ## Usage Flow 1. POST /predictions with model and input → receive job_id 2. Poll GET /predictions/{job_id} until status is `completed` or `failed` 3. Result contains output URL(s) or data ## Output Type url ## Tags xai, grok, image-generation, text-to-image ## Documentation https://replicate.com/xai/grok-imagine-image