Beta docs: the shipped API is POST /api/v1/generate for gemini and sarvam. Some pages below describe planned features. See the shipped quick start.

Guides

Add a Provider

Enable a new provider in minutes — no code, no redeploy.

Providers are gateway configuration, not application code. Adding one changes what the gateway can route to — your application keeps calling the same endpoint with the same key.

1. Open Providers in the dashboard

  1. Go to Providers in the sidebar.
  2. Find the provider you want and select Enable.
  3. Choose how the provider is billed: bring your own key, or gateway-managed.

With a managed key, OpenLink pays the provider and itemizes it on your invoice. With a bring-your-own key, you paste the provider's API key and billing stays on that provider's account.

2. Verify it shows up

terminal
curl https://openlink-1.onrender.com/v1/providers \
    -H "Authorization: Bearer $OPENLINK_API_KEY"

The enabled provider now appears in the list, and requests with "provider": "Sarvam" or "model": "sarvam" will start routing to it.

3. Make a routed call

index.ts
const response = await client.chat({
  provider: "sarvam",
  messages: [{ role: "user", content: "रेसिपी बताइए" }],
});

console.log(response.provider); // "sarvam"

Disabling a provider

Disabling a provider stops routing to it on the next request cycle. In-flight requests finish; nothing else changes — existing logs and analytics remain available.