# FLUX 2 text to image fal AI

Needs prompt.

FLUX 2, served by fal.ai. $0.012 per megapixels Output is constrained to 1024x1024 and one image; reservation covers two billed megapixels, including whole-megapixel rounding. The exact receipt determines the final charge. Asynchronous: returns a request_id; poll fal/status and fetch fal/result with model "fal-ai/flux-2" and that request_id. The exact endpoint/request billing receipt is required before settlement.

- Tool ID: `fal/fal-ai-flux-2`
- Name in the catalog: FLUX 2, text to image
- Provider: [fal.ai](/providers/fal.md)
- Capability: [FLUX.2](/tools/image-generation/flux.md)
- Price: $0.024 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.024
}
```

Pricing source: [https://fal.ai/models/fal-ai/flux-2/llms.txt](https://fal.ai/models/fal-ai/flux-2/llms.txt). $0.012 per megapixels Output is constrained to 1024x1024 and one image; reservation covers two billed megapixels, including whole-megapixel rounding. The exact receipt determines the final charge..

Price verification date: 2026-11-03.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "num_images": {
      "minimum": 1,
      "default": 1,
      "maximum": 1,
      "type": "integer",
      "title": "Number of Images",
      "description": "The number of images to generate.",
      "enum": [
        1
      ]
    },
    "enable_prompt_expansion": {
      "default": false,
      "type": "boolean",
      "title": "Enable Prompt Expansion",
      "description": "If set to true, the prompt will be expanded for better results.",
      "enum": [
        false
      ]
    },
    "prompt": {
      "type": "string",
      "title": "Prompt",
      "description": "The prompt to generate an image from."
    },
    "guidance_scale": {
      "minimum": 0,
      "default": 2.5,
      "maximum": 20,
      "type": "number",
      "title": "Guidance Scale",
      "description": "Guidance Scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you."
    },
    "num_inference_steps": {
      "minimum": 4,
      "default": 28,
      "maximum": 50,
      "type": "integer",
      "title": "Number of Inference Steps",
      "description": "The number of inference steps to perform.",
      "enum": [
        28
      ]
    },
    "acceleration": {
      "enum": [
        "regular"
      ],
      "default": "regular",
      "type": "string",
      "title": "Acceleration",
      "description": "The acceleration level to use for the image generation."
    },
    "enable_safety_checker": {
      "default": true,
      "type": "boolean",
      "title": "Enable Safety Checker",
      "description": "If set to true, the safety checker will be enabled. Disabling it requires account authorization; unauthorized requests are always checked, and images flagged as unsafe are returned as black images."
    },
    "output_format": {
      "enum": [
        "jpeg",
        "png",
        "webp"
      ],
      "default": "png",
      "type": "string",
      "title": "Output Format",
      "description": "The format of the generated image."
    },
    "image_size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "integer",
          "enum": [
            1024
          ]
        },
        "height": {
          "type": "integer",
          "enum": [
            1024
          ]
        }
      },
      "required": [
        "width",
        "height"
      ],
      "additionalProperties": false,
      "default": {
        "width": 1024,
        "height": 1024
      }
    },
    "seed": {
      "description": "The seed to use for the generation. If not provided, a random seed will be used.",
      "title": "Seed",
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "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/fal-ai-flux-2",
  "input": {
    "prompt": "Dutch angle close-up of a survivor in post-apocalyptic setting, dust-covered face, dramatic harsh sunlight creating deep shadows, happy expression, desaturated dystopian color palette, gritty realism",
    "image_size": {
      "width": 1024,
      "height": 1024
    },
    "num_images": 1,
    "enable_prompt_expansion": false,
    "num_inference_steps": 28,
    "acceleration": "regular",
    "guidance_scale": 2.5,
    "enable_safety_checker": true,
    "output_format": "png"
  }
}
```

## 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/fal-ai/flux-2)

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

---

[HTML page](/providers/fal/fal-ai-flux-2) · [Agent index](/llms.txt)
