Pricing
Compare models →| Output | Cost |
|---|---|
| Per image | $0.025 |
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The prompt to edit the image with. |
imageRequired | string | The source image to edit. |
README
Grok Imagine Image Edit
Grok Imagine Image Edit is X-AI's image editing model that transforms existing images based on text prompts. Upload your source image and describe the changes you want — the model intelligently edits while maintaining visual coherence.
Why Choose This?
- Text-driven editing
Modify images using natural language instructions for intuitive control.
- Context-aware modifications
Understands scene structure and object relationships for coherent edits.
- Style preservation
Maintains the original image's visual quality during edits.
- Prompt Enhancer
Built-in tool to automatically improve your editing instructions.
- Cost-effective
Affordable per-image pricing for high-volume editing workflows.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text instruction describing the desired edit |
| image | Yes | Source image to edit (URL or upload) |
How to Use
- Upload your image — provide the source image you want to edit.
- Write your prompt — describe the changes you want to make.
- Run — submit and download your edited image.
Pricing
| Output | Cost |
|---|---|
| Per image | $0.025 |
Best Use Cases
- Photo Retouching — Remove unwanted objects, fix imperfections, enhance details.
- Scene Modification — Change backgrounds, add or remove elements.
- Style Transfer — Apply different visual styles to existing images.
- Content Adaptation — Modify images for different contexts and platforms.
- Creative Exploration — Experiment with variations of existing visuals.
Pro Tips
- Use the Prompt Enhancer to refine your editing instructions.
- Be specific about what to change and what to preserve.
- Describe the desired outcome rather than the process (e.g., "the man wearing a red shirt" instead of "change the shirt color to red").
- Use high-quality source images for better editing results.
- Combine with Grok Imagine Image T2I to generate base images, then edit.
Notes
- Both prompt and image are required fields.
- Ensure uploaded image URLs are publicly accessible.
- For best results, use clear and specific edit instructions.
Related Models
- Grok Imagine Image Text-to-Image — Generate images from text prompts.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Grok Imagine Image Edit API example
The catalog lists POST https://api.opensi.com.ai/api/v3/x-ai/grok-imagine-image/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",
"image": "https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251118/6784e7f4b50aebc7e17fe396/1w64a9seeuy4.jpeg"
}Grok Imagine Image Edit API — Frequently asked questions
What is the Grok Imagine Image Edit API?
Grok Imagine Image Edit is a xAI model for image editing, exposed as a REST API on OpenSIAI. X-AI Grok Imagine Image enables precise image editing with xAI's Grok Imagine model. Transform and modify images using text prompts with AI-powered precision. 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 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/edit.
How much does Grok Imagine Image Edit cost per run or per second?
Grok Imagine Image Edit starts at $0.025 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 Edit accept?
Key inputs: prompt, image. 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/edit.
How long does Grok Imagine Image Edit take to generate?
Reported generation time on OpenSIAI is around 15 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 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.
