Anthropic
Overview
Anthropic builds the Claude family of AI models, known for strong instruction following, safety, and long-context performance. Floopy automatically translates OpenAI-format requests to the Anthropic Messages API, so no code changes are needed.
Supported Models
| Model | Context Window | Notes |
|---|---|---|
claude-opus-4-6 | 200K | Most capable Claude model |
claude-sonnet-4-6 | 200K | Balanced performance and cost |
claude-sonnet-4-5 | 200K | Previous generation Sonnet |
claude-haiku-4-5 | 200K | Fast and affordable |
claude-3-5-haiku-20241022 | 200K | Legacy Haiku |
claude-3-opus-20240229 | 200K | Legacy Opus |
Setup
- Go to Settings > Providers in the dashboard.
- Click Add provider and select Anthropic.
- Paste your Anthropic API key and click Save.
Usage
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.floopy.ai/v1", apiKey: process.env.FLOOPY_API_KEY,});
const response = await client.chat.completions.create({ model: "claude-sonnet-4-6", messages: [{ role: "user", content: "Explain quantum computing." }],});from openai import OpenAI
client = OpenAI(base_url="https://api.floopy.ai/v1", api_key=os.environ["FLOOPY_API_KEY"])
response = client.chat.completions.create( model="claude-sonnet-4-6", messages=[{"role": "user", "content": "Explain quantum computing."}],)curl https://api.floopy.ai/v1/chat/completions \ -H "Authorization: Bearer $FLOOPY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "claude-sonnet-4-6", "messages": [{"role": "user", "content": "Explain quantum computing."}]}'Provider-Specific Features
- Automatic format translation — Floopy converts OpenAI chat completion format to the Anthropic Messages API and back. System messages, tool use, and multi-turn conversations are all supported.
- Long context — All Claude models support 200K token context windows. Floopy passes the full context through without truncation.
Fallback
Route to OpenAI if Anthropic is unavailable:
curl https://api.floopy.ai/v1/chat/completions \ -H "Authorization: Bearer $FLOOPY_API_KEY" \ -H "x-floopy-fallback-provider: openai" \ -H "x-floopy-fallback-model: gpt-4o" \ -H "Content-Type: application/json" \ -d '{"model": "claude-sonnet-4-6", "messages": [{"role": "user", "content": "Hello"}]}'