DocsDeepSeek V4 Pro (Global) API usage and code examples

DeepSeek V4 Pro (Global) API usage and code examples

Base URL, authentication, endpoints, and code examples for calling DeepSeek V4 Pro (Global) (model ID: deepseek-v4-pro-global) through the API.

Model details

Model IDdeepseek-v4-pro-global
ProviderDeepSeek
TypeText
StatusAvailable
Context length1,000,000 tokens
Max output384,000 tokens
Processing regionGlobal
PricingSee the model page

Base URL and authentication

FormatBase URLKey header
OpenAIhttps://token.echohub.io/v1Authorization: Bearer
Anthropichttps://token.echohub.iox-api-key / Authorization: Bearer

Create an API key in the console and put it in the ECHO_API_KEY environment variable.

Endpoints

Method and pathWhat it does
POST /v1/chat/completionsGenerate a chat reply (Chat Completions API)
POST /v1/responsesGenerate a response (Responses API)
POST /v1/messagesGenerate a chat reply (Messages API)

Call examples

The same model ID works with both the OpenAI and Anthropic formats.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://token.echohub.io/v1",
    api_key=os.environ["ECHO_API_KEY"],
)

res = client.chat.completions.create(
    model="deepseek-v4-pro-global",
    messages=[{"role": "user", "content": "Hello"}],
)
print(res.choices[0].message.content)

Related docs