Credentials are stored online, and keys are encrypted.
Literal AI supports all major LLM providers:
OpenAI
Mistral
Anthropic
Google
Azure OpenAI
Amazon Bedrock
Groq
Adding a credential is as simple as providing an API key:
Add a credential
Literal AI comes with a set of pre-configured models for each provider, but you can add your own. Custom Models should be the list of models you fine-tuned on specific providers.
All credentials can be used by any Admin or AI Engineer on your team.
Once added, credentials are not visible anymore. Admins may edit or delete credentials.
Azure OpenAI and Amazon Bedrock have additional fields to configure.For Azure OpenAI, you need to map the Azure OpenAI endpoint to the following format:https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/chat/completions?api-version=2024-06-01For instance,
https://my_instance.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-06-01would map to the following Literal AI provider:
If your LLM provider does not fall into one of the above, you may define your own, custom.In addition to the API key, you provide a base URL and the available models.
The chat completions endpoint should follow OpenAI’s API format.
Custom provider
Make sure your endpoint is reachable from the Internet!
Especially if using LM Studio with http://localhost:1234/v1 😉
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Literal AI Documentation","colors":{"primary":"#F80061","light":"#FFE7EB","dark":"#980039"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/chainlit-5/yVkf8qhp8dsNjo0g/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=yVkf8qhp8dsNjo0g\u0026q=85\u0026s=5041057089add85f6e7b5b730962e5c1","dark":"https://mintcdn.com/chainlit-5/yVkf8qhp8dsNjo0g/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=yVkf8qhp8dsNjo0g\u0026q=85\u0026s=134f341ff227aa290b94b7c53de36a2a"},"navbar":{"links":[],"primary":{"type":"button","label":"Get Started","href":"https://cloud.getliteral.ai"}},"footer":{"socials":{"twitter":"https://twitter.com/chainlit_io","github":"https://github.com/Chainlit","linkedin":"https://www.linkedin.com/company/chainlit"}},"integrations":{"posthog":{"apiKey":"phc_B5OPGyB2PSuzWeqrrOmUIuIl7tQcroYE8jJDc56ES6Q","apiHost":"https://eu.i.posthog.com"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chainlit-5","hasAudioNarration":false,"actualSubdomain":"chainlit-5","customDomains":["docs.literalai.com"],"gitSource":{"type":"github","owner":"chainlit","repo":"literalai-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e6138d1fcd719df030fd","collectionId":"eb832854-76a2-4ae8-97c5-a795a2002454","schemaVersion":"v2"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6a21e6138d1fcd719df030fd:success","clientVersion":"0.0.3926","searchFilterCounts":[{"language":"default","tag":"Documentation","count":36},{"language":"default","tag":"Integrations","count":10},{"language":"default","tag":"Python Client","count":8},{"language":"default","tag":"API Reference","count":8},{"language":"default","tag":"Get Started","count":6},{"language":"default","tag":"TypeScript Client","count":6},{"language":"default","tag":"Evaluation","count":5},{"language":"default","tag":"Application","count":5},{"language":"default","tag":"Settings","count":4},{"language":"default","tag":"More","count":4}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"guides/settings/llm","slug":"/guides/settings/llm","pageMetadata":{"title":"LLM","description":"Manage your LLM credentials and costs.","icon":"key-skeleton","href":"/guides/settings/llm"},"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: \"Manage your LLM credentials and costs.\"\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={br:`br`,code:`code`,em:`em`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Check,Frame,Heading,Info,Note,OptimizedImage,Step,Steps,Tip,Warning}=_components;if(!Check)_missingMdxReference(`Check`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`credentials`,children:`Credentials`}),`\n`,_jsx(Heading,{level:`3`,id:`supported-providers`,children:`Supported providers`}),`\n`,_jsx(Check,{children:`Credentials are stored online, and keys are encrypted.`}),`\n`,_jsx(_components.p,{children:`Literal AI supports all major LLM providers:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`OpenAI`}),`\n`,_jsx(_components.li,{children:`Mistral`}),`\n`,_jsx(_components.li,{children:`Anthropic`}),`\n`,_jsx(_components.li,{children:`Google`}),`\n`,_jsx(_components.li,{children:`Azure OpenAI`}),`\n`,_jsx(_components.li,{children:`Amazon Bedrock`}),`\n`,_jsx(_components.li,{children:`Groq`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Adding a credential is as simple as providing an API key:`}),`\n`,_jsx(Frame,{caption:`Add a credential`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/chainlit-5/SattO4WPsa_7pLDy/images/add-credentials.gif?s=69979390fc96294e1837afc2e81a90a8`,alt:`Add a credential`,\"data-og-width\":`1497`,width:`1497`,\"data-og-height\":`772`,height:`772`,\"data-path\":`images/add-credentials.gif`,\"data-optimize\":`true`,\"data-opv\":`3`})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Literal AI comes with a set of pre-configured models for each provider, but you can add your own.`,_jsx(_components.br,{}),`\n`,_jsx(_components.em,{children:`Custom Models`}),` should be the list of models you fine-tuned on specific providers.`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`All credentials can be `,_jsx(_components.strong,{children:`used`}),` by any Admin or AI Engineer on your team.`,_jsx(_components.br,{}),`\n`,`Once added, credentials are not visible anymore. Admins may edit or delete credentials.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Azure OpenAI`}),` and `,_jsx(_components.strong,{children:`Amazon Bedrock`}),` have additional fields to configure.`]}),`\n`,_jsx(_components.p,{children:`For Azure OpenAI, you need to map the Azure OpenAI endpoint to the following format:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/chat/completions?api-version=2024-06-01`})}),`\n`,_jsxs(_components.p,{children:[`For instance,\n`,_jsx(_components.code,{children:`https://my_instance.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-06-01`})]}),`\n`,_jsx(_components.p,{children:`would map to the following Literal AI provider:`}),`\n`,_jsx(Frame,{caption:`Azure OpenAI Credential Configuration`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/chainlit-5/SattO4WPsa_7pLDy/images/azureopenai.png?fit=max\u0026auto=format\u0026n=SattO4WPsa_7pLDy\u0026q=85\u0026s=93afdb0b0911b611a6997c1ba9bdd52c`,alt:`An example of an Azure OpenAI credential configuration.`,\"data-og-width\":`514`,width:`514`,\"data-og-height\":`580`,height:`580`,\"data-path\":`images/azureopenai.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/chainlit-5/SattO4WPsa_7pLDy/images/azureopenai.png?w=280\u0026fit=max\u0026auto=format\u0026n=SattO4WPsa_7pLDy\u0026q=85\u0026s=32688e36e44967db858835de5ab3bf58 280w, https://mintcdn.com/chainlit-5/SattO4WPsa_7pLDy/images/azureopenai.png?w=560\u0026fit=max\u0026auto=format\u0026n=SattO4WPsa_7pLDy\u0026q=85\u0026s=c9013e83144bc95c1c7dd730d57fa398 560w, https://mintcdn.com/chainlit-5/SattO4WPsa_7pLDy/images/azureopenai.png?w=840\u0026fit=max\u0026auto=format\u0026n=SattO4WPsa_7pLDy\u0026q=85\u0026s=fa344ebbf20f6e872529ec91b98e60c6 840w, https://mintcdn.com/chainlit-5/SattO4WPsa_7pLDy/images/azureopenai.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SattO4WPsa_7pLDy\u0026q=85\u0026s=4cba2ca28eaee059299b6095f3d95d78 1100w, https://mintcdn.com/chainlit-5/SattO4WPsa_7pLDy/images/azureopenai.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SattO4WPsa_7pLDy\u0026q=85\u0026s=db2a0e93891c703974dc8f61f39ec1d2 1650w, https://mintcdn.com/chainlit-5/SattO4WPsa_7pLDy/images/azureopenai.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SattO4WPsa_7pLDy\u0026q=85\u0026s=67a9693fcdc36afb78802be650929fb6 2500w`})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`No need to add a base URL to the endpoint!`})}),`\n`,_jsx(Heading,{level:`3`,id:`custom-providers`,children:`Custom providers`}),`\n`,_jsx(_components.p,{children:`If your LLM provider does not fall into one of the above, you may define your own, custom.`}),`\n`,_jsx(_components.p,{children:`In addition to the API key, you provide a base URL and the available models.`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`The chat completions endpoint should follow OpenAI’s API format.`})}),`\n`,_jsx(Frame,{caption:`Custom provider`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/chainlit-5/SattO4WPsa_7pLDy/images/add-custom-provider.gif?s=de9aca024242cc2ed123e88793316677`,alt:`An example of a custom provider.`,\"data-og-width\":`1497`,width:`1497`,\"data-og-height\":`772`,height:`772`,\"data-path\":`images/add-custom-provider.gif`,\"data-optimize\":`true`,\"data-opv\":`3`})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Make sure your endpoint is reachable from the Internet!`,_jsx(_components.br,{}),`\n`,`Especially if using LM Studio with `,_jsx(_components.code,{children:`http://localhost:1234/v1`}),` 😉`]})}),`\n`,_jsx(Heading,{level:`2`,id:`cost-tracking`,children:`Cost Tracking`}),`\n`,_jsx(_components.p,{children:`Keep an eye on the financial aspects of your LLM application:`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Access LLM Settings`,children:_jsx(_components.p,{children:`Navigate to the “Settings” section and select the “LLM” tab.`})}),_jsxs(Step,{title:`Configure Model Costs`,children:[_jsx(_components.p,{children:`Configure the cost per token for each model you’re using to enable precise cost tracking:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Pattern`}),`: Specify a regular expression to match the model name (e.g., “gpt-4o*” for all GPT-4o variants)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Input Price`}),`: Set the cost for input tokens in USD per million tokens`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Output Price`}),`: Set the cost for output tokens in USD per million tokens`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Period`}),`: Optionally define start and end dates for time-specific pricing (useful for handling price changes)`]}),`\n`]}),_jsx(_components.p,{children:`You can add multiple model configurations to accurately track expenses across your LLM providers.`})]}),_jsxs(Step,{title:`Monitor Costs in the Dashboard`,children:[_jsx(_components.p,{children:`Return to the main dashboard to view cost metrics over time, including total cost, cost per conversation, and cost breakdowns by model.`}),_jsx(Frame,{caption:`Cost Metrics in the Dashboard`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/chainlit-5/UKa5Vc5x7wx1EBq7/images/model-costs.png?fit=max\u0026auto=format\u0026n=UKa5Vc5x7wx1EBq7\u0026q=85\u0026s=326e56ba232dc55d49a623bf6dc8b711`,alt:`Cost Metrics in the Dashboard`,\"data-og-width\":`819`,width:`819`,\"data-og-height\":`341`,height:`341`,\"data-path\":`images/model-costs.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/chainlit-5/UKa5Vc5x7wx1EBq7/images/model-costs.png?w=280\u0026fit=max\u0026auto=format\u0026n=UKa5Vc5x7wx1EBq7\u0026q=85\u0026s=82aa391ededc46812ca0215b8ae0bc14 280w, https://mintcdn.com/chainlit-5/UKa5Vc5x7wx1EBq7/images/model-costs.png?w=560\u0026fit=max\u0026auto=format\u0026n=UKa5Vc5x7wx1EBq7\u0026q=85\u0026s=670f5252a282e9935ba014aa9b3f9fee 560w, https://mintcdn.com/chainlit-5/UKa5Vc5x7wx1EBq7/images/model-costs.png?w=840\u0026fit=max\u0026auto=format\u0026n=UKa5Vc5x7wx1EBq7\u0026q=85\u0026s=7b8fb42a44f984a523410f7123acf0f3 840w, https://mintcdn.com/chainlit-5/UKa5Vc5x7wx1EBq7/images/model-costs.png?w=1100\u0026fit=max\u0026auto=format\u0026n=UKa5Vc5x7wx1EBq7\u0026q=85\u0026s=0bcd47c58608f66fec5a29e638cef321 1100w, https://mintcdn.com/chainlit-5/UKa5Vc5x7wx1EBq7/images/model-costs.png?w=1650\u0026fit=max\u0026auto=format\u0026n=UKa5Vc5x7wx1EBq7\u0026q=85\u0026s=fef1046ae431e675e3dbbc136caef464 1650w, https://mintcdn.com/chainlit-5/UKa5Vc5x7wx1EBq7/images/model-costs.png?w=2500\u0026fit=max\u0026auto=format\u0026n=UKa5Vc5x7wx1EBq7\u0026q=85\u0026s=c686a7b045157f9255618292e32c555f 2500w`})})]})]})]})}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":{"config":{},"pageMetadata":{"title":"LLM","description":"Manage your LLM credentials and costs.","icon":"key-skeleton","href":"/guides/settings/llm"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Credentials","slug":"credentials","depth":2,"children":[{"title":"Supported providers","slug":"supported-providers","depth":3,"children":[]},{"title":"Custom providers","slug":"custom-providers","depth":3,"children":[]}]},{"title":"Cost Tracking","slug":"cost-tracking","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"chainlit-5","siteName":"Literal AI Documentation","title":"LLM - Literal AI Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T00:43:26.945Z","originalFileLocation":"guides/settings/llm.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=\"system\"}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=\"Manage your LLM credentials and costs.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Literal AI Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/chainlit-5/ME3zdq2jEWAz0RSr/_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=\"/mintlify-assets/_mintlify/favicons/chainlit-5/ME3zdq2jEWAz0RSr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chainlit-5/ME3zdq2jEWAz0RSr/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/chainlit-5/ME3zdq2jEWAz0RSr/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/chainlit-5/ME3zdq2jEWAz0RSr/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/chainlit-5/ME3zdq2jEWAz0RSr/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chainlit-5/ME3zdq2jEWAz0RSr/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/chainlit-5/ME3zdq2jEWAz0RSr/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/chainlit-5/ME3zdq2jEWAz0RSr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"LLM - Literal AI Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Manage your LLM credentials and costs.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Literal AI Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.literalai.com/guides/settings/llm\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://chainlit-5.mintlify.app/_mintlify/api/og/v2?division=Settings\u0026amp;title=LLM\u0026amp;description=Manage+your+LLM+credentials+and+costs.\u0026amp;theme=9c0ecf9568a248fb943104dc\u0026amp;signature=ffe39febac7d9da8c357c1e090f4d8fc924d4d57f0b56039e10c9ca74af4fa77\">\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=\"LLM - Literal AI Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Manage your LLM credentials and costs.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chainlit-5.mintlify.app/_mintlify/api/og/v2?division=Settings\u0026amp;title=LLM\u0026amp;description=Manage+your+LLM+credentials+and+costs.\u0026amp;theme=9c0ecf9568a248fb943104dc\u0026amp;signature=ffe39febac7d9da8c357c1e090f4d8fc924d4d57f0b56039e10c9ca74af4fa77\">\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=\"/mintlify-assets/_mintlify/favicons/chainlit-5/ME3zdq2jEWAz0RSr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Literal AI Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F80061\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.literalai.com/guides/settings/llm\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/settings/llm.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.literalai.com/#organization\",\"name\":\"Literal AI Documentation\",\"url\":\"https://docs.literalai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/chainlit-5/yVkf8qhp8dsNjo0g/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=yVkf8qhp8dsNjo0g\u0026q=85\u0026s=5041057089add85f6e7b5b730962e5c1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.literalai.com#website\",\"name\":\"Literal AI Documentation\",\"url\":\"https://docs.literalai.com\",\"publisher\":{\"@id\":\"https://docs.literalai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.literalai.com/guides/settings/llm#webpage\",\"url\":\"https://docs.literalai.com/guides/settings/llm\",\"name\":\"LLM\",\"description\":\"Manage your LLM credentials and costs.\",\"dateModified\":\"2026-01-07T00:43:26.945Z\",\"isPartOf\":{\"@id\":\"https://docs.literalai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.literalai.com/guides/settings/llm#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.literalai.com/guides/settings/llm#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Settings\",\"item\":\"https://docs.literalai.com/guides/settings/general\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LLM\",\"item\":\"https://docs.literalai.com/guides/settings/llm\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.literalai.com/guides/settings/llm#article\",\"headline\":\"LLM\",\"name\":\"LLM\",\"description\":\"Manage your LLM credentials and costs.\",\"url\":\"https://docs.literalai.com/guides/settings/llm\",\"mainEntityOfPage\":{\"@id\":\"https://docs.literalai.com/guides/settings/llm#webpage\"},\"dateModified\":\"2026-01-07T00:43:26.945Z\",\"publisher\":{\"@id\":\"https://docs.literalai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.literalai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Literal AI Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Literal AI Documentation","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Important Notice","pages":[{"title":"Migration Guide","icon":"arrow-right-arrow-left","href":"/more/migration-guide"}]},{"group":"Get Started","pages":[{"title":"Overview","icon":"rocket","href":"/get-started/overview"},{"title":"Quick Start","icon":"code","href":"/get-started/quick-start"}]},{"group":"Application","pages":[{"title":"Dashboard","icon":"chart-line","href":"/guides/dashboard"},{"title":"Logs","icon":"list-tree","href":"/guides/logs"},{"title":"Prompts","icon":"message-code","href":"/guides/prompts"},{"title":"Playground","icon":"terminal","href":"/guides/playground"},{"title":"Users","icon":"users","href":"/guides/users"}]},{"group":"Evaluation","pages":[{"title":"Scorers","icon":"ruler","href":"/guides/scorers"},{"title":"Online Evals","icon":"wave-pulse","href":"/guides/online-evals"},{"title":"Datasets","icon":"database","href":"/guides/dataset"},{"title":"Experiments","icon":"flask","href":"/guides/experiment"},{"title":"Annotation Queues","icon":"pen-circle","href":"/guides/annotation-queue"}]},{"group":"Settings","pages":[{"title":"General","icon":"globe","description":null,"href":"/guides/settings/general"},{"title":"LLM","icon":"key-skeleton","href":"/guides/settings/llm"},{"title":"Scoring","icon":"list","description":null,"href":"/guides/settings/scoring"},{"title":"Team","icon":"users","href":"/guides/settings/team"}]},{"group":"Guides","pages":[{"title":"Evaluation","icon":"sparkles","href":"/guides/evaluation"},{"title":"Continuous Improvement","icon":"repeat","href":"/guides/continuous-improvement"},{"title":"Fine-tuning","icon":"wrench","href":"/guides/distillation"}]},{"group":"Integrations","pages":[{"title":"OpenAI","icon":"check","href":"/integrations/openai"},{"title":"LangChain/LangGraph","icon":"check","href":"/integrations/langchain"},{"title":"Llama Index","icon":"check","href":"/integrations/llama-index"},{"title":"LiteLLM","icon":"check","href":"/integrations/litellm"},{"title":"Other LLM Providers (Anthropic, etc.)","icon":"check","href":"/integrations/llm-providers"},{"title":"LLM Inference servers (vLLM, etc.)","icon":"check","href":"/integrations/messages-server"},{"title":"Mistral AI","icon":"check","href":"/integrations/mistralai"},{"title":"Vercel AI SDK","icon":"check","href":"/integrations/vercel-ai-sdk"},{"title":"OpenLLMetry","icon":"check","href":"/integrations/openllmetry"},{"title":"Chainlit","icon":"check","href":"/integrations/chainlit"}]},{"group":"Self Hosting","pages":[{"title":"Get Started","icon":"rocket","href":"/self-hosting/get-started"},{"title":"Manual Deployment","icon":"docker","href":"/self-hosting/deployment"}]},{"group":"More","pages":[{"title":"Privacy \u0026 Security","icon":"shield","href":"/more/security"},{"title":"Export Data","icon":"download","href":"/more/export-data"},{"title":"Release Notes","icon":"notes","href":"/more/release-notes"},{"title":"Roadmap","icon":"road","href":"/more/roadmap"}]}]},{"anchor":"Python Client","icon":"python","pages":[{"title":"Python Client","href":"/python-client/get-started/introduction"}]},{"anchor":"TypeScript Client","icon":"js","pages":[{"title":"TypeScript Client","href":"/typescript-client/introduction"}]},{"anchor":"Cookbooks","href":"https://github.com/Chainlit/literalai-cookbooks","icon":"github"}]},"title":"LLM - Literal AI Documentation","buildId":"dpl_9DauxEjb9gzCtcuhPQFbquJvx7FJ","deploymentId":"dpl_9DauxEjb9gzCtcuhPQFbquJvx7FJ","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DpBmNN95.js","DynamicMarkdown-BY_qDhTn.js","zoom-image-lightbox-D4WcYaf4.js","PlusIcon-CwhPVjTe.js","lightbox-handle-r17bVUz3.js"]}