xAI · fal.ai · Text to image
Grok Imagine Image 2.0
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.
Usage based fal.aiImagefal/grok-imagine-image-2Listed
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 (Grok Imagine Image 2.0 (xAI), text to image). Call inspect_tool with {"tool_id": "fal/grok-imagine-image-2"} 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" 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
| Name | Type | Required | Description |
|---|---|---|---|
aspect_ratio | string | No | Aspect ratio of the generated image. Options: 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. |
resolution | string | No | Resolution of the generated image. `1k` for standard resolution, `2k` for high resolution. Options: 1k, 2k. |
num_images | integer | No | Number of images to generate. |
quality | string | No | Quality level of the generated image. Options: low, medium. |
output_format | string | No | The format of the generated image. Options: jpeg, png, webp. |
prompt | string | Yes | Text description of the desired image. |
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",
"input": {
"prompt": "a small red cube on a white table, studio light",
"num_images": 1,
"quality": "low",
"resolution": "1k",
"aspect_ratio": "1:1"
}
}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.