Validate a BYOK provider key
BYOK
Validate a BYOK provider key
Validate an API key against a provider without saving it. Useful for checking if a key is valid before committing.
Supported providers: openrouter, anthropic, openai, google, xai, vercel-gateway, google-vertex, amazon-bedrock, azure-foundry.
POST
Validate a BYOK provider key
Authorizations
JWT authentication token
Path Parameters
Provider identifier
Available options:
openrouter, anthropic, openai, google, xai, vercel-gateway, google-vertex, amazon-bedrock, azure-foundry Body
application/json
The provider API key to validate. For google-vertex: must be the full GCP service account JSON string (containing type, client_email, private_key, project_id).
Cloud region or endpoint URL for location-aware providers:
- google-vertex: GCP region for Vertex AI (e.g. "us-central1", "us-east5"). Defaults to "us-central1".
- amazon-bedrock: AWS region (e.g. "us-east-1"). Defaults to "us-east-1".
- azure-foundry: Foundry endpoint URL (e.g. "https://{resource}.openai.azure.com" or legacy "https://{resource}.services.ai.azure.com"). Required.
Ignored by URL-based providers — use
base_urlinstead.

