Qwen3.8 27B
Live on the APIqwen3.8-27b$0.195/1M input
- Input → output
- Text promptImageText
- Context
- 262K tokens
Qwen3.8 27B
Alibaba (Qwen)
Output
ReadyStart a conversation
Replies stream in word by word. Each one shows its tokens and what it cost.
Enter to send · Shift + Enter for a new line
max 1,024 tokens outmax 1,024 tokens out
Qwen3.8 27B API prices
Every tier we sell, next to the model maker's official price.
| Tier | Opennan | Official |
|---|---|---|
| Input, per 1M tokens | $0.195 | $0.5061% below |
| Cached input, per 1M tokens | $0.04875 | Below the maker's price |
| Output, per 1M tokens | $2.438 | $3.0018% below |
Official is the model maker's own list price for the same tier. Where the maker publishes a price, we never sell above it, most tiers at least 10% below.
Call Qwen3.8 27B from your code
Everything for your first call is on this page: the endpoint, a key, the request and every parameter.
https:/ / api.opennan.com/ v1/ chat/ completionsGet an API key
Create a key in the console. It uses the same balance as the playground.
Create a keySend your first request
The same request the playground sends. Set OPENNAN_KEY to your key.
curl -N https://api.opennan.com/v1/chat/completions \ -H "Authorization: Bearer $OPENNAN_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"qwen3.8-27b","messages":[{"role":"user","content":"Write a haiku about a city at night."}],"max_tokens":1024,"temperature":1,"top_p":1,"stream":true,"stream_options":{"include_usage":true}}'Read the result
The result comes back in the same response. The X-Usage-Cost-Usd header says what the call cost.
Parameters
Built from the live catalog: every value listed here is one the API accepts.
Errors and how to fix them
401Missing or wrong key
Send the header Authorization: Bearer with a key from the console.
402Balance too low
Add credit in Billing, then send the same call again.
400A value is not accepted
Read error.message: it names the field. Use a value from the parameter table.
429Too many requests
Wait a few seconds and try again, waiting longer after each 429.
Add Opennan to your AI app
One install gives your AI every Opennan tool: video, images, chat, voice, music, sound effects, 3D, captions and dubbing. Pick your app and follow the steps.
https:/ / api.opennan.com/ v1/ mcpWorks in the Codex CLI, the Codex app and the Codex IDE extension: they share ~/.codex/config.toml. If the app or IDE does not see OPENNAN_KEY, use the config.toml option with your key in it. Codex asks before each tool call: approve it to go on.
Get an API key
Create a key in the console. It starts with sk- and uses the same balance as the website.
Create a keySave your key as OPENNAN_KEY
# macOS / Linux (zsh shown; bash: ~/.bashrc) echo 'export OPENNAN_KEY="sk-..."' >> ~/.zshrc source ~/.zshrc # Windows (PowerShell), then open a new terminal setx OPENNAN_KEY "sk-..."Install the Opennan plugin: the server plus a skill that teaches your AI to pick models, confirm prices and wait for results
codex plugin marketplace add Opennan/opennan-ai-plugin codex plugin add opennan@opennanOr add only the server
codex mcp add opennan --url https://api.opennan.com/v1/mcp --bearer-token-env-var OPENNAN_KEYOr add this to ~/.codex/config.toml
[mcp_servers.opennan] url = "https://api.opennan.com/v1/mcp" http_headers = { Authorization = "Bearer sk-..." }Check that opennan is listed
codex mcp listRestart Codex, then ask for anything
“Make a 5 second video of rain on a neon street, a song to go with it and a poster image.”
Replace sk-... with your own key and keep it private: anyone who has it can spend your balance. Your app can list the tools before you add a key; making anything needs one.
This tool from your AI
Once Opennan is added, your AI calls this tool with arguments like these.
- Tool
- chat
- Example arguments
{ "model": "qwen3.8-27b", "messages": [ { "role": "user", "content": "Write a haiku about a city at night." } ] }
Qwen3.8 27B API questions
How much does the Qwen3.8 27B API cost?
Qwen3.8 27B API on Opennan: $0.195 in / $2.438 out per 1M tokens. Prices are in US dollars per call, shown before you run, and every tier is in the price table.
What inputs does Qwen3.8 27B take?
Text prompt, Image.
Which options can a call set?
Context window: 262,144 tokens. Up to 65,536 output tokens per reply.
How is it billed?
Per token: input, cached input and output tokens are priced per 1M tokens and billed separately.
What happens if a generation fails?
A request that fails is not charged. You pay only for the tokens used.
How do I call Qwen3.8 27B from an AI agent?
Add the MCP server https://api.opennan.com/v1/mcp with your API key as a bearer token, then call the chat tool with model "qwen3.8-27b". Or send a POST to https://api.opennan.com/v1/chat/completions.
Similar models
Text models you can call with the same key.
Same task
More from Alibaba (Qwen)
- Qwen3.6 35B A3BAlibaba (Qwen)from $0.13 in / $1.235 out per 1M tokens$0.248 in / $1.485 out per 1M tokens-16%
- Qwen3 235B A22B Instruct 2507Alibaba (Qwen)from $0.117 in / $0.715 out per 1M tokens
- Qwen3-ASR 0.6BAlibaba (Qwen)from $0.00026 per minute (billed per started minute)$0.0021 per minute (billed per started minute)-87%
- Qwen3-ASR 1.7BAlibaba (Qwen)from $0.000585 per minute (billed per started minute)$0.0021 per minute (billed per started minute)-72%