Multi-Model AI Gateway · Global Access · High Availability
TokenEase provides a unified API interface supporting DeepSeek, Zhipu GLM, Alibaba Qwen, and other mainstream AI models.
https://tokenease.io/v1
Include your API Key in the request header:
Authorization: Bearer YOUR_API_KEY
High-speed inference · Function Call support
High-precision reasoning
Zhipu AI's latest model
Alibaba Tongyi Qianwen
ByteDance Doubao
Use the chat completions endpoint for multi-turn conversations with AI models.
deepseek-v4 or glm-5.1
role and content
curl -X POST https://tokenease.io/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello, who are you?"}
],
"temperature": 0.7,
"max_tokens": 1000
}'
{
"id": "chatcmpl-xxxxx",
"object": "chat.completion",
"created": 1748390400,
"model": "deepseek-v4",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm TokenEase AI assistant..."
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 20,
"completion_tokens": 150,
"total_tokens": 170
}
}
Get all available models and their details.
{
"object": "list",
"data": [
{
"id": "deepseek-v4",
"object": "model",
"name": "DeepSeek V4 Flash",
"provider": "DeepSeek",
"context_length": 64000,
"price_per_1m_tokens": 0.5
},
{
"id": "glm-5.1",
"object": "model",
"name": "GLM-5.1",
"provider": "Zhipu AI",
"context_length": 128000,
"price_per_1m_tokens": 8
},
{
"id": "qwen-plus",
"object": "model",
"name": "Qwen-Plus",
"provider": "Alibaba",
"context_length": 131072,
"price_per_1m_tokens": 3
}
]
}
# Install
pip install openai
# Usage
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://tokenease.io/v1"
)
response = client.chat.completions.create(
model="deepseek-v4",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)
// Install
// npm install openai
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://tokenease.io/v1'
});
const response = await client.chat.completions.create({
model: 'deepseek-v4',
messages: [
{ role: 'user', content: 'Hello!' }
]
});
console.log(response.choices[0].message.content);
curl https://tokenease.io/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Sign up now, get free credits, and experience the power of TokenEase.