AI API keys
To use your own API key for AI, use theai
option in any request. You will need to specify two fields: model
and apiKey
.
Below is an example that uses your API key for OpenAI.
- OpenAI with model IDs prefixed with
openai:
- Google’s Gemini with model IDs prefixed with
gemini:
- OpenRouter with model IDs prefixed with
openrouter:
Proxy API keys
To use your own API key for AI, use theproxy
option in any request. We support HTTP proxies and CDP proxies.
To use your own API key for proxies, set the tier
field to byok
, and pass in either HTTP or CDP proxy credentials.
To pass in HTTP proxy credentials, use the server
, username
, and password
fields, like the example below.
cdp
field and set it to the connection endpoint, like the example below.