OmniRouter
Qwen 3.8 Max
Qwen 3.8 Max from OmniRouter, with a 1M-token context window. Call it as qwen/qwen-3.8-max through the OpenAI- or Anthropic-compatible endpoint with a Tokens key.
qwen/qwen-3.8-max- Input, per 1M tokens
- ৳275.00$2.20
- Output, per 1M tokens
- ৳825.00$6.60
- Context window
- 1M1,000,000 tokens
- Available on
- Free, Weekly, Monthly, Pay as you go
What it costs in practice
Estimates at the current price. Coding agents send far more input than output; your own mix depends on the agent and the task.
| Workload | USD | BDT |
|---|---|---|
| One agent turn25K input, 1.5K output | $0.06 | ৳8.11 |
| An hour of agent work1M input, 60K output | $2.60 | ৳324.50 |
| A month of daily use20M input, 1.2M output | $51.92 | ৳6,490.00 |
Use Qwen 3.8 Max
Each setup already points at Tokens with this model selected. Replace the key with one from your dashboard. Quickstart
~/.claude/settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://tokens.bd",
"ANTHROPIC_AUTH_TOKEN": "tok_live_your_key",
"ANTHROPIC_MODEL": "qwen/qwen-3.8-max"
}
}Configure Claude Code CLI via ~/.claude/settings.json or environment exports.
~/.codex/config.toml
# ~/.codex/config.toml model = "qwen/qwen-3.8-max" model_provider = "tokens" [model_providers.tokens] name = "Tokens" base_url = "https://tokens.bd/v1" env_key = "TOKENS_API_KEY" wire_api = "responses" # In your shell profile (~/.bashrc, ~/.zshrc): export TOKENS_API_KEY="tok_live_your_key"
Add a custom model provider to ~/.codex/config.toml and export the key in your shell.
opencode.json
{
"provider": {
"tokens": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://tokens.bd/v1",
"apiKey": "tok_live_your_key"
},
"models": {
"qwen/qwen-3.8-max": {}
}
}
}
}Project or global configuration for OpenCode CLI / IDE agent.
Cursor Settings
1. Open Cursor Settings -> Models 2. Under "OpenAI API Key", enter: tok_live_your_key 3. Click "Override OpenAI Base URL" and enter: https://tokens.bd/v1 4. Click "Add Custom Model" and enter: qwen/qwen-3.8-max
Add to Cursor: Settings (Gear icon) → Models → Add Custom Model & OpenAI Override.
client.py
from openai import OpenAI
client = OpenAI(
base_url="https://tokens.bd/v1",
api_key="tok_live_your_key",
)
response = client.chat.completions.create(
model="qwen/qwen-3.8-max",
messages=[
{"role": "system", "content": "You are an expert coding assistant."},
{"role": "user", "content": "Write a quick hello world in Python"},
],
temperature=0.7,
)
print(response.choices[0].message.content)Official OpenAI Python library pointing to Tokens endpoint.
request.sh
curl -X POST "https://tokens.bd/v1/chat/completions" \
-H "Authorization: Bearer tok_live_your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen-3.8-max",
"messages": [
{"role": "system", "content": "You are an expert coding assistant."},
{"role": "user", "content": "Write a quick hello world in Python"}
],
"temperature": 0.7
}'Raw HTTP POST request to OpenAI-compatible chat completions.