Models සහ මිල ගණන්
TOKENS 1M කටAPI එකේ සෑම model id එකක්ම, එය පිළිගන්නා දේ සහ එයට වැය වන්නේ කොපමණද: Shannon models 10ක් සහ අපගේ සේවාදායකවල ධාවනය වන open-weight models 12ක්, endpoints තුනේම ලබා ගත හැක. GET /v1/models එම ලැයිස්තුවම JSON ලෙස ආපසු දෙයි.
- වාරණය නැති models
- 22
- context window
- 256K
- සිට
- $0.50 /1M
අපගේ සේවාදායකවල ධාවනය වන open-weight models
සෑම id එකකම tokens 262,144 context එකක්; input සහ output වෙන වෙනම බිල් කෙරේ; සෑම id එකක්ම එය අනුකරණය කරන model එක පිළිගන්නා දේ පිළිගනී
| Model | Input | Structured output | 1M එකකට In / cached / out | තවත් |
|---|---|---|---|---|
3BIT-REAPDeepSeek · 1.6T MoE · 49B activeවාරණය නැති | Text input | JSON schema | $1.95 / $0.488 / $3.90 | තවත් |
3BIT-REAPZ.ai · 744B MoE · 40B activeවාරණය නැති | Text input | JSON schema | $0.73 / $0.183 / $2.34 | තවත් |
3BIT-REAPMoonshot AI · 2.8T MoE · 104B activeවාරණය නැති | Text + රූප input | JSON schema | $3.83 / $0.958 / $19.12 | තවත් |
3BIT-REAPNVIDIA · 550B hybrid Mamba-Attention MoE · 55B activeවාරණය නැති | Text input | JSON schema | $0.75 / $0.188 / $3.30 | තවත් |
3BIT-REAPMiniMax · 428B MoE · 23B active · sparse attentionවාරණය නැති | Text + රූප input | JSON schema | $0.50 / $0.125 / $2.00 | තවත් |
W4A16-AUTOROUND-REAPDeepSeek · 284B MoE · 13B activeවාරණය නැති | Text input | JSON schema | $0.50 / $0.125 / $2.00 | තවත් |
W4A16-AUTOROUND-REAPMoonshot AI · 1T MoE · 32B activeවාරණය නැති | Text + රූප input | JSON schema | $0.78 / $0.195 / $3.67 | තවත් |
W4A16-AUTOROUND-REAPPoolside · 118B MoE · 8B activeවාරණය නැති | Text input | Structured output නැත | $0.50 / $0.125 / $2.00 | තවත් |
W4A16-AUTOROUND-REAPThinking Machines · 975B MoE · 41B activeවාරණය නැති | Text + රූප input | JSON object | $1.42 / $0.355 / $6.07 | තවත් |
W8A16Xiaomi · 1.02T MoE · 42B active · 8-bitවාරණය නැති | Text input | JSON schema | $0.50 / $0.125 / $2.00 | තවත් |
W8A16Xiaomi · 8-bit multimodal · W8A16වාරණය නැති | Text + රූප input | JSON schema | $0.50 / $0.125 / $2.00 | තවත් |
W8A16Tencent · 295B MoE · 21B active · 8-bitවාරණය නැති | Text input | JSON schema | $0.50 / $0.125 / $2.00 | තවත් |
Shannon models
input සහ output සඳහා එකම ස්ථාවර ගාස්තුවක්
| Model | Context | Input | Structured output | මිල / tokens 1M |
|---|---|---|---|---|
shannon-1.6-liteවාරණය නැති | 192K | Text + රූප input | JSON schema | $3.90 |
shannon-1.6-proවාරණය නැති | 192K | Text + රූප input | JSON schema | $7.80 |
shannon-2-liteවාරණය නැති | 192K | Text + රූප input | JSON schema | $3.90 |
shannon-2-proවාරණය නැති | 192K | Text + රූප input | JSON schema | $5.85 |
shannon-3වාරණය නැති | 192K | Text + රූප input | JSON schema | $3.35 |
shannon-3-proවාරණය නැති | 192K | Text + රූප input | JSON schema | $3.35 |
shannon-3.1වාරණය නැති | 192K | Text + රූප input | JSON schema | $3.35 |
shannon-3.1-proවාරණය නැති | 192K | Text + රූප input | JSON schema | $3.35 |
shannon-3.5වාරණය නැති | 192K | Text + රූප input | JSON schema | $3.35 |
shannon-coder-1වාරණය නැති | 128K | Text input | JSON schema | $8.00 |
Quickstart වෙත යන්න Playground උත්සාහ කරන්න
පේළියක් කියවන ආකාරය
| තීරුව | එය පවසන දේ |
|---|---|
| Model | සංදර්ශන නම. එයට පහළ පේළිය ඔබ model ලෙස යවන id එකයි. Host කළ වගුවේ id එක යනු නම සහ එය අසල ඇති tag එක hyphen එකකින් සම්බන්ධ කිරීමයි: MiniMax-M3 සහ 3BIT-REAP මගින් MiniMax-M3-3BIT-REAP සෑදේ. නමට පහළ පේළියේ model එක සෑදූ අය සහ එහි ප්රමාණය පෙන්වයි. |
| Context | Context window එක: model එක සංවාදයේ tokens කීයක් කියවයිද. K යනු tokens 1,024කි. නිවැරදි අංකය GET /v1/models හි context_window වේ. |
| ආදානය | පෙළ පමණක්, හෝ පෙළ සහ රූප. රූප කියවන model එකක් capabilities.vision: true වාර්තා කරයි. shannon-2-lite සහ shannon-2-pro tools හෝ response_format ද යවන ඉල්ලීම්වල රූප කියවයි. |
| ව්යුහගත output | response_format මගින් model එකෙන් ඉල්ලිය හැකි දේ: ඔබේ JSON schema එක අනුගමනය කරන පිළිතුරක්, JSON object එකක් වන පිළිතුරක්, නැතහොත් දෙකම නොවේ. |
| මිල | Tokens 1,000,000කට USD. Shannon model එකකට input සහ output සඳහා එක මිලක් ඇත. අපගේ සේවාදායකවල ධාවනය වන open-weight model එකකට තුනක් ඇත: input, cached input සහ output. |
සෑම model එකක්ම stream කරන අතර tools call කළ හැක. API එකේ අනෙකුත් විශේෂාංග Capabilities පිටුවේ විස්තර කර ඇත. හැකියාවන්
සංවාදයේ ප්රමාණය (context window) සහ output සීමා
- Context window එක model එක එක පිළිතුරක් සඳහා කියවන සියල්ල ආවරණය කරයි: ඔබේ පණිවිඩ, tool අර්ථ දැක්වීම් සහ රූප.
- Shannon 3 පවුල දිගු සංවාදයක් තනිවම ගළපා ගනී: කවුළුවට ඇතුළත් වන අලුත්ම turns තබාගෙන පිළිතුරු දෙයි.
- Stream එකක, ඉතා දිගු prompt එකක්
invalid_request_errortype එක සහcode: "context_length_exceeded"සහිත error frame එකක් ලෙස වාර්තා කෙරේ. max_tokensසෑම model එකකම 1 සිට 65,536 දක්වා අගයන් ගනී;GET /v1/modelsහිmax_output_tokensඑම පරාසයේ ඉහළ අගයයි. පෙරනිමිය 4,096.- සෑම model එකකම,
max_tokensයනු ඉල්ලීමක් ඔබේ ශේෂයෙන් වෙන් කරන ප්රමාණයයි. - පිළිතුරේ දිග පිළිබඳ සීමාව ලෙස,
max_tokensක්රියාත්මක කරන්නේ අපගේ සේවාදායකවල ධාවනය වන open-weight models,shannon-1.6-lite,shannon-1.6-proසහshannon-coder-1ය. - අපගේ සේවාදායකවල ධාවනය වන open-weight models මත එය පිළිතුරේ පෙළ සීමා කරයි. පිළිතුරට පෙර තර්කනය ඊට ගණන් නොගන්නා අතර 256ට අඩු අගයක් 256 ලෙස ක්රියා කරයි.
shannon-1.6-lite,shannon-1.6-pro,shannon-coder-1හෝ Shannon 3 පවුලේ stream එකක් පිළිතුර එහි සීමාවේදී කපා හැරි විටfinish_reason: "length"සමඟ අවසන් වේ.
මිලක් සෑදෙන ආකාරය
- මිල ගණන් tokens 1,000,000කට USD වලින්. ඔබේ ශේෂය 1,000,000කට $5.00 වටිනා tokens වලින් ගණන් ගැනේ, එබැවින් model එකක මිලෙන් කියන්නේ එහි tokens ශේෂයෙන් කොපමණක් ගන්නේද යන්නයි.
- Shannon models සඳහා එක මිලක් ඇත. Call එකකට එම මිලට
usage.total_tokensඅය කෙරේ. - අපගේ සේවාදායකවල ධාවනය වන open-weight models සඳහා මිල තුනක් ඇත. Prompt cache එකෙන් කියවන input cached මිලට අය කෙරේ, එය $0.001 ට වටයන ලද input මිලෙන් 25%කි. ඉතිරි input input මිලට අය කෙරෙන අතර, output output මිලට.
- අපගේ සේවාදායකවල ධාවනය වන open-weight models සෑම model එකකම තමන්ගේම tokenizer එකෙන් tokens ගණන් කරයි.
GET /v1/modelsමෙයtokenizer: "original"ලෙස සලකුණු කරයි. /v1/chat/completionsසහ/v1/messagesහිshannon-coder-1ගණන් ගන්නේ tokens වලින් නොව calls වලිනි. එහි ලැයිස්තුගත මිල/v1/responsesහි අදාළ වේ.
ඉල්ලීමක් වෙන් කරන දේ, අය කිරීමක විසඳූ උදාහරණ සහ Shannon Coder call ප්රමාණය Limits and balance හි ඇත. සීමා සහ ශේෂය
Model ids
මෙම ids වලින් එකක් model ලෙස යවන්න.
shannon-1.6-lite
shannon-1.6-pro
shannon-2-lite
shannon-2-pro
shannon-3
shannon-3-pro
shannon-3.1
shannon-3.1-pro
shannon-3.5
shannon-coder-1
DeepSeek-V4-Pro-0813-3BIT-REAP
GLM-5.2-3BIT-REAP
Kimi-K3-3BIT-REAP
Nemotron3Ultra-3BIT-REAP
MiniMax-M3-3BIT-REAP
DeepSeek-V4-Flash-0731-W4A16-AUTOROUND-REAP
Kimi-K2.6-W4A16-AUTOROUND-REAP
Laguna-S-2.1-W4A16-AUTOROUND-REAP
inkling-W4A16-AUTOROUND-REAP
MiMo-V2.5-Pro-W8A16
MiMo-V2.5-W8A16
Hy3-W8A16 - ලොකු අකුරු සහ කුඩා අකුරු වැදගත් නොවන අතර, id එක වටා ඇති හිස්තැන් ඉවත් කෙරේ:
SHANNON-3සහshannon-3එකම model එකයි. - ඔබ කුමන අකුරු වින්යාසයක් යැවූවත්, පිළිතුරේ
modelහි සෑම විටම ප්රකාශිත id එක ඇත. Shannon 3වැනි සංදර්ශන නමක් id එකක් නොවේ.
කෙටි අකුරු වින්යාස හතරක් ද පිළිගනී.
| ඔබ යවන්නේ | පිළිතුරු දෙන model එක |
|---|---|
shannon-1.6 | shannon-1.6-lite |
shannon-3-lite | shannon-3 |
shannon-3.1-lite | shannon-3.1 |
shannon-coder | shannon-coder-1 |
ප්රකාශිත නොවන id එකකට endpoints තුනේම status 400, type invalid_request_error සහ unknown model: <id> පණිවිඩය සමඟ පිළිතුරු ලැබේ. එහි ස්ථානයේ වෙනත් model එකක් පිළිතුරු නොදෙයි.
{
"error": {
"type": "invalid_request_error",
"message": "unknown model: gpt-4o"
}
} {
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "unknown model: gpt-4o"
}
} - සෑම විටම
modelයවන්න. එය නැති ඉල්ලීමකට/v1/responses400සමඟ පිළිතුරු දෙයි./v1/chat/completionsසහ/v1/messagesහි එවැනි ඉල්ලීමකටshannon-1.6-liteපිළිතුරු දෙයි. POST /v1/tokenizeසහPOST /v1/messages/count_tokensඅපගේ සේවාදායකවල ධාවනය වන open-weight ids පිළිගනී.
Models ලැයිස්තුගත කරන්න
GET /v1/models මෙම පිටුවේ models එම context windows, මිල ගණන් සහ හැකියාවන් සමඟ JSON ලෙස ආපසු දෙයි. Model picker එකක් පිරවීමට හෝ code එකෙන් මිලක් පරීක්ෂා කිරීමට එය භාවිතා කරන්න.
GET https://api.shannon-ai.com/v1/models
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.shannon-ai.com/v1"
)
for model in client.models.list():
print(model.id) import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://api.shannon-ai.com/v1'
});
for await (const model of client.models.list()) {
console.log(model.id);
} curl "https://api.shannon-ai.com/v1/models" පිළිතුර, එක් එක් වර්ගයේ එක entry එකකට කෙටි කර:
{
"object": "list",
"data": [
{
"id": "shannon-3",
"object": "model",
"created": 1700000000,
"owned_by": "shannon-ai",
"display_name": "Shannon 3",
"context_window": 196608,
"max_output_tokens": 65536,
"pricing": {
"input_per_million_usd": 3.35,
"output_per_million_usd": 3.35,
"currency": "USD"
},
"capabilities": {
"tools": true,
"vision": true,
"reasoning": true,
"reasoning_effort": false,
"streaming": true,
"json_schema": true
},
"endpoints": [
"/v1/chat/completions",
"/v1/messages",
"/v1/responses"
]
},
{
"id": "MiniMax-M3-3BIT-REAP",
"object": "model",
"created": 1700000000,
"owned_by": "shannon-ai",
"display_name": "MiniMax-M3 · 3BIT-REAP",
"context_window": 262144,
"max_output_tokens": 65536,
"pricing": {
"input_per_million_usd": 0.5,
"cached_input_per_million_usd": 0.125,
"output_per_million_usd": 2,
"currency": "USD"
},
"tokenizer": "original",
"capabilities": {
"tools": true,
"vision": true,
"reasoning": true,
"reasoning_effort": true,
"streaming": true,
"response_format": true,
"json_schema": true,
"prompt_caching": true
},
"endpoints": [
"/v1/chat/completions",
"/v1/messages",
"/v1/responses",
"/v1/messages/count_tokens",
"/v1/tokenize"
]
}
]
} | Field | වර්ගය | විස්තරය | ඇත්තේ |
|---|---|---|---|
object | string | සෑම විටම list. | |
data | array | Call කළ හැකි model එකකට එක entry බැගින්. | |
data[].id | string | ඔබ model ලෙස යවන id එක. | සෑම model එකක්ම |
data[].object | string | සෑම විටම model. | සෑම model එකක්ම |
data[].created | integer | සෑම model එකකටම එකම ස්ථාවර අංකයක්: 1700000000. | සෑම model එකක්ම |
data[].owned_by | string | සෑම විටම shannon-ai. | සෑම model එකක්ම |
data[].display_name | string | සංදර්ශනය සඳහා නමක්. එය model ලෙස පිළිගන්නේ නැත. | සෑම model එකක්ම |
data[].context_window | integer | Tokens වලින් දැක්වෙන context window එකේ ප්රමාණය. | සෑම model එකක්ම |
data[].max_output_tokens | integer | ඉල්ලීමකට ඉල්ලිය හැකි විශාලතම output අයවැය: සෑම model එකකම 65536. | සෑම model එකක්ම |
data[].pricing.input_per_million_usd | number | Input tokens 1,000,000ක මිල USD වලින්. | සෑම model එකක්ම |
data[].pricing.cached_input_per_million_usd | number | ඉල්ලීමේ prompt එකෙන් cache එකෙන් කියවා ගත් input tokens මිලියනයක (1,000,000) මිල. | අපගේ සේවාදායකවල ධාවනය වන open-weight models |
data[].pricing.output_per_million_usd | number | Output tokens 1,000,000ක මිල USD වලින්. Shannon model එකක එය input මිලට සමානය. | සෑම model එකක්ම |
data[].pricing.currency | string | සෑම විටම USD. | සෑම model එකක්ම |
data[].tokenizer | string | original: tokens ගණන් කරන්නේ model එකේම tokenizer එකෙනි. | අපගේ සේවාදායකවල ධාවනය වන open-weight models |
data[].capabilities.tools | boolean | ඔබ ප්රකාශ කරන tools Model එකට call කළ හැක. සෑම model එකකම true. | සෑම model එකක්ම |
data[].capabilities.vision | boolean | Model එක රූප කියවයි. | සෑම model එකක්ම |
data[].capabilities.reasoning | boolean | Model එක පිළිතුරු දීමට පෙර තර්ක කරයි. | සෑම model එකක්ම |
data[].capabilities.reasoning_effort | boolean | ඉල්ලීමේ field එක වන reasoning_effort මෙම model එකේ බලපායි. | සෑම model එකක්ම |
data[].capabilities.streaming | boolean | සෑම model එකකම true. | සෑම model එකක්ම |
data[].capabilities.json_schema | boolean | json_schema වර්ගයේ response_format බලපායි. | සෑම model එකක්ම |
data[].capabilities.response_format | boolean | response_format බලපායි, අවම වශයෙන් JSON object එකක් ලෙස. | අපගේ සේවාදායකවල ධාවනය වන open-weight models |
data[].capabilities.prompt_caching | boolean | නැවත නැවත එන prompt prefixes cache කර cached මිලට අය කෙරේ. | අපගේ සේවාදායකවල ධාවනය වන open-weight models |
data[].endpoints | array | මෙම id එක පිළිගන්නා paths. | සෑම model එකක්ම |
GET /v1/modelsට key එකක් අවශ්ය නැත. පිළිතුර සෑම ඉල්ලුම්කරුවෙකුටම එකමය සහ ඔබේ සැලසුම මත රඳා නොපවතී.- ලැයිස්තුවේ call කළ හැකි ids ඇත. මෙම මොහොතේ සේවය කළ නොහැකි model එකක් එයින් ඉවත් කෙරේ.
- තනි model එකක් සඳහා endpoint එකක් නැත:
GET /v1/models/{id}not_found_errortype එක සමඟ404පිළිතුරු දෙයි.