DeepSeek
Overview
Section titled “Overview”DeepSeek builds high-performance language models with strong reasoning capabilities, including the chain-of-thought DeepSeek Reasoner. Floopy proxies requests to DeepSeek’s OpenAI-compatible API and surfaces reasoning token metrics via response headers.
Supported Models
Section titled “Supported Models”| Model | Context Window | Notes |
|---|---|---|
deepseek-chat | 64K | General-purpose chat model |
deepseek-reasoner | 64K | Chain-of-thought reasoning model |
- Go to Settings > Providers in the dashboard.
- Click Add provider and select DeepSeek.
- Paste your DeepSeek API key and click Save.
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: "deepseek-chat", 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="deepseek-chat", 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": "deepseek-chat", "messages": [{"role": "user", "content": "Explain quantum computing."}]}'Provider-Specific Features
Section titled “Provider-Specific Features”- Reasoning tokens — When using
deepseek-reasoner, Floopy returns aFloopy-Reasoning-Tokensresponse header with the number of tokens used for chain-of-thought reasoning, separate from the completion token count. - Chain-of-thought — DeepSeek Reasoner performs multi-step reasoning before producing its final answer, making it well suited for math, logic, and complex analysis tasks.
Fallback
Section titled “Fallback”Route to OpenAI if DeepSeek 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: o3-mini" \ -H "Content-Type: application/json" \ -d '{"model": "deepseek-reasoner", "messages": [{"role": "user", "content": "Hello"}]}'