Pricing
Compare models →| Resolution | Quality | Price per image |
|---|---|---|
| 1k | low | $0.04 |
| 1k | medium | $0.06 |
| 2k | low | $0.06 |
| 2k | medium | $0.08 |
One image is generated per request. The defaults (2k, medium) cost $0.08.
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | Text description of the image to generate.Characters: 1 or moreJSON schema{
"x-rows": 5
} |
aspect_ratio | string | The aspect ratio of the generated image. Defaults to 1:1.1:116:99:164:33:43:22:32:11:219.5:99:19.520:99:20"1:1" |
resolution | string | Output image resolution tier.1k2k"2k" |
quality | string | Generation quality tier.lowmedium"medium" |
README
Grok Imagine Image V2.0 Text-to-Image
Grok Imagine Image V2.0 Text-to-Image generates high-quality images from natural-language prompts with configurable aspect ratio, resolution, and quality settings. It is well suited for creative generation, visual ideation, and production-ready image workflows.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the image to generate. |
| aspect_ratio | No | Output aspect ratio. Default: 1:1. |
| resolution | No | Output resolution: 1k or 2k. Default: 2k. |
| quality | No | Generation quality: low or medium. Default: medium. |
How to Use
- Write a clear prompt describing the subject, composition, lighting, style, and any important visual details.
- Choose an aspect ratio that fits your target layout.
- Select the output
resolutionandqualitytier.
- Submit the request and retrieve the generated image URL.
Pricing
| Resolution | Quality | Price per image |
|---|---|---|
| 1k | low | $0.04 |
| 1k | medium | $0.06 |
| 2k | low | $0.06 |
| 2k | medium | $0.08 |
One image is generated per request. The defaults (2k, medium) cost $0.08.
Best Use Cases
- Creative image generation
- Marketing and social media visuals
- Concept art and visual ideation
- Portrait, product, and scene generation
- Fast iteration across quality and resolution tiers
Pro Tips
- Use detailed prompts for stronger composition and subject control.
- Choose
1kfor faster iteration.
- Choose
2kwhen you need higher-resolution final output.
- Use
mediumquality for more polished results.
- Be specific about lighting, background, camera angle, and style when consistency matters.
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 Text-to-Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/x-ai/grok-imagine-image-v2.0/text-to-image 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",
"aspect_ratio": "1:1",
"resolution": "2k",
"quality": "medium"
}xAI Grok Imagine Image V2.0 Text-to-Image API — Frequently asked questions
What is the Grok Imagine Image v2.0 Text To Image API?
Grok Imagine Image v2.0 Text To Image is a xAI model for image generation, exposed as a REST API on OpenSIAI. xAI Grok Imagine Image V2.0 Text-to-Image generates high-quality images from text prompts, with configurable aspect ratio, resolution, and quality for creative visuals, 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 Text To Image 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/text-to-image.
How much does Grok Imagine Image v2.0 Text To Image cost per run or per second?
Grok Imagine Image v2.0 Text To Image 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 Text To Image accept?
Key inputs: prompt, aspect_ratio, 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/text-to-image.
How long does Grok Imagine Image v2.0 Text To Image take to generate?
Reported generation time on OpenSIAI is around 87 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 Text To Image 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.
