We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
SpaceXAI: Grok Imagine Image Quality
x-ai/grok-imagine-image-qualityTry SpaceXAI: Grok Imagine Image Quality now
Runs on your balance at the prices above. New accounts start with free usage.
Settings
SpaceXAI: Grok Imagine Image Quality at a glance
- Context window of 65,536 tokens, enough for long documents and multi-turn conversations.
About SpaceXAI: Grok Imagine Image Quality
SpaceXAI: Grok Imagine Image Quality is an image generation and editing model from xAI. It sits in the image category and is built for fast, high-fidelity output, with a focus on photorealistic results. If you are already working with xAI models or evaluating image models for a product, this is the one to consider when output quality and turnaround both matter.
The model accepts text and image inputs and produces image output. That means you can drive it with a text prompt alone, or combine a prompt with reference images to guide the result. It supports up to three input references, so editing and image-to-image style workflows are possible without switching models. The context window is 65,536 tokens, and the maximum output is 58,982 tokens. Generated images can be requested at 1K or 2K resolution, and you can pick from a wide set of aspect ratios including 1:1, 3:4, 4:3, 9:16, 16:9, 2:3, 3:2, 9:19.5, 19.5:9, 9:20, 20:9, 1:2, 2:1, and auto. The n parameter is fixed at 1, so each request returns a single image.
Practical uses follow directly from those capabilities. Photorealistic generation at 1K or 2K suits product imagery, concept art, marketing visuals, and other assets where fidelity matters. Because the model takes reference images, you can use it for editing tasks such as restyling an existing photo, adjusting a composition, or producing variations that stay close to a supplied reference. The aspect ratio options cover both square and vertical formats for social and mobile placements, as well as wide formats for banners and headers. The auto option is useful when you would rather let the model choose a sensible framing from the prompt.
You call the model through api14's OpenAI-compatible API using the model id "x-ai/grok-imagine-image-quality". Because the interface follows the OpenAI schema, you can point an existing OpenAI client at api14 and change the model id, with no other structural changes. The request parameters it supports are logprobs, max_tokens, response_format, seed, temperature, top_logprobs, and top_p. The seed parameter is worth noting for image work, since it lets you reproduce or vary a generation. Image-specific options such as resolution, aspect ratio, and input references are passed alongside these parameters.
A few constraints are worth keeping in mind. Only one image is returned per request, so batches require multiple calls. Input references are capped at three, which is fine for most editing flows but limiting if you need to blend many sources. If your task is text generation or another modality rather than image output, a different model will fit better.
How to call the SpaceXAI: Grok Imagine Image Quality API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "x-ai/grok-imagine-image-quality".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.images.generate({
"model": "x-ai/grok-imagine-image-quality",
"prompt": "A minimalist product photo of a ceramic mug on a wooden table",
"n": 1,
"aspect_ratio": "1:1"
});
import { writeFile } from "node:fs/promises";
await writeFile("image.png", Buffer.from(result.data[0].b64_json, "base64"));
Supported parameters
logprobsmax_tokensresponse_formatseedtemperaturetop_logprobstop_pSpecifications
- Context length
- 65,536
- Max output
- 58,982
- Input
- text, image
- Output
- image
Requests on api14 · last 7 days
SpaceXAI: Grok Imagine Image Quality: frequently asked questions
- How much does the SpaceXAI: Grok Imagine Image Quality API cost?
- SpaceXAI: Grok Imagine Image Quality costs Image output $0.18 / image. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of SpaceXAI: Grok Imagine Image Quality?
- SpaceXAI: Grok Imagine Image Quality reads up to 65,536 tokens per request: prompt, history and documents together. It writes up to 58,982 output tokens per response.
- What can SpaceXAI: Grok Imagine Image Quality do?
- SpaceXAI: Grok Imagine Image Quality accepts text, image and returns image.
- How do I call SpaceXAI: Grok Imagine Image Quality from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "x-ai/grok-imagine-image-quality". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to SpaceXAI: Grok Imagine Image Quality?
- Comparable Image models at a similar price: Black Forest Labs: FLUX.2 Flex, xAI: Grok Imagine Image 2.0, Recraft: Recraft V4 Styles Vector. Each runs through the same API key, so switching is one string.
SpaceXAI: Grok Imagine Image Quality community
New topicThis community has no topics yet. Open the first one about SpaceXAI: Grok Imagine Image Quality.