DeepClub API Documentation: Base URL, Auth & Multi-Protocol SDKs

Keep official SDKs and swap only the base URL: https://deepclub.net (no /v1) for Anthropic Messages, https://deepclub.net/v1 for OpenAI Responses, Chat Completions, Images, and async Videos.

1. Protocol & Base URL Routing Matrix

Pick the native protocol for each model family so adaptive thinking, prompt caching, and tool loops stay intact (verify exact live endpoints per model on Live API Pricing):

Model Family SDK & Base URL Endpoint & Method
Claude 5.x (claude-opus-5-5, claude-sonnet-5-5, claude-fable-5-2, 5-1) Anthropic SDK: https://deepclub.net (no /v1) POST /v1/messages (messages.create)
GPT-6.x & Grok 4.7 (gpt-6.2-sol, gpt-6.2-astra, gpt-6.1-terra, gpt-6-luna, grok-4.7) OpenAI SDK: https://deepclub.net/v1 POST /v1/responses (responses.create, store=False)
Gemini 4 / DeepSeek V4.1 / GLM-5.3 / Kimi-k3 / Qwen 3.8 OpenAI SDK: https://deepclub.net/v1 POST /v1/chat/completions (chat.completions.create)
Image Generation & Editing OpenAI SDK: https://deepclub.net/v1 POST /v1/images/generations & /v1/images/edits (n=1)
Video Generation (Seedance-2.0-Fast/Mini, MiniMax-H3) Multipart HTTP / curl: https://deepclub.net/v1 POST /v1/videos -> GET /v1/videos/{id} -> /content

2. Authentication Headers

Store your console API key in DEEPCLUB_API_KEY:

3. Quickstart Examples (Python)

Claude 5.x (Native Anthropic Messages)

import os
from anthropic import Anthropic

client = Anthropic(
    api_key=os.environ["DEEPCLUB_API_KEY"],
    base_url="https://deepclub.net",  # Never append /v1 for Anthropic SDK
)
msg = client.messages.create(
    model="claude-sonnet-5-5",
    max_tokens=1024,
    cache_control={"type": "ephemeral"},
    thinking={"type": "adaptive"},
    output_config={"effort": "medium"},
    messages=[{"role": "user", "content": "List 3 invariants for idempotent retries."}],
)
print("".join(block.text for block in msg.content if block.type == "text"))

GPT-6.2 (Native OpenAI Responses with Streaming)

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["DEEPCLUB_API_KEY"],
    base_url="https://deepclub.net/v1",
)
stream = client.responses.create(
    model="gpt-6.2-sol",
    input="Write a concise exponential backoff helper with jitter.",
    reasoning={"effort": "medium"},
    store=False,
    stream=True,
)
for event in stream:
    if event.type == "response.output_text.delta":
        print(event.delta, end="", flush=True)

Gemini 4 / DeepSeek V4.1 / GLM-5.3 (Chat Completions)

completion = client.chat.completions.create(
    model="gemini-4-neon",
    messages=[{"role": "user", "content": "Explain MVCC snapshot isolation in 3 bullets."}],
)
print(completion.choices[0].message.content)

4. Images & Async Video Endpoints

Need tool-specific setup or error fixes? Jump to Claude Code Setup, Codex CLI, Cursor, API Error Troubleshooting, or All English Guides.

Frequently Asked Questions

Why did my Anthropic SDK request fail with 404?
Official Anthropic Python/Node SDKs and Claude Code append /v1/messages automatically. Remove /v1 and set base_url="https://deepclub.net". (Vercel @ai-sdk/anthropic is the exception and requires https://deepclub.net/v1.)
How do streaming events differ across Responses, Messages, and Chat?
Read event.delta on response.output_text.delta for Responses, stream.text_stream (or content_block_delta text_delta) for Anthropic Messages, and choices[0].delta.content for Chat Completions.
Does DeepClub store my API prompts or responses?
No. DeepClub enforces site-wide Zero Data Retention (ZDR) and does not persist request inputs or model outputs. See /privacy-policy for details.

Updated