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

# API keys

> Create and manage API keys, set spending limits, and monitor usage and billing.

## Create an API key

<Card title="Go to API Keys in the dashboard" icon="key" href="https://app.chatgpttech.mobi/keys">
  Open the API Keys page
</Card>

<Steps>
  <Step title="Open API Keys">
    Sign in to the [TechMobi dashboard](https://app.chatgpttech.mobi) and click **API Keys** in the left sidebar.
  </Step>

  <Step title="Create a key">
    Click **Create Key** in the top-right corner, enter a name, and optionally configure:

    | Option          | Description                                               |
    | --------------- | --------------------------------------------------------- |
    | Expiry          | Never, or a custom date                                   |
    | Spending limit  | Automatically disables the key when the budget is reached |
    | Model allowlist | Restricts the key to specific models                      |
  </Step>

  <Step title="Save your key">
    Click confirm and copy the full key value. **It is only displayed once** — afterwards the list shows only the prefix. If you lose it, revoke the key and create a new one.
  </Step>
</Steps>

<Warning>
  Keys are prefixed with `sk-hub-`. Save the full value immediately after creation.
</Warning>

## Key security best practices

| Practice                                 | Why it matters                                            |
| ---------------------------------------- | --------------------------------------------------------- |
| Use a separate key per project           | Easier to track spend and revoke access independently     |
| Set a spending limit                     | Prevents unexpected charges if a key is exposed           |
| Use model allowlists for test keys       | Limits blast radius if a test key leaks                   |
| Revoke immediately on suspected exposure | Click **Revoke** in the key list — takes effect instantly |

## Monitor usage

<CardGroup cols={2}>
  <Card title="Analytics" icon="chart-bar" href="https://app.chatgpttech.mobi/analytics">
    Token usage by model, latency percentiles (P50 / P90 / P99), and error rates.
  </Card>

  <Card title="Logs" icon="scroll" href="https://app.chatgpttech.mobi/logs">
    Real-time request log with filtering by time, key, model, and status code. Expand any entry to inspect the full request and response.
  </Card>
</CardGroup>

## Billing and top-ups

Go to **[Billing](https://app.chatgpttech.mobi/billing)** to:

* View your current balance and itemized usage history
* Add credits (credit card supported)
* Download billing statements as CSV
* Configure automatic top-ups when your balance falls below a threshold

<Tip>
  New accounts receive \*\*$5 in free credits**. You can also earn $2 for each friend you refer, and they get \$2 as well.
</Tip>
