# Grok Imagine Image 2.0 text to image

Needs prompt. Served by fal.ai.

Grok Imagine Image 2.0 (xAI), text to image, served by fal.ai. The OpenAPI schema for the xai/grok-imagine-image/v2.0/text-to-image queue. Price: Per image: $0.04 low / $0.06 medium at 1k; $0.06 low / $0.08 medium at 2k. 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`
- Name in the catalog: Grok Imagine Image 2.0 (xAI), text to image
- 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
    }
  ]
}
```

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

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 generated 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": [
        "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 generated image.",
      "title": "Aspect Ratio",
      "default": "1:1"
    },
    "prompt": {
      "type": "string",
      "maxLength": 8000,
      "description": "Text description of the desired image.",
      "title": "Prompt"
    },
    "num_images": {
      "type": "integer",
      "maximum": 4,
      "minimum": 1,
      "description": "Number of images to generate.",
      "default": 1,
      "title": "Number of Images"
    }
  },
  "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",
  "input": {
    "prompt": "a small red cube on a white table, studio light",
    "num_images": 1,
    "quality": "low",
    "resolution": "1k",
    "aspect_ratio": "1:1"
  }
}
```

## 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/text-to-image)

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

---

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