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

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