# Hunyuan Image text to image fal AI v2.1

Needs prompt.

Hunyuan Image, served by fal.ai. $0.1 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/hunyuan-image" and that request_id. The exact endpoint/request billing receipt is required before settlement.

- Tool ID: `fal/fal-ai-hunyuan-image-v2-1-text-to-image`
- Name in the catalog: Hunyuan Image, text to image
- Provider: [fal.ai](/providers/fal.md)
- Capability: [HunyuanImage](/tools/image-generation/hunyuan-image.md)
- Price: $0.2 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.2
}
```

Pricing source: [https://fal.ai/models/fal-ai/hunyuan-image/v2.1/text-to-image/llms.txt](https://fal.ai/models/fal-ai/hunyuan-image/v2.1/text-to-image/llms.txt). $0.1 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": {
    "output_format": {
      "default": "png",
      "title": "Output Format",
      "description": "The format of the generated image.",
      "enum": [
        "jpeg",
        "png"
      ],
      "type": "string"
    },
    "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
      }
    },
    "prompt": {
      "title": "Prompt",
      "description": "The text prompt to generate an image from.",
      "type": "string"
    },
    "num_inference_steps": {
      "minimum": 1,
      "maximum": 50,
      "title": "Num Inference Steps",
      "description": "Number of denoising steps.",
      "type": "integer",
      "default": 28,
      "enum": [
        28
      ]
    },
    "num_images": {
      "minimum": 1,
      "maximum": 1,
      "title": "Num Images",
      "description": "The number of images to generate.",
      "type": "integer",
      "default": 1,
      "enum": [
        1
      ]
    },
    "use_refiner": {
      "title": "Use Refiner",
      "description": "Enable the refiner model for improved image quality.",
      "type": "boolean",
      "default": false,
      "enum": [
        false
      ]
    },
    "use_reprompt": {
      "title": "Use Reprompt",
      "description": "Enable prompt enhancement for potentially better results.",
      "type": "boolean",
      "default": true
    },
    "negative_prompt": {
      "default": "",
      "title": "Negative Prompt",
      "description": "The negative prompt to guide the image generation away from certain concepts.",
      "type": "string"
    },
    "seed": {
      "title": "Seed",
      "description": "Random seed for reproducible results. If None, a random seed is used.",
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "enable_safety_checker": {
      "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.",
      "type": "boolean",
      "default": true
    },
    "guidance_scale": {
      "minimum": 1,
      "maximum": 20,
      "title": "Guidance Scale",
      "description": "Controls how much the model adheres to the prompt. Higher values mean stricter adherence.",
      "type": "number",
      "default": 3.5
    }
  },
  "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-hunyuan-image-v2-1-text-to-image",
  "input": {
    "prompt": "A cute, cartoon-style anthropomorphic penguin plush toy, standing in a painting studio, wearing a red knitted scarf and beret.",
    "image_size": {
      "width": 1024,
      "height": 1024
    },
    "num_images": 1,
    "use_refiner": false,
    "num_inference_steps": 28,
    "output_format": "png",
    "use_reprompt": true,
    "negative_prompt": "",
    "enable_safety_checker": true,
    "guidance_scale": 3.5
  }
}
```

## 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/hunyuan-image/v2.1/text-to-image)

[REST inspection](https://api.agentik.cc/v1/tools/fal/fal-ai-hunyuan-image-v2-1-text-to-image) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/fal/fal-ai-hunyuan-image-v2-1-text-to-image) · [Agent index](/llms.txt)
