StepFun
Step 5 Preview
Step 5 Preview from StepFun, with a 1M-token context window. Call it as stepfun/step-5-preview through the OpenAI- or Anthropic-compatible endpoint with a Tokens key.
stepfun/step-5-preview- Input, per 1M tokens
- ৳137.50$1.10
- Output, per 1M tokens
- ৳371.25$2.97
- 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.03 | ৳3.99 |
| An hour of agent work1M input, 60K output | $1.28 | ৳159.78 |
| A month of daily use20M input, 1.2M output | $25.56 | ৳3,195.50 |
Use Step 5 Preview
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": "stepfun/step-5-preview"
}
}Configure Claude Code CLI via ~/.claude/settings.json or environment exports.
~/.codex/config.toml
# ~/.codex/config.toml model = "stepfun/step-5-preview" 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": {
"stepfun/step-5-preview": {}
}
}
}
}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: stepfun/step-5-preview
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="stepfun/step-5-preview",
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": "stepfun/step-5-preview",
"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.