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
| Provider | Models | Status |
|---|---|---|
| OpenAI | gpt-5.2, gpt-5-mini, gpt-5-nano, gpt-5.2-pro, gpt-4.1-2025-04-14 | Fully supported |
| Anthropic | claude-opus-4-5, claude-sonnet-4-5, claude-haiku-4-5, claude-opus-4-1, claude-sonnet-4-0 | Fully supported |
| gemini-3-pro-preview, gemini-3-flash-preview, gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.5-pro | Fully supported |
How It Works
- Add your provider API key in the Scrub AI Dashboard
- Use Scrub AI's API with OpenAI-compatible format
- Scrub AI translates requests to your provider's format
- 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
- Log in to your Scrub AI Dashboard
- Navigate to Providers
- Select your AI provider
- Enter your provider's API key
- 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"}