Current supported providers include OpenAI, Anthropic, Google Vertex AI, Google AI Studio, Cerebras, DeepInfra, Fireworks, Mistral, Groq, and xAI. See all models via the List Models endpoint. Contact us to request a provider or model to be supported.
How it works
- Scoped per workspace: Provider credentials are tied to the workspace where they are configured.
- One key per provider: Each workspace supports one API key per provider.
- Automatic fallback: If your key fails (invalid, expired, or rate-limited), Inworld automatically falls back to its own managed credentials to ensure uptime. When this happens, you’ll see
"credential_type": "system"in the response. - Billing: Your provider bills you directly for usage on your key. Inworld applies a percentage fee for BYOK usage, which is currently waived.
Setup
Add your provider key
Navigate to the API Keys page in Inworld Studio and click Add third-party key. Select your provider and enter your API key.
Save credentials
When you save, Inworld sends a test request using your key to verify it returns a valid response. If the validation succeeds, your key is stored securely.If validation fails, double-check that:
- The API key is correct and active.
- The key has the necessary permissions on the provider side.
- Your provider account has available credits or an active billing plan.
Usage
Verifying which key was used
Send a regular chat completion request:metadata.attempts array includes a credential_type field for each attempt:
| Value | Meaning |
|---|---|
byok | Your own key was used. |
system | Inworld-managed key was used (automatic fallback). |
Runtime credentials
Instead of saving your key in the dashboard, you can pass provider credentials directly in the request body using theprovider_credentials field. This is useful for per-request key selection or for testing a key before saving it.