SDAIA: allam-2-7b
allam-2-7b- Input / Output
- $0.05 / $0.08
- Context
- 32K
- Max output
- 4K
- Modalities
- Chat
Getting started
Create API key
Create a key in Console, then use it with every model on the platform.
Send your first request
Copy the example for your language and run it against the endpoint.
chat_completionOpenAI-compatiblePOST/v1/chat/completionscurl https://api.tokenlab.sh/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-xxx" \ -d '{ "model": "allam-2-7b", "messages": [ {"role": "user", "content": "Hello!"} ] }'
Pricing
Official price is the model maker's public baseline. TokenLab price is what you pay for this model on TokenLab.
Pricing
Per 1M tokens- TokenLab price
- Input$0.05Output$0.08Per 1M tokens
- Official price
- Input$0.05Output$0.08Per 1M tokens
| Official pricePer 1M tokens | TokenLab pricePer 1M tokens | Discount | |
|---|---|---|---|
| Input | $0.05 | $0.05 | - |
| Output | $0.08 | $0.08 | - |
Usage & activity
Success rate is the share of requests that completed. Latency is how long a full response takes; P95 means 95% of requests finished within that time.
Usage & availability
Last 24 hoursNo data yet
Data is based on aggregate user requests, excluding status checks.
Open in Console
Open allam-2-7b in Console with a prompt ready to edit or send.
Help me try allam-2-7b with a short message at /v1/chat/completions. Show the reply, latency, and cost.
Use cases
Agents and tools
Handle reasoning, support triage, tool calls, and multi-step tasks.
Coding
Generate, review, or debug code in the tools you already use.
Knowledge assistants
Build chat, search, and retrieval with a clear price and capability profile.
Side-by-side test
Compare response quality, latency, and price side by side.
Prompt examples
Write a concise support reply and list the assumptions behind it.
Review this API design and call out the top three integration risks.
Turn a long changelog into release notes a non-engineer would read.
Cost calculator
FAQ
How much does allam-2-7b cost?
On TokenLab, allam-2-7b costs Input $0.05 / Output $0.08 Per 1M tokens. The pricing table above shows the full breakdown.
How do I test allam-2-7b?
Open allam-2-7b in Create. A sample for /v1/chat/completions will be ready to try.
Which endpoint should allam-2-7b use?
Use https://api.tokenlab.sh/v1/chat/completions for allam-2-7b. The request example below shows the matching code shape.
Can I test allam-2-7b before integrating it?
Yes. Open Console starts a ready draft for allam-2-7b and keeps your prompt after sign-in, so you don’t lose context.
Which operations does allam-2-7b support?
allam-2-7b supports chat_completion. Select an operation above to see its endpoint and request example.