> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fanifyai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Models and pricing

> List Fanify Hub models and estimate generation costs.

`GET /api/v1/hub/models` returns available models, their parameter schemas, and prices for your account.

```bash theme={null}
curl https://fanifyai.com/api/v1/hub/models \
  -H "Authorization: Bearer $FANIFY_API_KEY"
```

Each model includes:

* `id`: the value to send as `model`;
* `parameters_schema`: the JSON schema for the `input` object;
* `input_modalities` and `output_modalities`: accepted and produced media types;
* `pricing_tiers`: media price tiers;
* `input_cost_per_million` and `output_cost_per_million`: text model rates.

<Info>
  Tier fields retain the name `price_usd`, but `currency` is `EUR` and always defines the actual unit.
</Info>

## Estimate a generation

Send the same `input` object that you would use for a generation:

```bash theme={null}
curl https://fanifyai.com/api/v1/hub/models/nano-banana-2/pricing \
  -H "Authorization: Bearer $FANIFY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"resolution":"4K","aspect_ratio":"16:9"}}'
```

```json theme={null}
{
  "estimated_cost": 0.072000,
  "currency": "EUR"
}
```

The price remains an estimate until settlement. The final generation response contains `billed_cost`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.