Eqa uye okuqukethwe
Amandla

Amandla

Lokho i-model ngayinye ekwazi ukukwenza nge-API, i-model ngayinye: amathuluzi, okufakwayo kwesithombe, ukucabanga, okuphumayo kwe-JSON, i-prompt caching, ukusesha kuwebhu ne-streaming.

Wonke ama-model afinyelelwa ngama-endpoint afanayo amathathu nge-key efanayo. Amathebula amabili abonisa lapho ama-model ehluka khona. Ukudasha kusho ukuthi i-model iphendula ngaphandle kwalelo thuba.

Ama-model e-Shannon

I-model AmathuluziIzithombeUkucabangaUmzamoInto ye-JSONI-JSON schemaI-cachingSeshaI-streaming
shannon-1.6-lite YeboYebo——YeboYebo—YeboYebo
shannon-1.6-pro YeboYeboYebo—YeboYebo—YeboYebo
shannon-2-lite Yebo—Yebo—YeboYebo—YeboYebo
shannon-2-pro Yebo—Yebo—YeboYebo—YeboYebo
shannon-3 YeboYeboYebo—YeboYebo—YeboYebo
shannon-3-pro YeboYeboYebo—YeboYebo—YeboYebo
shannon-3.1 YeboYeboYebo—YeboYebo—YeboYebo
shannon-3.1-pro YeboYeboYebo—YeboYebo—YeboYebo
shannon-3.5 Yebo———YeboYebo——Yebo
shannon-coder-1 Yebo—Yebo—YeboYebo——Yebo

Ama-model e-open-weight ahlinzekiwe

I-id ye-model ehlinzekiwe iwugama layo nenguqulo yayo ehlanganiswe ngolimi lwehayifini, isibonelo DeepSeek-V4-Pro-0813-3BIT-REAP.

I-model AmathuluziIzithombeUkucabangaUmzamoInto ye-JSONI-JSON schemaI-cachingSeshaI-streaming
DeepSeek-V4-Pro-0813 3BIT-REAP Yebo—YeboYeboYeboYeboYebo—Yebo
GLM-5.2 3BIT-REAP Yebo—YeboYeboYeboYeboYebo—Yebo
Kimi-K3 3BIT-REAP YeboYeboYeboYeboYeboYeboYebo—Yebo
Nemotron3Ultra 3BIT-REAP Yebo—YeboYeboYeboYeboYebo—Yebo
MiniMax-M3 3BIT-REAP YeboYeboYeboYeboYeboYeboYebo—Yebo
DeepSeek-V4-Flash-0731 W4A16-AUTOROUND-REAP Yebo—YeboYeboYeboYeboYebo—Yebo
Kimi-K2.6 W4A16-AUTOROUND-REAP YeboYeboYeboYeboYeboYeboYebo—Yebo
Laguna-S-2.1 W4A16-AUTOROUND-REAP Yebo—YeboYebo——Yebo—Yebo
inkling W4A16-AUTOROUND-REAP YeboYeboYeboYeboYebo—Yebo—Yebo
MiMo-V2.5-Pro W8A16 Yebo—YeboYeboYeboYeboYebo—Yebo
MiMo-V2.5 W8A16 YeboYeboYeboYeboYeboYeboYebo—Yebo
Hy3 W8A16 Yebo—YeboYeboYeboYeboYebo—Yebo

Ukuthi ikholomu ngayinye isho ukuthini

  • Amathuluzi. Uchaza imisebenzi ku-tools, i-model iphendula ngokubiza ofuna kwenziwe, bese ikhodi yakho iwenza. Wonke ama-model amukela amathuluzi. I-tool_choiceephoqelelwe isetshenziswa ama-model e-open-weight ahlinzekiwe. Ukubiza umsebenzi
  • Okufakwayo kwesithombe. I-model ifunda izithombe ezithunyelwe ngaphakathi kombhalo womsebenzisi, njenge-data URL noma njengekheli. I-shannon-2-lite ne-shannon-2-pro zifunda izithombe ezicelweni ezithumela futhi i-tools noma i-response_format. Umndeni we-Shannon 3 ufunda namadokhumenti. Izithombe namafayela
  • Ukucabanga. Impendulo ingaphatha umbhalo wokucabanga we-model eceleni kwempendulo, ku-field yayo. Umzamo wokucabanga
  • Umzamo wokucabanga. I-field yesicelo isetha ukuthi i-model icabanga ngokujulile kangakanani: off, low, medium noma high. Ama-model e-Shannon asetha ukujula kwawo. Umzamo wokucabanga
  • Into ye-JSON. Nge-response_format: {"type": "json_object"} impendulo iyi-JSON ngaphandle kwesimo esimisiwe. Ku-/v1/chat/completions nasekhasini /v1/responses. Imiphumela ehlanganisiwe
  • I-JSON schema. Nge-response_format yohlobo json_schema impendulo ilandela i-schema oyithumelayo. Ku-/v1/chat/completions nasekhasini /v1/responses. Imiphumela ehlanganisiwe
  • I-prompt caching. I-prompt eqala njengesanda kuba khona ku-model efanayo ifundwa ku-cache, futhi ingxenye egcinwe ibiziswa ku-25% yentengo yokufakwayo. Ayidingi field yesicelo. I-Prompt caching
  • Ukusesha kuwebhu. Nge-web_search: true i-API isesha kuwebhu bese inika i-model imiphumela ngaphambi kokuphendula. Ku-/v1/chat/completions na-/v1/messages. Iyi-field yesicelo futhi ayinayo i-flag ku-GET /v1/models. Usesho lwewebhu
  • I-streaming. Nge-stream: true impendulo ifika njenge-server-sent events ngenkathi i-model ibhala. Wonke ama-model asakaza kuwo wonke ama-endpoint amathathu. Ukusakaza

Izindaba ezifanayo ku-GET /v1/models

GET https://api.shannon-ai.com/v1/models

I-GET /v1/models ibala wonke ama-model ane-capabilities object, ukuze uhlelo lufunde lezi zindaba esikhundleni salelikhasi. I-endpoint ayidingi key.

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, getattr(model, "capabilities", None))

I-id ne-capabilities yeziqephu ezimbili ze-data:

200 JSON
[
  {
    "id": "shannon-3",
    "capabilities": {
      "tools": true,
      "vision": true,
      "reasoning": true,
      "reasoning_effort": false,
      "streaming": true,
      "json_schema": true
    }
  },
  {
    "id": "Kimi-K3-3BIT-REAP",
    "capabilities": {
      "tools": true,
      "vision": true,
      "reasoning": true,
      "reasoning_effort": true,
      "streaming": true,
      "response_format": true,
      "json_schema": true,
      "prompt_caching": true
    }
  }
]
Ikholomu I-flag ku-capabilities
Amathuluzi tools
Okufakwayo kwesithombe vision
Ukucabanga reasoning
Umzamo wokucabanga reasoning_effort
Into ye-JSON response_format
I-JSON schema json_schema
I-prompt caching prompt_caching
Ukusesha kuwebhu Akuyona i-flag: i-field yesicelo ethi web_search.
I-streaming streaming
  • I-response_format ne-prompt_caching ziyizi-flag zeziqephu ze-open-weight ezihlinzekiwe. Isiqephu se-Shannon sibika okuphumayo kwe-JSON nge-json_schema kuphela, emelela zombili izimodi ze-JSON.
  • I-vision ithi true ku-shannon-2-lite na-shannon-2-pro: zifunda izithombe ezicelweni ezithumela futhi i-tools noma i-response_format.

Ngaphandle komugqa we-model

I-model ye-open-weight ehlinzekiwe yenqaba isithombe noma imodi ye-JSON engaphandle kwomugqa wayo. Ukwenqaba kuza ngaphambi kokuba kukhishwe noma yini ku-balance yakho:

Isimo Uhlobo Umlayezo Nini
400 invalid_request_error <id> does not accept image input Isithombe sithunyelwe ku-model ye-open-weight ehlinzekiwe engenakho ukufakwa kwezithombe.
400 invalid_request_error <id> does not accept response_format Okuphumayo kwe-JSON kucelwe ku-model ye-open-weight ehlinzekiwe engenayo imodi ye-JSON.
400 invalid_request_error <id> does not accept response_format json_schema; use json_object I-schema ithunyelwe ku-model ye-open-weight ehlinzekiwe enemodi ye-JSON object kuphela.

I-model ye-Shannon iphendula isicelo esinjalo ngesimo 200: amandla angaphandle komugqa wayo awahlanganyeli empendulweni. Ukuphathwa kwamaphutha