[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"docs-nav-en":3,"docs-en-getting-started\u002Fquick-start\u002Fapi-key":144},[4,52,69,119,136,140],{"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},"Model APIs","\u002Fmodels","4.models",[74,107],{"title":75,"path":76,"stem":77,"children":78,"page":43},"Text Generation","\u002Fmodels\u002Fchat","4.models\u002F1.chat",[79,83,87,91,95,99,103],{"title":80,"path":81,"stem":82},"Overview","\u002Fmodels\u002Fchat\u002Foverview","4.models\u002F1.chat\u002F1.overview",{"title":84,"path":85,"stem":86},"OpenAI Compatible API","\u002Fmodels\u002Fchat\u002Fopenai","4.models\u002F1.chat\u002F2.openai",{"title":88,"path":89,"stem":90},"Anthropic Compatible","\u002Fmodels\u002Fchat\u002Fanthropic","4.models\u002F1.chat\u002F3.anthropic",{"title":92,"path":93,"stem":94},"Volcengine Compatible","\u002Fmodels\u002Fchat\u002Fvolcengine","4.models\u002F1.chat\u002F4.volcengine",{"title":96,"path":97,"stem":98},"Zhipu Compatible","\u002Fmodels\u002Fchat\u002Fzhipu","4.models\u002F1.chat\u002F5.zhipu",{"title":100,"path":101,"stem":102},"SilvaMux Unified Entry","\u002Fmodels\u002Fchat\u002Funified","4.models\u002F1.chat\u002F6.unified",{"title":104,"path":105,"stem":106},"Multimodal Input","\u002Fmodels\u002Fchat\u002Fmultimodal","4.models\u002F1.chat\u002F7.multimodal",{"title":108,"path":109,"stem":110,"children":111,"page":43},"Image Generation","\u002Fmodels\u002Fimages","4.models\u002F2.images",[112,115],{"title":80,"path":113,"stem":114},"\u002Fmodels\u002Fimages\u002Foverview","4.models\u002F2.images\u002F1.overview",{"title":116,"path":117,"stem":118},"Image Generation API","\u002Fmodels\u002Fimages\u002Fgeneration","4.models\u002F2.images\u002F2.generation",{"title":120,"path":121,"stem":122,"children":123,"page":43},"Usage & Balance","\u002Fusage-and-balance","5.usage-and-balance",[124,128,132],{"title":125,"path":126,"stem":127},"Query Balance","\u002Fusage-and-balance\u002Fbalance","5.usage-and-balance\u002F1.balance",{"title":129,"path":130,"stem":131},"Query Usage","\u002Fusage-and-balance\u002Fusage","5.usage-and-balance\u002F2.usage",{"title":133,"path":134,"stem":135},"Query Request Usage","\u002Fusage-and-balance\u002Frequest-usage","5.usage-and-balance\u002F3.request-usage",{"title":137,"path":138,"stem":139},"Error Codes","\u002Ferrors","6.errors",{"title":141,"path":142,"stem":143},"Documentation","\u002F","index",{"id":145,"title":23,"body":146,"description":265,"extension":266,"meta":267,"navigation":268,"path":24,"rawbody":269,"requiredFlags":270,"seo":271,"stem":25,"__hash__":272},"docs_en\u002F1.getting-started\u002F1.quick-start\u002F3.api-key.md",{"type":147,"value":148,"toc":260},"minimark",[149,153,157,162,192,199,205,208,237,241,256],[150,151,23],"h1",{"id":152},"get-an-api-key",[154,155,156],"p",{},"API keys are used for model calls; AK\u002FSK credentials are used by compatible APIs that require Access Key ID and Secret Key signing. The two must not be mixed.",[158,159,161],"h2",{"id":160},"creating-an-api-key","Creating an API Key",[163,164,165,169,181,184],"ol",{},[166,167,168],"li",{},"Make sure your current workspace has at least one project.",[166,170,171,172,176,177,180],{},"Open the ",[173,174,175],"strong",{},"API Keys"," page and click ",[173,178,179],{},"Generate API Key",".",[166,182,183],{},"Fill in the name, then choose the bound project and API version.",[166,185,186,187,191],{},"Copy the full ",[188,189,190],"code",{},"sk_live_"," key immediately after creation. The full value is shown only once.",[154,193,194],{},[195,196],"img",{"alt":197,"src":198},"Create API Key","https:\u002F\u002Fsilvamux-docs.tingyutech.com\u002Fdeveloper-docs\u002Fapi-key-create.png",[154,200,201],{},[195,202],{"alt":203,"src":204},"API Key created","https:\u002F\u002Fsilvamux-docs.tingyutech.com\u002Fdeveloper-docs\u002Fapi-key-created.png",[154,206,207],{},"Store the key as an environment variable:",[209,210,215],"pre",{"className":211,"code":212,"language":213,"meta":214,"style":214},"language-bash shiki shiki-themes github-light github-dark","export SILVAMUX_API_KEY=\"sk_live_YOUR_API_KEY\"\n","bash","",[188,216,217],{"__ignoreMap":214},[218,219,222,226,230,233],"span",{"class":220,"line":221},"line",1,[218,223,225],{"class":224},"szBVR","export",[218,227,229],{"class":228},"sVt8B"," SILVAMUX_API_KEY",[218,231,232],{"class":224},"=",[218,234,236],{"class":235},"sZZnC","\"sk_live_YOUR_API_KEY\"\n",[158,238,240],{"id":239},"security-rules","Security Rules",[242,243,244,247,250,253],"ul",{},[166,245,246],{},"Never put keys in browser code, logs, screenshots, or public repositories.",[166,248,249],{},"Use different keys for testing and production.",[166,251,252],{},"If a key leaks, revoke the old key first, then update your service configuration.",[166,254,255],{},"A full key cannot be recovered after it is hidden — create a new one if needed.",[257,258,259],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}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":214,"searchDepth":261,"depth":261,"links":262},2,[263,264],{"id":160,"depth":261,"text":161},{"id":239,"depth":261,"text":240},"Create, store, and manage API keys and AK\u002FSK credentials.","md",{},true,"---\ntitle: Get an API Key\ndescription: Create, store, and manage API keys and AK\u002FSK credentials.\n---\n\n# Get an API Key\n\nAPI keys are used for model calls; AK\u002FSK credentials are used by compatible APIs that require Access Key ID and Secret Key signing. The two must not be mixed.\n\n## Creating an API Key\n\n1. Make sure your current workspace has at least one project.\n2. Open the **API Keys** page and click **Generate API Key**.\n3. Fill in the name, then choose the bound project and API version.\n4. Copy the full `sk_live_` key immediately after creation. The full value is shown only once.\n\n![Create API Key](https:\u002F\u002Fsilvamux-docs.tingyutech.com\u002Fdeveloper-docs\u002Fapi-key-create.png)\n\n![API Key created](https:\u002F\u002Fsilvamux-docs.tingyutech.com\u002Fdeveloper-docs\u002Fapi-key-created.png)\n\nStore the key as an environment variable:\n\n```bash\nexport SILVAMUX_API_KEY=\"sk_live_YOUR_API_KEY\"\n```\n\n## Security Rules\n\n- Never put keys in browser code, logs, screenshots, or public repositories.\n- Use different keys for testing and production.\n- If a key leaks, revoke the old key first, then update your service configuration.\n- A full key cannot be recovered after it is hidden — create a new one if needed.\n",[],{"title":23,"description":265},"xUJ4YfIVF0qoZL9A0x0A8NqErBXHh-IBnQgo7VW7uwE"]