Grok Imagine is xAI’s AI video generation model for creating high-quality videos with realistic motion, native audio, and synchronized speech. Grok Imagine 1.5 introduces faster generation speeds, improved motion physics, and stronger visual consistency for modern AI video applications.
No image yet. Submit the form to generate image.
Explore different use cases and parameter configurations
Transparent pricing with no hidden fees. Pay as you go.
| Rule & Modality | Channel | Credits | Price (USD) | Official / Reference Price | Daily Savings |
|---|---|---|---|---|---|
image-to-image imagegrok | Starter | 0.5per run | $0.002 | - | - |
Complete guide to using grok-imagine
Modify and restyle any reference image using natural language via the grok-imagine/image-to-image endpoint on ApiPass. Simply upload a JPEG, PNG, or WebP file along with your text prompt to initiate an asynchronous generation task. This developer-friendly API seamlessly handles everything from subtle edits to complete artistic overhauls.

The Grok Image-to-Image workflow utilizes one uploaded reference image and a targeted text prompt to generate a transformed image asset. It is engineered for enterprise visual remixes, style transfers, character reinterpretation, programmatic layout overhauls, high-end product placement, and rapid automated prototyping.
Describe the visual change you want and use one reference image as context. The prompt can specify subject changes, lighting, composition, mood, style, background, text treatment, or commercial art direction.
The image_urls parameter accepts an array of file URLs, but this endpoint supports a maximum of one reference image per request. Supported reference formats are JPEG, PNG, and WebP, with a maximum size of 10MB per file.
Create a task with POST /api/v1/jobs/createTask, store the returned taskId, and query results with GET /api/v1/jobs/recordInfo. You can also provide callBackUrl to receive completion or failure updates automatically.
Use detailed prompts to guide the generated image toward a specific look, mood, scene, or composition. The endpoint is useful for turning a simple reference into a more polished visual concept.
Upload one image as the source reference and point to it with @image1 inside the prompt. This keeps the request clear and helps the model understand which visual input should guide the output.
The API is built around asynchronous task creation. Submit the job, receive a taskId, and retrieve results later through the query endpoint or a callback URL when the task completes.
Transform a reference image into a poster-style composition with dramatic lighting, refined typography direction, stylized characters, or a polished entertainment concept.
Create premium product-style mockups, visual variations, background changes, or concept imagery from a single input image for fast iteration in design and marketing workflows.
Reimagine people, pets, mascots, or illustrated subjects in new styles while using the uploaded image as the visual reference for the generated result.
Choose the right ApiPass workflow based on whether you start from text, a still image, or a motion output.
Text-to-image starts from a prompt only, while image-to-image starts from an uploaded reference image plus an optional prompt. Use image-to-image when the source composition, subject, or visual direction should influence the generated result.
Image-to-image produces a generated still image. Image-to-video workflows are used when you want to animate a still reference into motion. For this endpoint, the output is an image and the supported input is one reference image URL.
ApiPass uses a credit-based access model for generation tasks. Review your dashboard for the latest credit usage, channel availability, and account limits before moving into production.
The optional channel parameter supports auto, starter, regular, and official. The default auto channel lets ApiPass allocate tasks across available providers based on real-time pricing and stability metrics.
New users may receive free credits to test image-to-image generation in the ApiPass playground before building a production integration.
Upload a JPEG, PNG, or WebP reference image with the File Upload API. The image must be 10MB or smaller. Use the returned file URL in the image_urls array.
Send a POST request to /api/v1/jobs/createTask with model set to grok-imagine/image-to-image and input containing image_urls and prompt. In the prompt, reference the uploaded image with @image1 followed by a space.
Store the taskId returned by the create task endpoint. Query /api/v1/jobs/recordInfo?taskId=YOUR_TASK_ID until the task succeeds, or provide callBackUrl to receive completion or failure notifications automatically.
All APIs require authentication via Bearer Token.
Authorization: Bearer
Create an asynchronous image-to-image generation task using grok-imagine/image-to-image.
1{
2 "model": "grok-imagine/image-to-image",
3 "channel": "auto",
4 "callBackUrl": "https://your-domain.com/api/callback",
5 "input": {
6 "image_urls": [
7 "https://cdn.apipass.dev/apipass/results/task_78514b0d12c44ad4_0.png"
8 ],
9 "prompt": "Recreate the Titanic movie poster with two adorable anthropomorphic cats in the same romantic pose at the bow of the ship."
10 }
11}modelRequiredstringModel endpoint name. Use grok-imagine/image-to-image for this endpoint.
grok-imagine/image-to-image
channelOptionalstringDefault channel is auto; APIPASS automatically allocates tasks across available providers based on real-time pricing and stability metrics; starter is ultra-low-cost with limited quotas and weaker stability; regular is standard and much cheaper than official APIs with moderate stability; official uses the model native API with high stability, fast task execution, and official pricing.
Default channel is auto; APIPASS automatically allocates tasks across available providers based on real-time pricing and stability metrics; starter is ultra-low-cost with limited quotas and weaker stability; regular is standard and much cheaper than official APIs with moderate stability; official uses the model native API with high stability, fast task execution, and official pricing.
Available options:
auto
callBackUrlOptionalstringOptional callback URL. If provided, ApiPass sends task result updates to this URL when the asynchronous task completes or fails.
https://your-domain.com/api/callback
promptOptionalstringA text description specifying the desired content or style of the generated image. Maximum length: 390000 characters.
In your prompt, reference the uploaded image by typing @image(n) followed by a space, for example: @image1 a sunset over the ocean.
Recreate the Titanic movie poster with two adorable anthropomorphic cats in the same romantic pose at the bow of the ship.
image_urlsRequiredarray<string>An array of URL strings pointing to reference images. Use file URLs after upload, not raw file content. Accepted image types are image/jpeg, image/png, and image/webp. Maximum file size is 10MB per image.
Upload your reference image with the File Upload API first, then use the returned file URL in image_urls. This model supports a maximum of one reference image per request, even though the upload control may allow multiple files.
["https://cdn.apipass.dev/apipass/results/task_78514b0d12c44ad4_0.png"]
1curl -X POST "https://api.apipass.dev/api/v1/jobs/createTask" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "grok-imagine/image-to-image",
6 "channel": "auto",
7 "input": {
8 "image_urls": [
9 "https://cdn.apipass.dev/apipass/results/task_78514b0d12c44ad4_0.png"
10 ],
11 "prompt": "Recreate the Titanic movie poster with two adorable anthropomorphic cats in the same romantic pose at the bow of the ship. The male cat is an orange tabby wearing a vest, standing behind a white long-haired female cat in a lace dress, holding her paws as they stretch forward in the wind. Both cats are photorealistic with detailed fur, wind-swept hair, and dramatic sunset lighting (warm golden highlights, cool blue shadows). Background: the Titanic ship at dusk with four smokestacks, glowing deck lights, calm ocean, and orange-pink sunset sky. Center title: “CATANIC” in the same gold metallic serif style as Titanic, same size and position."
12 }
13}'1{
2 "taskId": "task_xxx",
3 "status": "queued"
4}taskIdUnique task ID returned after the task is created. Use this value to query task status and results.
statusInitial task status for the asynchronous generation job.

flux
flux
Generate photorealistic images with robust text
Starting from
0 credits
Nano Banana 2 Lite, aka Gemini 3.1 Flash-Lite Image, is a newly released image model from Google DeepMind built for fast 1K image generation, efficient creative iteration, prompt-based image editing, and responsive visual output in product-facing creative scenarios.
Starting from
0 credits
apipass
apipass
Integrate production-ready AI face swapping into your app with a single API call.
Starting from
0 credits
OpenAI
OpenAI
Generate intentionally designed visuals with less prompting using the latest OpenAI GPT Image 2 model.
Starting from
0 credits
Fast image generation model built on Gemini 3.1 Flash Image. Supports text-to-image, image editing, multi-image fusion with up to 14 reference images, Google Search grounding, and outputs up to 4K resolution.
Starting from
0 credits
apipass
apipass
Seamlessly remove watermarks, logos, and unwanted text from your images at scale with our powerful AI-driven API.
Starting from
0 credits
seedream
seedream
Starting from
0 credits
seedream
seedream
Starting from
0 credits
OpenAI
OpenAI
Bring your ideas to life with sharper, faster, more precise image generation using the GPT Image 2.5 API.
Starting from
0 credits
Luma
Luma
Starting from
0 credits
seedream
seedream
Starting from
0 credits