xAI Grok Imagine Image 2.0
xAI Grok Imagine Image 2.0 draws from a prompt or edits up to five pictures, at 1k to 2k. From $0.04 per image.
xAI's Grok Imagine Image 2.0 draws an image from a prompt, or edits one to five pictures you give it from a plain instruction: change the setting, the style or one detail, or combine pictures into one. Try it for product shots, posters and scenes in many styles. xAI advises opening a prompt with the subject: what it is, its form and the setting. Results are JPEG files.
Inputs: prompt (required: what to draw, or what to change in the pictures), images (optional: up to 5 picture links to edit, JPEG, PNG or WEBP; with several, name them in the prompt as IMAGE_0, IMAGE_1 and so on, each in angle brackets), aspect_ratio (auto by default: a new image gets the shape that suits the prompt and an edit keeps the shape of its picture; or one of 15 shapes from 1:1 to 21:9; with a single picture it is ignored), resolution (1k by default, 1.5k or 2k), quality (low by default, or medium for finer detail) and n (1-10 images, default 1).
It does not make video (see Grok Imagine Video 1.5), does not take a mask and edits at most five pictures at a time. One image takes about 10 seconds.
Price: $0.04 per image at 1k and low quality, $0.05 at 1.5k and $0.06 at 2k; medium quality $0.06, $0.07 and $0.08. An edit adds $0.01 for each picture you give, once per request. One new image costs $0.04, an edit of one picture $0.05. A refused or failed run costs nothing.
- Text to Image
- Image to Image
Price: From $0.04 per image, depending on quality and resolution; each picture given to edit adds $0.01. One run with default settings costs $0.04.
Run xAI Grok Imagine Image 2.0 via API
curl -X POST https://api.flymy.ai/api/v1/flymyai/grok-imagine-image-2_0/predict \
-H "X-API-KEY: $FLYMYAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"A matte sage-green ceramic pour-over dripper on a glass carafe half full of coffee, on a pale oak counter against white square tile, soft window light from the left","resolution":"1k","quality":"low","aspect_ratio":"16:9"}'API documentation · Create a free account · Pricing