Pricing
Compare models →Pricing is based on `resolution`, `num_images`, and the number of input `images`.
Default Settings
A request with default settings (resolution = 1k, num_images = 1, one input image) costs $0.07 per run.
Per Image (one input image)
resolution | Cost for num_images = 1 |
|---|---|
resolution = 1k | $0.07 |
resolution = 2k | $0.09 |
Example Costs (one input image)
resolution | num_images = 1 | num_images = 2 | num_images = 3 | num_images = 4 |
|---|---|---|---|---|
resolution = 1k | $0.07 | $0.14 | $0.21 | $0.28 |
resolution = 2k | $0.09 | $0.18 | $0.27 | $0.36 |
Extra Input Images
Input images | Surcharge (same for any resolution and num_images) |
|---|---|
images.count = 1 | included |
images.count = 2 | +$0.01 |
images.count = 3 | +$0.02 |
Example Costs with Multiple Input Images
images.count and resolution | num_images = 1 | num_images = 2 | num_images = 3 | num_images = 4 |
|---|---|---|---|---|
images.count = 2, resolution = 1k | $0.08 | $0.15 | $0.22 | $0.29 |
images.count = 2, resolution = 2k | $0.10 | $0.19 | $0.28 | $0.37 |
images.count = 3, resolution = 1k | $0.09 | $0.16 | $0.23 | $0.30 |
images.count = 3, resolution = 2k | $0.11 | $0.20 | $0.29 | $0.38 |
Billing Rules
- Each generated image is charged at the
resolutionrate, so the cost scales withnum_images - The first input image is included; each additional input image adds a flat surcharge, charged once per request regardless of
num_images aspect_ratioandoutput_formatdo not affect pricing
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The prompt for image generation or editing.JSON schema{
"x-rows": 4
} |
imagesRequired | array | The images to edit. A maximum of 3 reference images can be uploaded.Items: 0–3JSON schema{
"items": {
"type": "string"
}
} |
aspect_ratio | string | Aspect ratio of the generated image.auto1:116:99:164:33:43:22:3"auto" |
resolution | string | Output resolution tier.1k2k"1k" |
num_images | integer | Number of images to generate. Range: 1-4.Default: 1Minimum: 1 · Maximum: 4 |
output_format | string | Output image format.jpegpngwebp"jpeg" |
README
xAI Grok Imagine Image Quality Edit
xAI Grok Imagine Image Quality Edit edits an input image using natural-language instructions, with support for multiple aspect ratios, two resolution tiers, selectable output formats, and multi-image generation in a single request. It is suitable for image refinement, style changes, composition adjustments, product visuals, and other prompt-driven image editing workflows.
Why Choose This?
- Prompt-based image editing
Edit an existing image by describing the changes you want in natural language.
- Quality-focused edit workflow
Built for higher-quality image editing with support for resolution tiers and multiple output formats.
- Flexible aspect ratios
Choose auto to preserve the source framing, or select a preset aspect ratio for a new composition.
- Multiple image generation
Generate up to 4 edited variations in one request with num_images.
- Multiple output formats
Export results as jpeg, png, or webp.
- Multi-image reference editing
Provide up to 3 input images in one request.
- Simple pricing
Pricing depends on resolution, num_images, and the number of input images.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text prompt describing the desired edit. |
| images | Yes | Input images to edit. Up to 3 reference images. |
| aspect_ratio | No | Output aspect ratio. Supported values: auto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3. Default: auto. |
| resolution | No | Output resolution tier: 1k or 2k. Default: 1k. |
| num_images | No | Number of edited images to generate. Range: 1–4. Default: 1. |
| output_format | No | Output image format: jpeg, png, or webp. Default: jpeg. |
How to Use
- Upload your images — provide up to
3source images to edit from.
- Write your prompt — describe what should change and what should remain consistent.
- Choose aspect ratio — keep
autoto follow the source framing, or pick a preset ratio if you want a different composition.
- Choose resolution — use
1kfor lower cost or2kfor higher-quality output.
- Set number of images — choose how many edited variations you want, from
1to4.
- Choose output format — select
jpeg,png, orwebp.
- Submit — run the model and download the edited images.
Example Prompt
Turn this product photo into a premium studio advertisement with soft cinematic lighting, a clean neutral background, realistic reflections, and polished commercial styling.
Pricing
Pricing is based on `resolution`, `num_images`, and the number of input `images`.
Default Settings
A request with default settings (resolution = 1k, num_images = 1, one input image) costs $0.07 per run.
Per Image (one input image)
resolution | Cost for num_images = 1 |
|---|---|
resolution = 1k | $0.07 |
resolution = 2k | $0.09 |
Example Costs (one input image)
resolution | num_images = 1 | num_images = 2 | num_images = 3 | num_images = 4 |
|---|---|---|---|---|
resolution = 1k | $0.07 | $0.14 | $0.21 | $0.28 |
resolution = 2k | $0.09 | $0.18 | $0.27 | $0.36 |
Extra Input Images
Input images | Surcharge (same for any resolution and num_images) |
|---|---|
images.count = 1 | included |
images.count = 2 | +$0.01 |
images.count = 3 | +$0.02 |
Example Costs with Multiple Input Images
images.count and resolution | num_images = 1 | num_images = 2 | num_images = 3 | num_images = 4 |
|---|---|---|---|---|
images.count = 2, resolution = 1k | $0.08 | $0.15 | $0.22 | $0.29 |
images.count = 2, resolution = 2k | $0.10 | $0.19 | $0.28 | $0.37 |
images.count = 3, resolution = 1k | $0.09 | $0.16 | $0.23 | $0.30 |
images.count = 3, resolution = 2k | $0.11 | $0.20 | $0.29 | $0.38 |
Billing Rules
- Each generated image is charged at the
resolutionrate, so the cost scales withnum_images
- The first input image is included; each additional input image adds a flat surcharge, charged once per request regardless of
num_images
aspect_ratioandoutput_formatdo not affect pricing
Best Use Cases
- Product photo refinement — Upgrade product shots for ads, listings, and brand materials.
- Style changes — Rework an image into a new visual style or mood.
- Composition adjustments — Use aspect ratio controls to adapt the edit for different formats.
- Creative variations — Generate multiple edited options in one run with
num_images.
- Marketing creatives — Produce polished visuals for campaigns, social media, and presentations.
Pro Tips
- Be specific about what should change and what should stay the same.
- Use
autoaspect ratio when you want to preserve the original image framing.
- Use
1kfor quick testing and2kfor higher-quality final outputs.
- Increase
num_imageswhen you want multiple edit variations from the same prompt.
- Choose
pngwhen image quality matters more than file size.
Notes
- Both
promptandimageare required.
- This edit workflow supports one input image.
num_imagessupports values from1to4.
aspect_ratiodefaults toauto.
resolutiondefaults to1k.
output_formatdefaults tojpeg.
- Pricing depends only on
resolutionandnum_images.
Related Models
- xAI Grok Imagine Image Quality Text-to-Image — Generate images directly from prompts.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Grok Imagine Image Quality Edit API example
The catalog lists POST https://api.opensi.com.ai/api/v3/x-ai/grok-imagine-image-quality/edit for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"images": [
"https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251121/6784e7f4b50aebc7e17fe396/ruimbndg7jj1.jpg"
],
"aspect_ratio": "auto",
"resolution": "1k",
"num_images": 1,
"output_format": "jpeg"
}Grok Imagine Image Quality Edit API — Frequently asked questions
What is the Grok Imagine Image Quality Edit API?
Grok Imagine Image Quality Edit is a xAI model for image editing, exposed as a REST API on OpenSIAI. xAI Grok Imagine Image Quality Edit is a fast AI image editing model that edits and enhances images with high-quality visual output. Ready-to-use REST inference API for photo retouching, creative image edits, product image enhancement, marketing assets, social media visuals, and professional AI image editing workflows with simple integration, no coldstarts, and affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Grok Imagine Image Quality 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-quality/edit.
How much does Grok Imagine Image Quality Edit cost per run or per second?
Grok Imagine Image Quality Edit starts at $0.07 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 Quality Edit accept?
Key inputs: prompt, images, aspect_ratio, resolution, num_images, output_format. 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-quality/edit.
How long does Grok Imagine Image Quality Edit take to generate?
Reported generation time on OpenSIAI is around 28 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 Quality 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.
