Platform

Which AI providers does Cognocient support?

Cognocient proxies 7 AI providers through a single base_url. Change the model name to switch providers — no separate SDK, no re-authentication, no new keys.

Cognocient proxies 7 AI providers — OpenAI, Anthropic, Google Gemini, Mistral, Groq, Together AI, and Azure OpenAI — through a single base_url. Change the model name to switch providers with no separate SDK, no re-authentication, and no new keys.

Provider overview

ProviderSupported modelsModel name prefix
OpenAIGPT-4o, GPT-4o-mini, o1, o3gpt-, o1, o3
AnthropicClaude 3.5 Haiku, Sonnet, Claude 4 familyclaude-
Google GeminiGemini 1.5, 2.0 Flash, 2.5 Progemini-
Mistral AILarge, Nemo, Codestral, Mixtral 8x22Bmistral-, open-
GroqLlama 3.1/3.3 70B, Gemma 2, Mixtralllama, mixtral, gemma (via Groq)
Together AILlama 3.1, DeepSeek, Qwen, 100+ OSS modelsFull Together AI model names
Azure OpenAIGPT-4o, GPT-4 via Azure deploymentsConfigured via deployment name in Settings

One client, all providers

All providers use the same base_url. Cognocient detects the provider from the model name and handles any format translation automatically. Switch from GPT-4o to Claude by changing one string.

Quick setup

Replace your api_key and base_url — that's the only change needed.

Native Anthropic SDK

If you use the Anthropic Python or TypeScript SDK directly (not via the OpenAI SDK), the base URL is slightly different — omit /v1:

The /v1 suffix applies to the OpenAI SDK route. For the native Anthropic SDK, use https://api.cognocient.com without a path suffix. Both routes work for routing to Anthropic models.

Switching providers at runtime

All providers share the same client — switch by changing the model name:

from openai import OpenAI
 
client = OpenAI(api_key="sk-cog-YOUR-KEY", base_url="https://api.cognocient.com/v1")
 
def call_ai(prompt: str, model: str = "gpt-4o-mini"):
    return client.chat.completions.create(
        model=model,
        messages=[{"role": "user", "content": prompt}],
        extra_headers={"X-Cost-Feature": "ai-router"}
    )
 
# Route to any provider dynamically
call_ai("Hello", model="gpt-4o-mini")            # OpenAI
call_ai("Hello", model="claude-sonnet-4-6")       # Anthropic
call_ai("Hello", model="gemini-2.0-flash")        # Google

Adding your provider API keys

Your provider keys are stored encrypted in Cognocient. Configure them once in Settings → Providers:

  1. Go to Dashboard → Settings → Providers
  2. Click Add Provider Key for each provider
  3. Paste your provider API key — it is encrypted before being stored
  4. All requests to that provider now use this key automatically

You only need to configure each provider once. To rotate a key, paste the new one and the old is replaced immediately.

Keys are not recoverable after saving

Cognocient does not re-expose stored provider keys. Store your provider keys in a secrets manager independently of Cognocient.


Next steps: Quickstart · Attribution Headers · API Keys

On this page