Ngā tepe me te toenga
Ka ratoa ngā tono katoa i runga i te ōrite. Kāore he taumata tere. Kua utua e koe tō nama — whakamahia i te tere e hiahia ana koe.
Ka whakamārama tēnei whārangi i te mea e hanga ana i tō toenga, i te mea e pupuri ana, e utu ana hoki tētahi tono, i te maha o ngā tono ka taea e koe te tuku, me ngā tepe torutoru ka tūtaki tētahi tono kotahi.
- uara o te 1M token toenga
- $5.00
- ka whakahou te nama o te mahere GPU
- 00:00 UTC
- flood protection, mō ia pūkete
- 120 tono / meneti
Te āhua o te ratoa o ngā tono
- Kāore he taumata rate — Kotahi te ture e whakawhāiti ana i te tere ka taea te tae mai o ngā tono, ā, he ōrite mō ia pūkete me ia mahere: 120 tono ia meneti. Kāore he tepe mō ngā token ia meneti.
- Ngā karanga utu anake — Ka utua he karanga API ki te nama o ia rā o tētahi mahere GPU, ki te nama kua hokona rānei. Ko ngā mahere chat me te mahere Community mō te chat i te paetukutuku, ā, kāore he whakamahi API i roto. Kāore he mahere e tautuhi i te tere tono.
- I te tere e pai ana ki a koe — Ka whakaaetia ngā tono e tukuna whakarara ana, ā, ka tatari i te rārangi. Kāore rātou e whakakāhoretia mō te whakarara.
Tō toenga
Ka tatauria tō toenga ki ngā token. Ko te 1,000,000 token toenga he $5.00 te uara, ā, ko ia utu o te whārangi Models & pricing he reiti ki taua uara.
Ka utua he karanga API mai i ngā wāhanga e rua, i tēnei raupapa.
- Nama mahere GPU — Ka hoatu e te mahere GPU he nama API ia rā. He hou ia rā i te 00:00 UTC. Ko te toenga i te mutunga o te rā kāore e kawea ki tua. Kāore e utu i ngā model Heavy Duty.
- Nama kua hokona — Ngā token i hokona e koe hei pēke. Kāore te nama e pau, ā, ka mahi i ia mahere.
| Mahere | Ngā token ia rā | Uara |
|---|---|---|
| GPU Sponsor | 6,000,000 | $30.00 |
| GPU Backer | 13,000,000 | $65.00 |
| GPU Partner | 23,000,000 | $115.00 |
- Te raupapa whakapau — Ka whakapau ia karanga i te nama mahere GPU o te rā i te tuatahi. Ka utua te toenga me te karanga Heavy Duty katoa e te nama kua hokona.
- Ka noho ngā mahere chat ki te chat — Ko ngā token ia rā o Community, Plus, Standard, Pro me Benefactor ka whakapaua e te chat i te paetukutuku anake. Kotahi te toenga nama mō ia pūkete: ka whakamahia e te chat i muri i ana token ia rā, ā, ka whakapau ngā key API i ngā utu ōrite.
- Ngā pēke — Ka hokona te nama hei pēke o 1,000,000 ($5.00), 2,000,000 ($10.00) me 5,000,000 ($25.00) token, hei nui rānei ka kōwhiria e koe mai i 1,000,000 ki 100,000,000 token ki te $5.00 mō ia 1,000,000.
Te mea e pupuri ai, e utu ai hoki tētahi tono
- Pupuri — Ina tae mai tētahi tono, ka pupuri i tana tahua output i tō toenga:
max_tokensi runga i te/v1/chat/completionsme te/v1/messages,max_output_tokensi runga i te/v1/responses. Ka pānui hoki te/v1/chat/completionsi temax_completion_tokens. Ko te taunoa 4,096, ā, ko te whānuitanga 1 ki 65,536. - Whakaae — Ka whakaaetia te tono mēnā ka tau te rahui ki te toenga e toe ana. Ko te toenga kei runga ake i te kore engari he iti iho i te tahua whakaputa ka whiwhi i te whakautu
Not enough API credit. Tukua hemax_tokensiti ake hei whakamahi i te toenga. - Whakatau — Ina oti te whakautu, ka whakakapia te rahui e te utu tūturu. Ka taea te utu te iti ake, te nui ake rānei i te rahui.
- Whakahoki — Ka whakahokia katoatia tana rahui e tētahi tono ka mutu me tētahi tūnga hapa.
Ka whakawhirinaki te utu tūturu ki te whānau model.
| Ngā model | Te mea e utua ana |
|---|---|
| Ngā model Shannon | Te usage.total_tokens ki te utu a te model mō ia 1M. Kotahi te reiti mō te input me te output. |
| Ngā model open-weight hosted | Te input kāore i te cached ki te reiti input, te input cached ki te reiti cached, te output ki te reiti output. |
Ka tangohia te nui i te USD i tō toenga ki ngā token ki te $5.00 mō ia 1,000,000, kua whakaarotia ki te token tauoti.
He kore utu te tatau token mā te POST /v1/tokenize me te POST /v1/messages/count_tokens, ā, kāore e pupuri i tētahi mea. Te tatau token
Te wāhi hei tiro i te toenga me te whakamahinga
Ka whakaatu te whārangi Keys & usage i te mea ka taea e koe te whakapau ināianei, te nama mahere GPU o tēnei rā, tō nama kua hokona me te whakapaunga API o ngā rā 30 whakamutunga. I raro iho ka rārangi i ia tono i mahia e tō key: te wā, endpoint, model, input cached, token kua whakaritea me te utu. Ngā kī me te whakamahinga
Ka kawe hoki ia whakautu i tētahi ahanoa usage me ngā tatau token o taua karanga.
| Pito Mutunga | Ngā āpure o te usage | Kua tāpirihia e ngā model open-weight hosted |
|---|---|---|
/v1/chat/completions | prompt_tokens, completion_tokens, total_tokens | prompt_tokens_details.cached_tokens, completion_tokens_details.reasoning_tokens |
/v1/messages | input_tokens, output_tokens | cache_read_input_tokens, cache_creation_input_tokens |
/v1/responses | input_tokens, output_tokens, total_tokens | input_tokens_details.cached_tokens, output_tokens_details.reasoning_tokens |
- Kei te
usagengā tatau token a te model. Kāore te nui i tangohia i tō toenga i roto i te whakautu: ko te tīwae Billed tokens o te rārangi tono i Keys & usage. - I runga i te
/v1/messagesme tētahi model open-weight hosted, ko teinput_tokenste wāhanga o te input kāore i te cached, ko tecache_read_input_tokenste wāhanga cached, ā, ko tecache_creation_input_tokenshe0i ngā wā katoa. - Ka kawe tētahi stream i runga i te
/v1/chat/completionsi teusagei tōna chunk whakamutunga i mua i te[DONE]. Rere
Ina pau te toenga
Ka whakautua tētahi tono kāore e uru tana rahui ki tō toenga ki te tūnga 429, te momo rate_limit_error me te karere i raro iho. Kāore he mea e utua. Ka tukuna te whakautu ōrite ina kei runga ake i te kore te toenga engari iti ake i te tahua output o te tono.
{
"error": {
"type": "rate_limit_error",
"message": "Not enough API credit. Top up at shannon-ai.com/tokens or get a GPU plan at shannon-ai.com/docs/api/plans"
}
} {
"type": "error",
"error": {
"type": "rate_limit_error",
"message": "Not enough API credit. Top up at shannon-ai.com/tokens or get a GPU plan at shannon-ai.com/docs/api/plans"
}
} I runga i te /v1/responses ka taea hoki e te ahanoa error te kawe i te code me te param, ko null ngā mea e rua.
Ngā mea ka taea e koe:
- Mēnā he mahere GPU tāu, tatari ki tōna nama o ia rā e whai ake nei i te 00:00 UTC.
- Tāpiria he nama. Kāore te nama e pau. Tāpai reko
- Tangohia he mahere GPU: pūtea API ia rā mō te 14 rā, 1 marama, 3 marama rānei. Ka taea te whakamātau i te GPU Sponsor kore utu mō te 14 rā. Ngā mahere GPU
- Tukuna he
max_tokensiti ake, mēnā he toenga kei te toe: ka iti ake te rahui.
Shannon Coder
Ka utua te shannon-coder-1 ki ngā token pēnei i ngā model katoa, ki te $6.00 mō ia 1M, i ia endpoint. Kāore he mahere e whai karanga kore utu.
Tiaki waipuke
Ka taea e tētahi pūkete te tuku 120 tono ia meneti. Koinei anake te tepe mō te tere tono, ā, he ōrite mō ia mahere. Kei reira hei aukati i ngā waipuke, kaua hei whakahaere i te whakamahi noa.
- Ko te meneti he matapihi pūmau o te 60 hēkona e tuwhera ana i tō tono tuatahi. Ina mutu, ka tīmata anō te tatau i te kore.
- Ka tatauria mō ia pūkete, kaua mō ia key, kaua mō ia wāhitau IP. Kāore te huri key e whakatuwhera i tētahi matapihi hou.
- Ka whakautua te tono 121 i roto i tētahi matapihi ki te tūnga
429, te momorate_limit_errorme te karereToo many requests. Retry in <N>s.KoNte maha o ngā hēkona tae noa ki te mutunga o te matapihi, mai i te 1 ki te 60. - Ka tirohia te Flood protection i mua i te toenga. Kāore tētahi tono e whakakāhoretia ana e ia e pupuri i tētahi mea, ā, kāore he utu.
{
"error": {
"type": "rate_limit_error",
"message": "Too many requests. Retry in 37s."
}
} {
"type": "error",
"error": {
"type": "rate_limit_error",
"message": "Too many requests. Retry in 37s."
}
} | Tono | Tiaki waipuke |
|---|---|
POST /v1/chat/completions, POST /v1/messages, POST /v1/responses | Ka tatauria, kotahi mō ia tono. |
GET /v1/models, POST /v1/tokenize, POST /v1/messages/count_tokens | Kāore e tatauria. |
He tono i whakautua ki te 401, ki te 400 rānei mō tētahi model kāore e mōhiotia | Kāore e tatauria. |
| He tono kua whakakāhoretia e te Flood protection | Ka tatauria ki te matapihi. Kāore he mea e utua. |
Ngā tono whakarara
Kāore he tepe mō te maha o ngā tono e tuwhera ana i te wā kotahi mō tētahi pūkete, kāore hoki he hapa mō te tuku tono whakarara. Ka tatari ngā tono kāore e taea te tīmata i te wā kotahi i te rārangi, ā, ka whakautua i te raupapa.
- Ka tatau ia tono ki te 120 ia meneti ina tae mai, ahakoa kua mutu, kāore rānei ngā tono o mua.
- Ka pupuri ia tono i tōna rahui ake kia mutu rā anō. Ko ngā tono tuwhera rua tekau me te tahua whakaputa taunoa ka pupuri i te 20 × 4,096 = 81,920 tokens o te toenga. Mēnā he nui ake ngā rahui katoa i tō toenga, ka whiwhi te tono e whai ake nei i te whakautu
Not enough API credit, ahakoa he iti ake te utu o ngā waea kua oti. Ko temax_tokensiti ake ka iti ake te pupuri. - Kāore tētahi tono kāore e stream e tuku i tētahi mea tae noa ki te oti o tana whakautu, nō reira hoatu ki tō kiritaki tētahi timeout e kapi ana i te tatari. Ka pupuri tētahi stream i tōna hononga tuwhera i a ia e tatari ana. Rere
Ngā tepe o tētahi tono kotahi
| Tepe | Uara | Ka pā ki | I te tepe |
|---|---|---|---|
| Tinana tono | 32 MiB (33,554,432 paita) | Ia endpoint | Tūnga 413, momo invalid_request_error. |
Tahua output: max_tokens, max_completion_tokens, max_output_tokens | 1 ki te max_output_tokens o te model: 65,536 i runga i ngā taumata Shannon, mā ia id i runga i ngā model open-weight hosted. Taunoa 4,096; mō te shannon-coder-1 i runga i te /v1/chat/completions me te /v1/messages ko te taunoa 65,536. | Ia model, hei nui e pupuritia ana i tō toenga. Hei tepe mō te roa o te whakautu: ngā model open-weight hosted, shannon-1.6-lite, shannon-1.6-pro me te shannon-coder-1. | Ka nekehia tētahi uara i waho i te whānuitanga ki te pito tata o te whānuitanga. Kāore he hapa. |
Reasoning i roto i te max_tokens | Ka noho tahi te reasoning me te whakautu i roto i te max_tokens; ko te haurua te nui rawa ka tangohia e te reasoning. I raro iho i te 1,024 ka whakautu te model me te kore reasoning. | Ngā model open-weight hosted | Ka mutu tētahi whakautu ka eke ki te tepe me te finish length (max_tokens i runga i te /v1/messages). Kāore rawa te usage.completion_tokens e hipa i te max_tokens. |
Output me te response_format | 32,768 token | Ngā model open-weight hosted | Ka mutu tētahi whakautu whakatakoto roa ake me te finish length. |
| Te nui ka pupuritia mō ia tono | Te input, me te mea kāore tētahi wāhanga o taua input i cached, me te output tae atu ki te 4,096 token, i ngā reiti o te model | Ngā model open-weight hosted | Ko te toenga he iti iho i te rahui ka whiwhi i te whakautu Not enough API credit. Ka whakatikaina te rahui ki te utu tūturu ina mutu te whakautu. |
Ngā raupapa mutu: stop, stop_sequences | 4 aho | Ngā model open-weight hosted | Ka whakamahia ngā aho 4 tuatahi kāore i te kau. |
| Whakaahua, kōnae rānei i hoatu hei URL | 8 MiB, ka pānuitia i roto i te 20 hēkona, neke atu i te 5 redirect, he wāhitau http https rānei tūmatanui | Ia endpoint e whakaae ana ki ngā whakaahua, kōnae rānei | Ka whakautua te tono me te kore o taua wāhanga. Kāore he hapa. |
| Whakaahua, kōnae rānei i tukuna i roto i te rārangi (base64) | Kāore he tepe motuhake. Ka tatau ki te tinana tono 32 MiB. | Ia endpoint e whakaae ana ki ngā whakaahua, kōnae rānei | Tūnga 413 mō te tono katoa. |
Te text o te POST /v1/tokenize | 4,000,000 paita | /v1/tokenize | Tūnga 413, momo invalid_request_error, karere text too long. |
Te messages o te POST /v1/tokenize me te tinana o te POST /v1/messages/count_tokens | Te tinana tono 32 MiB | Ngā endpoint tatau e rua | Tūnga 413. |
| Matapihi horopaki | Mō ia model: context_window i te GET /v1/models | Ia model | Ka whakawhirinaki te mea ka puta ki tētahi kōrero roa ake ki te model. Ngā model me ngā utu |
Ngā rapu tukutuku (web_search: true) | Mō ia mahere me ia rā: Community 3, Plus 30, Standard 50, Pro 60. Kotahi te rapu ka tatauria mō tētahi tono i kitea ētahi hua e tana rapu. | Ngā tono e tautuhi ana i te web_search: true | Ina kāore he toe, ka whakautua te tono me te kore rapu. Kāore he hapa. Rapu paetukutuku |
Ngā hapa
Ngā whakautu o tēnei whārangi. I runga i te /v1/messages ka takaia te ahanoa error ōrite hei {"type": "error", "error": {…}}.
| Tūnga | Momo | Karere | Āhea, me te mahi |
|---|---|---|---|
429 | rate_limit_error | Not enough API credit. Top up at shannon-ai.com/tokens or get a GPU plan at shannon-ai.com/docs/api/plans | Kāore e uru te rahui o te tono ki tō toenga. Tatari ki te 00:00 UTC, tāpiri nama, huri mahere, tuku rānei i tētahi max_tokens iti ake. |
429 | rate_limit_error | Too many requests. Retry in <N>s. | Neke atu i te 120 tono i te meneti o nāianei. Tatari ki ngā hēkona N, ā, tukuna anō. |
429 | rate_limit_error | Shannon routes are temporarily busy. Please retry. | Kāore e taea e te model te whakaae i te tono i tēnei wā. Tukuna anō i muri i tētahi okiokinga poto. |
503 | api_error | Could not verify your quota right now. Please retry. | Kāore i taea te pānui i tō toenga. Kāore he mea e utua; tukuna anō te tono. I runga i te /v1/responses me tētahi model Shannon ko 500 te tūnga. |
413 | invalid_request_error | Nui ake te tinana tono i te 32 MiB. I runga i ngā endpoint hōputu OpenAI ka kawe te ahanoa error i te code: "request_too_large". | |
413 | invalid_request_error | text too long | Roa ake te text o te POST /v1/tokenize i te 4,000,000 paita. |
