Pricing
Compare models →| Request | Cost |
|---|---|
| Per run (default settings) | $0.022 |
Billing Rules
- Each run is charged at one flat price, shown above as the default settings price.
- The price is the same for every aspect ratio and for both output formats (jpeg and png).
- Maximum 4 images per request
Examples
- Default settings (1:1 aspect ratio, jpeg output) → $0.022 per run
- Any other aspect ratio, for example 16:9 → $0.022 per run
- png output → $0.022 per run
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
aspect_ratio | string | The aspect ratio of the generated image. Defaults to 1:1.2:120:916:94:33:21:12:33:49:169:201:2"1:1" |
output_format | string | Output image format.jpegpng"jpeg" |
README
Grok Imagine Image Text-to-Image
Grok Imagine Image is X-AI's text-to-image generation model that transforms text prompts into high-quality visuals. With extensive aspect ratio options and batch generation support, it delivers creative, detailed images for a wide range of applications.
Why Choose This?
- Extensive aspect ratios
11 preset options including 2:1, 20:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, and 9:20.
- Batch generation
Generate up to 4 images in a single request for quick iteration.
- Creative flexibility
Excels at stylized content from 3D characters to photorealistic scenes.
- Prompt Enhancer
Built-in tool to automatically improve your prompts for better results.
- Cost-effective
Affordable per-image pricing for high-volume generation.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the image you want to generate |
| aspect_ratio | No | Output ratio: 2:1, 20:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:20 |
| num_images | No | Number of images to generate (1-4, default: 1) |
How to Use
- Write your prompt — describe the image in detail, including style, mood, and composition.
- Select aspect ratio — choose from presets or leave empty for default.
- Set num_images — generate 1-4 images per request.
- Run — submit and download your images.
Pricing
| Request | Cost |
|---|---|
| Per run (default settings) | $0.022 |
Billing Rules
- Each run is charged at one flat price, shown above as the default settings price.
- The price is the same for every aspect ratio and for both output formats (jpeg and png).
- Maximum 4 images per request
Examples
- Default settings (1:1 aspect ratio, jpeg output) → $0.022 per run
- Any other aspect ratio, for example 16:9 → $0.022 per run
- png output → $0.022 per run
Best Use Cases
- Character Design — Create 3D characters, chibi figures, and toy-style illustrations.
- Social Media Content — Generate visuals for posts, stories, and ads.
- Concept Art — Quickly visualize ideas and creative concepts.
- Marketing Materials — Produce eye-catching imagery for campaigns.
- Rapid Prototyping — Generate multiple variations to explore design directions.
Pro Tips
- Use the Prompt Enhancer to refine your descriptions automatically.
- Be specific about style, texture, lighting, and color palette for better results.
- Generate multiple images (num_images=4) to explore variations quickly.
- Match aspect ratio to your target platform: 16:9 for YouTube, 9:16 for TikTok/Reels, 1:1 for Instagram.
- Use ultra-wide ratios (20:9, 2:1) for cinematic banners and headers.
Notes
- Maximum 4 images can be generated per request.
- Aspect ratio can be left empty to use default sizing.
- For best results, write detailed prompts with specific visual attributes.
Related Models
- Grok Imagine Image Edit — Edit existing images with text instructions.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Grok Imagine Image Text to Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/x-ai/grok-imagine-image/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",
"output_format": "jpeg"
}Grok Imagine Image Text to Image API — Frequently asked questions
What is the Grok Imagine Image Text To Image API?
Grok Imagine Image Text To Image is a xAI model for image generation, 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 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/text-to-image.
How much does Grok Imagine Image Text To Image cost per run or per second?
Grok Imagine Image Text To Image starts at $0.022 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 Text To Image accept?
Key inputs: prompt, aspect_ratio, 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/text-to-image.
How long does Grok Imagine Image Text To Image take to generate?
Reported generation time on OpenSIAI is around 13 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 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.
