Pricing
Compare models →The price of a request depends on the output resolution, the quality tier, and the number of input images. Each input image adds the same amount. Going from 1 image to 2 images adds $0.01.
| Resolution | Quality | 1 image | 2 images | 3 images |
|---|---|---|---|---|
| 1k | low | $0.05 | $0.06 | $0.07 |
| 1k | medium | $0.07 | $0.08 | $0.09 |
| 2k | low | $0.07 | $0.08 | $0.09 |
| 2k | medium (default) | $0.09 | $0.10 | $0.11 |
Prices are per request, for the number of input images shown in each column.
Input schema
| Parameter | Type | Description |
|---|---|---|
imagesRequired | array | Input images to edit, 1 to 3. Supports jpg, jpeg, png, and webp.Items: 0–3JSON schema{
"items": {
"type": "string"
}
} |
promptRequired | string | Text instruction describing how to edit the image.Characters: 1 or moreJSON schema{
"x-rows": 5
} |
resolution | string | Output image resolution tier.1k2k"2k" |
quality | string | Generation quality tier.lowmedium"medium" |
README
Grok Imagine Image V2.0 Edit
Grok Imagine Image V2.0 Edit transforms one to three source images with natural-language instructions. It is designed for prompt-guided image editing with configurable resolution and quality, making it suitable for creative iteration, visual refinement, and marketing asset updates.
Parameters
| Parameter | Required | Description |
|---|---|---|
| images | Yes | Input images to edit, as an array of 1 to 3 images. |
| prompt | Yes | Text instruction describing the desired edit. |
| resolution | No | Output resolution: 1k or 2k. Default: 2k. |
| quality | No | Generation quality: low or medium. Default: medium. |
How to Use
- Upload 1 to 3 source images in the
imagesarray.
- Write a clear edit prompt describing what should change.
- Choose the output
resolutionandqualitytier.
- Submit the request and retrieve the edited image URL.
Pricing
The price of a request depends on the output resolution, the quality tier, and the number of input images. Each input image adds the same amount. Going from 1 image to 2 images adds $0.01.
| Resolution | Quality | 1 image | 2 images | 3 images |
|---|---|---|---|---|
| 1k | low | $0.05 | $0.06 | $0.07 |
| 1k | medium | $0.07 | $0.08 | $0.09 |
| 2k | low | $0.07 | $0.08 | $0.09 |
| 2k | medium (default) | $0.09 | $0.10 | $0.11 |
Prices are per request, for the number of input images shown in each column.
Best Use Cases
- Prompt-guided image editing — Transform an existing image with simple natural-language instructions.
- Style and visual changes — Adjust mood, color, composition, or overall style.
- Product and marketing updates — Refine product shots, campaign assets, and promotional visuals.
- Creative iteration — Explore multiple edit directions from the same source image.
Related Models
- Grok Imagine Image V2.0 Text-to-Image — Generate images from natural-language prompts.
- Grok Imagine Image V2.0 Edit — Edit images with text instructions.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
xAI Grok Imagine Image V2.0 Image Editing API example
The catalog lists POST https://api.opensi.com.ai/api/v3/x-ai/grok-imagine-image-v2.0/edit for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"images": [
"https://d1s3annbwribom.cloudfront.net/marketplace/examples/2026/08/18/d0bee8950611.jpeg"
],
"prompt": "Change the mug design to a minimalist blue geometric pattern, add a subtle coffee steam effect rising from the cup, and enhance the lighting for a polished commercial product look while keeping the background clean and neutral.",
"resolution": "2k",
"quality": "medium"
}xAI Grok Imagine Image V2.0 Image Editing API — Frequently asked questions
What is the Grok Imagine Image v2.0 Edit API?
Grok Imagine Image v2.0 Edit is a xAI model for image editing, exposed as a REST API on OpenSIAI. xAI Grok Imagine Image V2.0 Edit transforms input images with text prompts, with configurable resolution and quality for precise image editing, visual refinements, creative variations, social content, marketing assets, and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Grok Imagine Image v2.0 Edit API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/x-ai/grok-imagine-image-v2.0/edit.
How much does Grok Imagine Image v2.0 Edit cost per run or per second?
Grok Imagine Image v2.0 Edit starts at $0.08 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Grok Imagine Image v2.0 Edit accept?
Key inputs: prompt, images, resolution, quality. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/x-ai/grok-imagine-image-v2.0/edit.
How long does Grok Imagine Image v2.0 Edit take to generate?
Reported generation time on OpenSIAI is around 35 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Grok Imagine Image v2.0 Edit outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (xAI). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
