# Grok Imagine Image 2.0 image edit

Needs prompt. Served by fal.ai.

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. Waits up to 40 s for the result; if the generation takes longer, the run stays RUNNING and returns a request_id; poll fal/status and fetch fal/result with model "xai/grok-imagine-image" and that request_id. Billed once, when the result is ready; a generation that fails is refunded.

- Tool ID: `fal/grok-imagine-image-2-edit`
- Name in the catalog: Grok Imagine Image 2.0 (xAI), image edit
- Provider: [fal.ai](/providers/fal.md)
- Capability: [Grok Imagine Image](/tools/image-generation/grok-imagine-image.md)
- Price: usage based, the maximum is shown before a run
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_unit",
  "amountUsd": 0.06,
  "unitsField": "num_images",
  "unitsDefault": 1,
  "maxUnits": 4,
  "multipliers": [
    {
      "when": {
        "field": "quality",
        "equals": "low"
      },
      "setUsd": 0.04
    },
    {
      "all": [
        {
          "field": "quality",
          "equals": "low"
        },
        {
          "field": "resolution",
          "equals": "2k"
        }
      ],
      "setUsd": 0.06
    },
    {
      "all": [
        {
          "field": "quality",
          "equals": "medium"
        },
        {
          "field": "resolution",
          "equals": "2k"
        }
      ],
      "setUsd": 0.08
    },
    {
      "when": {
        "field": "image_urls",
        "minLength": 1
      },
      "addUsd": 0.01
    },
    {
      "when": {
        "field": "image_urls",
        "minLength": 2
      },
      "addUsd": 0.01
    },
    {
      "when": {
        "field": "image_urls",
        "minLength": 3
      },
      "addUsd": 0.01
    },
    {
      "when": {
        "field": "image_urls",
        "minLength": 4
      },
      "addUsd": 0.01
    },
    {
      "when": {
        "field": "image_urls",
        "minLength": 5
      },
      "addUsd": 0.01
    },
    {
      "when": {
        "field": "image_urls",
        "minLength": 6
      },
      "addUsd": 0.01
    },
    {
      "when": {
        "field": "image_urls",
        "minLength": 7
      },
      "addUsd": 0.01
    },
    {
      "when": {
        "field": "image_urls",
        "minLength": 8
      },
      "addUsd": 0.01
    }
  ]
}
```

Pricing source: [https://fal.ai/models/xai/grok-imagine-image/v2.0/edit](https://fal.ai/models/xai/grok-imagine-image/v2.0/edit). Per image: $0.04 low / $0.06 medium at 1k; $0.06 low / $0.08 medium at 2k; +$0.01 per input image..

Price verification date: 2026-10-08.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "output_format": {
      "enum": [
        "jpeg",
        "png",
        "webp"
      ],
      "type": "string",
      "description": "The format of the generated image.",
      "title": "Output Format",
      "default": "jpeg"
    },
    "quality": {
      "enum": [
        "low",
        "medium"
      ],
      "type": "string",
      "description": "Quality level of the edited image.",
      "title": "Quality",
      "default": "medium"
    },
    "resolution": {
      "enum": [
        "1k",
        "2k"
      ],
      "type": "string",
      "description": "Resolution of the generated image. `1k` for standard resolution, `2k` for high resolution.",
      "title": "Resolution",
      "default": "1k"
    },
    "aspect_ratio": {
      "enum": [
        "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",
        "9:20",
        "1:2"
      ],
      "type": "string",
      "description": "Aspect ratio of the edited image. When set to `auto` (the default), the output preserves the aspect ratio of the first input image.",
      "title": "Aspect Ratio",
      "default": "auto"
    },
    "num_images": {
      "type": "integer",
      "maximum": 4,
      "minimum": 1,
      "description": "Number of images to generate.",
      "default": 1,
      "title": "Number of Images"
    },
    "image_urls": {
      "type": "array",
      "description": "List of URLs of the images to edit. A maximum of 5 images are supported.",
      "title": "Image URLs",
      "items": {
        "type": "string"
      }
    },
    "prompt": {
      "type": "string",
      "maxLength": 8000,
      "description": "Text description of the desired image.",
      "title": "Prompt"
    }
  },
  "required": [
    "prompt"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "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"
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

This tool uses deferred settlement. Follow its returned task/run instructions; preserve the existing reservation until the result is reconciled.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://fal.ai/models/xai/grok-imagine-image/v2.0/edit)

[REST inspection](https://api.agentik.cc/v1/tools/fal/grok-imagine-image-2-edit) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/fal/grok-imagine-image-2-edit) · [Agent index](/llms.txt)
