{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"TrueFoundry Docs","description":"TrueFoundry documentation — enterprise-grade AI Gateway combining LLM, MCP, and Agent Gateways to connect, monitor, and govern agentic AI applications across providers from a unified control plane.","colors":{"primary":"#4f46e5","light":"#4f46e5","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/truefoundry/e2uUimEwX30qkWxc/logo/light.svg?fit=max\u0026auto=format\u0026n=e2uUimEwX30qkWxc\u0026q=85\u0026s=6068d83664aeda0239bec2422657dd20","dark":"https://mintcdn.com/truefoundry/e2uUimEwX30qkWxc/logo/dark.svg?fit=max\u0026auto=format\u0026n=e2uUimEwX30qkWxc\u0026q=85\u0026s=c1cb26554a546d84500b40f7057bece8"},"favicon":"https://mintcdn.com/truefoundry/6bbtTt95c1iCcyph/favicon.svg?fit=max\u0026auto=format\u0026n=6bbtTt95c1iCcyph\u0026q=85\u0026s=f55bde34214b38034126d05b08ea16c7","appearance":{"default":"light"},"background":{"decoration":"grid"},"navbar":{"links":[{"href":"https://www.truefoundry.com/book-demo","label":"Book Demo"},{"href":"https://www.truefoundry.com/blog","label":"Blog"}],"primary":{"type":"button","label":"Sign Up","href":"https://www.truefoundry.com/register"}},"footer":{"socials":{"x":"https://twitter.com/truefoundry","linkedin":"https://in.linkedin.com/company/truefoundry"}},"seo":{"metatags":{"og:type":"website","og:site_name":"TrueFoundry Docs","og:image":"https://assets.production.truefoundry.com/logo.svg","og:description":"TrueFoundry offers an enterprise-grade AI Gateway combining LLM, MCP, and Agent Gateways—empowering businesses to connect, monitor, and govern agentic AI applications across providers from a unified control plane.","description":"TrueFoundry offers an enterprise-grade AI Gateway combining LLM, MCP, and Agent Gateways—empowering businesses to connect, monitor, and govern agentic AI applications across providers from a unified control plane."}},"icons":{"library":"fontawesome"},"styling":{"codeblocks":"dark","latex":true},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"truefoundry","hasAudioNarration":false,"actualSubdomain":"truefoundry","customDomains":["www.truefoundry.com"],"gitSource":{"type":"github","owner":"truefoundry","repo":"docs-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6af187b96ed814e4b8edb9ef","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"AI Gateway","count":233},{"language":"default","tag":"API Reference","count":202},{"language":"default","tag":"Platform","count":198},{"language":"default","tag":"Integrations","count":132},{"language":"default","tag":"AI Deployment","count":108},{"language":"default","tag":"LLM Gateway","count":100},{"language":"default","tag":"Integrate Models","count":50},{"language":"default","tag":"Observability","count":47},{"language":"default","tag":"Guardrails and Security","count":46},{"language":"default","tag":"Installation Guides","count":44}]},"assistantConfig":{"enableAskAiButton":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@truefoundry.com","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"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":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","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":"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":"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":"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":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","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":"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":"workos-sso-scim","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},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".line-highlight{background:rgb(var(--primary-light)/.7)!important}.tfy-cat-anchor{scroll-margin-top:6rem;margin-block:1.75rem}.line-highlight:before{background:rgb(var(--primary-light)/.7)!important}.line-highlight:after{background:rgb(var(--primary-light)/.7)!important}"}],"page":{"pagePath":"docs/api-reference/chat/chat-completions","slug":"/docs/api-reference/chat/chat-completions","pageMetadata":{"title":"Chat Completions","description":"Generate chat-based completions using the specified model.","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /chat/completions","href":"/docs/api-reference/chat/chat-completions","autogeneratedByOpenApi":true},"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: \"Generate chat-based completions using the specified model.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Chat Completions","description":"Generate chat-based completions using the specified model.","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /chat/completions","href":"/docs/api-reference/chat/chat-completions","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/truefoundry/9e0085f7ed271180/scripts.js"],"openApiReferenceData":{"operation":{"tags":["Chat"],"summary":"Chat Completions","description":"Generate chat-based completions using the specified model.","parameters":["6914653b-ebc2-4805-9aa3-a288413b6d0d","8135fe40-5f90-49d6-94e5-937caab4764d"],"requestBody":"b0912de7-5ded-47df-b2eb-412abfa6217b","responses":{"200":"15a01f56-6fe1-4e2e-a1ba-e425eb045099","400":"b7a1c1a4-2f94-4365-b391-efe40818d59a"},"method":"post","type":"path","servers":["232f910f-4465-4460-844b-978652632242"],"security":["128ea076-6d7c-4bdb-8006-c1276b75b68c"],"path":"/chat/completions","baseUrlOptions":["https://{gatewayBaseURL}"],"title":"Chat Completions","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"6914653b-ebc2-4805-9aa3-a288413b6d0d":{"schema":{"type":"string","description":"Optional metadata for the request","isRequired":false,"uniqueKey":"","typeLabel":"string"},"required":false,"name":"x-tfy-metadata","in":"header"},"8135fe40-5f90-49d6-94e5-937caab4764d":{"schema":{"type":"string","description":"JSON-encoded logging configuration for the request","isRequired":false,"uniqueKey":"","typeLabel":"string"},"required":false,"name":"x-tfy-logging-config","in":"header"}},"requestBody":{"required":true,"description":"Parameters for generating chat completions.","content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","description":"Identifier for the language model to be used for generation.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"messages":{"type":"array","items":{"oneOf":[{"type":"object","title":"System Message","required":["role","content"],"properties":{"role":{"type":"string","enum":["system"],"description":"System message providing context or instructions to the model.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"System instructions or context. Can be a string or an array.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of content being transmitted. Supported values include \"text\" and \"image\".","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].type","typeLabel":"string"},"text":{"oneOf":[{"type":"string","description":"The text content when type is \"text\". UTF-8 encoded string.","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].text.oneOf.0","typeLabel":"string"},{"type":"null","description":"The text content when type is \"text\". UTF-8 encoded string.","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].text.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].text","typeLabel":"string | null"},"image_url":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"The URL pointing to the image resource. Must be a valid, accessible URL.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].image_url.oneOf.0.url","typeLabel":"string"}},"required":["url"],"description":"Image URL configuration when type is \"image\".","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].image_url.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"url":{"type":"string","description":"The URL pointing to the image resource. Must be a valid, accessible URL."}},"required":["url"],"description":"Image URL configuration when type is \"image\".","uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].image_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX].image_url","typeLabel":"object | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"System instructions or context. Can be a string or an array.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.0.content","typeLabel":"string | object[]"},"name":{"oneOf":[{"type":"string","description":"Optional identifier for the system.","uniqueKey":"messages.items.[INDEX].oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional identifier for the system.","uniqueKey":"messages.items.[INDEX].oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.0.name","typeLabel":"string | null"}},"uniqueKey":"messages.items.[INDEX].oneOf.0","typeLabel":"System Message · object"},{"type":"object","title":"User Message","required":["role","content"],"properties":{"role":{"type":"string","enum":["user"],"description":"Message from the end user making the request.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"User input as text or structured content array.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of content being transmitted. Supported values include \"text\" and \"image\".","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].type","typeLabel":"string"},"text":{"oneOf":[{"type":"string","description":"The text content when type is \"text\". UTF-8 encoded string.","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].text.oneOf.0","typeLabel":"string"},{"type":"null","description":"The text content when type is \"text\". UTF-8 encoded string.","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].text.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].text","typeLabel":"string | null"},"image_url":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"The URL pointing to the image resource. Must be a valid, accessible URL.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].image_url.oneOf.0.url","typeLabel":"string"}},"required":["url"],"description":"Image URL configuration when type is \"image\".","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].image_url.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"url":{"type":"string","description":"The URL pointing to the image resource. Must be a valid, accessible URL."}},"required":["url"],"description":"Image URL configuration when type is \"image\".","uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].image_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX].image_url","typeLabel":"object | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"User input as text or structured content array.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.1.content","typeLabel":"string | object[]"},"name":{"oneOf":[{"type":"string","description":"Optional identifier for the user sending the message.","uniqueKey":"messages.items.[INDEX].oneOf.1.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional identifier for the user sending the message.","uniqueKey":"messages.items.[INDEX].oneOf.1.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.1.name","typeLabel":"string | null"}},"uniqueKey":"messages.items.[INDEX].oneOf.1","typeLabel":"User Message · object"},{"type":"object","title":"Assistant Message","required":["role"],"properties":{"role":{"type":"string","enum":["assistant"],"description":"Response message from the AI assistant.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"Assistant's response content. Can be text, structured content, or null when using tools/functions.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of content being transmitted. Supported values include \"text\" and \"image\".","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].type","typeLabel":"string"},"text":{"oneOf":[{"type":"string","description":"The text content when type is \"text\". UTF-8 encoded string.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].text.oneOf.0","typeLabel":"string"},{"type":"null","description":"The text content when type is \"text\". UTF-8 encoded string.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].text.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].text","typeLabel":"string | null"},"image_url":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"The URL pointing to the image resource. Must be a valid, accessible URL.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].image_url.oneOf.0.url","typeLabel":"string"}},"required":["url"],"description":"Image URL configuration when type is \"image\".","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].image_url.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"url":{"type":"string","description":"The URL pointing to the image resource. Must be a valid, accessible URL."}},"required":["url"],"description":"Image URL configuration when type is \"image\".","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].image_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX].image_url","typeLabel":"object | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Assistant's response content. Can be text, structured content, or null when using tools/functions.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.1","typeLabel":"object[]"},{"description":"Assistant's response content. Can be text, structured content, or null when using tools/functions.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.2","typeLabel":"any"},{"description":"Assistant's response content. Can be text, structured content, or null when using tools/functions.","uniqueKey":"messages.items.[INDEX].oneOf.2.content.oneOf.3","typeLabel":"any"}],"uniqueKey":"messages.items.[INDEX].oneOf.2.content","typeLabel":"string · object[] · any · any"},"function_call":{"description":"Function call details when the assistant invokes a function.","uniqueKey":"messages.items.[INDEX].oneOf.2.function_call","typeLabel":"any"},"tool_calls":{"description":"Tool call details when the assistant uses available tools.","uniqueKey":"messages.items.[INDEX].oneOf.2.tool_calls","typeLabel":"any"},"name":{"oneOf":[{"type":"string","description":"Optional identifier for the assistant instance.","uniqueKey":"messages.items.[INDEX].oneOf.2.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional identifier for the assistant instance.","uniqueKey":"messages.items.[INDEX].oneOf.2.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.2.name","typeLabel":"string | null"},"citationMetadata":{"oneOf":[{"type":"object","properties":{"citationSources":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"startIndex":{"oneOf":[{"type":"number","description":"Starting character index in the content where this citation applies.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].startIndex.oneOf.0","typeLabel":"number"},{"type":"null","description":"Starting character index in the content where this citation applies.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].startIndex.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].startIndex","typeLabel":"number | null"},"endIndex":{"oneOf":[{"type":"number","description":"Ending character index in the content where this citation applies.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].endIndex.oneOf.0","typeLabel":"number"},{"type":"null","description":"Ending character index in the content where this citation applies.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].endIndex.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].endIndex","typeLabel":"number | null"},"uri":{"oneOf":[{"type":"string","description":"URI reference to the source material being cited.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].uri.oneOf.0","typeLabel":"string"},{"type":"null","description":"URI reference to the source material being cited.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].uri.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].uri","typeLabel":"string | null"},"license":{"oneOf":[{"type":"string","description":"License information for the cited content.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].license.oneOf.0","typeLabel":"string"},{"type":"null","description":"License information for the cited content.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].license.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX].license","typeLabel":"string | null"}},"uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Array of citation sources referenced in the content.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"startIndex":{"oneOf":[{"type":"number","description":"Starting character index in the content where this citation applies."},{"type":"null","description":"Starting character index in the content where this citation applies."}]},"endIndex":{"oneOf":[{"type":"number","description":"Ending character index in the content where this citation applies."},{"type":"null","description":"Ending character index in the content where this citation applies."}]},"uri":{"oneOf":[{"type":"string","description":"URI reference to the source material being cited."},{"type":"null","description":"URI reference to the source material being cited."}]},"license":{"oneOf":[{"type":"string","description":"License information for the cited content."},{"type":"null","description":"License information for the cited content."}]}}},"description":"Array of citation sources referenced in the content.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0.citationSources","typeLabel":"object[] | null"}},"description":"Metadata about citations used in the response.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"citationSources":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"startIndex":{"oneOf":[{"type":"number","description":"Starting character index in the content where this citation applies."},{"type":"null","description":"Starting character index in the content where this citation applies."}]},"endIndex":{"oneOf":[{"type":"number","description":"Ending character index in the content where this citation applies."},{"type":"null","description":"Ending character index in the content where this citation applies."}]},"uri":{"oneOf":[{"type":"string","description":"URI reference to the source material being cited."},{"type":"null","description":"URI reference to the source material being cited."}]},"license":{"oneOf":[{"type":"string","description":"License information for the cited content."},{"type":"null","description":"License information for the cited content."}]}}},"description":"Array of citation sources referenced in the content."},{"type":"null","items":{"type":"object","properties":{"startIndex":{"oneOf":[{"type":"number","description":"Starting character index in the content where this citation applies."},{"type":"null","description":"Starting character index in the content where this citation applies."}]},"endIndex":{"oneOf":[{"type":"number","description":"Ending character index in the content where this citation applies."},{"type":"null","description":"Ending character index in the content where this citation applies."}]},"uri":{"oneOf":[{"type":"string","description":"URI reference to the source material being cited."},{"type":"null","description":"URI reference to the source material being cited."}]},"license":{"oneOf":[{"type":"string","description":"License information for the cited content."},{"type":"null","description":"License information for the cited content."}]}}},"description":"Array of citation sources referenced in the content."}]}},"description":"Metadata about citations used in the response.","uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.2.citationMetadata","typeLabel":"object | null"}},"uniqueKey":"messages.items.[INDEX].oneOf.2","typeLabel":"Assistant Message · object"},{"type":"object","title":"Function Message","required":["role","content","name"],"properties":{"role":{"type":"string","enum":["function"],"description":"Message containing function execution results.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.role","typeLabel":"enum\u003cstring>"},"content":{"type":"string","description":"The result returned from the function execution.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.content","typeLabel":"string"},"name":{"type":"string","description":"Name of the function that was executed.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.3.name","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.3","typeLabel":"Function Message · object"},{"type":"object","title":"Tool Message","required":["role","content","tool_call_id"],"properties":{"role":{"type":"string","enum":["tool"],"description":"Message containing tool execution results.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"The result returned from the tool execution. Can be a string or an array of content parts.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of content being transmitted. Supported values include \"text\" and \"image\".","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].type","typeLabel":"string"},"text":{"oneOf":[{"type":"string","description":"The text content when type is \"text\". UTF-8 encoded string.","uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].text.oneOf.0","typeLabel":"string"},{"type":"null","description":"The text content when type is \"text\". UTF-8 encoded string.","uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].text.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].text","typeLabel":"string | null"},"image_url":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"The URL pointing to the image resource. Must be a valid, accessible URL.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].image_url.oneOf.0.url","typeLabel":"string"}},"required":["url"],"description":"Image URL configuration when type is \"image\".","uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].image_url.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"url":{"type":"string","description":"The URL pointing to the image resource. Must be a valid, accessible URL."}},"required":["url"],"description":"Image URL configuration when type is \"image\".","uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].image_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].image_url","typeLabel":"object | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The result returned from the tool execution. Can be a string or an array of content parts.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.content","typeLabel":"string | object[]"},"tool_call_id":{"type":"string","description":"Unique identifier for the tool call this message responds to.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.4.tool_call_id","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].oneOf.4","typeLabel":"Tool Message · object"},{"type":"object","title":"Developer Message","required":["role","content"],"properties":{"role":{"type":"string","enum":["developer"],"description":"Message from a developer or system administrator.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.5.role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"Developer message content or system configuration instructions. Can be a string or an array.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of content being transmitted. Supported values include \"text\" and \"image\".","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].type","typeLabel":"string"},"text":{"oneOf":[{"type":"string","description":"The text content when type is \"text\". UTF-8 encoded string.","uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].text.oneOf.0","typeLabel":"string"},{"type":"null","description":"The text content when type is \"text\". UTF-8 encoded string.","uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].text.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].text","typeLabel":"string | null"},"image_url":{"oneOf":[{"type":"object","properties":{"url":{"type":"string","description":"The URL pointing to the image resource. Must be a valid, accessible URL.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].image_url.oneOf.0.url","typeLabel":"string"}},"required":["url"],"description":"Image URL configuration when type is \"image\".","uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].image_url.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"url":{"type":"string","description":"The URL pointing to the image resource. Must be a valid, accessible URL."}},"required":["url"],"description":"Image URL configuration when type is \"image\".","uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].image_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX].image_url","typeLabel":"object | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"Developer message content or system configuration instructions. Can be a string or an array.","isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.5.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].oneOf.5.content","typeLabel":"string | object[]"},"name":{"oneOf":[{"type":"string","description":"Optional identifier for the developer.","uniqueKey":"messages.items.[INDEX].oneOf.5.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional identifier for the developer.","uniqueKey":"messages.items.[INDEX].oneOf.5.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].oneOf.5.name","typeLabel":"string | null"}},"uniqueKey":"messages.items.[INDEX].oneOf.5","typeLabel":"Developer Message · object"}],"uniqueKey":"messages.items.[INDEX]","typeLabel":"System Message · object | User Message · object | Assistant Message · object | Function Message · object | Tool Message · object | Developer Message · object"},"description":"Conversation history as an array of messages for contextual generation.","isRequired":true,"uniqueKey":"messages","typeLabel":"(System Message · object | User Message · object | Assistant Message · object | Function Message · object | Tool Message · object | Developer Message · object)[]"},"tools":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of tool being specified. Currently supports \"function\".","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].type","typeLabel":"string"},"function":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","description":"The name of the function to be called. Must be unique within the context.","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].function.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"Detailed description of the function's purpose and behavior.","uniqueKey":"tools.oneOf.0.items.[INDEX].function.oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Detailed description of the function's purpose and behavior.","uniqueKey":"tools.oneOf.0.items.[INDEX].function.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].function.oneOf.0.description","typeLabel":"string | null"},"parameters":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].function.oneOf.0.parameters.oneOf.0.additionalProperties","typeLabel":"any"},"description":"JSON Schema specification defining the expected parameters for this function.","uniqueKey":"tools.oneOf.0.items.[INDEX].function.oneOf.0.parameters.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].function.oneOf.0.parameters.oneOf.1.additionalProperties","typeLabel":"any"},"description":"JSON Schema specification defining the expected parameters for this function.","uniqueKey":"tools.oneOf.0.items.[INDEX].function.oneOf.0.parameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].function.oneOf.0.parameters","typeLabel":"object | null"}},"required":["name"],"description":"Function specification when type is \"function\".","uniqueKey":"tools.oneOf.0.items.[INDEX].function.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"name":{"type":"string","description":"The name of the function to be called. Must be unique within the context."},"description":{"oneOf":[{"type":"string","description":"Detailed description of the function's purpose and behavior."},{"type":"null","description":"Detailed description of the function's purpose and behavior."}]},"parameters":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{}]},"description":"JSON Schema specification defining the expected parameters for this function."},{"type":"null","additionalProperties":{"oneOf":[{}]},"description":"JSON Schema specification defining the expected parameters for this function."}]}},"required":["name"],"description":"Function specification when type is \"function\".","uniqueKey":"tools.oneOf.0.items.[INDEX].function.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].function","typeLabel":"object | null"}},"required":["type"],"uniqueKey":"tools.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Array of tool definitions available for the model to use during generation.","uniqueKey":"tools.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of tool being specified. Currently supports \"function\"."},"function":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","description":"The name of the function to be called. Must be unique within the context."},"description":{"oneOf":[{"type":"string","description":"Detailed description of the function's purpose and behavior."},{"type":"null","description":"Detailed description of the function's purpose and behavior."}]},"parameters":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{}]},"description":"JSON Schema specification defining the expected parameters for this function."},{"type":"null","additionalProperties":{"oneOf":[{}]},"description":"JSON Schema specification defining the expected parameters for this function."}]}},"required":["name"],"description":"Function specification when type is \"function\"."},{"type":"null","properties":{"name":{"type":"string","description":"The name of the function to be called. Must be unique within the context."},"description":{"oneOf":[{"type":"string","description":"Detailed description of the function's purpose and behavior."},{"type":"null","description":"Detailed description of the function's purpose and behavior."}]},"parameters":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{}]},"description":"JSON Schema specification defining the expected parameters for this function."},{"type":"null","additionalProperties":{"oneOf":[{}]},"description":"JSON Schema specification defining the expected parameters for this function."}]}},"required":["name"],"description":"Function specification when type is \"function\"."}]}},"required":["type"]},"description":"Array of tool definitions available for the model to use during generation.","uniqueKey":"tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools","typeLabel":"object[] | null"},"tool_choice":{"oneOf":[{"type":"string","description":"Controls tool usage behavior. Use \"none\" to disable, \"auto\" for model choice, \"required\" to force tool use, or specify tool for forced usage.","enum":["none"],"uniqueKey":"tool_choice.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Controls tool usage behavior. Use \"none\" to disable, \"auto\" for model choice, \"required\" to force tool use, or specify tool for forced usage.","enum":["auto"],"uniqueKey":"tool_choice.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Controls tool usage behavior. Use \"none\" to disable, \"auto\" for model choice, \"required\" to force tool use, or specify tool for forced usage.","enum":["required"],"uniqueKey":"tool_choice.oneOf.2","typeLabel":"enum\u003cstring>"},{"type":"object","description":"Controls tool usage behavior. Use \"none\" to disable, \"auto\" for model choice, \"required\" to force tool use, or specify tool for forced usage.","required":["type","function"],"properties":{"type":{"type":"string","enum":["function"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.3.type","typeLabel":"enum\u003cstring>"},"function":{"type":"object","properties":{"name":{"type":"string","description":"The function the model should call.","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.function.name","typeLabel":"string"}},"required":["name"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.3.function","typeLabel":"object"}},"uniqueKey":"tool_choice.oneOf.3","typeLabel":"object"},{"description":"Controls tool usage behavior. Use \"none\" to disable, \"auto\" for model choice, \"required\" to force tool use, or specify tool for forced usage.","uniqueKey":"tool_choice.oneOf.4","typeLabel":"any"}],"uniqueKey":"tool_choice","typeLabel":"enum\u003cstring> · enum\u003cstring> · enum\u003cstring> · object · any"},"temperature":{"oneOf":[{"type":"number","description":"Sampling temperature between 0 and 2. Higher values make output more random, lower values more deterministic.","uniqueKey":"temperature.oneOf.0","typeLabel":"number"},{"type":"null","description":"Sampling temperature between 0 and 2. Higher values make output more random, lower values more deterministic.","uniqueKey":"temperature.oneOf.1","typeLabel":"null"}],"uniqueKey":"temperature","typeLabel":"number | null"},"top_p":{"oneOf":[{"type":"number","description":"Nucleus sampling parameter. Limits cumulative probability of tokens considered for sampling.","uniqueKey":"top_p.oneOf.0","typeLabel":"number"},{"type":"null","description":"Nucleus sampling parameter. Limits cumulative probability of tokens considered for sampling.","uniqueKey":"top_p.oneOf.1","typeLabel":"null"}],"uniqueKey":"top_p","typeLabel":"number | null"},"top_k":{"oneOf":[{"type":"number","description":"Limits sampling to the K most-likely next tokens.","uniqueKey":"top_k.oneOf.0","typeLabel":"number"},{"type":"null","description":"Limits sampling to the K most-likely next tokens.","uniqueKey":"top_k.oneOf.1","typeLabel":"null"}],"uniqueKey":"top_k","typeLabel":"number | null"},"n":{"oneOf":[{"type":"number","description":"Number of response alternatives to generate.","uniqueKey":"n.oneOf.0","typeLabel":"number"},{"type":"null","description":"Number of response alternatives to generate.","uniqueKey":"n.oneOf.1","typeLabel":"null"}],"uniqueKey":"n","typeLabel":"number | null"},"stream":{"oneOf":[{"type":"boolean","description":"Enable streaming of partial response chunks as they are generated.","uniqueKey":"stream.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Enable streaming of partial response chunks as they are generated.","uniqueKey":"stream.oneOf.1","typeLabel":"null"}],"uniqueKey":"stream","typeLabel":"boolean | null"},"logprobs":{"oneOf":[{"type":"boolean","description":"Include log probabilities of tokens: set to boolean for Chat Completions; integer for legacy Completions (number of top-token logprobs).","uniqueKey":"logprobs.oneOf.0","typeLabel":"boolean"},{"type":"number","description":"Include log probabilities of tokens: set to boolean for Chat Completions; integer for legacy Completions (number of top-token logprobs).","uniqueKey":"logprobs.oneOf.1","typeLabel":"number"},{"description":"Include log probabilities of tokens: set to boolean for Chat Completions; integer for legacy Completions (number of top-token logprobs).","uniqueKey":"logprobs.oneOf.2","typeLabel":"any"}],"uniqueKey":"logprobs","typeLabel":"boolean | number | any"},"stop":{"oneOf":[{"type":"string","description":"Sequence(s) at which to stop generation. Can be a single string or array of strings.","uniqueKey":"stop.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"stop.oneOf.1.items.[INDEX]","typeLabel":"string"},"description":"Sequence(s) at which to stop generation. Can be a single string or array of strings.","uniqueKey":"stop.oneOf.1","typeLabel":"string[]"},{"description":"Sequence(s) at which to stop generation. Can be a single string or array of strings.","uniqueKey":"stop.oneOf.2","typeLabel":"any"}],"uniqueKey":"stop","typeLabel":"string | string[] | any"},"max_tokens":{"oneOf":[{"type":"number","description":"Maximum number of tokens to generate in the response.","uniqueKey":"max_tokens.oneOf.0","typeLabel":"number"},{"type":"null","description":"Maximum number of tokens to generate in the response.","uniqueKey":"max_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_tokens","typeLabel":"number | null"},"presence_penalty":{"oneOf":[{"type":"number","description":"Penalty factor for new tokens based on their presence in existing text. Range: -2.0 to 2.0","uniqueKey":"presence_penalty.oneOf.0","typeLabel":"number"},{"type":"null","description":"Penalty factor for new tokens based on their presence in existing text. Range: -2.0 to 2.0","uniqueKey":"presence_penalty.oneOf.1","typeLabel":"null"}],"uniqueKey":"presence_penalty","typeLabel":"number | null"},"frequency_penalty":{"oneOf":[{"type":"number","description":"Penalty factor for new tokens based on their frequency in existing text. Range: -2.0 to 2.0","uniqueKey":"frequency_penalty.oneOf.0","typeLabel":"number"},{"type":"null","description":"Penalty factor for new tokens based on their frequency in existing text. Range: -2.0 to 2.0","uniqueKey":"frequency_penalty.oneOf.1","typeLabel":"null"}],"uniqueKey":"frequency_penalty","typeLabel":"number | null"},"logit_bias":{"oneOf":[{"type":"object","additionalProperties":{"type":"number","uniqueKey":"logit_bias.oneOf.0.additionalProperties","typeLabel":"number"},"description":"Modify the likelihood of specified tokens appearing in the completion.","uniqueKey":"logit_bias.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"number","uniqueKey":"logit_bias.oneOf.1.additionalProperties","typeLabel":"number"},"description":"Modify the likelihood of specified tokens appearing in the completion.","uniqueKey":"logit_bias.oneOf.1","typeLabel":"null"}],"uniqueKey":"logit_bias","typeLabel":"object | null"},"user":{"oneOf":[{"type":"string","description":"Unique identifier for the end-user making the request, for monitoring and detecting abuse.","uniqueKey":"user.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique identifier for the end-user making the request, for monitoring and detecting abuse.","uniqueKey":"user.oneOf.1","typeLabel":"null"}],"uniqueKey":"user","typeLabel":"string | null"},"prompt_version_fqn":{"oneOf":[{"type":"string","description":"Fully qualified name (FQN) of the prompt template to use for automatic prompt hydration.","uniqueKey":"prompt_version_fqn.oneOf.0","typeLabel":"string"},{"type":"null","description":"Fully qualified name (FQN) of the prompt template to use for automatic prompt hydration.","uniqueKey":"prompt_version_fqn.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_version_fqn","typeLabel":"string | null"},"prompt_variables":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"prompt_variables.oneOf.0.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"prompt_variables.oneOf.0.additionalProperties.oneOf.1","typeLabel":"number"}],"uniqueKey":"prompt_variables.oneOf.0.additionalProperties","typeLabel":"string | number"},"description":"Key-value pairs of variables to substitute in the prompt template when using prompt_version_fqn.","uniqueKey":"prompt_variables.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"prompt_variables.oneOf.1.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"prompt_variables.oneOf.1.additionalProperties.oneOf.1","typeLabel":"number"}],"uniqueKey":"prompt_variables.oneOf.1.additionalProperties","typeLabel":"string | number"},"description":"Key-value pairs of variables to substitute in the prompt template when using prompt_version_fqn.","uniqueKey":"prompt_variables.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_variables","typeLabel":"object | null"}},"required":["model","messages"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"model":"\u003cstring>","messages":[{"role":"system","content":"\u003cstring>","name":"\u003cstring>"}],"tools":[{"type":"\u003cstring>","function":{"name":"\u003cstring>","description":"\u003cstring>","parameters":{}}}],"tool_choice":"none","temperature":123,"top_p":123,"top_k":123,"n":123,"stream":true,"logprobs":true,"stop":"\u003cstring>","max_tokens":123,"presence_penalty":123,"frequency_penalty":123,"logit_bias":{},"user":"\u003cstring>","prompt_version_fqn":"\u003cstring>","prompt_variables":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"15a01f56-6fe1-4e2e-a1ba-e425eb045099":{"description":"Chat completions generated successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Id of the response.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","description":"Type of the object, e.g., 'chat.completion'.","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"created":{"type":"number","description":"Timestamp of when the response was created.","isRequired":true,"uniqueKey":"created","typeLabel":"number"},"model":{"type":"string","description":"The model used to generate the response.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"index":{"type":"number","description":"Index of the choice.","isRequired":true,"uniqueKey":"choices.items.[INDEX].index","typeLabel":"number"},"message":{"type":"object","properties":{"role":{"type":"string","description":"Role of the message sender, e.g., 'assistant'.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.role","typeLabel":"string"},"content":{"oneOf":[{"type":"string","description":"Content of the message.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.content.oneOf.0","typeLabel":"string"},{"type":"null","description":"Content of the message.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].message.content","typeLabel":"string | null"},"refusal":{"oneOf":[{"type":"string","description":"Refusal of the message.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.refusal.oneOf.0","typeLabel":"string"},{"type":"null","description":"Refusal of the message.","isRequired":true,"uniqueKey":"choices.items.[INDEX].message.refusal.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"choices.items.[INDEX].message.refusal","typeLabel":"string | null"}},"required":["role","content","refusal"],"isRequired":true,"uniqueKey":"choices.items.[INDEX].message","typeLabel":"object"},"finish_reason":{"type":"string","description":"Reason why the generation stopped.","isRequired":true,"uniqueKey":"choices.items.[INDEX].finish_reason","typeLabel":"string"},"logprobs":{"description":"Log probabilities of the tokens.","uniqueKey":"choices.items.[INDEX].logprobs","typeLabel":"any"}},"required":["index","message","finish_reason"],"uniqueKey":"choices.items.[INDEX]","typeLabel":"object"},"description":"Array of choices returned by the model.","isRequired":true,"uniqueKey":"choices","typeLabel":"object[]"},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"number","description":"Number of tokens in the prompt.","isRequired":true,"uniqueKey":"usage.prompt_tokens","typeLabel":"number"},"completion_tokens":{"type":"number","description":"Number of tokens in the completion.","isRequired":true,"uniqueKey":"usage.completion_tokens","typeLabel":"number"},"total_tokens":{"type":"number","description":"Total number of tokens used.","isRequired":true,"uniqueKey":"usage.total_tokens","typeLabel":"number"},"prompt_tokens_details":{"oneOf":[{"type":"object","properties":{"cached_tokens":{"type":"number","description":"Number of cached tokens.","isRequired":true,"uniqueKey":"usage.prompt_tokens_details.oneOf.0.cached_tokens","typeLabel":"number"},"audio_tokens":{"type":"number","description":"Number of audio tokens.","isRequired":true,"uniqueKey":"usage.prompt_tokens_details.oneOf.0.audio_tokens","typeLabel":"number"}},"required":["cached_tokens","audio_tokens"],"uniqueKey":"usage.prompt_tokens_details.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"cached_tokens":{"type":"number","description":"Number of cached tokens."},"audio_tokens":{"type":"number","description":"Number of audio tokens."}},"required":["cached_tokens","audio_tokens"],"uniqueKey":"usage.prompt_tokens_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.prompt_tokens_details","typeLabel":"object | null"},"completion_tokens_details":{"oneOf":[{"type":"object","properties":{"reasoning_tokens":{"type":"number","description":"Number of reasoning tokens.","isRequired":true,"uniqueKey":"usage.completion_tokens_details.oneOf.0.reasoning_tokens","typeLabel":"number"},"audio_tokens":{"type":"number","description":"Number of audio tokens.","isRequired":true,"uniqueKey":"usage.completion_tokens_details.oneOf.0.audio_tokens","typeLabel":"number"},"accepted_prediction_tokens":{"type":"number","description":"Number of accepted prediction tokens.","isRequired":true,"uniqueKey":"usage.completion_tokens_details.oneOf.0.accepted_prediction_tokens","typeLabel":"number"},"rejected_prediction_tokens":{"type":"number","description":"Number of rejected prediction tokens.","isRequired":true,"uniqueKey":"usage.completion_tokens_details.oneOf.0.rejected_prediction_tokens","typeLabel":"number"}},"required":["reasoning_tokens","audio_tokens","accepted_prediction_tokens","rejected_prediction_tokens"],"uniqueKey":"usage.completion_tokens_details.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"reasoning_tokens":{"type":"number","description":"Number of reasoning tokens."},"audio_tokens":{"type":"number","description":"Number of audio tokens."},"accepted_prediction_tokens":{"type":"number","description":"Number of accepted prediction tokens."},"rejected_prediction_tokens":{"type":"number","description":"Number of rejected prediction tokens."}},"required":["reasoning_tokens","audio_tokens","accepted_prediction_tokens","rejected_prediction_tokens"],"uniqueKey":"usage.completion_tokens_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.completion_tokens_details","typeLabel":"object | null"}},"required":["prompt_tokens","completion_tokens","total_tokens"],"description":"Details about token usage.","isRequired":true,"uniqueKey":"usage","typeLabel":"object"},"service_tier":{"oneOf":[{"type":"string","description":"Service tier used for the request.","uniqueKey":"service_tier.oneOf.0","typeLabel":"string"},{"type":"null","description":"Service tier used for the request.","uniqueKey":"service_tier.oneOf.1","typeLabel":"null"}],"uniqueKey":"service_tier","typeLabel":"string | null"},"system_fingerprint":{"oneOf":[{"type":"string","description":"System fingerprint, if available.","uniqueKey":"system_fingerprint.oneOf.0","typeLabel":"string"},{"type":"null","description":"System fingerprint, if available.","uniqueKey":"system_fingerprint.oneOf.1","typeLabel":"null"}],"uniqueKey":"system_fingerprint","typeLabel":"string | null"}},"required":["id","object","created","model","choices","usage"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","object":"\u003cstring>","created":123,"model":"\u003cstring>","choices":[{"index":123,"message":{"role":"\u003cstring>","content":"\u003cstring>","refusal":"\u003cstring>"},"finish_reason":"\u003cstring>","logprobs":"\u003cunknown>"}],"usage":{"prompt_tokens":123,"completion_tokens":123,"total_tokens":123,"prompt_tokens_details":{"cached_tokens":123,"audio_tokens":123},"completion_tokens_details":{"reasoning_tokens":123,"audio_tokens":123,"accepted_prediction_tokens":123,"rejected_prediction_tokens":123}},"service_tier":"\u003cstring>","system_fingerprint":"\u003cstring>"}}},"exampleType":"generated"},"text/event-stream":{"schema":{"type":"string","description":"Server-sent events stream for chat completions","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"},"b7a1c1a4-2f94-4365-b391-efe40818d59a":{"description":"Bad request.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"128ea076-6d7c-4bdb-8006-c1276b75b68c":{"AuthorizationBearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]}}},"servers":{"232f910f-4465-4460-844b-978652632242":{"url":"https://{gatewayBaseURL}","variables":{"gatewayBaseURL":{"default":"gateway.truefoundry.ai","description":"Gateway base URL"}},"description":"Gateway base URL"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"AuthorizationBearer","name":"Authorization"}],"title":"AuthorizationBearer"}]},"originalFileLocation":"gateway-openapi.json"},"subdomain":"truefoundry","siteName":"TrueFoundry Docs","title":"Chat Completions - TrueFoundry Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-15T06:19:40.189Z","originalFileLocation":"docs/api-reference/chat/chat-completions.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=\"light\"}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=\"Generate chat-based completions using the specified model.\">\u003cmeta data-mint-head name=\"application-name\" content=\"TrueFoundry Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/truefoundry/DMuq4kzeTciVEGUc/_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/truefoundry/DMuq4kzeTciVEGUc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/truefoundry/DMuq4kzeTciVEGUc/_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/truefoundry/DMuq4kzeTciVEGUc/_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/truefoundry/DMuq4kzeTciVEGUc/_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/truefoundry/DMuq4kzeTciVEGUc/_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/truefoundry/DMuq4kzeTciVEGUc/_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/truefoundry/DMuq4kzeTciVEGUc/_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/truefoundry/DMuq4kzeTciVEGUc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Chat Completions - TrueFoundry Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"TrueFoundry offers an enterprise-grade AI Gateway combining LLM, MCP, and Agent Gateways—empowering businesses to connect, monitor, and govern agentic AI applications across providers from a unified control plane.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"TrueFoundry Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.truefoundry.com/docs/api-reference/chat/chat-completions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://assets.production.truefoundry.com/logo.svg\">\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=\"Chat Completions - TrueFoundry Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"TrueFoundry offers an enterprise-grade AI Gateway combining LLM, MCP, and Agent Gateways—empowering businesses to connect, monitor, and govern agentic AI applications across providers from a unified control plane.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://assets.production.truefoundry.com/logo.svg\">\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/truefoundry/DMuq4kzeTciVEGUc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"TrueFoundry Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4f46e5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.truefoundry.com/docs/api-reference/chat/chat-completions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/chat/chat-completions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.truefoundry.com/#organization\",\"name\":\"TrueFoundry Docs\",\"url\":\"https://www.truefoundry.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/truefoundry/e2uUimEwX30qkWxc/logo/light.svg?fit=max\u0026auto=format\u0026n=e2uUimEwX30qkWxc\u0026q=85\u0026s=6068d83664aeda0239bec2422657dd20\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.truefoundry.com#website\",\"name\":\"TrueFoundry Docs\",\"url\":\"https://www.truefoundry.com\",\"publisher\":{\"@id\":\"https://www.truefoundry.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.truefoundry.com/docs/api-reference/chat/chat-completions#webpage\",\"url\":\"https://www.truefoundry.com/docs/api-reference/chat/chat-completions\",\"name\":\"Chat Completions\",\"description\":\"Generate chat-based completions using the specified model.\",\"dateModified\":\"2026-09-15T06:19:40.189Z\",\"isPartOf\":{\"@id\":\"https://www.truefoundry.com#website\"},\"breadcrumb\":{\"@id\":\"https://www.truefoundry.com/docs/api-reference/chat/chat-completions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.truefoundry.com/docs/api-reference/chat/chat-completions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"TrueFoundry Docs\",\"item\":\"https://www.truefoundry.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Chat Completions\",\"item\":\"https://www.truefoundry.com/docs/api-reference/chat/chat-completions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.truefoundry.com/docs/api-reference/chat/chat-completions#apireference\",\"headline\":\"Chat Completions\",\"name\":\"Chat Completions\",\"description\":\"Generate chat-based completions using the specified model.\",\"url\":\"https://www.truefoundry.com/docs/api-reference/chat/chat-completions\",\"mainEntityOfPage\":{\"@id\":\"https://www.truefoundry.com/docs/api-reference/chat/chat-completions#webpage\"},\"image\":\"https://assets.production.truefoundry.com/logo.svg\",\"dateModified\":\"2026-09-15T06:19:40.189Z\",\"publisher\":{\"@id\":\"https://www.truefoundry.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.truefoundry.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"TrueFoundry Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"TrueFoundry Docs","nav":{"global":null,"tabs":[{"tab":"AI Gateway","groups":[{"group":"Get Started","pages":[{"title":"Introduction to AI Gateway","sidebarTitle":"AI Gateway Overview","href":"/docs/ai-gateway/intro-to-llm-gateway"},{"title":"Quick Start Guide: Setup \u0026 Integration","sidebarTitle":"Quick Start","href":"/docs/ai-gateway/quick-start"}]},{"group":"LLM Gateway","pages":[{"group":"Integrate Models","pages":[{"title":"TrueFoundry Managed Models","sidebarTitle":"TrueFoundry Managed Models","href":"/docs/ai-gateway/truefoundry-managed"},{"title":"Providers","sidebarTitle":"Supported Providers","href":"/docs/ai-gateway/supported-providers"},{"title":"OpenAI","sidebarTitle":"OpenAI Models","href":"/docs/ai-gateway/openai"},{"title":"Anthropic","sidebarTitle":"Anthropic","href":"/docs/ai-gateway/anthropic"},{"title":"AWS Claude Platform","sidebarTitle":"AWS Claude Platform","href":"/docs/ai-gateway/aws-claude-platform"},{"title":"AWS Bedrock","sidebarTitle":"AWS Bedrock","href":"/docs/ai-gateway/aws-bedrock"},{"title":"AWS Bedrock Mantle","sidebarTitle":"AWS Bedrock Mantle","href":"/docs/ai-gateway/aws-bedrock-mantle"},{"title":"AWS Sagemaker","sidebarTitle":"AWS Sagemaker","href":"/docs/ai-gateway/aws-sagemaker"},{"title":"Google Vertex","sidebarTitle":"Google Vertex AI","href":"/docs/ai-gateway/google-vertex"},{"title":"Google Gemini","sidebarTitle":"Google Gemini","href":"/docs/ai-gateway/google-gemini"},{"group":"Azure Models","pages":[{"title":"Choosing an Azure model integration","sidebarTitle":"Overview","href":"/docs/ai-gateway/azure-models-guide"},{"title":"Microsoft Foundry","sidebarTitle":"Microsoft Foundry","tag":"NEW","href":"/docs/ai-gateway/microsoft-foundry"},{"title":"Migrate to Microsoft Foundry","sidebarTitle":"Migrate to Microsoft Foundry","href":"/docs/ai-gateway/migrate-to-microsoft-foundry"},{"title":"Azure OpenAI","sidebarTitle":"Azure OpenAI","tag":"LEGACY","href":"/docs/ai-gateway/azure-openai"},{"title":"Azure Foundry","sidebarTitle":"Azure AI Foundry","tag":"LEGACY","href":"/docs/ai-gateway/azure-ai-foundry"},{"group":"Authentication","pages":[{"title":"Azure Entra ID Certificate Based Authentication","sidebarTitle":"Azure Certificate Auth","href":"/docs/ai-gateway/azure-entra-certificate-auth"},{"title":"Azure Entra ID Client Secret Based Authentication","sidebarTitle":"Azure Client Secret Auth","href":"/docs/ai-gateway/azure-entra-client-secret-auth"},{"title":"Azure Workload Identity Federation Authentication","sidebarTitle":"Azure Workload Identity","href":"/docs/ai-gateway/azure-entra-wif-auth"}]}]},{"title":"Databricks","sidebarTitle":"Databricks Models","href":"/docs/ai-gateway/databricks-models"},{"title":"Cohere","sidebarTitle":"Cohere Models","href":"/docs/ai-gateway/cohere"},{"title":"AI21","sidebarTitle":"AI21","href":"/docs/ai-gateway/ai21"},{"title":"Deepinfra","sidebarTitle":"Deepinfra Models","href":"/docs/ai-gateway/deepinfra"},{"title":"Groq","sidebarTitle":"Groq Models","href":"/docs/ai-gateway/groq"},{"title":"ElevenLabs","sidebarTitle":"ElevenLabs","href":"/docs/ai-gateway/elevenlabs"},{"title":"Deepgram","sidebarTitle":"Deepgram","href":"/docs/ai-gateway/deepgram"},{"title":"Cartesia","sidebarTitle":"Cartesia","href":"/docs/ai-gateway/cartesia"},{"title":"Smallest AI","sidebarTitle":"Smallest AI","href":"/docs/ai-gateway/smallest-ai"},{"title":"Mistral AI","sidebarTitle":"Mistral AI Models","href":"/docs/ai-gateway/mistral"},{"title":"Cloudera","sidebarTitle":"Cloudera Models","href":"/docs/ai-gateway/cloudera"},{"title":"OpenRouter","sidebarTitle":"OpenRouter","href":"/docs/ai-gateway/openrouter"},{"title":"Perplexity AI","sidebarTitle":"Perplexity Models","href":"/docs/ai-gateway/perplexity-ai"},{"title":"Together AI","sidebarTitle":"Together AI","href":"/docs/ai-gateway/together-ai"},{"title":"xAI","sidebarTitle":"xAI Models","href":"/docs/ai-gateway/xai"},{"title":"SambaNova","sidebarTitle":"SambaNova","href":"/docs/ai-gateway/sambanova"},{"title":"Cerebras","sidebarTitle":"Cerebras","href":"/docs/ai-gateway/cerebras"},{"title":"Wafer","sidebarTitle":"Wafer","href":"/docs/ai-gateway/wafer"},{"title":"Fireworks AI Model Provider for TrueFoundry AI Gateway","sidebarTitle":"Fireworks AI","href":"/docs/ai-gateway/fireworks-ai"},{"title":"Snowflake Cortex","sidebarTitle":"Snowflake Cortex","href":"/docs/ai-gateway/snowflake-cortex"},{"title":"Baseten","sidebarTitle":"Baseten","href":"/docs/ai-gateway/baseten"},{"title":"TypeSafe","sidebarTitle":"TypeSafe","href":"/docs/ai-gateway/typesafe"},{"group":"Custom Endpoints","root":{"title":"Custom Endpoints","sidebarTitle":"Custom Endpoints","href":"/docs/ai-gateway/custom-endpoints"},"expanded":false,"pages":[{"group":"Examples","pages":[{"title":"CoreWeave","sidebarTitle":"CoreWeave Models","href":"/docs/ai-gateway/coreweave-models"},{"title":"PipeShift","sidebarTitle":"PipeShift","href":"/docs/ai-gateway/pipeshift"},{"title":"SiliconFlow","sidebarTitle":"SiliconFlow","href":"/docs/ai-gateway/siliconflow"},{"title":"io.net","sidebarTitle":"io.net","href":"/docs/ai-gateway/io-net"},{"title":"Resemble AI","sidebarTitle":"Resemble AI","href":"/docs/ai-gateway/resemble-ai"},{"title":"Ringg.AI","sidebarTitle":"Ringg.AI","href":"/docs/ai-gateway/ringg-ai"},{"title":"Crusoe","sidebarTitle":"Crusoe","href":"/docs/ai-gateway/crusoe"},{"title":"Jev (TypeSafe)","sidebarTitle":"Jev","href":"/docs/ai-gateway/jev"},{"title":"SCX.ai","sidebarTitle":"SCX.ai","href":"/docs/ai-gateway/scx-ai"}]}]},{"title":"Self-Hosted Models","sidebarTitle":"Self-Hosted Models","href":"/docs/ai-gateway/self-hosted-models"}]},{"group":"Supported APIs","pages":[{"group":"Chat Completions","root":{"title":"Chat Completions API (/chat/completions)","sidebarTitle":"Overview","href":"/docs/ai-gateway/chat-completions-overview"},"expanded":false,"directory":"accordion","pages":[{"title":"Chat Completions API (/chat/completions)","sidebarTitle":"Overview","href":"/docs/ai-gateway/chat-completions-overview"},{"title":"Chat Completions: Multimodal","sidebarTitle":"Multimodal","href":"/docs/ai-gateway/chat-completions-multimodal"},{"title":"Chat Completions: Tools \u0026 Signatures","sidebarTitle":"Tools","href":"/docs/ai-gateway/chat-completions-tools"},{"title":"Chat Completions: Structured Outputs","sidebarTitle":"Structured Outputs","href":"/docs/ai-gateway/chat-completions-structured-outputs"},{"title":"Chat Completions: Caching \u0026 Reasoning","sidebarTitle":"Caching \u0026 Reasoning","href":"/docs/ai-gateway/chat-completions-advanced"},{"title":"Chat Completions: Extended Thinking","sidebarTitle":"Extended Thinking","href":"/docs/ai-gateway/chat-completions-extended-thinking"}]},{"title":"Embeddings API (/embeddings)","sidebarTitle":"Embeddings","href":"/docs/ai-gateway/embed"},{"title":"Batch API (/batches)","sidebarTitle":"Batch Predictions","href":"/docs/ai-gateway/batch-predictions-with-truefoundry-llm-gateway"},{"title":"Finetune API (/fine_tuning)","sidebarTitle":"Finetuning","href":"/docs/ai-gateway/finetune"},{"title":"Responses API (/responses)","sidebarTitle":"Responses API","href":"/docs/ai-gateway/responses-api"},{"title":"Image Generation API (/images/generations)","sidebarTitle":"Image Generation","href":"/docs/ai-gateway/image-generation"},{"title":"Image Edit API (/images/edits)","sidebarTitle":"Image Edit","href":"/docs/ai-gateway/image-edit"},{"title":"Image Variation API (/images/variations)","sidebarTitle":"Image Variation","href":"/docs/ai-gateway/image-variation"},{"title":"Video Generation API (/videos-proxy)","sidebarTitle":"Video Generation","href":"/docs/ai-gateway/video-generation"},{"title":"Text to Speech API","sidebarTitle":"Text to Speech","href":"/docs/ai-gateway/text-to-speech"},{"title":"Audio Translation API","sidebarTitle":"Audio Translation","href":"/docs/ai-gateway/audio-translation"},{"title":"Speech to Text API","sidebarTitle":"Speech to Text","href":"/docs/ai-gateway/audio-transcription"},{"group":"Live / Realtime API","root":{"title":"Live / Realtime API (/live)","sidebarTitle":"Overview","href":"/docs/ai-gateway/live-api"},"expanded":false,"directory":"accordion","pages":[{"title":"Live / Realtime API (/live)","sidebarTitle":"Overview","href":"/docs/ai-gateway/live-api"},{"title":"Live API: Code Snippets","sidebarTitle":"Code Snippets","href":"/docs/ai-gateway/live-api-code-snippets"},{"title":"Live API: Tool Calling","sidebarTitle":"Tool Calling","href":"/docs/ai-gateway/live-api-tool-calling"},{"title":"OpenAI Realtime with WebRTC","sidebarTitle":"WebRTC (OpenAI)","href":"/docs/ai-gateway/live-api-webrtc"},{"title":"Amazon Nova Sonic (Bedrock)","sidebarTitle":"Nova Sonic (Bedrock)","href":"/docs/ai-gateway/live-api-nova-sonic"}]},{"title":"Files API (/files)","sidebarTitle":"Files API","href":"/docs/ai-gateway/file-endpoints"},{"title":"Rerank API (/rerank)","sidebarTitle":"Rerank API","href":"/docs/ai-gateway/rerank"},{"title":"Moderation API (/moderations)","sidebarTitle":"Moderation API","href":"/docs/ai-gateway/moderation"},{"title":"Compaction API (/responses/compact)","sidebarTitle":"Compaction API","href":"/docs/ai-gateway/compaction"},{"title":"Messages API (/messages)","sidebarTitle":"Messages API","href":"/docs/ai-gateway/messages-overview"},{"title":"Decisions API (/v1/decisions, /v1/systemone)","sidebarTitle":"Decisions API","href":"/docs/ai-gateway/decisions"},{"title":"Proxy API (/proxy)","sidebarTitle":"Proxy API","href":"/docs/ai-gateway/proxy-api"}]},{"group":"Making LLM Requests","pages":[{"title":"Making Your First Request","sidebarTitle":"Making Your First Request","href":"/docs/ai-gateway/making-llm-requests-via-gateway"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/docs/ai-gateway/authentication"},{"title":"Custom Metadata and Headers","sidebarTitle":"Metadata \u0026 Headers","href":"/docs/ai-gateway/request-headers"},{"title":"Native SDK Support","sidebarTitle":"Native SDK Support","href":"/docs/ai-gateway/native-sdk-support"},{"title":"Model Discovery","sidebarTitle":"Model Discovery","href":"/docs/ai-gateway/model-discovery"}]},{"title":"TrueFoundry AI Gateway Playground","sidebarTitle":"AI Gateway Playground","href":"/docs/ai-gateway/playground-overview"},{"group":"Virtual Models","pages":[{"title":"Virtual Models","sidebarTitle":"Overview","href":"/docs/ai-gateway/virtual-model"},{"title":"Create a Virtual Model","sidebarTitle":"Create a Virtual Model","href":"/docs/ai-gateway/virtual-model-advanced"},{"title":"Auto Routing","sidebarTitle":"Auto Routing","href":"/docs/ai-gateway/auto-routing"}]},{"title":"Access Control","sidebarTitle":"Access Control","href":"/docs/ai-gateway/gateway-access-control"},{"group":"Policies","pages":[{"title":"Rate Limiting","sidebarTitle":"Rate Limiting","href":"/docs/ai-gateway/ratelimiting-v2"},{"title":"Rate Limiting (V1, deprecated)","sidebarTitle":"Rate Limiting (V1)","hidden":true,"href":"/docs/ai-gateway/ratelimiting"},{"title":"Budget Limiting","sidebarTitle":"Budget Limiting","href":"/docs/ai-gateway/budget-limiting-v2"},{"title":"Budget Usage Recovery","sidebarTitle":"Budget Usage Recovery","href":"/docs/ai-gateway/budget-usage-recovery"},{"title":"Budget Limiting (V1, deprecated)","sidebarTitle":"Budget Limiting (V1)","hidden":true,"href":"/docs/ai-gateway/budgetlimiting"},{"title":"Logging Configuration","sidebarTitle":"Logging Config","href":"/docs/ai-gateway/logging-config"}]},{"title":"Caching (Exact and Semantic)","sidebarTitle":"Caching (Exact and Semantic)","href":"/docs/ai-gateway/caching"},{"title":"Cost Tracking","sidebarTitle":"Cost Tracking","href":"/docs/ai-gateway/cost-tracking"},{"title":"Cost Savings","sidebarTitle":"Cost Savings","href":"/docs/ai-gateway/cost-savings"},{"group":"Extras","pages":[{"title":"Session Management","sidebarTitle":"Session Management","href":"/docs/ai-gateway/session-management"},{"title":"Log Feedback on Requests","sidebarTitle":"Log Feedback","href":"/docs/ai-gateway/feedback-for-traces"},{"title":"First Chunk Gate for Streaming","sidebarTitle":"First Chunk Gate","href":"/docs/ai-gateway/first-chunk-gate"},{"title":"Anthropic Stream Overload Fallback","sidebarTitle":"Anthropic Stream Fallback","href":"/docs/ai-gateway/anthropic-stream-overload-fallback"}]}]},{"group":"MCP Registry and Gateway","pages":[{"title":"TrueFoundry MCP Gateway","sidebarTitle":"Overview","href":"/docs/ai-gateway/mcp/mcp-overview"},{"title":"MCP Server: Getting Started","sidebarTitle":"Getting Started","href":"/docs/ai-gateway/mcp/mcp-server-getting-started"},{"title":"MCP Protocol Support","sidebarTitle":"Protocol Support","href":"/docs/ai-gateway/mcp/mcp-protocol-support"},{"group":"Authentication and Security","root":{"title":"Authentication and Security","sidebarTitle":"Authentication and Security","href":"/docs/ai-gateway/mcp/mcp-gateway-auth-security"},"pages":[{"title":"Authentication and Security","sidebarTitle":"Authentication and Security","href":"/docs/ai-gateway/mcp/mcp-gateway-auth-security"},{"title":"Auth Overrides","sidebarTitle":"Auth Overrides","href":"/docs/ai-gateway/mcp/mcp-server-auth-overrides"},{"group":"Outbound auth integrations","pages":[{"title":"Okta app setup","sidebarTitle":"Okta App Setup","href":"/docs/ai-gateway/mcp/okta-app-setup"},{"title":"Microsoft Entra app setup","sidebarTitle":"Microsoft Entra App Setup","href":"/docs/ai-gateway/mcp/entra-app-setup"},{"title":"Microsoft Entra On-Behalf-Of (OBO) for MCP","sidebarTitle":"Microsoft Entra OBO App Setup","href":"/docs/ai-gateway/mcp/mcp-server-oauth-azure-obo"},{"title":"Register an AWS Bedrock AgentCore MCP Server","sidebarTitle":"AgentCore (AWS SigV4)","href":"/docs/ai-gateway/mcp/mcp-server-agentcore-sigv4"}]}]},{"title":"MCP Troubleshooting Guide","sidebarTitle":"Troubleshooting Guide","href":"/docs/ai-gateway/mcp/mcp-troubleshooting-guide"},{"title":"MCP Tool Approvals","sidebarTitle":"Tool Approvals","href":"/docs/ai-gateway/mcp/mcp-tool-approval"},{"title":"MCP Tool Management","sidebarTitle":"Tool Management","href":"/docs/ai-gateway/mcp/mcp-tool-management"},{"title":"Connect MCP Servers from Your IDE","sidebarTitle":"Connect MCP Servers from Your IDE","href":"/docs/ai-gateway/mcp/connect-mcp-from-ide"},{"title":"TrueFoundry Managed MCPs","sidebarTitle":"TrueFoundry Managed MCPs","href":"/docs/ai-gateway/mcp/tfy-managed-mcp-server"},{"title":"Virtual MCP Server","sidebarTitle":"Virtual MCP Server","href":"/docs/ai-gateway/mcp/virtual-mcp-server"},{"title":"OpenAPI to MCP Server","sidebarTitle":"OpenAPI to MCP Server","href":"/docs/ai-gateway/mcp/openapi-mcp-server"},{"title":"Hosted Stdio-based MCP Server","sidebarTitle":"Hosted Stdio-based MCP Server","href":"/docs/ai-gateway/mcp/stdio-mcp-server"},{"group":"MCP Server Guides","pages":[{"group":"Creating MCP Servers","pages":[{"title":"Create a Basic Calculator MCP Server","sidebarTitle":"Basic Calculator MCP Server","href":"/docs/ai-gateway/mcp/create-calculator-mcp-server"},{"title":"Add Okta OAuth to a Calculator MCP Server","sidebarTitle":"Okta OAuth MCP server","href":"/docs/ai-gateway/mcp/mcp-server-oauth-okta"},{"title":"Create an OAuth MCP Server with Azure Entra ID","sidebarTitle":"Azure Entra ID OAuth MCP Server","href":"/docs/ai-gateway/mcp/mcp-server-oauth-azure"}]}]}]},{"group":"Skills Registry","pages":[{"title":"AI Gateway Skills Registry","sidebarTitle":"Overview","href":"/docs/ai-gateway/skills/skills-registry"},{"title":"Create, Manage, and Use Skills","sidebarTitle":"Create, Manage and Use Skills","href":"/docs/ai-gateway/skills/getting-started"}]},{"group":"Prompt Registry","pages":[{"title":"Prompt Management","sidebarTitle":"Create, Manage and Use Prompts","href":"/docs/ai-gateway/prompt-management"}]},{"group":"Guardrails and Security","pages":[{"title":"AI Gateway Guardrails Overview","sidebarTitle":"Overview","href":"/docs/ai-gateway/guardrails-overview"},{"title":"AI Gateway Guardrails: Quick Start","sidebarTitle":"Getting Started","href":"/docs/ai-gateway/guardrails-getting-started"},{"title":"Configure Guardrail Policies","sidebarTitle":"Configure Guardrail Policies","href":"/docs/ai-gateway/guardrails-configuration"},{"group":"TrueFoundry Guardrails","root":{"title":"TrueFoundry Guardrails","sidebarTitle":"Overview","href":"/docs/ai-gateway/truefoundry-guardrails"},"pages":[{"title":"TrueFoundry Guardrails","sidebarTitle":"Overview","href":"/docs/ai-gateway/truefoundry-guardrails"},{"title":"Secrets Detection Guardrail","sidebarTitle":"Secrets Detection","href":"/docs/ai-gateway/secrets-detection"},{"title":"Code Safety Linter Guardrail","sidebarTitle":"Code Safety Linter","href":"/docs/ai-gateway/code-safety-linter"},{"title":"SQL Sanitizer Guardrail","sidebarTitle":"SQL Sanitizer","href":"/docs/ai-gateway/sql-sanitizer"},{"title":"Regex Pattern Match Guardrail","sidebarTitle":"Regex Pattern Match","href":"/docs/ai-gateway/regex-pattern-matching"},{"title":"Prompt Injection Guardrail","sidebarTitle":"Prompt Injection","href":"/docs/ai-gateway/tfy-prompt-injection"},{"title":"PII/PHI Detection Guardrail","sidebarTitle":"PII/PHI","href":"/docs/ai-gateway/tfy-pii"},{"title":"Content Moderation Guardrail","sidebarTitle":"Content Moderation","href":"/docs/ai-gateway/tfy-content-moderation"},{"title":"Metadata Validation Guardrail","sidebarTitle":"Metadata Validation","href":"/docs/ai-gateway/metadata-validation"},{"title":"Cedar Guardrails","sidebarTitle":"Cedar Guardrails","href":"/docs/ai-gateway/cedar-guardrails"},{"title":"OPA Guardrails","sidebarTitle":"OPA Guardrails","href":"/docs/ai-gateway/opa-guardrails"}]},{"group":"External Providers","pages":[{"title":"Akto Integration","sidebarTitle":"Akto","href":"/docs/ai-gateway/akto"},{"title":"Arthur AI","sidebarTitle":"Arthur AI","href":"/docs/ai-gateway/arthur-ai"},{"title":"AWS Bedrock Guardrail Integration","sidebarTitle":"AWS Bedrock Guardrail","href":"/docs/ai-gateway/bedrock-guardrails"},{"title":"Azure Content Safety Guardrail Integration","sidebarTitle":"Azure Content Safety","href":"/docs/ai-gateway/azure-content-safety"},{"title":"Azure PII Guardrail Integration","sidebarTitle":"Azure PII","href":"/docs/ai-gateway/azure-pii"},{"title":"Azure Prompt Shield Guardrail Integration","sidebarTitle":"Azure Prompt Shield","href":"/docs/ai-gateway/azure-prompt-shield"},{"title":"CrowdStrike AIDR Integration","sidebarTitle":"CrowdStrike AIDR","href":"/docs/ai-gateway/crowdstrike"},{"title":"Cato Networks","sidebarTitle":"Cato Networks","href":"/docs/ai-gateway/cato-networks"},{"title":"Cisco AI Defense Integration","sidebarTitle":"Cisco AI Defense","href":"/docs/ai-gateway/cisco-ai-defense"},{"title":"DeepKeep AI Firewall","sidebarTitle":"DeepKeep","href":"/docs/ai-gateway/deepkeep"},{"title":"Enkrypt AI Guardrail Integration","sidebarTitle":"Enkrypt AI","href":"/docs/ai-gateway/enkrypt-ai"},{"title":"F5 AI Security (CalypsoAI) Integration","sidebarTitle":"F5 AI Security","href":"/docs/ai-gateway/f5-calypsoai"},{"title":"Fiddler Integration","sidebarTitle":"Fiddler","href":"/docs/ai-gateway/fiddler"},{"title":"Fireworks Safety Model Guardrail for TrueFoundry AI Gateway","sidebarTitle":"Fireworks","href":"/docs/ai-gateway/fireworks"},{"title":"Google Model Armor Guardrail Integration","sidebarTitle":"Google Model Armor","href":"/docs/ai-gateway/google-model-armor"},{"title":"Gray Swan Cygnal","sidebarTitle":"Gray Swan Cygnal","href":"/docs/ai-gateway/grayswan-cygnal"},{"title":"Guardrails AI Integration","sidebarTitle":"Guardrails AI","href":"/docs/ai-gateway/guardrails-ai"},{"title":"HiddenLayer Integration","sidebarTitle":"HiddenLayer","href":"/docs/ai-gateway/hiddenlayer"},{"title":"CoreWeave Weave Guardrails Integration","sidebarTitle":"CoreWeave Guardrails","href":"/docs/ai-gateway/coreweave-weave-guardrails"},{"title":"Lasso Security","sidebarTitle":"Lasso Security","href":"/docs/ai-gateway/lasso-security"},{"title":"Noma Security","sidebarTitle":"Noma Security","href":"/docs/ai-gateway/noma-security"},{"title":"NVIDIA NeMo Guardrails Integration","sidebarTitle":"NVIDIA NeMo","href":"/docs/ai-gateway/nvidia-nemo"},{"title":"OpenAI Moderation Integration","sidebarTitle":"OpenAI Moderation","href":"/docs/ai-gateway/openai-moderations"},{"title":"Onyx Security","sidebarTitle":"Onyx Security","href":"/docs/ai-gateway/onyx-security"},{"title":"Palo Alto Prisma AIRS Integration","sidebarTitle":"Palo Alto Prisma AIRS","href":"/docs/ai-gateway/palo-alto-airs"},{"title":"Patronus AI Integration","sidebarTitle":"Patronus AI","href":"/docs/ai-gateway/patronus"},{"title":"Pillar Security Integration","sidebarTitle":"Pillar Security","href":"/docs/ai-gateway/pillar-security"},{"title":"Straiker","sidebarTitle":"Straiker","href":"/docs/ai-gateway/straiker"},{"title":"TrojAI DEFEND Integration","sidebarTitle":"TrojAI","href":"/docs/ai-gateway/trojai"},{"title":"Verra","sidebarTitle":"Verra","href":"/docs/ai-gateway/verra"},{"title":"Zscaler AI Guard guardrail for prompts and responses","sidebarTitle":"Zscaler AI Guard","href":"/docs/ai-gateway/zscaler-ai-guard"}]},{"title":"Custom Guardrail/Plugins Configuration","sidebarTitle":"Bring your own Guardrail / Plugin","href":"/docs/ai-gateway/custom-guardrails"}]},{"group":"Observability","pages":[{"title":"Metrics Dashboard","sidebarTitle":"Metrics Dashboard","href":"/docs/ai-gateway/analytics"},{"title":"Request Logging","sidebarTitle":"Request Logging","href":"/docs/ai-gateway/request-logging"},{"title":"Configure Data Access","sidebarTitle":"Configure Data Access","href":"/docs/ai-gateway/data-access"},{"title":"Configure Data Routing","sidebarTitle":"Configure Data Routing","href":"/docs/ai-gateway/data-routing"},{"group":"Export Logs and Metrics","pages":[{"title":"Export OpenTelemetry Data","sidebarTitle":"Export via OpenTelemetry","href":"/docs/ai-gateway/export-opentelemetry-data"},{"title":"Prometheus Grafana Integration","sidebarTitle":"Prometheus \u0026 Grafana","href":"/docs/ai-gateway/prometheus-grafana-integration"}]},{"group":"API Access to Metrics","expanded":false,"pages":[{"title":"Model Metrics","sidebarTitle":"Model Metrics","href":"/docs/ai-gateway/fetch-model-metrics"},{"title":"MCP Metrics","sidebarTitle":"MCP Metrics","href":"/docs/ai-gateway/fetch-mcp-metrics"},{"title":"Guardrail Metrics","sidebarTitle":"Guardrail Metrics","href":"/docs/ai-gateway/fetch-guardrail-metrics"},{"title":"Cache Metrics","sidebarTitle":"Cache Metrics","href":"/docs/ai-gateway/fetch-cache-metrics"},{"title":"Routing Metrics","sidebarTitle":"Routing Metrics","href":"/docs/ai-gateway/fetch-routing-metrics"},{"title":"Agent Metrics","sidebarTitle":"Agent Metrics","href":"/docs/ai-gateway/fetch-agent-metrics"}]},{"group":"API Access to Logs","root":{"title":"API Access to Logs","sidebarTitle":"Overview","href":"/docs/ai-gateway/fetch-request-logs"},"expanded":false,"directory":"accordion","pages":[{"title":"API Access to Logs","sidebarTitle":"Overview","href":"/docs/ai-gateway/fetch-request-logs"},{"title":"Request Logs: Trace Inspection","sidebarTitle":"Trace Inspection","href":"/docs/ai-gateway/fetch-request-logs-trace-inspection"},{"title":"Request Logs: Filtering","sidebarTitle":"Filtering","href":"/docs/ai-gateway/fetch-request-logs-filtering"},{"group":"Use Cases","expanded":false,"pages":[{"title":"Request Logs: Common Use Cases","sidebarTitle":"Basic Queries","href":"/docs/ai-gateway/fetch-request-logs-use-cases"},{"title":"Request Logs: Advanced Queries","sidebarTitle":"Advanced Queries","href":"/docs/ai-gateway/fetch-request-logs-use-cases-advanced"}]},{"group":"Span Attributes","expanded":false,"pages":[{"title":"Request Logs: Span Attributes","sidebarTitle":"TrueFoundry Attributes","href":"/docs/ai-gateway/fetch-request-logs-span-attributes"},{"title":"GenAI Span Attributes","sidebarTitle":"GenAI Attributes","href":"/docs/ai-gateway/fetch-request-logs-span-attributes-genai"}]}]}]},{"group":"Deployment","pages":[{"title":"Gateway Architecture","sidebarTitle":"Architecture","href":"/docs/ai-gateway/gateway-architecture"},{"title":"Deployment Options","sidebarTitle":"Deployment Options","href":"/docs/ai-gateway/modes-of-deployment"},{"title":"Globally Distributed SAAS Gateway","sidebarTitle":"Globally Distributed SAAS","href":"/docs/ai-gateway/globally-distributed-saas"},{"title":"Connect Private Models and MCP Servers","sidebarTitle":"Connect Private Endpoints","href":"/docs/ai-gateway/connect-private-models-mcp-servers"},{"title":"Install LLM Gateway (Standalone)","sidebarTitle":"Install AI Gateway","href":"/docs/ai-gateway/install-only-llm-gateway"}]},{"group":"Admin Guide","pages":[{"title":"Setup AI Gateway in Your Organization","sidebarTitle":"Setup AI Gateway in Org","href":"/docs/ai-gateway/setup-ai-gateway-in-org"},{"title":"Govern All AI Traffic Through the AI Gateway","sidebarTitle":"Govern All AI Traffic","href":"/docs/ai-gateway/govern-traffic-through-ai-gateway"},{"title":"Setup Dev, Staging and Prod Environments","sidebarTitle":"Setup Multiple Environments","href":"/docs/ai-gateway/setup-multiple-environments"},{"title":"Use Secret Manager in Integrations","sidebarTitle":"Use Secret Manager","description":"Store API keys and other sensitive credentials in Secret manager and reference them in Model, MCP server, and Guardrail integrations.","href":"/docs/ai-gateway/secret-manager-in-ai-gateway"}]},{"group":"Chat","pages":[{"title":"Chat Completions","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /chat/completions","href":"/docs/api-reference/chat/chat-completions"}]},{"group":"Messages","pages":[{"title":"Messages","description":"Pass-through endpoint accepting the Anthropic Messages API format.","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /messages","href":"/docs/api-reference/messages/messages"},{"title":"Count Tokens","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /messages/count_tokens","href":"/docs/api-reference/messages/count-tokens"}]},{"group":"Embeddings","pages":[{"title":"Generate Embeddings","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /embeddings","href":"/docs/api-reference/embeddings/generate-embeddings"}]},{"group":"Rerank","pages":[{"title":"Rerank Documents","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /v2/rerank","href":"/docs/api-reference/rerank/rerank-documents"}]},{"group":"Responses","pages":[{"title":"List Model Response Input Items","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /responses/{id}/input_items","href":"/docs/api-reference/responses/list-model-response-input-items"},{"title":"Get Model Response","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /responses/{id}","href":"/docs/api-reference/responses/get-model-response"},{"title":"Delete Model Response","deprecated":null,"version":null,"openapi":"/gateway-openapi.json delete /responses/{id}","href":"/docs/api-reference/responses/delete-model-response"},{"title":"Model Responses","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /responses","href":"/docs/api-reference/responses/model-responses"},{"title":"Model Responses Compact","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /responses/compact","href":"/docs/api-reference/responses/model-responses-compact"}]},{"group":"Image","pages":[{"title":"Generate Images","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /images/generations","href":"/docs/api-reference/image/generate-images"},{"title":"Edit Images","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /images/edits","href":"/docs/api-reference/image/edit-images"},{"title":"Create Image Variation","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /images/variations","href":"/docs/api-reference/image/create-image-variation"}]},{"group":"Audio","pages":[{"title":"Transcribe Audio","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /audio/transcriptions","href":"/docs/api-reference/audio/transcribe-audio"},{"title":"Translate Audio","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /audio/translations","href":"/docs/api-reference/audio/translate-audio"},{"title":"Generate Speech","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /audio/speech","href":"/docs/api-reference/audio/generate-speech"}]},{"group":"Batch","pages":[{"title":"List Batches","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /batches","href":"/docs/api-reference/batch/list-batches"},{"title":"Create Batch","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /batches","href":"/docs/api-reference/batch/create-batch"},{"title":"Get Batch","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /batches/{id}","href":"/docs/api-reference/batch/get-batch"},{"title":"Get Batch Output","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /batches/{id}/output","href":"/docs/api-reference/batch/get-batch-output"},{"title":"Cancel Batch","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /batches/{id}/cancel","href":"/docs/api-reference/batch/cancel-batch"}]},{"group":"Files","pages":[{"title":"List Files","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /files","href":"/docs/api-reference/files/list-files"},{"title":"Upload File","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /files","href":"/docs/api-reference/files/upload-file"},{"title":"Get File","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /files/{id}","href":"/docs/api-reference/files/get-file"},{"title":"Delete File","deprecated":null,"version":null,"openapi":"/gateway-openapi.json delete /files/{id}","href":"/docs/api-reference/files/delete-file"},{"title":"Get File Content","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /files/{id}/content","href":"/docs/api-reference/files/get-file-content"}]},{"group":"Fine-tuning","pages":[{"title":"List Fine-tuning Jobs","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /fine_tuning/jobs","href":"/docs/api-reference/fine-tuning/list-fine-tuning-jobs"},{"title":"Create Fine-tuning Job","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /fine_tuning/jobs","href":"/docs/api-reference/fine-tuning/create-fine-tuning-job"},{"title":"Retrieve Fine-tuning Job","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /fine_tuning/jobs/{fine_tuning_job_id}","href":"/docs/api-reference/fine-tuning/retrieve-fine-tuning-job"},{"title":"Cancel Fine-tuning Job","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /fine_tuning/jobs/{fine_tuning_job_id}/cancel","href":"/docs/api-reference/fine-tuning/cancel-fine-tuning-job"}]},{"group":"Moderations","pages":[{"title":"Create Moderation","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /moderations","href":"/docs/api-reference/moderations/create-moderation"}]},{"group":"Video","pages":[{"title":"Poll or Download Video","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /videos-proxy/{providerAccountName}/{nativePath}","href":"/docs/api-reference/video/poll-or-download-video"},{"title":"Generate Video","deprecated":null,"version":null,"openapi":"/gateway-openapi.json post /videos-proxy/{providerAccountName}/{nativePath}","href":"/docs/api-reference/video/generate-video"}]},{"group":"Models","pages":[{"title":"List available models","deprecated":null,"version":null,"openapi":"/gateway-openapi.json get /models","href":"/docs/api-reference/models/list-available-models"}]}]},{"tab":"Agent Platform","pages":[{"title":"Agent Platform","href":"/docs/agent-platform/agent-harness/overview"}]},{"tab":"Platform","pages":[{"title":"Platform","href":"/docs/platform/overview"}]},{"tab":"AI Deployment","pages":[{"title":"AI Deployment","href":"/docs/ai-deployment-overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/docs/truefoundry_sdk"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/docs/ai-gateway/ecosystem"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/changelog"}]}]},"basePath":"","title":"Chat Completions - TrueFoundry Docs","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}