Authentication
A single tf- API key authorizes both the OpenAI and Anthropic endpoints. Pass it in whichever header your SDK expects.
Key format
Never expose your API key
Treat your
tf- key like a password. Never commit it, ship it in a browser bundle, or paste it in a public channel. Rotate it immediately from the dashboard if it leaks.OpenAI
Authorization: Bearer tf-your-api-key-hereAnthropic
x-api-key: tf-your-api-key-hereanthropic-version: 2023-06-01Response headers
Every response includes rate-limit headers. Use them to back off gracefully.
Rate-limit headers
X-RateLimit-Limit-Requests: 60X-RateLimit-Remaining-Requests: 59X-RateLimit-Reset-Requests: 30sX-RateLimit-Limit-Tokens: 1000000X-RateLimit-Remaining-Tokens: 999872X-RateLimit-Reset-Tokens: 0s