Skip to main content

AI Providers

Scrub AI supports multiple AI providers through a unified API. Configure your preferred provider in the Dashboard, then use the same Scrub AI API regardless of which provider you choose.

Supported Providers

ProviderModelsStatus
OpenAIgpt-5.2, gpt-5-mini, gpt-5-nano, gpt-5.2-pro, gpt-4.1-2025-04-14Fully supported
Anthropicclaude-opus-4-5, claude-sonnet-4-5, claude-haiku-4-5, claude-opus-4-1, claude-sonnet-4-0Fully supported
Googlegemini-3-pro-preview, gemini-3-flash-preview, gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.5-proFully supported

How It Works

  1. Add your provider API key in the Scrub AI Dashboard
  2. Use Scrub AI's API with OpenAI-compatible format
  3. Scrub AI translates requests to your provider's format
  4. Responses are normalized to OpenAI format

This means you can:

  • Switch providers without changing your code
  • Use the familiar OpenAI SDK with any provider
  • Get consistent response formats regardless of provider

Setting Up a Provider

  1. Log in to your Scrub AI Dashboard
  2. Navigate to Providers
  3. Select your AI provider
  4. Enter your provider's API key
  5. Click Save

You can configure multiple providers and switch between them as needed.

Unified API

All requests use the same OpenAI-compatible format:

curl https://api.scrub.health/v1/chat/completions \
-H "Authorization: Bearer $SCRUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.2",
"messages": [{"role": "user", "content": "Hello!"}]
}'

Scrub AI automatically routes to your configured provider and translates the request/response as needed.

Model Selection

You can specify models from any configured provider:

// OpenAI
{"model": "gpt-5.2"}
{"model": "gpt-5-mini"}
{"model": "gpt-5-nano"}

// Anthropic
{"model": "claude-opus-4-5"}
{"model": "claude-sonnet-4-5"}
{"model": "claude-haiku-4-5"}

// Google
{"model": "gemini-3-pro-preview"}
{"model": "gemini-3-flash-preview"}

Provider-Specific Guides