What you’ll learn
- Can I keep my OpenAI SDK code when I move from Together AI to TokenLab?
- Does TokenLab fail over to another model automatically?
- Does TokenLab have a batch API?
- Is TokenLab cheaper than Together AI for the same model?
- Do I have to move all my traffic at once?
Most teams that look for a Together AI alternative do not need a different GPU cluster. They need fewer moving parts. Together's docs describe serverless per-token inference for open models, plus separate dedicated endpoints, fine-tuning, a Batch API and provisioned throughput. TokenLab documents one balance, one API key and four request formats for models from many makers. This page compares the two on API formats, rate limits, batch jobs and prices for the models both list. Together and TokenLab pages and prices were read on 2026-11-11.
Key takeaways
- Both APIs accept OpenAI-style Chat Completions and the OpenAI Responses format. Both also accept the Anthropic Messages format. TokenLab accepts the Gemini format as well. Together uses
https://api.together.ai/v1, and TokenLab useshttps://api.tokenlab.sh/v1. - Together publishes no numeric rate limit for serverless and calls its performance best-effort. TokenLab publishes requests per minute for each API key: 1,000 for the User tier.
- Both services have a Batch API. TokenLab's
POST /v1/batchesaccepts Chat Completions and embeddings requests. Together's batch API gives up to 50% off serverless rates. - For the models in the price table below, prices are equal on most rows. Together is lower for Qwen3.7 Plus. TokenLab is lower for DeepSeek V4.1 Flash and DeepSeek V4 Pro off-peak.
- Claude, GPT, Gemini and Grok chat models are not in Together's serverless chat model list. TokenLab serves them, with lower Verified prices on most.
Together AI and TokenLab side by side
| Item | Together AI | TokenLab |
|---|---|---|
| Base URL | https://api.together.ai/v1 |
https://api.tokenlab.sh/v1. The Anthropic SDK uses https://api.tokenlab.sh. |
| Model IDs | Use the form <provider>/<model_name> |
No provider prefix. Read IDs from GET /v1/models. |
| API formats | OpenAI SDK calls for chat, completions, embeddings, images, speech and transcription. Also the Responses API and the Anthropic Messages API. Assistants, fine-tuning jobs and batches are not supported in OpenAI shape. See OpenAI compatibility. | Chat Completions, Responses, Anthropic Messages and Gemini generateContent. Each model lists its accepted_request_formats. See API formats. |
| Rate limits | No numeric limit. Under high demand you can get 429 or 503. Provisioned throughput gives guarantees under an SLA. See rate limits. |
Per API key: User 1,000, Partner 10,000, VIP 10,000 requests per minute. These are the standard tier values and can change. See rate limits. |
| Batch | Together-native Batch API. Up to 50% off serverless rates, up to 50,000 requests and 100 MB per input file, one model per batch. | Batch API. Up to 50,000 requests and 200 MiB per file, 24-hour window. See the next section. |
| Your own weights | Dedicated endpoints and a fine-tuning API | Not in the TokenLab docs. TokenLab serves the models in its catalog. |
Prices for models both list
Prices are USD per million input and output tokens. Together prices come from its serverless models page. TokenLab prices come from the model pricing API. TokenLab serves all of these models with Official delivery, so there is no Verified price.
| Model | Together input / output | TokenLab input / output |
|---|---|---|
GLM-5.3 (glm-5.3) |
$1.40 / $4.40 | $1.40 / $4.40 |
GLM-5.3 Flash (glm-5.3-flash) |
$0.15 / $0.50 | $0.15 / $0.50 |
Kimi K3.1 Pro (kimi-k3.1-pro) |
$2.00 / $10.00 | $2 / $10 |
DeepSeek V4.1 Flash (deepseek-v4.1-flash) |
$0.30 / $1.20 | Off-peak $0.15 / $0.60, peak $0.30 / $1.20 |
DeepSeek V4 Pro (deepseek-v4-pro) |
$1.32 / $3.96 (the 0813 build) | Off-peak $0.66 / $1.98, peak $1.32 / $3.96 |
Qwen3.7 Plus (qwen3.7-plus) |
$0.32 / $1.28 | $0.40 / $1.60 up to 256,000 input tokens, $1.20 / $4.80 above |
Qwen3.8 Flash (qwen3.8-flash) |
$0.15 / $0.47 | $0.15 / $0.47 |
GPT-OSS 120B (gpt-oss-120b) |
$0.15 / $0.60 | $0.15 / $0.60 |
The DeepSeek rows need care. TokenLab's peak window for deepseek-v4-pro is 09:00-12:00 and 14:00-18:00 Beijing time, Monday to Friday, except China public holidays. Together lists one price and a specific 0813 build, so the models may not be identical.
Here is a worked estimate for 10M input and 2M output tokens of Qwen3.7 Plus, with every prompt under 256,000 tokens. On TokenLab it costs 10 × $0.40 + 2 × $1.60 = $7.20. On Together it costs 10 × $0.32 + 2 × $1.28 = $5.76. Both numbers are list-price estimates without caching or tax. Compare the final cost per finished task in your own usage records.
Together's serverless list has open models. TokenLab also serves closed models, and many have a Verified price. For example, Claude Sonnet 5.5 costs $0.70 input and $3.50 output per million tokens with Verified delivery, and GPT-6.1 Terra costs $0.30 and $1.50. Read the current price of any model with GET /v1/models/{model}/pricing.
Batch jobs on TokenLab
TokenLab has two batch APIs. Both run asynchronously and reserve the estimated cost when the batch is accepted. They return 402 if the balance cannot cover it. TokenLab says that batch prices may differ from synchronous prices, so check the final bill.
POST /v1/batchestakes a JSONL file that you upload withpurpose=batchtoPOST /v1/files. A file can hold up to 50,000 lines and 200 MiB. Each line has acustom_id, the methodPOST, the endpoint URL and a request body. The batch endpoint can be/v1/chat/completionsor/v1/embeddings./v1/responsesis not supported, and streaming is not supported inside batch items. The completion window is24h, and it is the only value. Output order can differ from input order, so match results bycustom_id.POST /v1/messages/batchestakes up to 100,000 Anthropic Messages requests in one call. Read the Create Message Batch reference for the request format.
Together's batch API also works from an uploaded JSONL file. A Together batch must use one model for every line of the file. Check each service's reference for its batch rules before you move a batch workload.
Delivery options and retries on TokenLab
TokenLab has three delivery options, which you choose per request with the X-TokenLab-Delivery-Policy header: auto, verified or official. A request header overrides the API key setting, and the API key setting overrides the Workspace default.
Verifieduses routes that TokenLab has tested, at the Verified price.Officialuses the model maker's route and price.Autotries Verified first and runs on Official if Verified has no supply or fails before any output. You pay for the option that completed the request.
These options choose a delivery route. They do not change the model. If a model is not available, handle the error and send a new request with another model ID. The model deprecation guide shows a tested fallback pattern.
The docs describe retries by status code (error handling, rate limits):
| Status | Documented action |
|---|---|
400, 401, 402, 403, 404, 413 |
Do not repeat the request. Change the request, key, balance, permissions or input. |
429 |
Retry after the Retry-After delay. Use exponential backoff with jitter if the header is missing. |
500 to 504 |
Retry only when retryable is true. Respect retry_after and cap the attempts. |
The quickstart clients set max_retries=0, so the retry policy stays in your code. Do not retry an async create request for video, music or 3D before you check whether a task already exists.
Migration snippet: one completion on each API
Both services list GLM-5.3. Together's model string follows <provider>/<model_name>, and TokenLab's ID has no provider prefix.
import os
from openai import OpenAI
TOGETHER_MODEL = "zai-org/GLM-5.3"
together = OpenAI(
api_key=os.environ["TOGETHER_API_KEY"],
base_url="https://api.together.ai/v1",
)
tokenlab = OpenAI(
api_key=os.environ["TOKENLAB_API_KEY"],
base_url="https://api.tokenlab.sh/v1",
timeout=30.0,
max_retries=0,
)
messages = [{"role": "user", "content": "Reply only with OK."}]
a = together.chat.completions.create(model=TOGETHER_MODEL, messages=messages)
b = tokenlab.chat.completions.create(model="glm-5.3", messages=messages)
print(a.choices[0].message.content)
print(b.choices[0].message.content)
Confirm the model ID with GET /v1/models before you send traffic. If you come from OpenRouter, the migration guide says to swap the base URL and drop the provider prefix from model IDs.
Who should stay and who should add TokenLab
Stay on Together AI if you need what its docs list and the TokenLab docs do not describe: a fine-tuning API, dedicated endpoints for your own models, or provisioned throughput that reserves capacity under an SLA.
Add TokenLab if these points match your product:
- You want one balance across models from many makers, with no subscription or minimum spend.
- You call Claude, GPT, Gemini or Grok models and want Verified prices.
- You need Anthropic Messages or Gemini-native fields on the same key as an OpenAI client.
- You want to choose Verified, Official or Auto delivery per request.
A hybrid works too. Keep fine-tuned traffic on Together and send everything else through one TokenLab key. TokenLab also serves image, video, music and 3D models, with a task_id and a poll_url for each async job. See the image model guide and the video model guide.
FAQ
Can I keep my OpenAI SDK code when I move from Together AI to TokenLab?
Mostly, yes. Change base_url to https://api.tokenlab.sh/v1, change the key and pick a model ID from GET /v1/models. Existing retry, timeout and streaming code can usually stay. Fields that belong to another API format are not guaranteed on Chat Completions.
Does TokenLab fail over to another model automatically?
No. The Auto delivery option switches from Verified to Official for the same model. It does not pick another model. If the selected delivery option has no supply, you can get 503 delivery_tier_unavailable or 503 all_channels_failed, and the retryable field tells you whether to retry.
Does TokenLab have a batch API?
Yes. POST /v1/batches runs Chat Completions and embeddings requests from a JSONL file, and POST /v1/messages/batches runs Anthropic Messages requests. The completion window is 24 hours.
Is TokenLab cheaper than Together AI for the same model?
Not always. On the models in the price table, GLM-5.3, GLM-5.3 Flash, Kimi K3.1 Pro, Qwen3.8 Flash and GPT-OSS 120B cost the same. Qwen3.7 Plus is lower on Together. DeepSeek V4.1 Flash and DeepSeek V4 Pro are lower on TokenLab off-peak. Compare the final cost on your own workload.
Do I have to move all my traffic at once?
No. The two APIs use separate base URLs and keys, so you can send one workload through TokenLab and leave the rest on Together. Move one model first and check its cost in Usage.
To compare your current Together workload with TokenLab, start with the model list and the OpenRouter comparison.
Sources
Prices checked 2026-11-11
- Together docs: serverless models and pricesSources checked 2026-11-11
- Together docs: OpenAI compatibilitySources checked 2026-11-11
- Together docs: rate limitsSources checked 2026-11-11
- Together docs: Batch APISources checked 2026-11-11
- TokenLab docs: Create BatchSources checked 2026-11-11
- TokenLab docs: rate limitsSources checked 2026-11-11
- TokenLab docs: API formatsSources checked 2026-11-11
- TokenLab API: model pricesSources checked 2026-11-11



