The Edgee Rust SDK provides a modern, type-safe, async interface to interact with the Edgee AI Gateway. Built with Rust’s powerful type system and async/await capabilities, it offers compile-time safety, zero-cost abstractions, and excellent performance.
use edgee::Edgee;let client = Edgee::with_api_key("your-api-key");let response = client.send("gpt-5.2", "What is the capital of France?").await.unwrap();println!("{}", response.text().unwrap_or(""));// "The capital of France is Paris."
Run the example with a Gateway API key stored in your environment. Confirm a model response, then find the request in Logs for that key and organization. Check the served model and provider, since routing rules can change them. See Gateway errors if authentication, model access, or billing prevents the request.
Was this page helpful?
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Edgee documentation","description":"Edgee is an Agent Gateway that cuts LLM costs through token compression and intelligent routing, with full visibility and control over agent usage.","colors":{"primary":"#8924A6","light":"#C876FA","dark":"#8924A6"},"logo":{"light":"https://mintcdn.com/edgee/Tr5V2dfafQev6fsX/images/logos/logo-black.svg?fit=max\u0026auto=format\u0026n=Tr5V2dfafQev6fsX\u0026q=85\u0026s=5be34205f8cf733c65e7834fd5d11d84","dark":"https://mintcdn.com/edgee/Tr5V2dfafQev6fsX/images/logos/logo-white.svg?fit=max\u0026auto=format\u0026n=Tr5V2dfafQev6fsX\u0026q=85\u0026s=bf287c7d1aa34fb0b6c2a6182c554331","href":"https://www.edgee.ai"},"favicon":"https://mintcdn.com/edgee/QBMOASrtNYwEeH_j/favicon.svg?fit=max\u0026auto=format\u0026n=QBMOASrtNYwEeH_j\u0026q=85\u0026s=e074f56be213ca1d5dc4aa5f53b3d509","appearance":{"default":"dark"},"background":{"color":{"dark":"#1D1A25"}},"navbar":{"primary":{"type":"button","label":"Console","href":"https://www.edgee.ai"}},"footer":{"socials":{"github":"https://github.com/edgee-ai","linkedin":"https://www.linkedin.com/company/edgee-ai","x":"https://x.com/edgee_ai","instagram":"https://www.instagram.com/edgee_ai","discord":"https://www.edgee.ai/discord"},"links":[{"header":"Support","items":[{"label":"Documentation","href":"https://www.edgee.ai/docs"},{"label":"Contact","href":"https://www.edgee.ai/contact"},{"label":"Status","href":"https://status.edgee.ai"}]},{"header":"Company","items":[{"label":"Blog","href":"https://www.edgee.ai/blog"},{"label":"Jobs","href":"https://github.com/edgee-ai/careers"}]},{"header":"Legal","items":[{"label":"Privacy","href":"https://www.edgee.ai/privacy"},{"label":"Terms","href":"https://www.edgee.ai/terms"}]}]},"fonts":{"heading":{"family":"Sentient-Variable","weight":600,"source":"https://www.edgee.ai/assets/fonts/Sentient-Variable.woff2","format":"woff2"},"body":{"family":"Supreme-Variable","weight":500,"source":"https://www.edgee.ai/assets/fonts/Supreme-Variable.woff2","format":"woff2"}},"icons":{"library":"lucide"},"styling":{"codeblocks":"dark","latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"edgee","hasAudioNarration":false,"actualSubdomain":"edgee","customDomains":["www.edgee.ai"],"gitSource":{"type":"github","owner":"edgee-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ab371ea331ea758fa5a9e6d","collectionId":"3fdda812-b664-4f59-8605-e56bb2933023","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ab371ea331ea758fa5a9e6d"},"feedback":{"thumbs":true,"issues":false,"edits":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ab371ea331ea758fa5a9e6d","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Agent Gateway","count":49},{"language":"default","tag":"LLM Router","count":39},{"language":"default","tag":"Edgee SDKs","count":20},{"language":"default","tag":"Coding assistants","count":17},{"language":"default","tag":"Features","count":17},{"language":"default","tag":"Gateway API","count":9},{"language":"default","tag":"Console API","count":8},{"language":"default","tag":"CLI","count":6},{"language":"default","tag":"Integrations","count":6},{"language":"default","tag":"Go","count":5}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".dark\\:bg-primary-light:is(.dark *).bg-transparent{background-color:initial}"}],"page":{"pagePath":"llm-router/sdk/rust","slug":"/llm-router/sdk/rust","pageMetadata":{"title":"Rust SDK","sidebarTitle":"Introduction","description":"Integrate the Rust SDK in your application.","icon":"minus","href":"/llm-router/sdk/rust/index"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Integrate the Rust SDK in your application.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Edgee Rust SDK provides a modern, type-safe, async interface to interact with the Edgee AI Gateway. Built with Rust’s powerful type system and async/await capabilities, it offers compile-time safety, zero-cost abstractions, and excellent performance.`}),`\n`,_jsx(Heading,{level:`2`,id:`installation`,children:`Installation`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`cargo`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` edgee`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start`,children:`Quick Start`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`rust`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`rust`,children:_jsxs(_components.code,{language:`rust`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:` edgee`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`Edgee`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`Edgee`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`with_api_key`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"your-api-key\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-5.2\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"What is the capital of France?\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`unwrap`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`println!`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"{}\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`text`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`unwrap_or`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:`// \"The capital of France is Paris.\"`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`what’s-next`,children:`What’s Next?`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.a,{href:`/llm-router/sdk/rust/configuration`,children:`Configuration`})}),` - Learn how to configure and instantiate the SDK`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.a,{href:`/llm-router/sdk/rust/send`,children:`Send Method`})}),` - Complete guide to the `,_jsx(_components.code,{children:`send()`}),` method`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.a,{href:`/llm-router/sdk/rust/stream`,children:`Stream Method`})}),` - Learn how to stream responses`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.a,{href:`/llm-router/sdk/rust/tools`,children:`Tools`})}),` - Detailed guide to function calling`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`verify-your-first-request`,children:`Verify your first request`}),`\n`,_jsxs(_components.p,{children:[`Run the example with a Gateway API key stored in your environment. Confirm a model response, then find the request in `,_jsx(_components.strong,{children:`Logs`}),` for that key and organization. Check the served model and provider, since routing rules can change them. See `,_jsx(_components.a,{href:`/llm-router/api-reference/errors`,children:`Gateway errors`}),` if authentication, model access, or billing prevents the request.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Rust SDK","sidebarTitle":"Introduction","description":"Integrate the Rust SDK in your application.","icon":"minus","href":"/llm-router/sdk/rust/index"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Installation","slug":"installation","depth":2,"children":[]},{"title":"Quick Start","slug":"quick-start","depth":2,"children":[]},{"title":"What’s Next?","slug":"what’s-next","depth":2,"children":[]},{"title":"Verify your first request","slug":"verify-your-first-request","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"edgee","siteName":"Edgee documentation","title":"Rust SDK - Edgee documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-23T06:30:13.526Z","originalFileLocation":"llm-router/sdk/rust/index.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Integrate the Rust SDK in your application.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Edgee documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/edgee/ommcR-J9tI9kkU8q/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/edgee/ommcR-J9tI9kkU8q/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/edgee/ommcR-J9tI9kkU8q/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/edgee/ommcR-J9tI9kkU8q/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/edgee/ommcR-J9tI9kkU8q/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/edgee/ommcR-J9tI9kkU8q/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/edgee/ommcR-J9tI9kkU8q/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/edgee/ommcR-J9tI9kkU8q/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/edgee/ommcR-J9tI9kkU8q/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Rust SDK - Edgee documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Integrate the Rust SDK in your application.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Edgee documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.edgee.ai/docs/llm-router/sdk/rust\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://edgee.mintlify.site/docs/_mintlify/api/og/v2?division=Rust\u0026amp;title=Rust+SDK\u0026amp;description=Integrate+the+Rust+SDK+in+your+application.\u0026amp;theme=1b5dce40a424823c7667bf55\u0026amp;signature=99c4a7108c81c0d1c55fc12689d2e914f386a21d9332086457e6341ca231924c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Rust SDK - Edgee documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Integrate the Rust SDK in your application.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://edgee.mintlify.site/docs/_mintlify/api/og/v2?division=Rust\u0026amp;title=Rust+SDK\u0026amp;description=Integrate+the+Rust+SDK+in+your+application.\u0026amp;theme=1b5dce40a424823c7667bf55\u0026amp;signature=99c4a7108c81c0d1c55fc12689d2e914f386a21d9332086457e6341ca231924c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/edgee/ommcR-J9tI9kkU8q/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Edgee documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8924A6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.edgee.ai/docs/llm-router/sdk/rust\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/llm-router/sdk/rust.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.edgee.ai/#organization\",\"name\":\"Edgee documentation\",\"url\":\"https://www.edgee.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/edgee/Tr5V2dfafQev6fsX/images/logos/logo-black.svg?fit=max\u0026auto=format\u0026n=Tr5V2dfafQev6fsX\u0026q=85\u0026s=5be34205f8cf733c65e7834fd5d11d84\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.edgee.ai/docs#website\",\"name\":\"Edgee documentation\",\"url\":\"https://www.edgee.ai/docs\",\"publisher\":{\"@id\":\"https://www.edgee.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.edgee.ai/docs/llm-router/sdk/rust#webpage\",\"url\":\"https://www.edgee.ai/docs/llm-router/sdk/rust\",\"name\":\"Rust SDK\",\"description\":\"Integrate the Rust SDK in your application.\",\"dateModified\":\"2026-09-23T06:30:13.526Z\",\"isPartOf\":{\"@id\":\"https://www.edgee.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.edgee.ai/docs/llm-router/sdk/rust#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.edgee.ai/docs/llm-router/sdk/rust#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Edgee SDKs\",\"item\":\"https://www.edgee.ai/docs/llm-router/sdk/typescript/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rust\",\"item\":\"https://www.edgee.ai/docs/llm-router/sdk/rust/index\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Rust SDK\",\"item\":\"https://www.edgee.ai/docs/llm-router/sdk/rust\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.edgee.ai/docs/llm-router/sdk/rust#article\",\"headline\":\"Rust SDK\",\"name\":\"Rust SDK\",\"description\":\"Integrate the Rust SDK in your application.\",\"url\":\"https://www.edgee.ai/docs/llm-router/sdk/rust\",\"mainEntityOfPage\":{\"@id\":\"https://www.edgee.ai/docs/llm-router/sdk/rust#webpage\"},\"dateModified\":\"2026-09-23T06:30:13.526Z\",\"publisher\":{\"@id\":\"https://www.edgee.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://www.edgee.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Edgee documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Edgee documentation","nav":{"global":null,"tabs":[{"tab":"Agent Gateway","icon":"house","pages":[{"title":"Agent Gateway","href":"/introduction"}]},{"tab":"LLM Router","icon":"boxes","groups":[{"group":"Get started","pages":[{"title":"LLM Router and SDKs","sidebarTitle":"Overview","icon":"boxes","href":"/llm-router"},{"title":"Connect your application","sidebarTitle":"Application quickstart","icon":"code","href":"/llm-router/quickstart"},{"title":"Create an API Key","icon":"chevrons-right","href":"/llm-router/quickstart/api-key"},{"title":"Integrate Edgee to your stack","icon":"chevrons-right","href":"/llm-router/quickstart/integration"}]},{"group":"Integrations","pages":[{"title":"OpenAI SDK","sidebarTitle":"OpenAI SDK","icon":"https://mintlify.s3.us-west-1.amazonaws.com/edgee/images/icons/openai.svg","href":"/llm-router/integrations/openai"},{"title":"Anthropic SDK","icon":"https://mintlify.s3.us-west-1.amazonaws.com/edgee/images/icons/anthropic.svg","href":"/llm-router/integrations/anthropic"},{"title":"LangChain","icon":"https://mintlify.s3.us-west-1.amazonaws.com/edgee/images/icons/langchain.svg","href":"/llm-router/integrations/langchain"},{"title":"OpenClaw","icon":"https://mintlify.s3.us-west-1.amazonaws.com/edgee/images/icons/openclaw.svg","href":"/llm-router/integrations/openclaw"}]},{"group":"Edgee SDKs","pages":[{"group":"TypeScript","icon":"/images/icons/typescript.svg","pages":[{"title":"TypeScript SDK","sidebarTitle":"Introduction","icon":"minus","href":"/llm-router/sdk/typescript/index"},{"title":"TypeScript SDK Configuration","sidebarTitle":"Configuration","icon":"settings-2","href":"/llm-router/sdk/typescript/configuration"},{"title":"TypeScript SDK - Send Method","sidebarTitle":"Send","icon":"send","href":"/llm-router/sdk/typescript/send"},{"title":"TypeScript SDK - Stream Method","sidebarTitle":"Stream","icon":"square-stack","href":"/llm-router/sdk/typescript/stream"},{"title":"TypeScript SDK - Tools (Function Calling)","sidebarTitle":"Tools","icon":"square-function","href":"/llm-router/sdk/typescript/tools"}]},{"group":"Python","icon":"python","pages":[{"title":"Python SDK","sidebarTitle":"Introduction","icon":"minus","href":"/llm-router/sdk/python/index"},{"title":"Python SDK Configuration","sidebarTitle":"Configuration","icon":"settings-2","href":"/llm-router/sdk/python/configuration"},{"title":"Python SDK - Send Method","sidebarTitle":"Send","icon":"send","href":"/llm-router/sdk/python/send"},{"title":"Python SDK - Stream Method","sidebarTitle":"Stream","icon":"square-stack","href":"/llm-router/sdk/python/stream"},{"title":"Python SDK - Tools (Function Calling)","sidebarTitle":"Tools","description":"Complete guide to function calling with the Python SDK.","icon":"square-function","href":"/llm-router/sdk/python/tools"}]},{"group":"Rust","icon":"rust","pages":[{"title":"Rust SDK","sidebarTitle":"Introduction","icon":"minus","href":"/llm-router/sdk/rust/index"},{"title":"Rust SDK Configuration","sidebarTitle":"Configuration","description":"Learn how to configure and instantiate the Edgee Rust SDK.","icon":"settings-2","href":"/llm-router/sdk/rust/configuration"},{"title":"Rust SDK - Send Method","sidebarTitle":"Send","icon":"send","href":"/llm-router/sdk/rust/send"},{"title":"Rust SDK - Stream Method","sidebarTitle":"Stream","icon":"square-stack","href":"/llm-router/sdk/rust/stream"},{"title":"Rust SDK - Tools (Function Calling)","sidebarTitle":"Tools","icon":"square-function","href":"/llm-router/sdk/rust/tools"}]},{"group":"Go","icon":"golang","pages":[{"title":"Go SDK","sidebarTitle":"Introduction","icon":"minus","href":"/llm-router/sdk/go/index"},{"title":"Go SDK Configuration","sidebarTitle":"Configuration","icon":"settings-2","href":"/llm-router/sdk/go/configuration"},{"title":"Go SDK - Send Method","sidebarTitle":"Send","icon":"send","href":"/llm-router/sdk/go/send"},{"title":"Go SDK - Stream Method","sidebarTitle":"Stream","icon":"square-stack","href":"/llm-router/sdk/go/stream"},{"title":"Go SDK - Tools (Function Calling)","sidebarTitle":"Tools","icon":"square-function","href":"/llm-router/sdk/go/tools"}]}]},{"group":"Application configuration","pages":[{"title":"Manage Gateway API keys","icon":"key-round","href":"/llm-router/api-keys"},{"title":"Application observability","sidebarTitle":"Usage and request tags","icon":"chart-line","href":"/llm-router/observability"}]},{"group":"Gateway API","pages":[{"title":"API overview","icon":"book","href":"/llm-router/api-reference/index"},{"title":"Authentication","icon":"key-round","href":"/llm-router/api-reference/authentication"},{"title":"Errors","icon":"circle-x","href":"/llm-router/api-reference/errors"},{"title":"OpenAI Chat Completion","openapi":"POST /v1/chat/completions","href":"/llm-router/api-reference/chat-completion"},{"title":"OpenAI Responses","openapi":"POST /v1/responses","href":"/llm-router/api-reference/responses"},{"title":"Anthropic Messages","openapi":"POST /v1/messages","href":"/llm-router/api-reference/messages"},{"title":"Models","openapi":"GET /v1/models","href":"/llm-router/api-reference/models"},{"title":"Count Tokens","openapi":"POST /v1/count_tokens","href":"/llm-router/api-reference/count-tokens"},{"title":"Compress","openapi":"POST /v1/compress","href":"/llm-router/api-reference/compress"}]}]},{"tab":"Console API","icon":"terminal","pages":[{"title":"Console API","href":"/api-reference/console-api-setup"}]}]},"basePath":"","title":"Rust SDK - Edgee documentation","buildId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","deploymentId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","dynamics":[],"chunks":[]}