- Use Auto’s keys: We pay the LLM provider, and then bill you for the usage.
- Use your own API keys: We use your provider API keys, and you’re billed directly for usage.
Fetch API (.ts)
Multiple API keys
You can include multiple API keys - and only the relevant API keys will be used.Fetch API (.ts)
Supported API keys
- OpenAI:
X-OpenAI-Api-Key - Anthropic:
X-Anthropic-Api-Key - Google Gemini:
X-Gemini-Api-Key - Google Vertex AI: See below.
BYOK for Google Vertex AI
Instead of using a simple API key, Google Vertex AI requires the use of service account credentials instead. To pass them in, simply URI-encode the JSON service account key, and pass it in asX-Vertex-Credentials. Pass the project and location as X-Vertex-Project and X-Vertex-Location respectively.
Fetch API (.ts)
