API reference
Top Tools AI API
One OpenAI-compatible endpoint for every model on Top Tools AI. Keep your existing SDK, change the base URL and API key, and pick a model by name.
Base URL
https://top-tools-ai.com/api/v1
Auth
Bearer API key
Format
JSON · streaming (SSE)
01 · Start here
Quickstart
- 1Create an API key in your dashboard.
- 2Point your OpenAI client at
https://top-tools-ai.com/api/v1. - 3Set
modelto a model you have access to, such asTop-Tools-Ai.
curl https://top-tools-ai.com/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Top-Tools-Ai",
"messages": [
{ "role": "user", "content": "What is the capital of France?" }
]
}'02
Authentication
Authorization header of every request.Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
03
Models
Top-Tools-Ai
Top Tools AI · 512K context
10M free tokens/day · unlimited with a paid plan
Step 5 Preview
StepFun · 1M context
Unlimited with a paid plan
Qwen-3.8-Max
Qwen · 1M context
Unlimited with a paid plan
GLM-5.2
Z.AI · 1M context
Unlimited with a paid plan
GLM-5.3
Z.AI · 1M context
Unlimited with a paid plan
GLM-5.3-Flash
Z.AI · 1M context
Unlimited with a paid plan
MiMo-V2.5
Xiaomi · 1M context
Unlimited with a paid plan
MiMo-V2.5-Pro
Xiaomi · 1M context
Unlimited with a paid plan
MiMo-V2.6-Pro
Xiaomi · 1M context
Unlimited with a paid plan
MiMo-V2.6-Flash
Xiaomi · 1M context
Unlimited with a paid plan
DeepSeek-V4-Pro
DeepSeek · 1M context
Unlimited with a paid plan
DeepSeek-V4-Flash
DeepSeek · 1M context
Unlimited with a paid plan
DeepSeek-V4.1-Flash
DeepSeek · 1M context
Unlimited with a paid plan
DeepSeek V4.1 Flash-1017
DeepSeek · 1M context
Unlimited with a paid plan
MiniMax-M3
MiniMax · 1M context
Unlimited with a paid plan
MiniMax-M3.1-Flash
MiniMax · 1M context
Unlimited with a paid plan
MiniMax-M2.7
MiniMax · 204K context
Unlimited with a paid plan
Kimi-K2.7-Code
Moonshot · 256K context
Unlimited with a paid plan
Kimi-K2.6
Moonshot · 256K context
Unlimited with a paid plan
gpt-5.6-sol
OpenAI · 1M context
$1.00 / 1M input · $8.00 / 1M output
claude-opus-5
Anthropic · 1M context
$3.00 / 1M input · $13.00 / 1M output
DeepSeek-V4-Flash-Vision-Exp
DeepSeek · 1M context
$0.17 / 1M input · $0.28 / 1M output
Welcome balance
New accounts get a one-time 10 million-token balance for non-PAYG models except Top-Tools-Ai. Top-Tools-Ai has its own separate 10 million-token daily allowance.Paid plans
Plans unlock a model for 3, 30, or 90 days with no usage caps. See plan pricing. PAYG models need a separate paid balance.04
Chat completions
POST /chat/completions follows the OpenAI chat format. Requesting a model you don't have access to returns a 403.Response
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"model": "Top-Tools-Ai",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The capital of France is Paris."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 24,
"completion_tokens": 9,
"total_tokens": 33
}
}Streaming
Set "stream": true to receive server-sent events, exactly like the OpenAI API.
curl https://top-tools-ai.com/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "MiMo-V2.6-Pro",
"stream": true,
"messages": [{ "role": "user", "content": "Write a haiku about APIs." }]
}'Tool calls
Pass OpenAI-style tools. Run the call yourself and send the result back as a tool message. Models marked Tool Calls above support this.
{
"model": "GLM-5.3-Flash",
"messages": [{ "role": "user", "content": "What's the weather in Paris?" }],
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather for a city",
"parameters": {
"type": "object",
"properties": { "city": { "type": "string" } },
"required": ["city"]
}
}
}
]
}Vision
Send images as image_url content parts, using a URL or a base64 data URL. Models marked Vision accept them.
{
"model": "Qwen-3.8-Max",
"messages": [
{
"role": "user",
"content": [
{ "type": "text", "text": "Describe this image." },
{ "type": "image_url", "image_url": { "url": "data:image/png;base64,..." } }
]
}
]
}05
Image generation
POST /images/generations returns a URL to the generated image.curl https://top-tools-ai.com/api/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A futuristic city at night, neon lights, photorealistic",
"n": 1,
"size": "1024x1024"
}'{
"created": 1720000000,
"data": [
{ "url": "https://..." }
]
}06
Limits
45
requests / minute
Shared across all of your API keys. May be temporarily reduced to 30 during extremely high demand.
5
simultaneous requests
Per user, across chat completions and image generation. The 6th returns 429.
500
admin concurrency
Admin accounts may run up to 500 active requests. The 501st returns 429.
API Limits Plus costs $9.99/month and adds 10 concurrent requests and 30 RPM, normally bringing your account to 15 simultaneous requests and 75 requests per minute. You can start the upgrade from the dashboard.
When you hit a concurrency limit, retry after one of your active requests finishes.
07
Errors
{
"error": {
"message": "Too many concurrent requests",
"type": "rate_limit_error",
"code": "concurrency_limit_exceeded"
}
}Ready to build?
Create an API key in the dashboard and send your first request.