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

# Billing & CFDI

> How we charge, how we invoice, how much each model costs

## Billing model

**Pay-as-you-go**, no minimums, no subscription. You pay for what you consume.

```
Final cost = (provider price × tokens / 1M) × 1.05 × MXN_exchange_rate
```

* **+5% markup** by Geek Hub
* **Fixed monthly exchange rate** — no FX surprises
* **No charges for failed requests** (4xx, 5xx do not bill)

### Example

Call to `anthropic/claude-haiku-4-5` with 100 input tokens + 500 output tokens:

```
Provider:  (100 × $1 / 1M) + (500 × $5 / 1M) = $0.0026 USD
+ 5% markup:                                    $0.00273 USD
× FX 20 MXN/USD:                                $0.0546 MXN
```

## Recharges & balance

Top up your MXN balance from the [dashboard](https://app.geekhub.mx/dashboard/billing/recharge). We accept:

* Credit/debit card (via Stripe)
* *Coming soon:* OXXO, SPEI transfer, PayPal

Each successful call **deducts its MXN cost from the balance** atomically. When it hits \$0:

```json theme={null}
HTTP 402 Payment Required

{
  "error": {
    "message": "Insufficient balance. Recharge at https://app.geekhub.mx/dashboard/billing.",
    "type": "insufficient_balance",
    "code": "insufficient_balance"
  }
}
```

## Automatic CFDI 4.0

Each recharge generates your **SAT-stamped CFDI 4.0** as soon as Stripe confirms payment (\~5 sec).

### If you register your tax data

The CFDI is issued to your **RFC** with the legal name, tax regimen, and CFDI use configured in [Settings](https://app.geekhub.mx/dashboard/settings).

| Field                  | How we use it                              |
| ---------------------- | ------------------------------------------ |
| RFC                    | CFDI receiver                              |
| Legal name (UPPERCASE) | Receiver.Name                              |
| Postal code            | Receiver's fiscal address                  |
| Tax regimen            | RegimenFiscalReceptor (601, 612, 626, etc) |
| CFDI use               | UsoCfdi (G03, S01, I04, etc)               |
| Billing email          | Address where the XML+PDF lands            |

### If you don't register your tax data

The CFDI is issued to **"Público en General"** (RFC `XAXX010101000`, Use `S01`).

<Info>
  This is 100% legally valid — it's how OXXO, Uber, or Rappi invoice you when you don't request a fiscal ticket. If you later want a CFDI to your RFC, **subsequent** recharges will be correct (past ones cannot be modified).
</Info>

### Downloading your CFDIs

In [Billing → Invoices (CFDI 4.0)](https://app.geekhub.mx/dashboard/billing) you have:

* **Folio** (internal, sequential per org)
* **SAT UUID** (the official fiscal folio)
* **Total MXN** (subtotal + 16% VAT)
* **Status** (Stamped / Cancelled / Error)
* **Download XML** — direct link to the stamped XML

## Pricing catalog

See [Models](/en/models/index) for full per-model prices. Rough summary:

| Family           | Input \$/1M | Output \$/1M |
| ---------------- | ----------- | ------------ |
| Claude Haiku     | \$1.05      | \$5.25       |
| Claude Sonnet    | \$3.15      | \$15.75      |
| Claude Opus      | \$15.75     | \$78.75      |
| GPT-5            | \$1.31      | \$10.50      |
| Gemini 2.5 Flash | \$0.16      | \$0.63       |
| DeepSeek         | \$0.28      | \$1.15       |
| Kimi K2          | \$0.63      | \$2.62       |
| Grok 3 mini      | \$0.32      | \$0.52       |

*Prices in USD already with the +5% markup. Multiply by your FX for MXN.*

<Card title="Images and video" icon="image" href="/en/api-reference/images/overview">
  Images are charged per unit ($0.04 – $0.19 USD); video by the second ($0.04 – $0.40 USD).
</Card>
