[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"docs-nav-en":3,"docs-en-models\u002Fchat\u002Fvolcengine":163,"$flPxTKrvU_qsH-tbJ8bldUIof4Db4sevcx0drO_DwOxs":656},[4,52,69,92,142,155,159],{"title":5,"path":6,"stem":7,"children":8,"page":-1},"Getting Started","\u002Fgetting-started","1.getting-started",[9,12,30,44,48],{"title":10,"path":6,"stem":11},"About SilvaMux","1.getting-started\u002Findex",{"title":13,"path":14,"stem":15,"children":16,"page":-1},"Your First SilvaMux API Call","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F1.quick-start\u002Findex",[17,18,22,26],{"title":13,"path":14,"stem":15},{"title":19,"path":20,"stem":21},"Projects & Account Setup","\u002Fgetting-started\u002Fquick-start\u002Fproject-and-account","1.getting-started\u002F1.quick-start\u002F2.project-and-account",{"title":23,"path":24,"stem":25},"Get an API Key","\u002Fgetting-started\u002Fquick-start\u002Fapi-key","1.getting-started\u002F1.quick-start\u002F3.api-key",{"title":27,"path":28,"stem":29},"First Request","\u002Fgetting-started\u002Fquick-start\u002Ffirst-request","1.getting-started\u002F1.quick-start\u002F4.first-request",{"title":31,"path":32,"stem":33,"children":34,"page":43},"Models & Experience","\u002Fgetting-started\u002Fmodels-and-experience","1.getting-started\u002F2.models-and-experience",[35,39],{"title":36,"path":37,"stem":38},"Model Selection","\u002Fgetting-started\u002Fmodels-and-experience\u002Fmodel-selection","1.getting-started\u002F2.models-and-experience\u002F1.model-selection",{"title":40,"path":41,"stem":42},"Playground","\u002Fgetting-started\u002Fmodels-and-experience\u002Fplayground","1.getting-started\u002F2.models-and-experience\u002F2.playground",false,{"title":45,"path":46,"stem":47},"Rate Limits","\u002Fgetting-started\u002Frate-limits","1.getting-started\u002F3.rate-limits",{"title":49,"path":50,"stem":51},"FAQ","\u002Fgetting-started\u002Ffaq","1.getting-started\u002F4.faq",{"title":53,"path":54,"stem":55,"children":56,"page":43},"Billing","\u002Fbilling","2.billing",[57,61,65],{"title":58,"path":59,"stem":60},"Billing Overview","\u002Fbilling\u002Foverview","2.billing\u002F1.overview",{"title":62,"path":63,"stem":64},"Online Top-up","\u002Fbilling\u002Frecharge","2.billing\u002F2.recharge",{"title":66,"path":67,"stem":68},"Bills, Usage & Exports","\u002Fbilling\u002Fusage-export","2.billing\u002F3.usage-export",{"title":70,"path":71,"stem":72,"children":73,"page":43},"Coding Plan","\u002Fcoding-plan","3.coding-plan",[74,78],{"title":75,"path":76,"stem":77},"Coding Plan Overview","\u002Fcoding-plan\u002Foverview","3.coding-plan\u002F1.overview",{"title":79,"path":80,"stem":81,"children":82,"page":-1},"Personal","\u002Fcoding-plan\u002Fpersonal","3.coding-plan\u002F2.personal\u002Findex",[83,85,89],{"title":84,"path":80,"stem":81},"Pricing & Benefits",{"title":86,"path":87,"stem":88},"Quick Start","\u002Fcoding-plan\u002Fpersonal\u002Fquick-start","3.coding-plan\u002F2.personal\u002F2.quick-start",{"title":49,"path":90,"stem":91},"\u002Fcoding-plan\u002Fpersonal\u002Ffaq","3.coding-plan\u002F2.personal\u002F3.faq",{"title":93,"path":94,"stem":95,"children":96,"page":43},"Model APIs","\u002Fmodels","4.models",[97,130],{"title":98,"path":99,"stem":100,"children":101,"page":43},"Text Generation","\u002Fmodels\u002Fchat","4.models\u002F1.chat",[102,106,110,114,118,122,126],{"title":103,"path":104,"stem":105},"Overview","\u002Fmodels\u002Fchat\u002Foverview","4.models\u002F1.chat\u002F1.overview",{"title":107,"path":108,"stem":109},"OpenAI Compatible API","\u002Fmodels\u002Fchat\u002Fopenai","4.models\u002F1.chat\u002F2.openai",{"title":111,"path":112,"stem":113},"Anthropic Compatible","\u002Fmodels\u002Fchat\u002Fanthropic","4.models\u002F1.chat\u002F3.anthropic",{"title":115,"path":116,"stem":117},"Volcengine Compatible","\u002Fmodels\u002Fchat\u002Fvolcengine","4.models\u002F1.chat\u002F4.volcengine",{"title":119,"path":120,"stem":121},"Zhipu Compatible","\u002Fmodels\u002Fchat\u002Fzhipu","4.models\u002F1.chat\u002F5.zhipu",{"title":123,"path":124,"stem":125},"SilvaMux Unified Entry","\u002Fmodels\u002Fchat\u002Funified","4.models\u002F1.chat\u002F6.unified",{"title":127,"path":128,"stem":129},"Multimodal Input","\u002Fmodels\u002Fchat\u002Fmultimodal","4.models\u002F1.chat\u002F7.multimodal",{"title":131,"path":132,"stem":133,"children":134,"page":43},"Image Generation","\u002Fmodels\u002Fimages","4.models\u002F2.images",[135,138],{"title":103,"path":136,"stem":137},"\u002Fmodels\u002Fimages\u002Foverview","4.models\u002F2.images\u002F1.overview",{"title":139,"path":140,"stem":141},"Image Generation API","\u002Fmodels\u002Fimages\u002Fgeneration","4.models\u002F2.images\u002F2.generation",{"title":143,"path":144,"stem":145,"children":146,"page":43},"Usage & Balance","\u002Fusage-and-balance","5.usage-and-balance",[147,151],{"title":148,"path":149,"stem":150},"Query Balance","\u002Fusage-and-balance\u002Fbalance","5.usage-and-balance\u002F1.balance",{"title":152,"path":153,"stem":154},"Query Usage","\u002Fusage-and-balance\u002Fusage","5.usage-and-balance\u002F2.usage",{"title":156,"path":157,"stem":158},"Error Codes","\u002Ferrors","6.errors",{"title":160,"path":161,"stem":162},"Documentation","\u002F","index",{"id":164,"title":115,"body":165,"description":649,"extension":650,"meta":651,"navigation":304,"path":116,"rawbody":652,"requiredFlags":653,"seo":654,"stem":117,"__hash__":655},"docs_en\u002F4.models\u002F1.chat\u002F4.volcengine.md",{"type":166,"value":167,"toc":646},"minimark",[168,172,176,181,186,626,642],[169,170,115],"h1",{"id":171},"volcengine-compatible",[173,174,175],"p",{},"Compatible with the Volcengine Ark OpenAI-compatible API (v3 protocol), usable for Doubao Seed series models and other models that follow the Volcengine v3 protocol.",[177,178],"api-endpoint",{"method":179,"path":180},"POST","\u002Fapi\u002Fv3\u002Fchat\u002Fcompletions",[182,183,185],"h2",{"id":184},"examples","Examples",[187,188,189,275,366,442],"code-tabs",{},[190,191,193],"code-tab",{"label":192},"cURL",[194,195,200],"pre",{"className":196,"code":197,"language":198,"meta":199,"style":199},"language-bash shiki shiki-themes github-light github-dark","curl https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\u002Fchat\u002Fcompletions \\\n  -H \"Authorization: Bearer $SILVAMUX_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"doubao-seed-2.0-pro\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n  }'\n","bash","",[201,202,203,220,238,248,257,263,269],"code",{"__ignoreMap":199},[204,205,208,212,216],"span",{"class":206,"line":207},"line",1,[204,209,211],{"class":210},"sScJk","curl",[204,213,215],{"class":214},"sZZnC"," https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\u002Fchat\u002Fcompletions",[204,217,219],{"class":218},"sj4cs"," \\\n",[204,221,223,226,229,233,236],{"class":206,"line":222},2,[204,224,225],{"class":218},"  -H",[204,227,228],{"class":214}," \"Authorization: Bearer ",[204,230,232],{"class":231},"sVt8B","$SILVAMUX_API_KEY",[204,234,235],{"class":214},"\"",[204,237,219],{"class":218},[204,239,241,243,246],{"class":206,"line":240},3,[204,242,225],{"class":218},[204,244,245],{"class":214}," \"Content-Type: application\u002Fjson\"",[204,247,219],{"class":218},[204,249,251,254],{"class":206,"line":250},4,[204,252,253],{"class":218},"  -d",[204,255,256],{"class":214}," '{\n",[204,258,260],{"class":206,"line":259},5,[204,261,262],{"class":214},"    \"model\": \"doubao-seed-2.0-pro\",\n",[204,264,266],{"class":206,"line":265},6,[204,267,268],{"class":214},"    \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n",[204,270,272],{"class":206,"line":271},7,[204,273,274],{"class":214},"  }'\n",[190,276,278],{"label":277},"Python",[194,279,283],{"className":280,"code":281,"language":282,"meta":199,"style":199},"language-python shiki shiki-themes github-light github-dark","# pip install openai\nimport os\nfrom openai import OpenAI\n\nclient = OpenAI(\n    api_key=os.environ[\"SILVAMUX_API_KEY\"],\n    base_url=\"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\",\n)\n\nresponse = client.chat.completions.create(\n    model=\"doubao-seed-2.0-pro\",\n    messages=[{\"role\": \"user\", \"content\": \"Hello\"}],\n)\n\nprint(response.choices[0].message.content)\n","python",[201,284,285,290,295,300,306,311,316,321,327,332,338,344,350,355,360],{"__ignoreMap":199},[204,286,287],{"class":206,"line":207},[204,288,289],{},"# pip install openai\n",[204,291,292],{"class":206,"line":222},[204,293,294],{},"import os\n",[204,296,297],{"class":206,"line":240},[204,298,299],{},"from openai import OpenAI\n",[204,301,302],{"class":206,"line":250},[204,303,305],{"emptyLinePlaceholder":304},true,"\n",[204,307,308],{"class":206,"line":259},[204,309,310],{},"client = OpenAI(\n",[204,312,313],{"class":206,"line":265},[204,314,315],{},"    api_key=os.environ[\"SILVAMUX_API_KEY\"],\n",[204,317,318],{"class":206,"line":271},[204,319,320],{},"    base_url=\"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\",\n",[204,322,324],{"class":206,"line":323},8,[204,325,326],{},")\n",[204,328,330],{"class":206,"line":329},9,[204,331,305],{"emptyLinePlaceholder":304},[204,333,335],{"class":206,"line":334},10,[204,336,337],{},"response = client.chat.completions.create(\n",[204,339,341],{"class":206,"line":340},11,[204,342,343],{},"    model=\"doubao-seed-2.0-pro\",\n",[204,345,347],{"class":206,"line":346},12,[204,348,349],{},"    messages=[{\"role\": \"user\", \"content\": \"Hello\"}],\n",[204,351,353],{"class":206,"line":352},13,[204,354,326],{},[204,356,358],{"class":206,"line":357},14,[204,359,305],{"emptyLinePlaceholder":304},[204,361,363],{"class":206,"line":362},15,[204,364,365],{},"print(response.choices[0].message.content)\n",[190,367,369],{"label":368},"JavaScript",[194,370,374],{"className":371,"code":372,"language":373,"meta":199,"style":199},"language-javascript shiki shiki-themes github-light github-dark","\u002F\u002F npm install openai\nimport OpenAI from \"openai\";\n\nconst client = new OpenAI({\n  apiKey: process.env.SILVAMUX_API_KEY,\n  baseURL: \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\",\n});\n\nconst response = await client.chat.completions.create({\n  model: \"doubao-seed-2.0-pro\",\n  messages: [{ role: \"user\", content: \"Hello\" }],\n});\n\nconsole.log(response.choices[0].message.content);\n","javascript",[201,375,376,381,386,390,395,400,405,410,414,419,424,429,433,437],{"__ignoreMap":199},[204,377,378],{"class":206,"line":207},[204,379,380],{},"\u002F\u002F npm install openai\n",[204,382,383],{"class":206,"line":222},[204,384,385],{},"import OpenAI from \"openai\";\n",[204,387,388],{"class":206,"line":240},[204,389,305],{"emptyLinePlaceholder":304},[204,391,392],{"class":206,"line":250},[204,393,394],{},"const client = new OpenAI({\n",[204,396,397],{"class":206,"line":259},[204,398,399],{},"  apiKey: process.env.SILVAMUX_API_KEY,\n",[204,401,402],{"class":206,"line":265},[204,403,404],{},"  baseURL: \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\",\n",[204,406,407],{"class":206,"line":271},[204,408,409],{},"});\n",[204,411,412],{"class":206,"line":323},[204,413,305],{"emptyLinePlaceholder":304},[204,415,416],{"class":206,"line":329},[204,417,418],{},"const response = await client.chat.completions.create({\n",[204,420,421],{"class":206,"line":334},[204,422,423],{},"  model: \"doubao-seed-2.0-pro\",\n",[204,425,426],{"class":206,"line":340},[204,427,428],{},"  messages: [{ role: \"user\", content: \"Hello\" }],\n",[204,430,431],{"class":206,"line":346},[204,432,409],{},[204,434,435],{"class":206,"line":352},[204,436,305],{"emptyLinePlaceholder":304},[204,438,439],{"class":206,"line":357},[204,440,441],{},"console.log(response.choices[0].message.content);\n",[190,443,445],{"label":444},"Go",[194,446,450],{"className":447,"code":448,"language":449,"meta":199,"style":199},"language-go shiki shiki-themes github-light github-dark","\u002F\u002F Standard library only\npackage main\n\nimport (\n    \"bytes\"\n    \"fmt\"\n    \"io\"\n    \"net\u002Fhttp\"\n    \"os\"\n)\n\nfunc main() {\n    payload := []byte(`{\n        \"model\": \"doubao-seed-2.0-pro\",\n        \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n    }`)\n\n    req, err := http.NewRequest(\"POST\", \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\u002Fchat\u002Fcompletions\", bytes.NewReader(payload))\n    if err != nil {\n        panic(err)\n    }\n    req.Header.Set(\"Authorization\", \"Bearer \"+os.Getenv(\"SILVAMUX_API_KEY\"))\n    req.Header.Set(\"Content-Type\", \"application\u002Fjson\")\n\n    resp, err := http.DefaultClient.Do(req)\n    if err != nil {\n        panic(err)\n    }\n    defer resp.Body.Close()\n\n    body, _ := io.ReadAll(resp.Body)\n    fmt.Println(string(body))\n}\n","go",[201,451,452,457,462,466,471,476,481,486,491,496,500,504,509,514,519,524,530,535,541,547,553,559,565,571,576,582,587,592,597,603,608,614,620],{"__ignoreMap":199},[204,453,454],{"class":206,"line":207},[204,455,456],{},"\u002F\u002F Standard library only\n",[204,458,459],{"class":206,"line":222},[204,460,461],{},"package main\n",[204,463,464],{"class":206,"line":240},[204,465,305],{"emptyLinePlaceholder":304},[204,467,468],{"class":206,"line":250},[204,469,470],{},"import (\n",[204,472,473],{"class":206,"line":259},[204,474,475],{},"    \"bytes\"\n",[204,477,478],{"class":206,"line":265},[204,479,480],{},"    \"fmt\"\n",[204,482,483],{"class":206,"line":271},[204,484,485],{},"    \"io\"\n",[204,487,488],{"class":206,"line":323},[204,489,490],{},"    \"net\u002Fhttp\"\n",[204,492,493],{"class":206,"line":329},[204,494,495],{},"    \"os\"\n",[204,497,498],{"class":206,"line":334},[204,499,326],{},[204,501,502],{"class":206,"line":340},[204,503,305],{"emptyLinePlaceholder":304},[204,505,506],{"class":206,"line":346},[204,507,508],{},"func main() {\n",[204,510,511],{"class":206,"line":352},[204,512,513],{},"    payload := []byte(`{\n",[204,515,516],{"class":206,"line":357},[204,517,518],{},"        \"model\": \"doubao-seed-2.0-pro\",\n",[204,520,521],{"class":206,"line":362},[204,522,523],{},"        \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n",[204,525,527],{"class":206,"line":526},16,[204,528,529],{},"    }`)\n",[204,531,533],{"class":206,"line":532},17,[204,534,305],{"emptyLinePlaceholder":304},[204,536,538],{"class":206,"line":537},18,[204,539,540],{},"    req, err := http.NewRequest(\"POST\", \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\u002Fchat\u002Fcompletions\", bytes.NewReader(payload))\n",[204,542,544],{"class":206,"line":543},19,[204,545,546],{},"    if err != nil {\n",[204,548,550],{"class":206,"line":549},20,[204,551,552],{},"        panic(err)\n",[204,554,556],{"class":206,"line":555},21,[204,557,558],{},"    }\n",[204,560,562],{"class":206,"line":561},22,[204,563,564],{},"    req.Header.Set(\"Authorization\", \"Bearer \"+os.Getenv(\"SILVAMUX_API_KEY\"))\n",[204,566,568],{"class":206,"line":567},23,[204,569,570],{},"    req.Header.Set(\"Content-Type\", \"application\u002Fjson\")\n",[204,572,574],{"class":206,"line":573},24,[204,575,305],{"emptyLinePlaceholder":304},[204,577,579],{"class":206,"line":578},25,[204,580,581],{},"    resp, err := http.DefaultClient.Do(req)\n",[204,583,585],{"class":206,"line":584},26,[204,586,546],{},[204,588,590],{"class":206,"line":589},27,[204,591,552],{},[204,593,595],{"class":206,"line":594},28,[204,596,558],{},[204,598,600],{"class":206,"line":599},29,[204,601,602],{},"    defer resp.Body.Close()\n",[204,604,606],{"class":206,"line":605},30,[204,607,305],{"emptyLinePlaceholder":304},[204,609,611],{"class":206,"line":610},31,[204,612,613],{},"    body, _ := io.ReadAll(resp.Body)\n",[204,615,617],{"class":206,"line":616},32,[204,618,619],{},"    fmt.Println(string(body))\n",[204,621,623],{"class":206,"line":622},33,[204,624,625],{},"}\n",[627,628,629],"blockquote",{},[173,630,631,634,635,638,639,641],{},[201,632,633],{},"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3"," is the ",[201,636,637],{},"\u002Fapi\u002Fv3"," path under the access domain, routing to ",[201,640,180],{},". Authentication uses the SilvaMux API key, not Volcengine AK\u002FSK.",[643,644,645],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":199,"searchDepth":222,"depth":222,"links":647},[648],{"id":184,"depth":222,"text":185},"Volcengine Ark v3 Chat Completions compatible entry.","md",{},"---\ntitle: Volcengine Compatible\ndescription: Volcengine Ark v3 Chat Completions compatible entry.\n---\n\n# Volcengine Compatible\n\nCompatible with the Volcengine Ark OpenAI-compatible API (v3 protocol), usable for Doubao Seed series models and other models that follow the Volcengine v3 protocol.\n\n::api-endpoint{path=\"\u002Fapi\u002Fv3\u002Fchat\u002Fcompletions\" method=\"POST\"}\n::\n\n## Examples\n\n::code-tabs\n:::code-tab{label=\"cURL\"}\n```bash\ncurl https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\u002Fchat\u002Fcompletions \\\n  -H \"Authorization: Bearer $SILVAMUX_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"doubao-seed-2.0-pro\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n  }'\n```\n:::\n:::code-tab{label=\"Python\"}\n```python\n# pip install openai\nimport os\nfrom openai import OpenAI\n\nclient = OpenAI(\n    api_key=os.environ[\"SILVAMUX_API_KEY\"],\n    base_url=\"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\",\n)\n\nresponse = client.chat.completions.create(\n    model=\"doubao-seed-2.0-pro\",\n    messages=[{\"role\": \"user\", \"content\": \"Hello\"}],\n)\n\nprint(response.choices[0].message.content)\n```\n:::\n:::code-tab{label=\"JavaScript\"}\n```javascript\n\u002F\u002F npm install openai\nimport OpenAI from \"openai\";\n\nconst client = new OpenAI({\n  apiKey: process.env.SILVAMUX_API_KEY,\n  baseURL: \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\",\n});\n\nconst response = await client.chat.completions.create({\n  model: \"doubao-seed-2.0-pro\",\n  messages: [{ role: \"user\", content: \"Hello\" }],\n});\n\nconsole.log(response.choices[0].message.content);\n```\n:::\n:::code-tab{label=\"Go\"}\n```go\n\u002F\u002F Standard library only\npackage main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"net\u002Fhttp\"\n\t\"os\"\n)\n\nfunc main() {\n\tpayload := []byte(`{\n\t\t\"model\": \"doubao-seed-2.0-pro\",\n\t\t\"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n\t}`)\n\n\treq, err := http.NewRequest(\"POST\", \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3\u002Fchat\u002Fcompletions\", bytes.NewReader(payload))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+os.Getenv(\"SILVAMUX_API_KEY\"))\n\treq.Header.Set(\"Content-Type\", \"application\u002Fjson\")\n\n\tresp, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n\n\tbody, _ := io.ReadAll(resp.Body)\n\tfmt.Println(string(body))\n}\n```\n:::\n::\n\n> `https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fv3` is the `\u002Fapi\u002Fv3` path under the access domain, routing to `\u002Fapi\u002Fv3\u002Fchat\u002Fcompletions`. Authentication uses the SilvaMux API key, not Volcengine AK\u002FSK.\n",[],{"title":115,"description":649},"RVXdjWfOhjqr4Exq43NQf_vqjcycWXBlVJQa19v3JV8",{"found":304,"operationId":657,"summary":658,"description":199,"method":179,"path":180,"publiclyDiscoverable":304,"security":659,"parameters":663,"requestBody":664,"responses":695},"createVolcengineChatCompletion","Volcengine 兼容",{"schemes":660,"optional":43},[661,662],"BearerAuth","ApiKeyAuth",[],{"present":304,"required":304,"description":199,"contentType":665,"type":666,"fields":667,"variants":694},"application\u002Fjson","OpenAIChatRequest",[668,671,674,677,680,684,688,691],{"name":669,"type":670,"required":43,"description":199},"max_tokens","integer",{"name":672,"type":673,"required":304,"description":199},"messages","array\u003CMessage>",{"name":675,"type":676,"required":304,"description":199},"messages.content","string | array\u003CFreeFormObject>",{"name":678,"type":679,"required":304,"description":199},"messages.role","string (system | user | assistant | tool)",{"name":681,"type":682,"required":304,"description":683},"model","string","SilvaMux 模型 id 或 alias。",{"name":685,"type":686,"required":43,"description":199,"defaultValue":687},"stream","boolean","false",{"name":689,"type":690,"required":43,"description":199},"temperature","number",{"name":692,"type":693,"required":43,"description":199},"tools","array\u003CFreeFormObject>",[],[696,711],{"status":697,"description":698,"contentType":665,"type":699,"fields":700},"200","OpenAI Chat JSON 或 SSE 响应。","OpenAIChatResponse",[701,703,705,706,708],{"name":702,"type":693,"required":304,"description":199},"choices",{"name":704,"type":682,"required":304,"description":199},"id",{"name":681,"type":682,"required":43,"description":199},{"name":707,"type":682,"required":43,"description":199},"object",{"name":709,"type":710,"required":43,"description":199},"usage","FreeFormObject",{"status":712,"description":713,"contentType":665,"type":714,"fields":715},"default","Volcengine 兼容错误。","VolcengineError",[716],{"name":717,"type":710,"required":43,"description":199},"error"]