අන්තර්ගතයට යන්න
Models සහ මිල ගණන්

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 එක පිළිගන්නා දේ පිළිගනී

ModelInputStructured output1M එකකට In / cached / outතවත්
DeepSeek-V4-Pro-08133BIT-REAPDeepSeek · 1.6T MoE · 49B activeවාරණය නැතිText inputJSON schema$1.95 / $0.488 / $3.90
GLM-5.23BIT-REAPZ.ai · 744B MoE · 40B activeවාරණය නැතිText inputJSON schema$0.73 / $0.183 / $2.34
Kimi-K33BIT-REAPMoonshot AI · 2.8T MoE · 104B activeවාරණය නැතිText + රූප inputJSON schema$3.83 / $0.958 / $19.12
Nemotron3Ultra3BIT-REAPNVIDIA · 550B hybrid Mamba-Attention MoE · 55B activeවාරණය නැතිText inputJSON schema$0.75 / $0.188 / $3.30
MiniMax-M33BIT-REAPMiniMax · 428B MoE · 23B active · sparse attentionවාරණය නැතිText + රූප inputJSON schema$0.50 / $0.125 / $2.00
DeepSeek-V4-Flash-0731W4A16-AUTOROUND-REAPDeepSeek · 284B MoE · 13B activeවාරණය නැතිText inputJSON schema$0.50 / $0.125 / $2.00
Kimi-K2.6W4A16-AUTOROUND-REAPMoonshot AI · 1T MoE · 32B activeවාරණය නැතිText + රූප inputJSON schema$0.78 / $0.195 / $3.67
Laguna-S-2.1W4A16-AUTOROUND-REAPPoolside · 118B MoE · 8B activeවාරණය නැතිText inputStructured output නැත$0.50 / $0.125 / $2.00
inklingW4A16-AUTOROUND-REAPThinking Machines · 975B MoE · 41B activeවාරණය නැතිText + රූප inputJSON object$1.42 / $0.355 / $6.07
MiMo-V2.5-ProW8A16Xiaomi · 1.02T MoE · 42B active · 8-bitවාරණය නැතිText inputJSON schema$0.50 / $0.125 / $2.00
MiMo-V2.5W8A16Xiaomi · 8-bit multimodal · W8A16වාරණය නැතිText + රූප inputJSON schema$0.50 / $0.125 / $2.00
Hy3W8A16Tencent · 295B MoE · 21B active · 8-bitවාරණය නැතිText inputJSON schema$0.50 / $0.125 / $2.00

Shannon models

input සහ output සඳහා එකම ස්ථාවර ගාස්තුවක්

ModelContextInputStructured outputමිල / tokens 1M
Shannon 1.6 Liteshannon-1.6-liteවාරණය නැති192KText + රූප inputJSON schema$3.90
Shannon 1.6 Proshannon-1.6-proවාරණය නැති192KText + රූප inputJSON schema$7.80
Shannon 2 Liteshannon-2-liteවාරණය නැති192KText + රූප inputJSON schema$3.90
Shannon 2 Proshannon-2-proවාරණය නැති192KText + රූප inputJSON schema$5.85
Shannon 3shannon-3වාරණය නැති192KText + රූප inputJSON schema$3.35
Shannon 3 Proshannon-3-proවාරණය නැති192KText + රූප inputJSON schema$3.35
Shannon 3.1shannon-3.1වාරණය නැති192KText + රූප inputJSON schema$3.35
Shannon 3.1 Proshannon-3.1-proවාරණය නැති192KText + රූප inputJSON schema$3.35
Shannon 3.5shannon-3.5වාරණය නැති192KText + රූප inputJSON schema$3.35
Shannon Coder 1shannon-coder-1වාරණය නැති128KText inputJSON 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_error type එක සහ 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 ලෙස යවන්න.

Model ids
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"
  }
}
  • සෑම විටම model යවන්න. එය නැති ඉල්ලීමකට /v1/responses 400 සමඟ පිළිතුරු දෙයි. /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)

පිළිතුර, එක් එක් වර්ගයේ එක entry එකකට කෙටි කර:

200 JSON
{
  "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_error type එක සමඟ 404 පිළිතුරු දෙයි.