Python & Node.js SDK Multi-Protocol Integration Guide
Keep your official OpenAI, Anthropic, Vercel AI, or LangChain SDKs: swap base_url and route each model family to its recommended endpoint.
Official Python & Node.js Endpoints at a Glance
- Anthropic Python/Node SDK:
base_url="https://deepclub.net"→POST /v1/messages - OpenAI Python/Node SDK (GPT & Grok):
base_url="https://deepclub.net/v1"→client.responses.create(...) - OpenAI Python/Node SDK (DeepSeek / Gemini / GLM / Kimi / Qwen):
base_url="https://deepclub.net/v1"→client.chat.completions.create(...) - Vercel
@ai-sdk/anthropic:baseURL: "https://deepclub.net/v1"(note the/v1suffix required by Vercel's Anthropic provider)
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://deepclub.net/v1',
apiKey: process.env.DEEPCLUB_API_KEY,
})
const stream = await client.responses.create({
model: 'gpt-6.1-sol',
input: 'Write a clean retry helper in TypeScript.',
store: false,
stream: true,
})
for await (const event of stream) {
if (event.type === 'response.output_text.delta') {
process.stdout.write(event.delta)
}
}
Frequently Asked Questions
- Why does Vercel @ai-sdk/anthropic need /v1 while Python Anthropic SDK does not?
- Vercel @ai-sdk/anthropic defaults to https://api.anthropic.com/v1 and appends only /messages, whereas the official Anthropic Python/Node SDK appends /v1/messages to the site root.
Updated