Using the API
API keys and limits
Create a key
Open the console, API keys tab, and press Create key. The key starts with pf_ and is shown once; the gateway keeps only its SHA-256 hash. Send it as Authorization: Bearer pf_.... Or create one with POST /v1/keys.
Limits
| No key | With key | |
|---|---|---|
| Requests | 20 per 10 min | 120 per 10 min |
Cold runs (prefill_mode: "cold") | 4 per hour | 20 per hour |
| Max output tokens | 384 | 1,024 |
| Question length | 4,000 characters | up to the slot size |
Only one cold run can execute at a time across the gateway, because it holds a slot for 15 to 20 seconds.
Errors
429 with retry-after when a limit is hit; cold-run refusals include last_cold, the last measured cold run on that island. 400 when no island is given or matched. 502 when the engine fails.
Prefill