Pricing
Compare models →Pricing is based on `resolution` and `num_images`.
Per Image
| Resolution | Cost per Image |
|---|---|
| 1k | $0.06 |
| 2k | $0.08 |
Example Costs
| Resolution | 1 Image | 2 Images | 3 Images | 4 Images |
|---|---|---|---|---|
| 1k | $0.06 | $0.12 | $0.18 | $0.24 |
| 2k | $0.08 | $0.16 | $0.24 | $0.32 |
Billing Rules
1kcosts $0.06 per image2kcosts $0.08 per image- Total price = per-image price ×
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
} |
aspect_ratio | string | The aspect ratio of the generated image. Defaults to 1:1.1:116:99:164:33:43:22:3"1:1" |
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 Text-to-Image
xAI Grok Imagine Image Quality Text-to-Image generates high-quality images from text prompts with support for multiple aspect ratios, two resolution tiers, selectable output formats, and multi-image generation in a single request. It is suitable for concept art, marketing creatives, social media visuals, product imagery, and other prompt-driven image generation workflows.
Why Choose This?
- High-quality text-to-image generation
Turn natural-language prompts into polished visual outputs.
- Flexible aspect ratios
Choose from common preset aspect ratios for social, editorial, and widescreen content.
- Two resolution tiers
Select 1k or 2k depending on your quality and budget needs.
- Multiple image generation
Generate up to 4 images in one request with num_images.
- Multiple output formats
Export results as jpeg, png, or webp.
- Simple pricing
Pricing depends only on resolution and num_images.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text prompt describing the image you want to generate. |
| aspect_ratio | No | Output aspect ratio. Supported values: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3. Default: 1:1. |
| resolution | No | Output resolution tier: 1k or 2k. Default: 1k. |
| num_images | No | Number of images to generate. Range: 1–4. Default: 1. |
| output_format | No | Output image format: jpeg, png, or webp. Default: jpeg. |
How to Use
- Write your prompt — describe the subject, style, lighting, composition, and mood you want.
- Choose aspect ratio — select the format that best fits your use case.
- Choose resolution — use
1kfor lower cost or2kfor higher-quality output.
- Set number of images — choose how many images you want to generate, from
1to4.
- Choose output format — select
jpeg,png, orwebp.
- Submit — run the model and download the generated images.
Example Prompt
A futuristic city street at night, neon reflections on wet pavement, cinematic lighting, ultra-detailed, high contrast, atmospheric sci-fi mood
Pricing
Pricing is based on `resolution` and `num_images`.
Per Image
| Resolution | Cost per Image |
|---|---|
| 1k | $0.06 |
| 2k | $0.08 |
Example Costs
| Resolution | 1 Image | 2 Images | 3 Images | 4 Images |
|---|---|---|---|---|
| 1k | $0.06 | $0.12 | $0.18 | $0.24 |
| 2k | $0.08 | $0.16 | $0.24 | $0.32 |
Billing Rules
1kcosts $0.06 per image
2kcosts $0.08 per image
- Total price = per-image price ×
num_images
aspect_ratioandoutput_formatdo not affect pricing
Best Use Cases
- Concept art — Generate visual ideas and creative directions from text.
- Marketing creatives — Produce ad visuals, banners, and campaign imagery.
- Social media content — Create prompt-driven images for posts and promotional content.
- Product and brand visuals — Generate polished imagery for presentations and ideation.
- Rapid iteration — Use
num_imagesto explore multiple variations in a single run.
Pro Tips
- Be specific in your prompt about subject, background, lighting, and style.
- Use
1kfor quick iteration and2kfor higher-quality final outputs.
- Increase
num_imageswhen you want multiple variations from the same prompt.
- Use
pngwhen image quality matters more than file size.
- Short, focused prompts often produce more controllable results than overly long descriptions.
Notes
promptis the only required field.
num_imagessupports values from1to4.
aspect_ratiodefaults to1:1.
resolutiondefaults to1k.
output_formatdefaults tojpeg.
- Pricing depends only on
resolutionandnum_images.
Related Models
- Other xAI image generation models may be useful when you need different quality, style, or workflow trade-offs.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Grok Imagine Image Quality Text to Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/x-ai/grok-imagine-image-quality/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": "1k",
"num_images": 1,
"output_format": "jpeg"
}Grok Imagine Image Quality Text to Image API — Frequently asked questions
What is the Grok Imagine Image Quality Text To Image API?
Grok Imagine Image Quality Text To Image is a xAI model for image generation, exposed as a REST API on OpenSIAI. xAI Grok Imagine Image Quality Text to Image is a fast AI image generation model that creates high-quality images from text prompts. Ready-to-use REST inference API for creative design, concept art, marketing visuals, product mockups, social media content, and professional AI image generation 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 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-quality/text-to-image.
How much does Grok Imagine Image Quality Text To Image cost per run or per second?
Grok Imagine Image Quality Text To Image starts at $0.06 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 Text To Image accept?
Key inputs: prompt, 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/text-to-image.
How long does Grok Imagine Image Quality Text To Image take to generate?
Reported generation time on OpenSIAI is around 32 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 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.
