Skip to main content
Generate an original image from a text prompt using xAI Grok Imagine Image 2.0, or EDIT images you supply. Send image_handles, image_urls or image_base64 to restyle, retouch or combine up to 5 reference images; send none and it generates from the prompt alone. Editing costs exactly what generating costs. Returns the URL of the generated image. That URL is temporary: Goro holds a run’s results for 24 hours and nothing guarantees the file outlives that, so collect what you need within 24 hours.
Use when you want a photographic or cinematic look at the lowest price in the catalog, or a precise edit of an image you already have: a change of wardrobe, a background swap, typography placed into a scene, a reference transformed into a new composition. Follows instructions closely and renders text well. For the hardest edits and the best text, use image.nano_banana_pro.

Price

$0.04 per call. A flat price. Every call that succeeds costs exactly this, whatever it returns, and you know the number before you make the call. There is no ceiling to read and no usage to reconcile afterwards. A call that fails, times out or is stopped releases its hold in full and costs nothing.

Input

These are all the fields this endpoint accepts. Anything else is rejected as a validation_error rather than forwarded to the provider.

Example

Response

The full response. Values are illustrative.