Skip to content

xAI · fal.ai · Image edit

Grok Imagine Image 2.0

Grok Imagine Image 2.0 (xAI), image edit, served by fal.ai. The OpenAPI schema for the xai/grok-imagine-image/v2.0/edit queue. Price: Per image: $0.04 low / $0.06 medium at 1k; $0.06 low / $0.08 medium at 2k; +$0.01 per input image.

Usage based fal.aiImagefal/grok-imagine-image-2-editListed

Activation pending; your agent will see it as unavailable until then.

Use this tool with your agent

Give this to your agent
Use my connected Agentik MCP server. I want to use the tool fal/grok-imagine-image-2-edit (Grok Imagine Image 2.0 (xAI), image edit). Call inspect_tool with {"tool_id": "fal/grok-imagine-image-2-edit"} first and tell me the price before anything runs. Ask me for the inputs it needs; never invent values, IDs or file URLs. When I confirm, call run_tool with tool_id "fal/grok-imagine-image-2-edit" and my inputs, follow it with get_run if it is still running, and give me the result and the price Agentik reports. If the tool is unavailable, say so and use discover_tools to propose an alternative.
Show the prompt

Paste it into Claude, ChatGPT or Codex: your agent takes it from there, and shows the price before it runs.

Parameters

NameTypeRequiredDescription
promptstringYesText description of the desired image.
image_urlsstring[]NoList of URLs of the images to edit. A maximum of 3 images are supported.
num_imagesintegerNoNumber of images to generate.
qualitystringNoQuality level of the edited image. Options: low, medium.
output_formatstringNoThe format of the generated image. Options: jpeg, png, webp.
resolutionstringNoResolution of the generated image. `1k` for standard resolution, `2k` for high resolution. Options: 1k, 2k.
aspect_ratiostringNoAspect ratio of the edited image. When set to `auto` (the default), the output preserves the aspect ratio of the first input image. Options: auto, 2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5.

How your agent calls it

First inspect_tool for the current schema and price, then run_tool with the published example after confirming your inputs:

{
  "tool_id": "fal/grok-imagine-image-2-edit",
  "input": {
    "prompt": "make the cube blue, keep everything else",
    "image_urls": [
      "https://storage.googleapis.com/falserverless/example_outputs/nano-banana-2-t2i-output.png"
    ],
    "num_images": 1,
    "quality": "low",
    "resolution": "1k"
  }
}

Price and billing

Price
Usage based
Model
Per unit
Detail
The provider’s price, with no markup. Billed for measured usage.
  • The provider’s price, 0% markup.
  • One prepaid balance for every provider; your agent sees the price before it runs.
  • Pay for measured usage; unused reservations are released.