# Grok Imagine Image Editing Quality image to image

Edit exactly one image; reserve its explicit input-image surcharge. Needs prompt and image urls. Served by fal.ai.

Edit exactly one image; reserve its explicit input-image surcharge. One 1K output and exactly one input image; the $0.01 input surcharge is included. Asynchronous: poll fal/status and read fal/result with model "xai/grok-imagine-image" and the returned request_id.

- Tool ID: `fal/xai-grok-imagine-image-quality-edit`
- Name in the catalog: Grok Imagine Image Editing Quality, image to image
- Provider: [fal.ai](/providers/fal.md)
- Capability: [Grok Imagine Image](/tools/image-generation/grok-imagine-image.md)
- Price: $0.06 per call
- 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_call",
  "amountUsd": 0.06
}
```

Pricing source: [https://fal.ai/models/xai/grok-imagine-image/quality/edit/llms.txt](https://fal.ai/models/xai/grok-imagine-image/quality/edit/llms.txt). $0.06 per bounded request. One 1K output and exactly one input image; the $0.01 input surcharge is included. The exact endpoint/request billing receipt supplies the final charge..

Price verification date: 2026-11-03.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "num_images": {
      "description": "Number of images to generate.",
      "minimum": 1,
      "type": "integer",
      "default": 1,
      "maximum": 1,
      "title": "Number of Images",
      "enum": [
        1
      ]
    },
    "enable_safety_checker": {
      "description": "Authorized callers may set false to request relaxed screening.",
      "type": "boolean",
      "default": true,
      "title": "Enable Safety Checker",
      "enum": [
        true
      ]
    },
    "aspect_ratio": {
      "description": "Aspect ratio of the edited image. When set to `auto` (the default), the output preserves the aspect ratio of the first input image.",
      "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",
      "default": "auto",
      "title": "Aspect Ratio"
    },
    "prompt": {
      "description": "Text description of the desired image.",
      "maxLength": 8000,
      "type": "string",
      "title": "Prompt"
    },
    "output_format": {
      "description": "The format of the generated image.",
      "enum": [
        "jpeg",
        "png",
        "webp"
      ],
      "type": "string",
      "default": "jpeg",
      "title": "Output Format"
    },
    "resolution": {
      "description": "Resolution of the generated image. `1k` for standard resolution, `2k` for high resolution.",
      "enum": [
        "1k"
      ],
      "type": "string",
      "default": "1k",
      "title": "Resolution"
    },
    "image_urls": {
      "description": "List of URLs of the images to edit. A maximum of 3 images are supported.",
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Image URLs",
      "minItems": 1,
      "maxItems": 1
    }
  },
  "required": [
    "prompt",
    "image_urls"
  ],
  "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/xai-grok-imagine-image-quality-edit",
  "input": {
    "prompt": "Make this scene more realistic but still keep the game vibes",
    "image_urls": [
      "https://v3b.fal.media/files/b/0a8b911d/Abk8vStrvmSPlzUqI_NN3_image_043.png"
    ],
    "resolution": "1k",
    "num_images": 1,
    "enable_safety_checker": true,
    "aspect_ratio": "auto",
    "output_format": "jpeg"
  }
}
```

## 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/quality/edit)

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

---

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