AI Gateway Model providers

Model providers

Connect a model provider to your workspace by storing its credential once. Forgebench injects it into each call at the gateway, so your code only ever holds a Forgebench API key.

Some models run only on your own provider account. Without a credential for that provider, the call is refused with a message naming the missing key.

Add a credential

Adding, replacing or removing a provider credential requires the admin role.

  1. Open the Credentials tab

    In the sidebar, expand Admin, choose API keys, then open the Credentials tab.

  2. Click Add credential

    The Add a provider key dialog opens. Pick the provider from the Provider list.

  3. Fill in what the provider needs

    Most providers take a single API key. Azure and Google Vertex AI ask for more; see What each provider needs.

  4. Click Save provider key

    The value is stored encrypted and never shown again. To change it, save a new one over it.

Single-key providers can also be added from Admin > Secrets. Use Secrets for Bedrock's region and model-access preview. The API keys dialog offers Bedrock when your workspace catalog already has dedicated Bedrock routes. Use the Credentials tab for Azure, which needs an endpoint and a deployment list. To point at your own OpenAI-compatible server instead, click OpenAI-compatible endpoint… in the same dialog.

See Secrets for how credentials are stored, audited and removed.

What each provider needs

ProviderWhat you enterModel names
OpenAI, Anthropic, GeminiAn API key from the provider.The ids in the model catalog
xAI, Mistral, DeepSeek, Groq, CohereAn API key from the lab. These models run only on your key.Prefixed with the lab, for example xai-grok-4.6
SarvamA Sarvam API key. These models run only on your key. See Sarvam.Prefixed sarvam-, for example sarvam-105b
OpenRouterAn OpenRouter API key.openrouter-<model>
Vultr InferenceA Vultr Inference API key. These models run only on your key.vultr-<model>
Azure OpenAIEndpoint, API version, deployment list, and an API key or a Microsoft Entra ID service principal. See Azure OpenAI & AI Foundry.azure-<deployment>
Azure AI FoundryThe same fields as Azure OpenAI, for non-OpenAI models deployed in Azure AI Foundry.azureai-<deployment>
Google Vertex AIAn Express API key, a service-account JSON, or a Workload Identity Federation configuration. See Google Vertex AI.vertex-<model>
Amazon BedrockA Bedrock API key from your own AWS account. See Amazon Bedrock.bedrock-<model>, mantle-<model>

Sarvam

Sarvam's prices are in Indian rupees, excluding GST. Forgebench shows and budgets them in US dollars, using the exchange rate refreshed once a day.

UseModelsBilled
Chatsarvam-105b, sarvam-105b-conversationsper token
Speech to textsarvam-saaras-v3, sarvam-saaras-v4per second of audio
Text to speechsarvam-bulbul-v3, sarvam-bulbul-v4-flashper character
Document OCRsarvam-visionper page

Speech models are called through the usual voice routes, and OCR through /v1/ocr. See Govern your voice agent and Document OCR.

Choose which models developers can use

On the Credentials tab, open a credential card's menu and choose Manage models. It lists every model Forgebench serves for that provider, grouped by vendor, with a checkbox each.

  • Check or uncheck models, or use Enable all and Disable all on the filtered list, then click Save.
  • With every model checked, the dialog reads "All N enabled — models ForgeBench adds later are included too." Any narrower selection is saved as an exact list, so new models stay off until you turn them on.
  • With nothing checked, developers can't call any model through that credential.

The selection applies to the model list, to key creation, and to every call, including from keys created earlier. Only admins can change it.

For Google Vertex AI with a service-account credential, discovery uses Google's Model Garden, and models link to their Google Cloud pages. Express and WIF credentials do not support this discovery check. Turn on in Google asks Google to enable that model in the project from your service-account credential. Google only does this when the model's terms are already accepted, and Google bills its usage.

Next

Cookie settings

Our Cookie Policy lists every cookie and what it does.