import SambaNova from 'sambanova';
const client = new SambaNova({
apiKey: process.env['SAMBANOVA_API_KEY'], // This is the default and can be omitted
});
const message = await client.messages.create({
max_tokens: 1024,
messages: [{ content: 'Hello, Claude!', role: 'user' }],
model: 'DeepSeek-V3.1',
});
console.log(message);
import os
from sambanova import SambaNova
client = SambaNova(
api_key=os.environ.get("SAMBANOVA_API_KEY"), # This is the default and can be omitted
)
for message in client.messages.create(
max_tokens=1024,
messages=[{
"content": "Hello, Claude!",
"role": "user",
}],
model="DeepSeek-V3.1",
):
print(message)
Anthropic Messages API compatible endpoint. Generates a model response for the supplied conversation. Authentication accepts either the bearer Authorization: Bearer <key> header (SambaNova SDK default) or the x-api-key header (Anthropic SDK default); the same API key is used in both cases. When stream: true is set, the response is a sequence of Server-Sent Events whose payloads conform to MessageStreamEvent; otherwise the response is a single Message object.
POST
/
messages
JavaScript
import SambaNova from 'sambanova';
const client = new SambaNova({
apiKey: process.env['SAMBANOVA_API_KEY'], // This is the default and can be omitted
});
const message = await client.messages.create({
max_tokens: 1024,
messages: [{ content: 'Hello, Claude!', role: 'user' }],
model: 'DeepSeek-V3.1',
});
console.log(message);
import os
from sambanova import SambaNova
client = SambaNova(
api_key=os.environ.get("SAMBANOVA_API_KEY"), # This is the default and can be omitted
)
for message in client.messages.create(
max_tokens=1024,
messages=[{
"content": "Hello, Claude!",
"role": "user",
}],
model="DeepSeek-V3.1",
):
print(message)
SambaNova API key, sent as a bearer token in the Authorization header (Authorization: Bearer <key>). Default authentication scheme used by the SambaNova SDK across every OpenAI compatible endpoint.
Headers
anthropic-version
string
Anthropic API version header sent by the official anthropic SDK. Accepted (any value) but currently has no effect on response shape — included for drop-in SDK compatibility.
Example:
"2023-06-01"
Body
application/json
Message creation parameters.
Request body for POST /messages. Wire-compatible with the official Anthropic Messages API. Required fields: model, max_tokens, messages.
model
stringenum<string>
required
The model ID to use (e.g. gpt-oss-120b). See available models
Example:
"gpt-oss-120b"
max_tokens
integer
required
Maximum number of tokens to generate. The combined input + output token count is bounded by the model's context window.
Required range: x >= 1
Example:
1024
messages
Message Input Message · object[]
required
Conversation turns.
Minimum array length: 1
Show child attributes
system
stringMessage System Text Block · object[]
System prompt for the conversation. Accepts either a single string (most common) or an array of text blocks (used when individual segments need cache_control markers). Multiple text blocks are joined with newlines and prepended to the conversation as a role: system message.
temperature
number | null
Sampling temperature in [0.0, 2.0]. Higher values produce more random output, lower values more deterministic. Adjust only one of temperature, top_p, top_k.
Required range: 0 <= x <= 2
Example:
1
top_p
number | null
Nucleus sampling. Considers tokens with cumulative probability mass up to top_p.
Required range: 0 <= x <= 1
top_k
integer | null
Top-k sampling. Considers only the K most likely tokens at each step. Set to 0 to disable.
Required range: x >= 0
stop_sequences
string[] | null
Custom strings that, when generated, cause the model to stop.
stream
boolean | null
default:false
If true, the response is a sequence of Server-Sent Events whose payloads conform to MessageStreamEvent.
metadata
Message Metadata · object
Free-form metadata attached to the request. Currently only user_id Additional fields are accepted but ignored.
Show child attributes
thinking
Message Thinking Disabled · object
Disables Anthropic-style extended thinking. In v1: silently accepted as a no-op
Message Thinking Disabled
Message Thinking Enabled
Message Thinking Adaptive
Show child attributes
tools
Message Tool · object[] | null
Tool definitions the model may call.
Show child attributes
tool_choice
Message Tool Choice (Auto) · object
Controls how the model selects from tools.
Message Tool Choice (Auto)
Message Tool Choice (Any)
Message Tool Choice (None)
Message Tool Choice (Tool)
Show child attributes
service_tier
enum<string> | null
Service-tier preference. In v1: silently dropped
Available options:
auto,
standard_only
container
string | null
Existing code-execution container ID to reuse. In v1: silently dropped
Response
Successful response. Returns a Message object (non-streaming), or a stream of Server-Sent Events whose payloads conform to MessageStreamEvent ending with a message_stop event (when stream: true).
Message
Message Start Event
Content Block Start Event
Content Block Delta Event
Content Block Stop Event
Message Delta Event
Message Stop Event
Message Ping Event
Message Stream Error Event
Non-streaming response from POST /messages. Wire-compatible with the official Anthropic Messages API.
id
string
required
Unique identifier for this message.
type
enum<string>
required
Available options:
message
Allowed value: "message"
role
enum<string>
required
Available options:
assistant
Allowed value: "assistant"
content
(Message Output Text Block · object | Message Output Tool Use Block · object | Message Output Thinking Block · object | Message Output Redacted Thinking Block · object | Message Output Server Tool Use Block · object | Message Output Web Search Tool Result Block · object | Message Output Web Fetch Tool Result Block · object | Message Output Code Execution Tool Result Block · object | Message Output Bash Code Execution Tool Result Block · object | Message Output Text Editor Code Execution Tool Result Block · object | Message Output Tool Search Tool Result Block · object | Message Output Container Upload Block · object)[]
required
Plain-text segment of the model's response.
Message Output Text Block
Message Output Tool Use Block
Message Output Thinking Block
Message Output Redacted Thinking Block
Message Output Server Tool Use Block
Message Output Web Search Tool Result Block
Message Output Web Fetch Tool Result Block
Message Output Code Execution Tool Result Block
Message Output Bash Code Execution Tool Result Block
Message Output Text Editor Code Execution Tool Result Block
Message Output Tool Search Tool Result Block
Message Output Container Upload Block
Show child attributes
model
string
required
Model that produced the response.
stop_reason
enum<string> | null
required
Reason the model stopped generating. SambaNova emits end_turn, max_tokens, tool_use, and stop_sequence. The remaining values are defined for Anthropic SDK type-parity but never returned: pause_turn (server-tool loop limit, not produced); refusal (content filter, not exposed); model_context_window_exceeded (folded to max_tokens).
Available options:
end_turn,
max_tokens,
tool_use,
pause_turn,
refusal,
stop_sequence,
model_context_window_exceeded
usage
Message Usage · object
required
Token accounting for the request.
Show child attributes
stop_sequence
string | null
The matched stop sequence that triggered termination. Present when stop_reason is stop_sequence; null otherwise.
stop_details
Message Stop Details · object | null
Refusal stop details. Anthropic compatibility only — refusal is never emitted as a stop_reason by SambaNova (content filtering is not exposed at the API layer).
Show child attributes
container
Message Container · object | null
Code-execution container reference. Anthropic compatibility only — SambaNova does not run server-side code execution, so this field is never emitted on responses.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SambaNova Documentation","colors":{"primary":"#974FC7","light":"#974FC7","dark":"#974FC7"},"logo":{"light":"https://mintcdn.com/sambanova-systems/SM8Xs_Eg3x1tlCPk/logo/new-logo.png?fit=max\u0026auto=format\u0026n=SM8Xs_Eg3x1tlCPk\u0026q=85\u0026s=20f20c2369b8f043d9b2ffa55408fd8d","dark":"https://mintcdn.com/sambanova-systems/Jn3W9iRFUNw6zFv7/logo/new-logo-dark.png?fit=max\u0026auto=format\u0026n=Jn3W9iRFUNw6zFv7\u0026q=85\u0026s=660233c9a1affaf1ed08785472551190","href":"https://sambanova.ai"},"favicon":"https://mintcdn.com/sambanova-systems/tKEjjixpklKce6C2/favicon.webp?fit=max\u0026auto=format\u0026n=tKEjjixpklKce6C2\u0026q=85\u0026s=f345bba634c9e3c52db898e169393d6b","api":{"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json","mdx":{"server":["https://api.sambanovacloud.com/"]}},"appearance":{"default":"system"},"background":{"color":{"light":"#f9fafb","dark":"#262626"}},"navbar":{"links":[{"href":"https://community.sambanova.ai","label":"Community"}],"primary":{"type":"button","label":"Try It Now","href":"https://cloud.sambanova.ai/?_gl=1*i3sino*_gcl_au*MzM0MDE5MzAwLjE3MjkwMTkyNzk.*_ga*MTk0NTY3NjQ1NC4xNzI5MDE5Mjg4*_ga_2D4J2VB6SX*MTcyOTA1ODE3OS4zLjAuMTcyOTA1ODE5Ni40My4wLjA."}},"footer":{"socials":{"youtube":"https://www.youtube.com/c/SambaNovaSystems/featured","x":"https://twitter.com/SambaNovaAI","linkedin":"https://www.linkedin.com/company/sambanova-systems"},"links":[{"header":"Company","items":[{"label":"About us","href":"https://sambanova.ai/company/about"},{"label":"Careers","href":"https://sambanova.ai/company/careers"},{"label":"Newsroom","href":"https://sambanova.ai/press"},{"label":"Contact us","href":"https://sambanova.ai/contact"}]},{"header":"Resources","items":[{"label":"Blog","href":"https://sambanova.ai/resources/tag/blog"},{"label":"Case studies","href":"https://sambanova.ai/resources/tag/case-study"},{"label":"White papers","href":"https://sambanova.ai/resources/tag/white-paper"},{"label":"Events","href":"https://sambanova.ai/events"}]},{"header":"Developers","items":[{"label":"SambaAcademy","href":"https://sambanova.ai/samba-academy"},{"label":"Pricing","href":"https://cloud.sambanova.ai/plans/pricing"}]},{"header":"Support and legal","items":[{"label":"Support","href":"https://sambanova.ai/support"},{"label":"Legal agreements","href":"https://sambanova.ai/legal-agreements"},{"label":"Privacy policy","href":"https://sambanova.ai/privacy-policy"}]}]},"seo":{"paths":[{"path":"en/v0.5.17","metatags":{"robots":"noindex, follow"}},{"path":"ja/v0.5.17","metatags":{"robots":"noindex, follow"}},{"path":"en/v1.0.57","metatags":{"robots":"noindex, follow"}},{"path":"ja/v1.0.57","metatags":{"robots":"noindex, follow"}},{"path":"en/v1.1.1","metatags":{"robots":"noindex, follow"}},{"path":"ja/v1.1.1","metatags":{"robots":"noindex, follow"}},{"path":"en/v1.2.0","metatags":{"robots":"noindex, follow"}},{"path":"ja/v1.2.0","metatags":{"robots":"noindex, follow"}},{"path":"en/v2.0.2","metatags":{"robots":"noindex, follow"}},{"path":"ja/v2.0.2","metatags":{"robots":"noindex, follow"}},{"path":"en/v2.1.1","metatags":{"robots":"noindex, follow"}},{"path":"ja/v2.1.1","metatags":{"robots":"noindex, follow"}},{"path":"en/v2.1.2","metatags":{"robots":"noindex, follow"}},{"path":"ja/v2.1.2","metatags":{"robots":"noindex, follow"}},{"path":"en/v2.2.3","metatags":{"robots":"noindex, follow"}},{"path":"ja/v2.2.3","metatags":{"robots":"noindex, follow"}},{"path":"en/v2.2.5","metatags":{"robots":"noindex, follow"}},{"path":"ja/v2.2.5","metatags":{"robots":"noindex, follow"}},{"path":"en/v2.2.6","metatags":{"robots":"noindex, follow"}},{"path":"ja/v2.2.6","metatags":{"robots":"noindex, follow"}}]},"styling":{"codeblocks":{},"latex":true},"integrations":{"ga4":{"measurementId":"G-J9NMQGJS7S"},"mixpanel":{"projectToken":"ae12e973ba11b9259ca8f76fc03db5e1"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sambanova-systems","hasAudioNarration":false,"actualSubdomain":"sambanova-systems","customDomains":["docs.sambanova.ai"],"gitSource":{"type":"github","owner":"sambanova","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af6ed60e90c1f4f013ea583","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"en","tag":"SambaStack","count":593},{"language":"ja","tag":"SambaStack","count":526},{"language":"en","tag":"Hardware Administration","count":205},{"language":"en","tag":"Service Administration","count":203},{"language":"ja","tag":"ハードウェア管理","count":181},{"language":"ja","tag":"サービス管理","count":180},{"language":"en","tag":"SambaRack Manager","count":139},{"language":"ja","tag":"SambaRack Manager","count":121},{"language":"en","tag":"Model deployment","count":108},{"language":"ja","tag":"モデルデプロイ","count":92},{"language":"en","tag":"Integrations","count":81},{"language":"en","tag":"Reference Architecture","count":80},{"language":"ja","tag":"外部ツール連携","count":74},{"language":"en","tag":"Resources","count":73},{"language":"ja","tag":"リファレンスアーキテクチャ","count":70},{"language":"en","tag":"Monitoring and Observability","count":66},{"language":"ja","tag":"リソース","count":66},{"language":"ja","tag":"監視と可観測性","count":60},{"language":"en","tag":"Deploying models and bundles","count":42},{"language":"ja","tag":"プラットフォーム管理","count":35},{"language":"default","tag":"API reference","count":21},{"language":"default","tag":"Chat Agents API","count":11},{"language":"default","tag":"Inference API","count":10},{"language":"default","tag":"Subagents Interactive","count":4},{"language":"default","tag":"Subagents","count":4},{"language":"default","tag":"Audio","count":2},{"language":"default","tag":"Messages","count":2},{"language":"default","tag":"Models","count":2},{"language":"default","tag":"Chat completions","count":1},{"language":"default","tag":"Completions","count":1}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".logo-container{display:flex;align-items:center;justify-content:center;height:48px;margin-bottom:1rem}.logo-container img{max-width:100%;max-height:100%;width:auto;height:32px;object-fit:contain}.eyebrow{display:block;font-size:0.75rem;font-weight:500;text-transform:uppercase;color:#6B7280;margin-bottom:0.5rem;letter-spacing:0.05em}.page-description{display:none}.dark body,.dark p,.dark li,.dark td,.dark th,.dark h1,.dark h2,.dark h3,.dark h4,.dark h5,.dark h6{color:#E6E6E3}.dark [class*=\"muted\"],.dark [class*=\"secondary\"],.dark [class*=\"subtitle\"],.dark [class*=\"description\"]{color:#B3B3AE}.dark .card{background-color:#2e2e2e!important}#sidebar{background-color:#f3f4f6}.dark #sidebar{background-color:#202020}div:has(>#sidebar){padding-left:8px!important;padding-right:8px!important;margin-left:0!important;max-width:1680px!important}#content{max-width:880px!important}#navbar>.max-w-8xl{margin-left:0!important}#navbar div.lg\\:px-12{padding-left:24px!important}#navbar div.px-12{padding-left:24px!important}div:has(>#content-side-layout){gap:1.5rem!important}.prose p,.prose li,.prose>span,.prose .prose{font-size:14px!important;line-height:20px!important}#sidebar button svg{color:#4B5563!important;width:12px!important}.dark #sidebar button svg{color:#9CA3AF!important}#sidebar{border-right:1px solid rgba(0, 0, 0, 0.08)}.dark #sidebar{border-right:1px solid rgba(255, 255, 255, 0.08)}#sidebar button{justify-content:space-between!important}.itable{overflow-x:auto}.itable table{table-layout:fixed;width:100%}.itable th:first-child,.itable td:first-child{width:190px}@media (max-width: 640px){.itable table{table-layout:auto;width:auto;min-width:100%}.itable th:first-child,.itable td:first-child{width:auto}}.irow-hidden,.itable-hidden,.iheading-hidden{display:none}.integration-filter-input{display:block;width:100%;max-width:420px;font:inherit;font-size:14px;padding:10px 14px;border:1px solid rgba(0, 0, 0, 0.12);border-radius:8px;margin:4px 0 28px;background:transparent;color:inherit}.dark .integration-filter-input{border-color:rgba(255, 255, 255, 0.16)}"}],"page":{"pagePath":"api-reference/messages/create-a-message","slug":"/api-reference/messages/create-a-message","pageMetadata":{"title":"Create a message","description":"Anthropic Messages API compatible endpoint. Generates a model response for the supplied conversation. Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases. When `stream: true` is set, the response is a sequence of Server-Sent Events whose payloads conform to `MessageStreamEvent`; otherwise the response is a single `Message` object.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Anthropic Messages API compatible endpoint. Generates a model response for the supplied conversation. Authentication accepts either the bearer \", _jsx(_components.code, {\n children: \"Authorization: Bearer \u003ckey>\"\n }), \" header (SambaNova SDK default) or the \", _jsx(_components.code, {\n children: \"x-api-key\"\n }), \" header (Anthropic SDK default); the same API key is used in both cases. When \", _jsx(_components.code, {\n children: \"stream: true\"\n }), \" is set, the response is a sequence of Server-Sent Events whose payloads conform to \", _jsx(_components.code, {\n children: \"MessageStreamEvent\"\n }), \"; otherwise the response is a single \", _jsx(_components.code, {\n children: \"Message\"\n }), \" object.\"]\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":{},"config":{},"pageMetadata":{"title":"Create a message","description":"Anthropic Messages API compatible endpoint. Generates a model response for the supplied conversation. Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases. When `stream: true` is set, the response is a sequence of Server-Sent Events whose payloads conform to `MessageStreamEvent`; otherwise the response is a single `Message` object.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createMessage","tags":["Messages"],"summary":"Create a message","description":"Anthropic Messages API compatible endpoint. Generates a model response for the supplied conversation. Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases. When `stream: true` is set, the response is a sequence of Server-Sent Events whose payloads conform to `MessageStreamEvent`; otherwise the response is a single `Message` object.","security":["7f3e65b0-8f32-4de8-878c-f65d28aa804a","e355470b-5043-49a3-821a-ee69ca58e06f"],"parameters":["5c481b27-9378-4cc4-87f8-56cb008c3b15"],"requestBody":"f1af705b-937c-489e-952a-4bc8c1065419","responses":{"200":"35fee88b-a385-4427-84e5-a20c46092f33","400":"bcece36a-e589-4b9e-9e0e-35dc2ca6478b","401":"70a0fe31-561c-4baa-a8a7-612317e8ab2e","403":"746c8caa-89a0-4c90-9127-9923a130e1fe","404":"3489823b-f40a-40a0-9faa-2dafd78ccc21","413":"1a8a900e-3449-4446-8e36-e79c9b6e9b75","429":"aec6ba73-3422-49d7-92d5-809e00a8fa53","500":"8a57a657-15f2-4944-bdc9-87d5c3ecc8af","501":"b930d733-b068-4a1e-9d81-87835672c995","503":"70203b22-bdcc-4ce6-a9e9-4db971380899"},"x-codeSamples":[{"lang":"JavaScript","source":"import SambaNova from 'sambanova';\n\nconst client = new SambaNova({\n apiKey: process.env['SAMBANOVA_API_KEY'], // This is the default and can be omitted\n});\n\nconst message = await client.messages.create({\n max_tokens: 1024,\n messages: [{ content: 'Hello, Claude!', role: 'user' }],\n model: 'DeepSeek-V3.1',\n});\n\nconsole.log(message);"},{"lang":"Python","source":"import os\nfrom sambanova import SambaNova\n\nclient = SambaNova(\n api_key=os.environ.get(\"SAMBANOVA_API_KEY\"), # This is the default and can be omitted\n)\nfor message in client.messages.create(\n max_tokens=1024,\n messages=[{\n \"content\": \"Hello, Claude!\",\n \"role\": \"user\",\n }],\n model=\"DeepSeek-V3.1\",\n):\n print(message)"}],"method":"post","type":"path","servers":["b709db63-5fc4-4727-be6d-2a9dac334711"],"path":"/messages","baseUrlOptions":["https://api.sambanova.ai/v1"],"title":"Create a message","codeSamples":[{"lang":"JavaScript","source":"import SambaNova from 'sambanova';\n\nconst client = new SambaNova({\n apiKey: process.env['SAMBANOVA_API_KEY'], // This is the default and can be omitted\n});\n\nconst message = await client.messages.create({\n max_tokens: 1024,\n messages: [{ content: 'Hello, Claude!', role: 'user' }],\n model: 'DeepSeek-V3.1',\n});\n\nconsole.log(message);"},{"lang":"Python","source":"import os\nfrom sambanova import SambaNova\n\nclient = SambaNova(\n api_key=os.environ.get(\"SAMBANOVA_API_KEY\"), # This is the default and can be omitted\n)\nfor message in client.messages.create(\n max_tokens=1024,\n messages=[{\n \"content\": \"Hello, Claude!\",\n \"role\": \"user\",\n }],\n model=\"DeepSeek-V3.1\",\n):\n print(message)"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"5c481b27-9378-4cc4-87f8-56cb008c3b15":{"in":"header","name":"anthropic-version","required":false,"description":"Anthropic API version header sent by the official `anthropic` SDK. Accepted (any value) but currently has no effect on response shape — included for drop-in SDK compatibility.","schema":{"title":"Anthropic Version","type":"string","example":"2023-06-01","isRequired":false,"description":"Anthropic API version header sent by the official `anthropic` SDK. Accepted (any value) but currently has no effect on response shape — included for drop-in SDK compatibility.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"description":"Message creation parameters.","content":{"application/json":{"schema":{"title":"Message Create Request","type":"object","description":"Request body for `POST /messages`. Wire-compatible with the official Anthropic Messages API. Required fields: `model`, `max_tokens`, `messages`.","additionalProperties":true,"properties":{"model":{"oneOf":[{"type":"string","title":"Model","description":"The model ID to use (e.g. gpt-oss-120b). See available [models](https://docs.sambanova.ai/docs/en/models/sambacloud-models)","example":"gpt-oss-120b","isRequired":true,"uniqueKey":"model.oneOf.0","typeLabel":"string"},{"type":"string","title":"Model","description":"The model ID to use (e.g. gpt-oss-120b). See available [models](https://docs.sambanova.ai/docs/en/models/sambacloud-models)","enum":["DeepSeek-V3.1","DeepSeek-V3.2","Meta-Llama-3.3-70B-Instruct","MiniMax-M3","MiniMax-M3.1-Flash","gemma-4-31B-it","gpt-oss-120b"],"example":"gpt-oss-120b","isRequired":true,"uniqueKey":"model.oneOf.1","typeLabel":"enum\u003cstring>"}],"isRequired":true,"uniqueKey":"model","typeLabel":"string | enum\u003cstring>"},"max_tokens":{"title":"Max Tokens","type":"integer","minimum":1,"description":"Maximum number of tokens to generate. The combined input + output token count is bounded by the model's context window.","example":1024,"isRequired":true,"uniqueKey":"max_tokens","typeLabel":"integer"},"messages":{"title":"Messages","type":"array","minItems":1,"items":{"title":"Message Input Message","type":"object","description":"A turn in the conversation.","properties":{"role":{"type":"string","enum":["user","assistant"],"description":"Conversational role. `user` for the human-side turn, `assistant` for prior model output.","isRequired":true,"uniqueKey":"messages.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","title":"Message Input Text Block","description":"Plain-text segment of a message.","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"const":"text","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"Message Cache Control · object"},"citations":{"oneOf":[{"title":"Citations","type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"Citations · object[]"},{"title":"Citations","type":"null","items":{"type":"object","additionalProperties":true},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations","typeLabel":"Citations · object[] | null"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"Message Input Text Block · object"},{"type":"object","title":"Message Input Image Block","description":"Image content. Only `source.type:\"base64\"` is supported in v1; URL sources return 400.","required":["type","source"],"properties":{"type":{"type":"string","enum":["image"],"const":"image","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"source":{"oneOf":[{"type":"object","title":"Message Input Image Source (Base64)","description":"Inline image data encoded as base64.","required":["type","media_type","data"],"properties":{"type":{"type":"string","enum":["base64"],"const":"base64","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","enum":["image/jpeg","image/png","image/webp"],"description":"MIME type of the image bytes.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"data":{"type":"string","description":"Base64-encoded image bytes (no `data:` URI prefix).","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"Message Input Image Source (Base64) · object"},{"type":"object","title":"Message Input Image Source (URL)","description":"HTTPS URL pointing to an image. **Returns 400 in v1** — URL fetching is blocked. Use `type:\"base64\"` instead.","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"],"const":"url","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"Message Input Image Source (URL) · object"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source","typeLabel":"Message Input Image Source (Base64) · object | Message Input Image Source (URL) · object"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"Message Input Image Block · object"},{"type":"object","title":"Message Input Video Block","description":"Video content.","required":["type","source"],"properties":{"type":{"type":"string","enum":["video"],"const":"video","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"source":{"oneOf":[{"type":"object","title":"Message Input Video Source (Base64)","description":"Inline video data encoded as base64.","required":["type","media_type","data"],"properties":{"type":{"type":"string","enum":["base64"],"const":"base64","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","enum":["video/mp4"],"description":"MIME type of the video bytes.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"data":{"type":"string","description":"Base64-encoded video bytes (no `data:` URI prefix).","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0.data","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0","typeLabel":"Message Input Video Source (Base64) · object"},{"type":"object","title":"Message Input Video Source (URL)","description":"HTTPS URL pointing to a video.","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"],"const":"url","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.1.url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.1","typeLabel":"Message Input Video Source (URL) · object"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source","typeLabel":"Message Input Video Source (Base64) · object | Message Input Video Source (URL) · object"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"Message Input Video Block · object"},{"type":"object","title":"Message Input Tool Use Block","description":"A prior assistant turn that invoked a tool.","required":["type","id","name","input"],"properties":{"type":{"type":"string","enum":["tool_use"],"const":"tool_use","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Unique identifier for the tool call (used to correlate `tool_result`).","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the tool being invoked.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.name","typeLabel":"string"},"input":{"type":"object","additionalProperties":true,"description":"Tool inputs as a JSON object.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.input","typeLabel":"object"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"Message Input Tool Use Block · object"},{"type":"object","title":"Message Input Tool Result Block","description":"Result of a prior tool call.","required":["type","tool_use_id"],"properties":{"type":{"type":"string","enum":["tool_result"],"const":"tool_result","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","description":"ID of the `tool_use` block this result corresponds to.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.tool_use_id","typeLabel":"string"},"content":{"oneOf":[{"type":"string","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","title":"Message Input Text Block","description":"Plain-text segment of a message.","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"const":"text","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"Message Cache Control · object"},"citations":{"oneOf":[{"title":"Citations","type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"Citations · object[]"},{"title":"Citations","type":"null","items":{"type":"object","additionalProperties":true},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations","typeLabel":"Citations · object[] | null"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"Message Input Text Block · object"},{"type":"object","title":"Message Input Image Block","description":"Image content. Only `source.type:\"base64\"` is supported in v1; URL sources return 400.","required":["type","source"],"properties":{"type":{"type":"string","enum":["image"],"const":"image","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"source":{"oneOf":[{"type":"object","title":"Message Input Image Source (Base64)","description":"Inline image data encoded as base64.","required":["type","media_type","data"],"properties":{"type":{"type":"string","enum":["base64"],"const":"base64","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","enum":["image/jpeg","image/png","image/webp"],"description":"MIME type of the image bytes.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"data":{"type":"string","description":"Base64-encoded image bytes (no `data:` URI prefix).","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"Message Input Image Source (Base64) · object"},{"type":"object","title":"Message Input Image Source (URL)","description":"HTTPS URL pointing to an image. **Returns 400 in v1** — URL fetching is blocked. Use `type:\"base64\"` instead.","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"],"const":"url","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string\u003curi>"}},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"Message Input Image Source (URL) · object"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source","typeLabel":"Message Input Image Source (Base64) · object | Message Input Image Source (URL) · object"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"Message Input Image Block · object"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX]","typeLabel":"Message Input Text Block · object | Message Input Image Block · object"},"title":"Tool Result Content Array","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"(Message Input Text Block · object | Message Input Image Block · object)[]"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content","typeLabel":"string | (Message Input Text Block · object | Message Input Image Block · object)[]"},"is_error":{"oneOf":[{"type":"boolean","description":"Silently dropped in v1.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.is_error.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Silently dropped in v1.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.is_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.is_error","typeLabel":"boolean | null"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4","typeLabel":"Message Input Tool Result Block · object"},{"type":"object","title":"Message Input Server Tool Use Block","description":"Anthropic compatibility only — SambaNova does not run server-side tools. A prior assistant turn that invoked an Anthropic-hosted tool (web_search, code_execution, etc.). Accepted in conversation history (e.g. replaying an Anthropic-served session) but never originates from a SambaNova response. New `server_tool_use`-type tool definitions on outgoing requests are rejected with 400 `unsupported_tool_type`.","required":["type","id","name","input"],"properties":{"type":{"type":"string","enum":["server_tool_use"],"const":"server_tool_use","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.name","typeLabel":"string"},"input":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.input","typeLabel":"object"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5","typeLabel":"Message Input Server Tool Use Block · object"},{"type":"object","title":"Message Input Search Result Block","description":"Inline search result content. In v1 the `title`, `source`, and `content[]` text are extracted into a text block; citations are dropped.","required":["type"],"properties":{"type":{"type":"string","enum":["search_result"],"const":"search_result","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"title":{"type":"string","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.title","typeLabel":"string"},"source":{"type":"string","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.source","typeLabel":"string"},"content":{"type":"array","items":{"title":"Message Input Text Block","type":"object","description":"Plain-text segment of a message.","properties":{"type":{"type":"string","enum":["text"],"const":"text","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX].text","typeLabel":"string"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX].cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX].cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX].cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX].cache_control","typeLabel":"Message Cache Control · object"},"citations":{"oneOf":[{"title":"Citations","type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX].citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX].citations.oneOf.0","typeLabel":"Citations · object[]"},{"title":"Citations","type":"null","items":{"type":"object","additionalProperties":true},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX].citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX].citations","typeLabel":"Citations · object[] | null"}},"required":["type","text"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content.items.[INDEX]","typeLabel":"Message Input Text Block · object"},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.content","typeLabel":"Message Input Text Block · object[]"},"citations":{"oneOf":[{"type":"object","additionalProperties":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.citations.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.citations","typeLabel":"object | null"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6","typeLabel":"Message Input Search Result Block · object"},{"type":"object","title":"Message Input Web Search Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `web_search`. Echo of a prior Anthropic-served `web_search` tool call; accepted in conversation history but never originates from a SambaNova response. When present, only `title` (`url`) per result is extracted into a tool message.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["web_search_tool_result"],"const":"web_search_tool_result","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.tool_use_id","typeLabel":"string"},"content":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.content.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.content","typeLabel":"object[]"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7","typeLabel":"Message Input Web Search Tool Result Block · object"},{"type":"object","title":"Message Input Web Fetch Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `web_fetch`. Echo of a prior Anthropic-served `web_fetch` tool call; accepted in conversation history but never originates from a SambaNova response. When present, only the text content is extracted.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["web_fetch_tool_result"],"const":"web_fetch_tool_result","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content","typeLabel":"object"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8","typeLabel":"Message Input Web Fetch Tool Result Block · object"},{"type":"object","title":"Message Input Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `code_execution`. Echo of a prior Anthropic-served `code_execution` tool call; accepted in conversation history but never originates from a SambaNova response. When present, only `stdout`, `stderr`, and `return_code` are extracted; image output is dropped.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["code_execution_tool_result"],"const":"code_execution_tool_result","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content","typeLabel":"object"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9","typeLabel":"Message Input Code Execution Tool Result Block · object"},{"type":"object","title":"Message Input Bash Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side bash code execution. Echo of a prior Anthropic-served bash tool call; accepted in conversation history but never originates from a SambaNova response. Same lossy extraction as `code_execution_tool_result`.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["bash_code_execution_tool_result"],"const":"bash_code_execution_tool_result","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.content","typeLabel":"object"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10","typeLabel":"Message Input Bash Code Execution Tool Result Block · object"},{"type":"object","title":"Message Input Text Editor Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side text-editor code execution. Echo of a prior Anthropic-served text-editor tool call; accepted in conversation history but never originates from a SambaNova response. When present, only file content is extracted; metadata (line count, file type) is dropped.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["text_editor_code_execution_tool_result"],"const":"text_editor_code_execution_tool_result","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.content","typeLabel":"object"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11","typeLabel":"Message Input Text Editor Code Execution Tool Result Block · object"},{"type":"object","title":"Message Input Tool Search Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `tool_search`. Echo of a prior Anthropic-served `tool_search` tool call; accepted in conversation history but never originates from a SambaNova response. When present, an empty string is emitted to the tool message (no plain-text fields).","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["tool_search_tool_result"],"const":"tool_search_tool_result","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.content","typeLabel":"object"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12","typeLabel":"Message Input Tool Search Tool Result Block · object"},{"type":"object","title":"Message Input Thinking Block","description":"Extended-reasoning trace from a prior assistant turn.","required":["type","thinking","signature"],"properties":{"type":{"type":"string","enum":["thinking"],"const":"thinking","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"thinking":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.thinking","typeLabel":"string"},"signature":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.signature","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13","typeLabel":"Message Input Thinking Block · object"},{"type":"object","title":"Message Input Redacted Thinking Block","description":"Anthropic compatibility only — SambaNova does not produce encrypted thinking output. Echo of a prior Anthropic-served response where `thinking.display:\"omitted\"` was set. Accepted in conversation history but never originates from a SambaNova response. Silently dropped on input.","required":["type","data"],"properties":{"type":{"type":"string","enum":["redacted_thinking"],"const":"redacted_thinking","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"},"data":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.data","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14","typeLabel":"Message Input Redacted Thinking Block · object"},{"type":"object","title":"Message Input Container Upload Block","description":"Anthropic compatibility only — SambaNova does not produce container_upload blocks (these come from Anthropic's server-side `code_execution` tool). Accepted in conversation history but never originates from a SambaNova response. Silently dropped on input.","required":["type","file_id"],"properties":{"type":{"type":"string","enum":["container_upload"],"const":"container_upload","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.file_id","typeLabel":"string"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15","typeLabel":"Message Input Container Upload Block · object"},{"type":"object","title":"Message Input Document Block","description":"PDF or document content. **Returns 400** — no document-extraction pipeline available.","required":["type","source"],"properties":{"type":{"type":"string","enum":["document"],"const":"document","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"},"source":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.source","typeLabel":"object"},"title":{"oneOf":[{"type":"string","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.title.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.title","typeLabel":"string | null"},"context":{"oneOf":[{"type":"string","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.context.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.context","typeLabel":"string | null"},"citations":{"oneOf":[{"type":"object","additionalProperties":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.citations.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.citations","typeLabel":"object | null"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.cache_control","typeLabel":"Message Cache Control · object"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16","typeLabel":"Message Input Document Block · object"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"Message Input Text Block · object | Message Input Image Block · object | Message Input Video Block · object | Message Input Tool Use Block · object | Message Input Tool Result Block · object | Message Input Server Tool Use Block · object | Message Input Search Result Block · object | Message Input Web Search Tool Result Block · object | Message Input Web Fetch Tool Result Block · object | Message Input Code Execution Tool Result Block · object | Message Input Bash Code Execution Tool Result Block · object | Message Input Text Editor Code Execution Tool Result Block · object | Message Input Tool Search Tool Result Block · object | Message Input Thinking Block · object | Message Input Redacted Thinking Block · object | Message Input Container Upload Block · object | Message Input Document Block · object"},"title":"Content Block Array","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1","typeLabel":"(Message Input Text Block · object | Message Input Image Block · object | Message Input Video Block · object | Message Input Tool Use Block · object | Message Input Tool Result Block · object | Message Input Server Tool Use Block · object | Message Input Search Result Block · object | Message Input Web Search Tool Result Block · object | Message Input Web Fetch Tool Result Block · object | Message Input Code Execution Tool Result Block · object | Message Input Bash Code Execution Tool Result Block · object | Message Input Text Editor Code Execution Tool Result Block · object | Message Input Tool Search Tool Result Block · object | Message Input Thinking Block · object | Message Input Redacted Thinking Block · object | Message Input Container Upload Block · object | Message Input Document Block · object)[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content","typeLabel":"string | (Message Input Text Block · object | Message Input Image Block · object | Message Input Video Block · object | Message Input Tool Use Block · object | Message Input Tool Result Block · object | Message Input Server Tool Use Block · object | Message Input Search Result Block · object | Message Input Web Search Tool Result Block · object | Message Input Web Fetch Tool Result Block · object | Message Input Code Execution Tool Result Block · object | Message Input Bash Code Execution Tool Result Block · object | Message Input Text Editor Code Execution Tool Result Block · object | Message Input Tool Search Tool Result Block · object | Message Input Thinking Block · object | Message Input Redacted Thinking Block · object | Message Input Container Upload Block · object | Message Input Document Block · object)[]"}},"required":["role","content"],"uniqueKey":"messages.items.[INDEX]","typeLabel":"Message Input Message · object"},"description":"Conversation turns.","isRequired":true,"uniqueKey":"messages","typeLabel":"Message Input Message · object[]"},"system":{"oneOf":[{"type":"string","title":"Message System Prompt","description":"System prompt for the conversation. Accepts either a single string (most common) or an array of text blocks (used when individual segments need `cache_control` markers). Multiple text blocks are joined with newlines and prepended to the conversation as a `role: system` message.","uniqueKey":"system.oneOf.0","typeLabel":"string"},{"type":"array","items":{"title":"Message System Text Block","type":"object","description":"A text segment within a structured `system` prompt array. Multiple text blocks are concatenated (with newlines) and prepended to the conversation as a `role: system` message at the chat-completions layer.","properties":{"type":{"const":"text","enum":["text"],"title":"Type","type":"string","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"title":"Text","type":"string","description":"Plain-text content of the system prompt segment.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].text","typeLabel":"string"},"cache_control":{"title":"Message Cache Control","type":"object","description":"Marks the preceding content block (or system text block) as a prompt- cache breakpoint. Marker positions are collected by the adapter; their wiring into the router's longest-prefix matching **In v1**: position is recorded; the `ttl` value is ignored.","properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"string | null"}},"required":["type"],"uniqueKey":"system.oneOf.1.items.[INDEX].cache_control","typeLabel":"Message Cache Control · object"},"citations":{"oneOf":[{"title":"Citations","type":"array","description":"Optional citations. **In v1**: silently dropped","items":{"type":"object","additionalProperties":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0","typeLabel":"Citations · object[]"},{"title":"Citations","type":"null","description":"Optional citations. **In v1**: silently dropped","items":{"type":"object","additionalProperties":true},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"system.oneOf.1.items.[INDEX].citations","typeLabel":"Citations · object[] | null"}},"required":["type","text"],"uniqueKey":"system.oneOf.1.items.[INDEX]","typeLabel":"Message System Text Block · object"},"title":"System Text Block Array","description":"System prompt for the conversation. Accepts either a single string (most common) or an array of text blocks (used when individual segments need `cache_control` markers). Multiple text blocks are joined with newlines and prepended to the conversation as a `role: system` message.","uniqueKey":"system.oneOf.1","typeLabel":"Message System Text Block · object[]"}],"uniqueKey":"system","typeLabel":"string | Message System Text Block · object[]"},"temperature":{"oneOf":[{"title":"Temperature","type":"number","minimum":0,"maximum":2,"description":"Sampling temperature in `[0.0, 2.0]`. Higher values produce more random output, lower values more deterministic. Adjust only one of `temperature`, `top_p`, `top_k`.","example":1,"uniqueKey":"temperature.oneOf.0","typeLabel":"number"},{"title":"Temperature","type":"null","minimum":0,"maximum":2,"description":"Sampling temperature in `[0.0, 2.0]`. Higher values produce more random output, lower values more deterministic. Adjust only one of `temperature`, `top_p`, `top_k`.","example":1,"uniqueKey":"temperature.oneOf.1","typeLabel":"null"}],"uniqueKey":"temperature","typeLabel":"number | null"},"top_p":{"oneOf":[{"title":"Top P","type":"number","minimum":0,"maximum":1,"description":"Nucleus sampling. Considers tokens with cumulative probability mass up to `top_p`.","uniqueKey":"top_p.oneOf.0","typeLabel":"number"},{"title":"Top P","type":"null","minimum":0,"maximum":1,"description":"Nucleus sampling. Considers tokens with cumulative probability mass up to `top_p`.","uniqueKey":"top_p.oneOf.1","typeLabel":"null"}],"uniqueKey":"top_p","typeLabel":"number | null"},"top_k":{"oneOf":[{"title":"Top K","type":"integer","minimum":0,"description":"Top-k sampling. Considers only the K most likely tokens at each step. Set to 0 to disable.","uniqueKey":"top_k.oneOf.0","typeLabel":"integer"},{"title":"Top K","type":"null","minimum":0,"description":"Top-k sampling. Considers only the K most likely tokens at each step. Set to 0 to disable.","uniqueKey":"top_k.oneOf.1","typeLabel":"null"}],"uniqueKey":"top_k","typeLabel":"integer | null"},"stop_sequences":{"oneOf":[{"title":"Stop Sequences","type":"array","items":{"type":"string","uniqueKey":"stop_sequences.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Custom strings that, when generated, cause the model to stop.","uniqueKey":"stop_sequences.oneOf.0","typeLabel":"string[]"},{"title":"Stop Sequences","type":"null","items":{"type":"string"},"description":"Custom strings that, when generated, cause the model to stop.","uniqueKey":"stop_sequences.oneOf.1","typeLabel":"null"}],"uniqueKey":"stop_sequences","typeLabel":"string[] | null"},"stream":{"oneOf":[{"title":"Stream","type":"boolean","default":false,"description":"If true, the response is a sequence of Server-Sent Events whose payloads conform to `MessageStreamEvent`.","uniqueKey":"stream.oneOf.0","typeLabel":"boolean"},{"title":"Stream","type":"null","default":false,"description":"If true, the response is a sequence of Server-Sent Events whose payloads conform to `MessageStreamEvent`.","uniqueKey":"stream.oneOf.1","typeLabel":"null"}],"uniqueKey":"stream","typeLabel":"boolean | null"},"metadata":{"title":"Message Metadata","type":"object","description":"Free-form metadata attached to the request. Currently only `user_id` Additional fields are accepted but ignored.","properties":{"user_id":{"oneOf":[{"title":"User Id","type":"string","description":"External identifier for the end-user making the request. Mapped internally to the Chat Completions `user` field.","uniqueKey":"metadata.user_id.oneOf.0","typeLabel":"string"},{"title":"User Id","type":"null","description":"External identifier for the end-user making the request. Mapped internally to the Chat Completions `user` field.","uniqueKey":"metadata.user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata.user_id","typeLabel":"string | null"}},"additionalProperties":true,"uniqueKey":"metadata","typeLabel":"Message Metadata · object"},"thinking":{"oneOf":[{"type":"object","title":"Message Thinking Disabled","description":"Disables Anthropic-style extended thinking. **In v1**: silently accepted as a no-op","required":["type"],"properties":{"type":{"title":"Type","type":"string","enum":["disabled"],"const":"disabled","isRequired":true,"uniqueKey":"thinking.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"thinking.oneOf.0","typeLabel":"Message Thinking Disabled · object"},{"type":"object","title":"Message Thinking Enabled","description":"Enables Anthropic-style extended thinking with a fixed budget. **In v1**: returns a 400 `invalid_request_error` (`unsupported_parameter`).","required":["type","budget_tokens"],"properties":{"type":{"title":"Type","type":"string","enum":["enabled"],"const":"enabled","isRequired":true,"uniqueKey":"thinking.oneOf.1.type","typeLabel":"enum\u003cstring>"},"budget_tokens":{"title":"Budget Tokens","type":"integer","minimum":1024,"description":"Maximum tokens the model may spend on extended thinking before producing the final answer.","isRequired":true,"uniqueKey":"thinking.oneOf.1.budget_tokens","typeLabel":"integer"}},"uniqueKey":"thinking.oneOf.1","typeLabel":"Message Thinking Enabled · object"},{"type":"object","title":"Message Thinking Adaptive","description":"Enables Anthropic-style adaptive extended thinking. **In v1**: returns a 400 `invalid_request_error` (`unsupported_parameter`).","required":["type"],"properties":{"type":{"title":"Type","type":"string","enum":["adaptive"],"const":"adaptive","isRequired":true,"uniqueKey":"thinking.oneOf.2.type","typeLabel":"enum\u003cstring>"},"budget_tokens":{"oneOf":[{"title":"Budget Tokens","type":"integer","minimum":1024,"description":"Optional upper bound on tokens spent on adaptive thinking. When omitted, the backend chooses based on prompt complexity.","uniqueKey":"thinking.oneOf.2.budget_tokens.oneOf.0","typeLabel":"integer"},{"title":"Budget Tokens","type":"null","minimum":1024,"description":"Optional upper bound on tokens spent on adaptive thinking. When omitted, the backend chooses based on prompt complexity.","uniqueKey":"thinking.oneOf.2.budget_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.2.budget_tokens","typeLabel":"integer | null"}},"uniqueKey":"thinking.oneOf.2","typeLabel":"Message Thinking Adaptive · object"}],"uniqueKey":"thinking","typeLabel":"Message Thinking Disabled · object | Message Thinking Enabled · object | Message Thinking Adaptive · object"},"tools":{"oneOf":[{"title":"Tools","type":"array","items":{"title":"Message Tool","type":"object","description":"User-defined function tool definition. Only custom function tools are supported (Anthropic's `type:\"custom\"` style or the absent-type Beta style). Anthropic-hosted server tools (`web_search`, `code_execution`, `bash`, `text_editor`, `memory`, `tool_search` variants) return 400 `unsupported_tool_type` if sent.","properties":{"name":{"type":"string","description":"Tool name. Must match `^[a-zA-Z0-9_-]+$`.","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].name","typeLabel":"string"},"type":{"oneOf":[{"type":"string","enum":["custom"],"description":"Tool-type discriminator. May be omitted (defaults to custom) or set to `custom`. Other values return 400 `unsupported_tool_type`.","uniqueKey":"tools.oneOf.0.items.[INDEX].type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["custom"],"description":"Tool-type discriminator. May be omitted (defaults to custom) or set to `custom`. Other values return 400 `unsupported_tool_type`.","uniqueKey":"tools.oneOf.0.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring> | null"},"description":{"oneOf":[{"type":"string","description":"Human-readable description of when the tool should be used.","uniqueKey":"tools.oneOf.0.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Human-readable description of when the tool should be used.","uniqueKey":"tools.oneOf.0.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].description","typeLabel":"string | null"},"input_schema":{"oneOf":[{"type":"object","additionalProperties":true,"description":"JSON Schema describing the tool's expected input. Required by the Anthropic spec; accepted as optional by SambaNova.","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"JSON Schema describing the tool's expected input. Required by the Anthropic spec; accepted as optional by SambaNova.","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema","typeLabel":"object | null"},"cache_control":{"oneOf":[{"type":"object","title":"Message Cache Control","description":"Silently dropped on tool definitions (only content and system cache markers participate in caching).","required":["type"],"properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic.","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].cache_control.oneOf.0.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"tools.oneOf.0.items.[INDEX].cache_control.oneOf.0.ttl.oneOf.0","typeLabel":"string"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1","uniqueKey":"tools.oneOf.0.items.[INDEX].cache_control.oneOf.0.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].cache_control.oneOf.0.ttl","typeLabel":"string | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].cache_control.oneOf.0","typeLabel":"Message Cache Control · object"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].cache_control.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].cache_control","typeLabel":"Message Cache Control · object | null"},"input_examples":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].input_examples.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Silently dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].input_examples.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","additionalProperties":true},"description":"Silently dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].input_examples.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_examples","typeLabel":"object[] | null"},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].allowed_callers.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Silently dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].allowed_callers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Silently dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].allowed_callers.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].allowed_callers","typeLabel":"string[] | null"},"defer_loading":{"oneOf":[{"type":"boolean","description":"Silently dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].defer_loading.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Silently dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].defer_loading.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].defer_loading","typeLabel":"boolean | null"},"eager_input_streaming":{"oneOf":[{"type":"boolean","description":"Silently dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].eager_input_streaming.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Silently dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].eager_input_streaming.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].eager_input_streaming","typeLabel":"boolean | null"},"strict":{"oneOf":[{"type":"boolean","description":"Silently dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Silently dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].strict","typeLabel":"boolean | null"}},"required":["name"],"uniqueKey":"tools.oneOf.0.items.[INDEX]","typeLabel":"Message Tool · object"},"description":"Tool definitions the model may call.","uniqueKey":"tools.oneOf.0","typeLabel":"Message Tool · object[]"},{"title":"Tools","type":"null","items":{"title":"Message Tool","type":"object","description":"User-defined function tool definition. Only custom function tools are supported (Anthropic's `type:\"custom\"` style or the absent-type Beta style). Anthropic-hosted server tools (`web_search`, `code_execution`, `bash`, `text_editor`, `memory`, `tool_search` variants) return 400 `unsupported_tool_type` if sent.","properties":{"name":{"type":"string","description":"Tool name. Must match `^[a-zA-Z0-9_-]+$`."},"type":{"oneOf":[{"type":"string","enum":["custom"],"description":"Tool-type discriminator. May be omitted (defaults to custom) or set to `custom`. Other values return 400 `unsupported_tool_type`."},{"type":"null","enum":["custom"],"description":"Tool-type discriminator. May be omitted (defaults to custom) or set to `custom`. Other values return 400 `unsupported_tool_type`."}]},"description":{"oneOf":[{"type":"string","description":"Human-readable description of when the tool should be used."},{"type":"null","description":"Human-readable description of when the tool should be used."}]},"input_schema":{"oneOf":[{"type":"object","additionalProperties":true,"description":"JSON Schema describing the tool's expected input. Required by the Anthropic spec; accepted as optional by SambaNova."},{"type":"null","additionalProperties":true,"description":"JSON Schema describing the tool's expected input. Required by the Anthropic spec; accepted as optional by SambaNova."}]},"cache_control":{"oneOf":[{"type":"object","title":"Message Cache Control","description":"Silently dropped on tool definitions (only content and system cache markers participate in caching).","required":["type"],"properties":{"type":{"title":"Type","type":"string","enum":["ephemeral"],"const":"ephemeral","description":"Cache breakpoint type. Only `ephemeral` is supported by Anthropic."},"ttl":{"oneOf":[{"title":"TTL","type":"string","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1"},{"title":"TTL","type":"null","description":"Optional time-to-live hint (e.g. `\"5m\"`, `\"1h\"`). **Currently ignored** in v1"}]}}},{"type":"null"}]},"input_examples":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Silently dropped."},{"type":"null","items":{"type":"object","additionalProperties":true},"description":"Silently dropped."}]},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Silently dropped."},{"type":"null","items":{"type":"string"},"description":"Silently dropped."}]},"defer_loading":{"oneOf":[{"type":"boolean","description":"Silently dropped."},{"type":"null","description":"Silently dropped."}]},"eager_input_streaming":{"oneOf":[{"type":"boolean","description":"Silently dropped."},{"type":"null","description":"Silently dropped."}]},"strict":{"oneOf":[{"type":"boolean","description":"Silently dropped."},{"type":"null","description":"Silently dropped."}]}},"required":["name"]},"description":"Tool definitions the model may call.","uniqueKey":"tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools","typeLabel":"Message Tool · object[] | null"},"tool_choice":{"oneOf":[{"type":"object","title":"Message Tool Choice (Auto)","description":"Controls how the model selects from `tools`.","required":["type"],"properties":{"type":{"type":"string","enum":["auto"],"const":"auto","isRequired":true,"uniqueKey":"tool_choice.oneOf.0.type","typeLabel":"enum\u003cstring>"},"disable_parallel_tool_use":{"oneOf":[{"type":"boolean","description":"Silently dropped.","uniqueKey":"tool_choice.oneOf.0.disable_parallel_tool_use.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Silently dropped.","uniqueKey":"tool_choice.oneOf.0.disable_parallel_tool_use.oneOf.1","typeLabel":"null"}],"uniqueKey":"tool_choice.oneOf.0.disable_parallel_tool_use","typeLabel":"boolean | null"}},"uniqueKey":"tool_choice.oneOf.0","typeLabel":"Message Tool Choice (Auto) · object"},{"type":"object","title":"Message Tool Choice (Any)","description":"Controls how the model selects from `tools`.","required":["type"],"properties":{"type":{"type":"string","enum":["any"],"const":"any","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.type","typeLabel":"enum\u003cstring>"},"disable_parallel_tool_use":{"oneOf":[{"type":"boolean","description":"Silently dropped.","uniqueKey":"tool_choice.oneOf.1.disable_parallel_tool_use.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Silently dropped.","uniqueKey":"tool_choice.oneOf.1.disable_parallel_tool_use.oneOf.1","typeLabel":"null"}],"uniqueKey":"tool_choice.oneOf.1.disable_parallel_tool_use","typeLabel":"boolean | null"}},"uniqueKey":"tool_choice.oneOf.1","typeLabel":"Message Tool Choice (Any) · object"},{"type":"object","title":"Message Tool Choice (None)","description":"Controls how the model selects from `tools`.","required":["type"],"properties":{"type":{"type":"string","enum":["none"],"const":"none","isRequired":true,"uniqueKey":"tool_choice.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tool_choice.oneOf.2","typeLabel":"Message Tool Choice (None) · object"},{"type":"object","title":"Message Tool Choice (Tool)","description":"Controls how the model selects from `tools`.","required":["type","name"],"properties":{"type":{"type":"string","enum":["tool"],"const":"tool","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Name of the required tool.","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.name","typeLabel":"string"},"disable_parallel_tool_use":{"oneOf":[{"type":"boolean","description":"Silently dropped.","uniqueKey":"tool_choice.oneOf.3.disable_parallel_tool_use.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Silently dropped.","uniqueKey":"tool_choice.oneOf.3.disable_parallel_tool_use.oneOf.1","typeLabel":"null"}],"uniqueKey":"tool_choice.oneOf.3.disable_parallel_tool_use","typeLabel":"boolean | null"}},"uniqueKey":"tool_choice.oneOf.3","typeLabel":"Message Tool Choice (Tool) · object"},{"type":"null","uniqueKey":"tool_choice.oneOf.4","typeLabel":"null"}],"uniqueKey":"tool_choice","typeLabel":"Message Tool Choice (Auto) · object | Message Tool Choice (Any) · object | Message Tool Choice (None) · object | Message Tool Choice (Tool) · object | null"},"service_tier":{"oneOf":[{"title":"Service Tier","type":"string","enum":["auto","standard_only"],"description":"Service-tier preference. **In v1**: silently dropped","uniqueKey":"service_tier.oneOf.0","typeLabel":"enum\u003cstring>"},{"title":"Service Tier","type":"null","enum":["auto","standard_only"],"description":"Service-tier preference. **In v1**: silently dropped","uniqueKey":"service_tier.oneOf.1","typeLabel":"null"}],"uniqueKey":"service_tier","typeLabel":"enum\u003cstring> | null"},"container":{"oneOf":[{"title":"Container","type":"string","description":"Existing code-execution container ID to reuse. **In v1**: silently dropped","uniqueKey":"container.oneOf.0","typeLabel":"string"},{"title":"Container","type":"null","description":"Existing code-execution container ID to reuse. **In v1**: silently dropped","uniqueKey":"container.oneOf.1","typeLabel":"null"}],"uniqueKey":"container","typeLabel":"string | null"}},"required":["model","max_tokens","messages"],"example":{"model":"DeepSeek-V3.1","max_tokens":1024,"messages":[{"role":"user","content":"Hello, Claude!"}]},"uniqueKey":"","typeLabel":"Message Create Request · object"},"examples":{"Example":{"title":"Example","value":{"model":"DeepSeek-V3.1","max_tokens":1024,"messages":[{"role":"user","content":"Hello, Claude!"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"35fee88b-a385-4427-84e5-a20c46092f33":{"description":"Successful response. Returns a `Message` object (non-streaming), or a stream of Server-Sent Events whose payloads conform to `MessageStreamEvent` ending with a `message_stop` event (when `stream: true`).","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Message","description":"Non-streaming response from `POST /messages`. Wire-compatible with the official Anthropic Messages API.","required":["id","type","role","content","model","stop_reason","usage"],"properties":{"id":{"type":"string","description":"Unique identifier for this message.","isRequired":true,"uniqueKey":"oneOf.0.id","typeLabel":"string"},"type":{"type":"string","enum":["message"],"const":"message","isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"enum\u003cstring>"},"role":{"type":"string","enum":["assistant"],"const":"assistant","isRequired":true,"uniqueKey":"oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"type":"array","items":{"oneOf":[{"type":"object","title":"Message Output Text Block","description":"Plain-text segment of the model's response.","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"const":"text","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"citations":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Not emitted in v1.","uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","additionalProperties":true},"description":"Not emitted in v1.","uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.0.citations","typeLabel":"object[] | null"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.0","typeLabel":"Message Output Text Block · object"},{"type":"object","title":"Message Output Tool Use Block","description":"Tool call generated by the model.","required":["type","id","name","input"],"properties":{"type":{"type":"string","enum":["tool_use"],"const":"tool_use","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Unique identifier for this tool call.","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the tool being called.","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.1.name","typeLabel":"string"},"input":{"type":"object","additionalProperties":true,"description":"Tool inputs as a JSON object.","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.1.input","typeLabel":"object"},"caller":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Anthropic routing metadata. Always `null` in SambaNova responses.","uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.1.caller.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Anthropic routing metadata. Always `null` in SambaNova responses.","uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.1.caller.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.1.caller","typeLabel":"object | null"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.1","typeLabel":"Message Output Tool Use Block · object"},{"type":"object","title":"Message Output Thinking Block","description":"Extended-reasoning trace from the model. Emitted by reasoning models.","required":["type","thinking"],"properties":{"type":{"type":"string","enum":["thinking"],"const":"thinking","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"thinking":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.2.thinking","typeLabel":"string"},"signature":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.2.signature.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.2.signature.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.2.signature","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.2","typeLabel":"Message Output Thinking Block · object"},{"type":"object","title":"Message Output Redacted Thinking Block","description":"Anthropic compatibility only — SambaNova does not produce encrypted thinking output. Never emitted in responses.","required":["type","data"],"properties":{"type":{"type":"string","enum":["redacted_thinking"],"const":"redacted_thinking","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.3.data","typeLabel":"string"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.3","typeLabel":"Message Output Redacted Thinking Block · object"},{"type":"object","title":"Message Output Server Tool Use Block","description":"Anthropic compatibility only — SambaNova does not run server-side tools. Never emitted in responses; defined for Anthropic SDK type-parity.","required":["type","id","name","input"],"properties":{"type":{"type":"string","enum":["server_tool_use"],"const":"server_tool_use","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.4.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.4.name","typeLabel":"string"},"input":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.4.input","typeLabel":"object"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.4","typeLabel":"Message Output Server Tool Use Block · object"},{"type":"object","title":"Message Output Web Search Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `web_search`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["web_search_tool_result"],"const":"web_search_tool_result","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.5.tool_use_id","typeLabel":"string"},"content":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.5.content.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.5.content","typeLabel":"object[]"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.5","typeLabel":"Message Output Web Search Tool Result Block · object"},{"type":"object","title":"Message Output Web Fetch Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `web_fetch`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["web_fetch_tool_result"],"const":"web_fetch_tool_result","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.6.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.6.content","typeLabel":"object"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.6","typeLabel":"Message Output Web Fetch Tool Result Block · object"},{"type":"object","title":"Message Output Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `code_execution`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["code_execution_tool_result"],"const":"code_execution_tool_result","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.7.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.7.content","typeLabel":"object"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.7","typeLabel":"Message Output Code Execution Tool Result Block · object"},{"type":"object","title":"Message Output Bash Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side bash code execution. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["bash_code_execution_tool_result"],"const":"bash_code_execution_tool_result","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.8.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.8.content","typeLabel":"object"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.8","typeLabel":"Message Output Bash Code Execution Tool Result Block · object"},{"type":"object","title":"Message Output Text Editor Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side text-editor code execution. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["text_editor_code_execution_tool_result"],"const":"text_editor_code_execution_tool_result","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.9.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.9.content","typeLabel":"object"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.9","typeLabel":"Message Output Text Editor Code Execution Tool Result Block · object"},{"type":"object","title":"Message Output Tool Search Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `tool_search`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["tool_search_tool_result"],"const":"tool_search_tool_result","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.10.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.10.content","typeLabel":"object"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.10","typeLabel":"Message Output Tool Search Tool Result Block · object"},{"type":"object","title":"Message Output Container Upload Block","description":"Anthropic compatibility only — SambaNova does not produce container_upload blocks (these come from Anthropic's server-side `code_execution` tool). Never emitted in responses.","required":["type","file_id"],"properties":{"type":{"type":"string","enum":["container_upload"],"const":"container_upload","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.11.file_id","typeLabel":"string"}},"uniqueKey":"oneOf.0.content.items.[INDEX].oneOf.11","typeLabel":"Message Output Container Upload Block · object"}],"uniqueKey":"oneOf.0.content.items.[INDEX]","typeLabel":"Message Output Text Block · object | Message Output Tool Use Block · object | Message Output Thinking Block · object | Message Output Redacted Thinking Block · object | Message Output Server Tool Use Block · object | Message Output Web Search Tool Result Block · object | Message Output Web Fetch Tool Result Block · object | Message Output Code Execution Tool Result Block · object | Message Output Bash Code Execution Tool Result Block · object | Message Output Text Editor Code Execution Tool Result Block · object | Message Output Tool Search Tool Result Block · object | Message Output Container Upload Block · object"},"isRequired":true,"uniqueKey":"oneOf.0.content","typeLabel":"(Message Output Text Block · object | Message Output Tool Use Block · object | Message Output Thinking Block · object | Message Output Redacted Thinking Block · object | Message Output Server Tool Use Block · object | Message Output Web Search Tool Result Block · object | Message Output Web Fetch Tool Result Block · object | Message Output Code Execution Tool Result Block · object | Message Output Bash Code Execution Tool Result Block · object | Message Output Text Editor Code Execution Tool Result Block · object | Message Output Tool Search Tool Result Block · object | Message Output Container Upload Block · object)[]"},"model":{"type":"string","description":"Model that produced the response.","isRequired":true,"uniqueKey":"oneOf.0.model","typeLabel":"string"},"stop_reason":{"oneOf":[{"type":"string","title":"Message Stop Reason","description":"Reason the model stopped generating. SambaNova emits `end_turn`, `max_tokens`, `tool_use`, and `stop_sequence`. The remaining values are defined for Anthropic SDK type-parity but never returned: `pause_turn` (server-tool loop limit, not produced); `refusal` (content filter, not exposed); `model_context_window_exceeded` (folded to `max_tokens`).","enum":["end_turn","max_tokens","tool_use","pause_turn","refusal","stop_sequence","model_context_window_exceeded"],"isRequired":true,"uniqueKey":"oneOf.0.stop_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.0.stop_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.stop_reason","typeLabel":"enum\u003cstring> | null"},"usage":{"title":"Message Usage","type":"object","description":"Token accounting for the request.","properties":{"input_tokens":{"type":"integer","description":"Total tokens in the prompt (system + messages + tools).","isRequired":true,"uniqueKey":"oneOf.0.usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Total tokens generated by the model.","isRequired":true,"uniqueKey":"oneOf.0.usage.output_tokens","typeLabel":"integer"},"cache_creation_input_tokens":{"oneOf":[{"type":"integer","description":"Tokens written to prompt cache. Absent in v1; emitted once prompt caching wiring lands (CP-2897).","uniqueKey":"oneOf.0.usage.cache_creation_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Tokens written to prompt cache. Absent in v1; emitted once prompt caching wiring lands (CP-2897).","uniqueKey":"oneOf.0.usage.cache_creation_input_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.usage.cache_creation_input_tokens","typeLabel":"integer | null"},"cache_read_input_tokens":{"oneOf":[{"type":"integer","description":"Tokens read from prompt cache. Absent in v1; emitted once prompt caching wiring lands (CP-2897).","uniqueKey":"oneOf.0.usage.cache_read_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Tokens read from prompt cache. Absent in v1; emitted once prompt caching wiring lands (CP-2897).","uniqueKey":"oneOf.0.usage.cache_read_input_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.usage.cache_read_input_tokens","typeLabel":"integer | null"},"server_tool_use":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Server-tool usage metrics (e.g. `web_search_requests`). Anthropic compatibility only — SambaNova does not run server tools, so this field is never emitted.","uniqueKey":"oneOf.0.usage.server_tool_use.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Server-tool usage metrics (e.g. `web_search_requests`). Anthropic compatibility only — SambaNova does not run server tools, so this field is never emitted.","uniqueKey":"oneOf.0.usage.server_tool_use.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.usage.server_tool_use","typeLabel":"object | null"},"service_tier":{"oneOf":[{"type":"string","description":"Service tier that processed the request. Anthropic compatibility only — SambaNova is single-tier and never emits this field.","uniqueKey":"oneOf.0.usage.service_tier.oneOf.0","typeLabel":"string"},{"type":"null","description":"Service tier that processed the request. Anthropic compatibility only — SambaNova is single-tier and never emits this field.","uniqueKey":"oneOf.0.usage.service_tier.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.usage.service_tier","typeLabel":"string | null"},"cache_creation":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Anthropic SDK alias for cache write metrics. Always `null` in SambaNova responses; use `cache_creation_input_tokens` instead.","uniqueKey":"oneOf.0.usage.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Anthropic SDK alias for cache write metrics. Always `null` in SambaNova responses; use `cache_creation_input_tokens` instead.","uniqueKey":"oneOf.0.usage.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.usage.cache_creation","typeLabel":"object | null"},"inference_geo":{"oneOf":[{"type":"string","description":"Geographic region that served the request. Anthropic compatibility only - SambaNova does not expose geo routing, always `null`.","uniqueKey":"oneOf.0.usage.inference_geo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Geographic region that served the request. Anthropic compatibility only - SambaNova does not expose geo routing, always `null`.","uniqueKey":"oneOf.0.usage.inference_geo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.usage.inference_geo","typeLabel":"string | null"}},"required":["input_tokens","output_tokens"],"isRequired":true,"uniqueKey":"oneOf.0.usage","typeLabel":"Message Usage · object"},"stop_sequence":{"oneOf":[{"type":"string","description":"The matched stop sequence that triggered termination. Present when `stop_reason` is `stop_sequence`; `null` otherwise.","uniqueKey":"oneOf.0.stop_sequence.oneOf.0","typeLabel":"string"},{"type":"null","description":"The matched stop sequence that triggered termination. Present when `stop_reason` is `stop_sequence`; `null` otherwise.","uniqueKey":"oneOf.0.stop_sequence.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.stop_sequence","typeLabel":"string | null"},"stop_details":{"oneOf":[{"type":"object","title":"Message Stop Details","description":"Refusal stop details. Anthropic compatibility only — `refusal` is never emitted as a stop_reason by SambaNova (content filtering is not exposed at the API layer).","required":["type"],"properties":{"type":{"type":"string","enum":["refusal"],"const":"refusal","isRequired":true,"uniqueKey":"oneOf.0.stop_details.oneOf.0.type","typeLabel":"enum\u003cstring>"},"category":{"type":"string","enum":["cyber","bio"],"uniqueKey":"oneOf.0.stop_details.oneOf.0.category","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.stop_details.oneOf.0","typeLabel":"Message Stop Details · object"},{"type":"null","uniqueKey":"oneOf.0.stop_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.stop_details","typeLabel":"Message Stop Details · object | null"},"container":{"oneOf":[{"type":"object","title":"Message Container","description":"Code-execution container reference. Anthropic compatibility only — SambaNova does not run server-side code execution, so this field is never emitted on responses.","required":["id","expires_at"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.container.oneOf.0.id","typeLabel":"string"},"expires_at":{"type":"string","description":"ISO-8601 timestamp.","isRequired":true,"uniqueKey":"oneOf.0.container.oneOf.0.expires_at","typeLabel":"string"}},"uniqueKey":"oneOf.0.container.oneOf.0","typeLabel":"Message Container · object"},{"type":"null","uniqueKey":"oneOf.0.container.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.container","typeLabel":"Message Container · object | null"}},"uniqueKey":"oneOf.0","typeLabel":"Message · object"},{"type":"object","title":"Message Start Event","description":"First event of a stream. Carries the initial Message envelope (empty `content[]`, `stop_reason: null`) and token usage from prompt processing.","required":["type","message"],"properties":{"type":{"type":"string","enum":["message_start"],"const":"message_start","isRequired":true,"uniqueKey":"oneOf.1.type","typeLabel":"enum\u003cstring>"},"message":{"title":"Message","type":"object","description":"Non-streaming response from `POST /messages`. Wire-compatible with the official Anthropic Messages API.","properties":{"id":{"type":"string","description":"Unique identifier for this message.","isRequired":true,"uniqueKey":"oneOf.1.message.id","typeLabel":"string"},"type":{"type":"string","enum":["message"],"const":"message","isRequired":true,"uniqueKey":"oneOf.1.message.type","typeLabel":"enum\u003cstring>"},"role":{"type":"string","enum":["assistant"],"const":"assistant","isRequired":true,"uniqueKey":"oneOf.1.message.role","typeLabel":"enum\u003cstring>"},"content":{"type":"array","items":{"oneOf":[{"type":"object","title":"Message Output Text Block","description":"Plain-text segment of the model's response.","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"const":"text","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"citations":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Not emitted in v1.","uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","additionalProperties":true},"description":"Not emitted in v1.","uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.0.citations","typeLabel":"object[] | null"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.0","typeLabel":"Message Output Text Block · object"},{"type":"object","title":"Message Output Tool Use Block","description":"Tool call generated by the model.","required":["type","id","name","input"],"properties":{"type":{"type":"string","enum":["tool_use"],"const":"tool_use","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Unique identifier for this tool call.","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the tool being called.","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.1.name","typeLabel":"string"},"input":{"type":"object","additionalProperties":true,"description":"Tool inputs as a JSON object.","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.1.input","typeLabel":"object"},"caller":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Anthropic routing metadata. Always `null` in SambaNova responses.","uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.1.caller.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Anthropic routing metadata. Always `null` in SambaNova responses.","uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.1.caller.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.1.caller","typeLabel":"object | null"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.1","typeLabel":"Message Output Tool Use Block · object"},{"type":"object","title":"Message Output Thinking Block","description":"Extended-reasoning trace from the model. Emitted by reasoning models.","required":["type","thinking"],"properties":{"type":{"type":"string","enum":["thinking"],"const":"thinking","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"thinking":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.2.thinking","typeLabel":"string"},"signature":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.2.signature.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.2.signature.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.2.signature","typeLabel":"string | null"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.2","typeLabel":"Message Output Thinking Block · object"},{"type":"object","title":"Message Output Redacted Thinking Block","description":"Anthropic compatibility only — SambaNova does not produce encrypted thinking output. Never emitted in responses.","required":["type","data"],"properties":{"type":{"type":"string","enum":["redacted_thinking"],"const":"redacted_thinking","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.3.data","typeLabel":"string"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.3","typeLabel":"Message Output Redacted Thinking Block · object"},{"type":"object","title":"Message Output Server Tool Use Block","description":"Anthropic compatibility only — SambaNova does not run server-side tools. Never emitted in responses; defined for Anthropic SDK type-parity.","required":["type","id","name","input"],"properties":{"type":{"type":"string","enum":["server_tool_use"],"const":"server_tool_use","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.4.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.4.name","typeLabel":"string"},"input":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.4.input","typeLabel":"object"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.4","typeLabel":"Message Output Server Tool Use Block · object"},{"type":"object","title":"Message Output Web Search Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `web_search`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["web_search_tool_result"],"const":"web_search_tool_result","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.5.tool_use_id","typeLabel":"string"},"content":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.5.content.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.5.content","typeLabel":"object[]"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.5","typeLabel":"Message Output Web Search Tool Result Block · object"},{"type":"object","title":"Message Output Web Fetch Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `web_fetch`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["web_fetch_tool_result"],"const":"web_fetch_tool_result","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.6.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.6.content","typeLabel":"object"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.6","typeLabel":"Message Output Web Fetch Tool Result Block · object"},{"type":"object","title":"Message Output Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `code_execution`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["code_execution_tool_result"],"const":"code_execution_tool_result","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.7.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.7.content","typeLabel":"object"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.7","typeLabel":"Message Output Code Execution Tool Result Block · object"},{"type":"object","title":"Message Output Bash Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side bash code execution. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["bash_code_execution_tool_result"],"const":"bash_code_execution_tool_result","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.8.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.8.content","typeLabel":"object"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.8","typeLabel":"Message Output Bash Code Execution Tool Result Block · object"},{"type":"object","title":"Message Output Text Editor Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side text-editor code execution. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["text_editor_code_execution_tool_result"],"const":"text_editor_code_execution_tool_result","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.9.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.9.content","typeLabel":"object"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.9","typeLabel":"Message Output Text Editor Code Execution Tool Result Block · object"},{"type":"object","title":"Message Output Tool Search Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `tool_search`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["tool_search_tool_result"],"const":"tool_search_tool_result","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.10.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.10.content","typeLabel":"object"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.10","typeLabel":"Message Output Tool Search Tool Result Block · object"},{"type":"object","title":"Message Output Container Upload Block","description":"Anthropic compatibility only — SambaNova does not produce container_upload blocks (these come from Anthropic's server-side `code_execution` tool). Never emitted in responses.","required":["type","file_id"],"properties":{"type":{"type":"string","enum":["container_upload"],"const":"container_upload","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.11.file_id","typeLabel":"string"}},"uniqueKey":"oneOf.1.message.content.items.[INDEX].oneOf.11","typeLabel":"Message Output Container Upload Block · object"}],"uniqueKey":"oneOf.1.message.content.items.[INDEX]","typeLabel":"Message Output Text Block · object | Message Output Tool Use Block · object | Message Output Thinking Block · object | Message Output Redacted Thinking Block · object | Message Output Server Tool Use Block · object | Message Output Web Search Tool Result Block · object | Message Output Web Fetch Tool Result Block · object | Message Output Code Execution Tool Result Block · object | Message Output Bash Code Execution Tool Result Block · object | Message Output Text Editor Code Execution Tool Result Block · object | Message Output Tool Search Tool Result Block · object | Message Output Container Upload Block · object"},"isRequired":true,"uniqueKey":"oneOf.1.message.content","typeLabel":"(Message Output Text Block · object | Message Output Tool Use Block · object | Message Output Thinking Block · object | Message Output Redacted Thinking Block · object | Message Output Server Tool Use Block · object | Message Output Web Search Tool Result Block · object | Message Output Web Fetch Tool Result Block · object | Message Output Code Execution Tool Result Block · object | Message Output Bash Code Execution Tool Result Block · object | Message Output Text Editor Code Execution Tool Result Block · object | Message Output Tool Search Tool Result Block · object | Message Output Container Upload Block · object)[]"},"model":{"type":"string","description":"Model that produced the response.","isRequired":true,"uniqueKey":"oneOf.1.message.model","typeLabel":"string"},"stop_reason":{"oneOf":[{"type":"string","title":"Message Stop Reason","description":"Reason the model stopped generating. SambaNova emits `end_turn`, `max_tokens`, `tool_use`, and `stop_sequence`. The remaining values are defined for Anthropic SDK type-parity but never returned: `pause_turn` (server-tool loop limit, not produced); `refusal` (content filter, not exposed); `model_context_window_exceeded` (folded to `max_tokens`).","enum":["end_turn","max_tokens","tool_use","pause_turn","refusal","stop_sequence","model_context_window_exceeded"],"isRequired":true,"uniqueKey":"oneOf.1.message.stop_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.1.message.stop_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.1.message.stop_reason","typeLabel":"enum\u003cstring> | null"},"usage":{"title":"Message Usage","type":"object","description":"Token accounting for the request.","properties":{"input_tokens":{"type":"integer","description":"Total tokens in the prompt (system + messages + tools).","isRequired":true,"uniqueKey":"oneOf.1.message.usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Total tokens generated by the model.","isRequired":true,"uniqueKey":"oneOf.1.message.usage.output_tokens","typeLabel":"integer"},"cache_creation_input_tokens":{"oneOf":[{"type":"integer","description":"Tokens written to prompt cache. Absent in v1; emitted once prompt caching wiring lands (CP-2897).","uniqueKey":"oneOf.1.message.usage.cache_creation_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Tokens written to prompt cache. Absent in v1; emitted once prompt caching wiring lands (CP-2897).","uniqueKey":"oneOf.1.message.usage.cache_creation_input_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.usage.cache_creation_input_tokens","typeLabel":"integer | null"},"cache_read_input_tokens":{"oneOf":[{"type":"integer","description":"Tokens read from prompt cache. Absent in v1; emitted once prompt caching wiring lands (CP-2897).","uniqueKey":"oneOf.1.message.usage.cache_read_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Tokens read from prompt cache. Absent in v1; emitted once prompt caching wiring lands (CP-2897).","uniqueKey":"oneOf.1.message.usage.cache_read_input_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.usage.cache_read_input_tokens","typeLabel":"integer | null"},"server_tool_use":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Server-tool usage metrics (e.g. `web_search_requests`). Anthropic compatibility only — SambaNova does not run server tools, so this field is never emitted.","uniqueKey":"oneOf.1.message.usage.server_tool_use.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Server-tool usage metrics (e.g. `web_search_requests`). Anthropic compatibility only — SambaNova does not run server tools, so this field is never emitted.","uniqueKey":"oneOf.1.message.usage.server_tool_use.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.usage.server_tool_use","typeLabel":"object | null"},"service_tier":{"oneOf":[{"type":"string","description":"Service tier that processed the request. Anthropic compatibility only — SambaNova is single-tier and never emits this field.","uniqueKey":"oneOf.1.message.usage.service_tier.oneOf.0","typeLabel":"string"},{"type":"null","description":"Service tier that processed the request. Anthropic compatibility only — SambaNova is single-tier and never emits this field.","uniqueKey":"oneOf.1.message.usage.service_tier.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.usage.service_tier","typeLabel":"string | null"},"cache_creation":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Anthropic SDK alias for cache write metrics. Always `null` in SambaNova responses; use `cache_creation_input_tokens` instead.","uniqueKey":"oneOf.1.message.usage.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Anthropic SDK alias for cache write metrics. Always `null` in SambaNova responses; use `cache_creation_input_tokens` instead.","uniqueKey":"oneOf.1.message.usage.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.usage.cache_creation","typeLabel":"object | null"},"inference_geo":{"oneOf":[{"type":"string","description":"Geographic region that served the request. Anthropic compatibility only - SambaNova does not expose geo routing, always `null`.","uniqueKey":"oneOf.1.message.usage.inference_geo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Geographic region that served the request. Anthropic compatibility only - SambaNova does not expose geo routing, always `null`.","uniqueKey":"oneOf.1.message.usage.inference_geo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.usage.inference_geo","typeLabel":"string | null"}},"required":["input_tokens","output_tokens"],"isRequired":true,"uniqueKey":"oneOf.1.message.usage","typeLabel":"Message Usage · object"},"stop_sequence":{"oneOf":[{"type":"string","description":"The matched stop sequence that triggered termination. Present when `stop_reason` is `stop_sequence`; `null` otherwise.","uniqueKey":"oneOf.1.message.stop_sequence.oneOf.0","typeLabel":"string"},{"type":"null","description":"The matched stop sequence that triggered termination. Present when `stop_reason` is `stop_sequence`; `null` otherwise.","uniqueKey":"oneOf.1.message.stop_sequence.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.stop_sequence","typeLabel":"string | null"},"stop_details":{"oneOf":[{"type":"object","title":"Message Stop Details","description":"Refusal stop details. Anthropic compatibility only — `refusal` is never emitted as a stop_reason by SambaNova (content filtering is not exposed at the API layer).","required":["type"],"properties":{"type":{"type":"string","enum":["refusal"],"const":"refusal","isRequired":true,"uniqueKey":"oneOf.1.message.stop_details.oneOf.0.type","typeLabel":"enum\u003cstring>"},"category":{"type":"string","enum":["cyber","bio"],"uniqueKey":"oneOf.1.message.stop_details.oneOf.0.category","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1.message.stop_details.oneOf.0","typeLabel":"Message Stop Details · object"},{"type":"null","uniqueKey":"oneOf.1.message.stop_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.stop_details","typeLabel":"Message Stop Details · object | null"},"container":{"oneOf":[{"type":"object","title":"Message Container","description":"Code-execution container reference. Anthropic compatibility only — SambaNova does not run server-side code execution, so this field is never emitted on responses.","required":["id","expires_at"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message.container.oneOf.0.id","typeLabel":"string"},"expires_at":{"type":"string","description":"ISO-8601 timestamp.","isRequired":true,"uniqueKey":"oneOf.1.message.container.oneOf.0.expires_at","typeLabel":"string"}},"uniqueKey":"oneOf.1.message.container.oneOf.0","typeLabel":"Message Container · object"},{"type":"null","uniqueKey":"oneOf.1.message.container.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.message.container","typeLabel":"Message Container · object | null"}},"required":["id","type","role","content","model","stop_reason","usage"],"isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"Message · object"}},"uniqueKey":"oneOf.1","typeLabel":"Message Start Event · object"},{"type":"object","title":"Content Block Start Event","description":"Opens a new content block. One per block in `content[]`.","required":["type","index","content_block"],"properties":{"type":{"type":"string","enum":["content_block_start"],"const":"content_block_start","isRequired":true,"uniqueKey":"oneOf.2.type","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","description":"Zero-based index of the block within `content[]`.","isRequired":true,"uniqueKey":"oneOf.2.index","typeLabel":"integer"},"content_block":{"oneOf":[{"type":"object","title":"Message Output Text Block","description":"Plain-text segment of the model's response.","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"],"const":"text","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.0.text","typeLabel":"string"},"citations":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.2.content_block.oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Not emitted in v1.","uniqueKey":"oneOf.2.content_block.oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","additionalProperties":true},"description":"Not emitted in v1.","uniqueKey":"oneOf.2.content_block.oneOf.0.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.content_block.oneOf.0.citations","typeLabel":"object[] | null"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.0","typeLabel":"Message Output Text Block · object"},{"type":"object","title":"Message Output Tool Use Block","description":"Tool call generated by the model.","required":["type","id","name","input"],"properties":{"type":{"type":"string","enum":["tool_use"],"const":"tool_use","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Unique identifier for this tool call.","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the tool being called.","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.1.name","typeLabel":"string"},"input":{"type":"object","additionalProperties":true,"description":"Tool inputs as a JSON object.","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.1.input","typeLabel":"object"},"caller":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Anthropic routing metadata. Always `null` in SambaNova responses.","uniqueKey":"oneOf.2.content_block.oneOf.1.caller.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Anthropic routing metadata. Always `null` in SambaNova responses.","uniqueKey":"oneOf.2.content_block.oneOf.1.caller.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.content_block.oneOf.1.caller","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.1","typeLabel":"Message Output Tool Use Block · object"},{"type":"object","title":"Message Output Thinking Block","description":"Extended-reasoning trace from the model. Emitted by reasoning models.","required":["type","thinking"],"properties":{"type":{"type":"string","enum":["thinking"],"const":"thinking","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.2.type","typeLabel":"enum\u003cstring>"},"thinking":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.2.thinking","typeLabel":"string"},"signature":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.content_block.oneOf.2.signature.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"oneOf.2.content_block.oneOf.2.signature.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.content_block.oneOf.2.signature","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.2","typeLabel":"Message Output Thinking Block · object"},{"type":"object","title":"Message Output Redacted Thinking Block","description":"Anthropic compatibility only — SambaNova does not produce encrypted thinking output. Never emitted in responses.","required":["type","data"],"properties":{"type":{"type":"string","enum":["redacted_thinking"],"const":"redacted_thinking","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.3.type","typeLabel":"enum\u003cstring>"},"data":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.3.data","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.3","typeLabel":"Message Output Redacted Thinking Block · object"},{"type":"object","title":"Message Output Server Tool Use Block","description":"Anthropic compatibility only — SambaNova does not run server-side tools. Never emitted in responses; defined for Anthropic SDK type-parity.","required":["type","id","name","input"],"properties":{"type":{"type":"string","enum":["server_tool_use"],"const":"server_tool_use","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.4.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.4.id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.4.name","typeLabel":"string"},"input":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.4.input","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.4","typeLabel":"Message Output Server Tool Use Block · object"},{"type":"object","title":"Message Output Web Search Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `web_search`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["web_search_tool_result"],"const":"web_search_tool_result","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.5.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.5.tool_use_id","typeLabel":"string"},"content":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.2.content_block.oneOf.5.content.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.5.content","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.5","typeLabel":"Message Output Web Search Tool Result Block · object"},{"type":"object","title":"Message Output Web Fetch Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `web_fetch`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["web_fetch_tool_result"],"const":"web_fetch_tool_result","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.6.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.6.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.6.content","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.6","typeLabel":"Message Output Web Fetch Tool Result Block · object"},{"type":"object","title":"Message Output Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `code_execution`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["code_execution_tool_result"],"const":"code_execution_tool_result","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.7.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.7.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.7.content","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.7","typeLabel":"Message Output Code Execution Tool Result Block · object"},{"type":"object","title":"Message Output Bash Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side bash code execution. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["bash_code_execution_tool_result"],"const":"bash_code_execution_tool_result","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.8.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.8.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.8.content","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.8","typeLabel":"Message Output Bash Code Execution Tool Result Block · object"},{"type":"object","title":"Message Output Text Editor Code Execution Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side text-editor code execution. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["text_editor_code_execution_tool_result"],"const":"text_editor_code_execution_tool_result","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.9.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.9.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.9.content","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.9","typeLabel":"Message Output Text Editor Code Execution Tool Result Block · object"},{"type":"object","title":"Message Output Tool Search Tool Result Block","description":"Anthropic compatibility only — SambaNova does not run server-side `tool_search`. Never emitted in responses.","required":["type","tool_use_id","content"],"properties":{"type":{"type":"string","enum":["tool_search_tool_result"],"const":"tool_search_tool_result","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.10.type","typeLabel":"enum\u003cstring>"},"tool_use_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.10.tool_use_id","typeLabel":"string"},"content":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.10.content","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.10","typeLabel":"Message Output Tool Search Tool Result Block · object"},{"type":"object","title":"Message Output Container Upload Block","description":"Anthropic compatibility only — SambaNova does not produce container_upload blocks (these come from Anthropic's server-side `code_execution` tool). Never emitted in responses.","required":["type","file_id"],"properties":{"type":{"type":"string","enum":["container_upload"],"const":"container_upload","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.11.type","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.11.file_id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.2.content_block.oneOf.11","typeLabel":"Message Output Container Upload Block · object"}],"isRequired":true,"uniqueKey":"oneOf.2.content_block","typeLabel":"Message Output Text Block · object | Message Output Tool Use Block · object | Message Output Thinking Block · object | Message Output Redacted Thinking Block · object | Message Output Server Tool Use Block · object | Message Output Web Search Tool Result Block · object | Message Output Web Fetch Tool Result Block · object | Message Output Code Execution Tool Result Block · object | Message Output Bash Code Execution Tool Result Block · object | Message Output Text Editor Code Execution Tool Result Block · object | Message Output Tool Search Tool Result Block · object | Message Output Container Upload Block · object"}},"uniqueKey":"oneOf.2","typeLabel":"Content Block Start Event · object"},{"type":"object","title":"Content Block Delta Event","description":"Incremental update to the currently open content block.","required":["type","index","delta"],"properties":{"type":{"type":"string","enum":["content_block_delta"],"const":"content_block_delta","isRequired":true,"uniqueKey":"oneOf.3.type","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","description":"Zero-based index of the block within `content[]`.","isRequired":true,"uniqueKey":"oneOf.3.index","typeLabel":"integer"},"delta":{"oneOf":[{"type":"object","title":"Content Block Text Delta","description":"Incremental text chunk for an open text content block.","required":["type","text"],"properties":{"type":{"type":"string","enum":["text_delta"],"const":"text_delta","isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.0.text","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.0","typeLabel":"Content Block Text Delta · object"},{"type":"object","title":"Content Block Input JSON Delta","description":"Incremental fragment of a tool_use block's `input` JSON. Concatenate successive `partial_json` strings to reconstruct the full input object.","required":["type","partial_json"],"properties":{"type":{"type":"string","enum":["input_json_delta"],"const":"input_json_delta","isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.1.type","typeLabel":"enum\u003cstring>"},"partial_json":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.1.partial_json","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.1","typeLabel":"Content Block Input JSON Delta · object"},{"type":"object","title":"Content Block Thinking Delta","description":"Incremental thinking chunk for an open thinking block. Emitted by reasoning models.","required":["type","thinking"],"properties":{"type":{"type":"string","enum":["thinking_delta"],"const":"thinking_delta","isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.2.type","typeLabel":"enum\u003cstring>"},"thinking":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.2.thinking","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.2","typeLabel":"Content Block Thinking Delta · object"},{"type":"object","title":"Content Block Signature Delta","description":"Signature for an open thinking block. Emitted at the end of a thinking stream (paired with the closing `content_block_stop`); the `signature` value may be an empty string when the backend has no signed payload to attach.","required":["type","signature"],"properties":{"type":{"type":"string","enum":["signature_delta"],"const":"signature_delta","isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.3.type","typeLabel":"enum\u003cstring>"},"signature":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.3.signature","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.3.delta.oneOf.3","typeLabel":"Content Block Signature Delta · object"}],"isRequired":true,"uniqueKey":"oneOf.3.delta","typeLabel":"Content Block Text Delta · object | Content Block Input JSON Delta · object | Content Block Thinking Delta · object | Content Block Signature Delta · object"}},"uniqueKey":"oneOf.3","typeLabel":"Content Block Delta Event · object"},{"type":"object","title":"Content Block Stop Event","description":"Closes the current content block.","required":["type","index"],"properties":{"type":{"type":"string","enum":["content_block_stop"],"const":"content_block_stop","isRequired":true,"uniqueKey":"oneOf.4.type","typeLabel":"enum\u003cstring>"},"index":{"type":"integer","description":"Zero-based index of the block within `content[]`.","isRequired":true,"uniqueKey":"oneOf.4.index","typeLabel":"integer"}},"uniqueKey":"oneOf.4","typeLabel":"Content Block Stop Event · object"},{"type":"object","title":"Message Delta Event","description":"Penultimate event of the stream. Carries the final `stop_reason`, optional `stop_sequence`, and final usage counts.","required":["type","delta","usage"],"properties":{"type":{"type":"string","enum":["message_delta"],"const":"message_delta","isRequired":true,"uniqueKey":"oneOf.5.type","typeLabel":"enum\u003cstring>"},"delta":{"type":"object","properties":{"stop_reason":{"title":"Message Stop Reason","type":"string","description":"Reason the model stopped generating. SambaNova emits `end_turn`, `max_tokens`, `tool_use`, and `stop_sequence`. The remaining values are defined for Anthropic SDK type-parity but never returned: `pause_turn` (server-tool loop limit, not produced); `refusal` (content filter, not exposed); `model_context_window_exceeded` (folded to `max_tokens`).","enum":["end_turn","max_tokens","tool_use","pause_turn","refusal","stop_sequence","model_context_window_exceeded"],"isRequired":true,"uniqueKey":"oneOf.5.delta.stop_reason","typeLabel":"enum\u003cstring>"},"stop_sequence":{"oneOf":[{"type":"string","description":"Custom stop sequence that triggered termination. Field is emitted but value is always `null` in v1 (backend collapses `StopSequenceHit` and `EndOfText` into the same finish_reason).","uniqueKey":"oneOf.5.delta.stop_sequence.oneOf.0","typeLabel":"string"},{"type":"null","description":"Custom stop sequence that triggered termination. Field is emitted but value is always `null` in v1 (backend collapses `StopSequenceHit` and `EndOfText` into the same finish_reason).","uniqueKey":"oneOf.5.delta.stop_sequence.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.delta.stop_sequence","typeLabel":"string | null"},"stop_details":{"oneOf":[{"type":"object","title":"Message Stop Details","description":"Refusal stop details. Field is emitted but value is always `null` in v1 — `refusal` is not produced as a stop_reason.","required":["type"],"properties":{"type":{"type":"string","enum":["refusal"],"const":"refusal","isRequired":true,"uniqueKey":"oneOf.5.delta.stop_details.oneOf.0.type","typeLabel":"enum\u003cstring>"},"category":{"type":"string","enum":["cyber","bio"],"uniqueKey":"oneOf.5.delta.stop_details.oneOf.0.category","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.5.delta.stop_details.oneOf.0","typeLabel":"Message Stop Details · object"},{"type":"null","uniqueKey":"oneOf.5.delta.stop_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.delta.stop_details","typeLabel":"Message Stop Details · object | null"}},"required":["stop_reason"],"isRequired":true,"uniqueKey":"oneOf.5.delta","typeLabel":"object"},"usage":{"title":"Message Delta Usage","type":"object","description":"Final token accounting emitted in the closing `message_delta` event of a stream.","properties":{"output_tokens":{"type":"integer","description":"Total tokens generated (final count).","isRequired":true,"uniqueKey":"oneOf.5.usage.output_tokens","typeLabel":"integer"},"input_tokens":{"oneOf":[{"type":"integer","description":"Total tokens in the prompt (echoed from `message_start`).","uniqueKey":"oneOf.5.usage.input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Total tokens in the prompt (echoed from `message_start`).","uniqueKey":"oneOf.5.usage.input_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.usage.input_tokens","typeLabel":"integer | null"},"cache_creation_input_tokens":{"oneOf":[{"type":"integer","description":"Tokens written to prompt cache. Absent in v1;","uniqueKey":"oneOf.5.usage.cache_creation_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Tokens written to prompt cache. Absent in v1;","uniqueKey":"oneOf.5.usage.cache_creation_input_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.usage.cache_creation_input_tokens","typeLabel":"integer | null"},"cache_read_input_tokens":{"oneOf":[{"type":"integer","description":"Tokens read from prompt cache. Absent in v1;","uniqueKey":"oneOf.5.usage.cache_read_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Tokens read from prompt cache. Absent in v1;","uniqueKey":"oneOf.5.usage.cache_read_input_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.usage.cache_read_input_tokens","typeLabel":"integer | null"},"server_tool_use":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Server-tool usage metrics. Anthropic compatibility only — SambaNova does not run server tools, so this field is never emitted.","uniqueKey":"oneOf.5.usage.server_tool_use.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Server-tool usage metrics. Anthropic compatibility only — SambaNova does not run server tools, so this field is never emitted.","uniqueKey":"oneOf.5.usage.server_tool_use.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.usage.server_tool_use","typeLabel":"object | null"}},"required":["output_tokens"],"isRequired":true,"uniqueKey":"oneOf.5.usage","typeLabel":"Message Delta Usage · object"}},"uniqueKey":"oneOf.5","typeLabel":"Message Delta Event · object"},{"type":"object","title":"Message Stop Event","description":"Final event of the stream. No fields beyond `type`.","required":["type"],"properties":{"type":{"type":"string","enum":["message_stop"],"const":"message_stop","isRequired":true,"uniqueKey":"oneOf.6.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.6","typeLabel":"Message Stop Event · object"},{"type":"object","title":"Message Ping Event","description":"Keepalive heartbeat. May appear at any point in the stream.","required":["type"],"properties":{"type":{"type":"string","enum":["ping"],"const":"ping","isRequired":true,"uniqueKey":"oneOf.7.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.7","typeLabel":"Message Ping Event · object"},{"type":"object","title":"Message Stream Error Event","description":"Streamed error envelope. Terminates the stream.","required":["type","error"],"properties":{"type":{"type":"string","enum":["error"],"const":"error","isRequired":true,"uniqueKey":"oneOf.8.type","typeLabel":"enum\u003cstring>"},"error":{"title":"Message Error","type":"object","description":"Inner error object carried inside a `MessageErrorResponse`. The `type` value follows Anthropic's published error taxonomy.","properties":{"type":{"title":"Type","type":"string","description":"Error category. Values follow Anthropic's taxonomy.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error","not_implemented_error"],"isRequired":true,"uniqueKey":"oneOf.8.error.type","typeLabel":"enum\u003cstring>"},"message":{"title":"Message","type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"oneOf.8.error.message","typeLabel":"string"}},"required":["type","message"],"isRequired":true,"uniqueKey":"oneOf.8.error","typeLabel":"Message Error · object"}},"uniqueKey":"oneOf.8","typeLabel":"Message Stream Error Event · object"}],"uniqueKey":"","typeLabel":"Message · object | Message Start Event · object | Content Block Start Event · object | Content Block Delta Event · object | Content Block Stop Event · object | Message Delta Event · object | Message Stop Event · object | Message Ping Event · object | Message Stream Error Event · object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","type":"message","role":"assistant","content":[{"type":"text","text":"\u003cstring>","citations":[{}]}],"model":"\u003cstring>","stop_reason":"end_turn","usage":{"input_tokens":123,"output_tokens":123,"cache_creation_input_tokens":123,"cache_read_input_tokens":123,"server_tool_use":{},"service_tier":"\u003cstring>","cache_creation":{},"inference_geo":"\u003cstring>"},"stop_sequence":"\u003cstring>","stop_details":{"type":"refusal","category":"cyber"},"container":{"id":"\u003cstring>","expires_at":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"bcece36a-e589-4b9e-9e0e-35dc2ca6478b":{"description":"Bad Request — `invalid_request_error`. Returned for missing or invalid parameters, unsupported feature flags (e.g. `thinking` with `type:\"enabled\"` or `\"adaptive\"`), unsupported tool types (`web_search`, `code_execution`, `bash`, `text_editor`, `memory`, `tool_search` variants), image source `type:\"url\"`, `document` content blocks, or non-object request bodies.","content":{"application/json":{"schema":{"title":"Message Error Response","type":"object","description":"Top-level error envelope returned by the Messages API on any non-2xx response. Shape matches Anthropic's wire format. This envelope is used ONLY on `/messages` and `/messages/count_tokens`","properties":{"type":{"title":"Type","type":"string","description":"Always `error` for error envelopes.","enum":["error"],"const":"error","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"title":"Message Error","type":"object","description":"Inner error object carried inside a `MessageErrorResponse`. The `type` value follows Anthropic's published error taxonomy.","properties":{"type":{"title":"Type","type":"string","description":"Error category. Values follow Anthropic's taxonomy.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error","not_implemented_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"title":"Message","type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"Message Error · object"},"request_id":{"oneOf":[{"title":"Request Id","type":"string","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"title":"Request Id","type":"null","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"}},"required":["type","error"],"uniqueKey":"","typeLabel":"Message Error Response · object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"70a0fe31-561c-4baa-a8a7-612317e8ab2e":{"description":"Unauthorized — `authentication_error`. Invalid or missing API key.","content":{"application/json":{"schema":{"title":"Message Error Response","type":"object","description":"Top-level error envelope returned by the Messages API on any non-2xx response. Shape matches Anthropic's wire format. This envelope is used ONLY on `/messages` and `/messages/count_tokens`","properties":{"type":{"title":"Type","type":"string","description":"Always `error` for error envelopes.","enum":["error"],"const":"error","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"title":"Message Error","type":"object","description":"Inner error object carried inside a `MessageErrorResponse`. The `type` value follows Anthropic's published error taxonomy.","properties":{"type":{"title":"Type","type":"string","description":"Error category. Values follow Anthropic's taxonomy.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error","not_implemented_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"title":"Message","type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"Message Error · object"},"request_id":{"oneOf":[{"title":"Request Id","type":"string","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"title":"Request Id","type":"null","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"}},"required":["type","error"],"uniqueKey":"","typeLabel":"Message Error Response · object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"746c8caa-89a0-4c90-9127-9923a130e1fe":{"description":"Forbidden — `permission_error`. API key lacks access to the requested resource.","content":{"application/json":{"schema":{"title":"Message Error Response","type":"object","description":"Top-level error envelope returned by the Messages API on any non-2xx response. Shape matches Anthropic's wire format. This envelope is used ONLY on `/messages` and `/messages/count_tokens`","properties":{"type":{"title":"Type","type":"string","description":"Always `error` for error envelopes.","enum":["error"],"const":"error","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"title":"Message Error","type":"object","description":"Inner error object carried inside a `MessageErrorResponse`. The `type` value follows Anthropic's published error taxonomy.","properties":{"type":{"title":"Type","type":"string","description":"Error category. Values follow Anthropic's taxonomy.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error","not_implemented_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"title":"Message","type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"Message Error · object"},"request_id":{"oneOf":[{"title":"Request Id","type":"string","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"title":"Request Id","type":"null","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"}},"required":["type","error"],"uniqueKey":"","typeLabel":"Message Error Response · object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"3489823b-f40a-40a0-9faa-2dafd78ccc21":{"description":"Not Found — `not_found_error`. Model does not exist or is not accessible.","content":{"application/json":{"schema":{"title":"Message Error Response","type":"object","description":"Top-level error envelope returned by the Messages API on any non-2xx response. Shape matches Anthropic's wire format. This envelope is used ONLY on `/messages` and `/messages/count_tokens`","properties":{"type":{"title":"Type","type":"string","description":"Always `error` for error envelopes.","enum":["error"],"const":"error","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"title":"Message Error","type":"object","description":"Inner error object carried inside a `MessageErrorResponse`. The `type` value follows Anthropic's published error taxonomy.","properties":{"type":{"title":"Type","type":"string","description":"Error category. Values follow Anthropic's taxonomy.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error","not_implemented_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"title":"Message","type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"Message Error · object"},"request_id":{"oneOf":[{"title":"Request Id","type":"string","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"title":"Request Id","type":"null","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"}},"required":["type","error"],"uniqueKey":"","typeLabel":"Message Error Response · object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"1a8a900e-3449-4446-8e36-e79c9b6e9b75":{"description":"Payload Too Large — `request_too_large`. Request exceeds the maximum allowed size.","content":{"application/json":{"schema":{"title":"Message Error Response","type":"object","description":"Top-level error envelope returned by the Messages API on any non-2xx response. Shape matches Anthropic's wire format. This envelope is used ONLY on `/messages` and `/messages/count_tokens`","properties":{"type":{"title":"Type","type":"string","description":"Always `error` for error envelopes.","enum":["error"],"const":"error","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"title":"Message Error","type":"object","description":"Inner error object carried inside a `MessageErrorResponse`. The `type` value follows Anthropic's published error taxonomy.","properties":{"type":{"title":"Type","type":"string","description":"Error category. Values follow Anthropic's taxonomy.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error","not_implemented_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"title":"Message","type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"Message Error · object"},"request_id":{"oneOf":[{"title":"Request Id","type":"string","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"title":"Request Id","type":"null","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"}},"required":["type","error"],"uniqueKey":"","typeLabel":"Message Error Response · object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"aec6ba73-3422-49d7-92d5-809e00a8fa53":{"description":"Too Many Requests — `rate_limit_error`. Rate limit exceeded.","content":{"application/json":{"schema":{"title":"Message Error Response","type":"object","description":"Top-level error envelope returned by the Messages API on any non-2xx response. Shape matches Anthropic's wire format. This envelope is used ONLY on `/messages` and `/messages/count_tokens`","properties":{"type":{"title":"Type","type":"string","description":"Always `error` for error envelopes.","enum":["error"],"const":"error","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"title":"Message Error","type":"object","description":"Inner error object carried inside a `MessageErrorResponse`. The `type` value follows Anthropic's published error taxonomy.","properties":{"type":{"title":"Type","type":"string","description":"Error category. Values follow Anthropic's taxonomy.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error","not_implemented_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"title":"Message","type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"Message Error · object"},"request_id":{"oneOf":[{"title":"Request Id","type":"string","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"title":"Request Id","type":"null","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"}},"required":["type","error"],"uniqueKey":"","typeLabel":"Message Error Response · object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"8a57a657-15f2-4944-bdc9-87d5c3ecc8af":{"description":"Internal Server Error — `api_error`. Unexpected issue on the server side.","content":{"application/json":{"schema":{"title":"Message Error Response","type":"object","description":"Top-level error envelope returned by the Messages API on any non-2xx response. Shape matches Anthropic's wire format. This envelope is used ONLY on `/messages` and `/messages/count_tokens`","properties":{"type":{"title":"Type","type":"string","description":"Always `error` for error envelopes.","enum":["error"],"const":"error","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"title":"Message Error","type":"object","description":"Inner error object carried inside a `MessageErrorResponse`. The `type` value follows Anthropic's published error taxonomy.","properties":{"type":{"title":"Type","type":"string","description":"Error category. Values follow Anthropic's taxonomy.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error","not_implemented_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"title":"Message","type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"Message Error · object"},"request_id":{"oneOf":[{"title":"Request Id","type":"string","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"title":"Request Id","type":"null","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"}},"required":["type","error"],"uniqueKey":"","typeLabel":"Message Error Response · object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b930d733-b068-4a1e-9d81-87835672c995":{"description":"Not Implemented — `not_implemented_error`. Currently returned when `stream: true` is set, until streaming support lands (PRD Phase 4).","content":{"application/json":{"schema":{"title":"Message Error Response","type":"object","description":"Top-level error envelope returned by the Messages API on any non-2xx response. Shape matches Anthropic's wire format. This envelope is used ONLY on `/messages` and `/messages/count_tokens`","properties":{"type":{"title":"Type","type":"string","description":"Always `error` for error envelopes.","enum":["error"],"const":"error","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"title":"Message Error","type":"object","description":"Inner error object carried inside a `MessageErrorResponse`. The `type` value follows Anthropic's published error taxonomy.","properties":{"type":{"title":"Type","type":"string","description":"Error category. Values follow Anthropic's taxonomy.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error","not_implemented_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"title":"Message","type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"Message Error · object"},"request_id":{"oneOf":[{"title":"Request Id","type":"string","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"title":"Request Id","type":"null","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"}},"required":["type","error"],"uniqueKey":"","typeLabel":"Message Error Response · object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"70203b22-bdcc-4ce6-a9e9-4db971380899":{"description":"Service Unavailable — `overloaded_error`. Backend is temporarily over capacity.","content":{"application/json":{"schema":{"title":"Message Error Response","type":"object","description":"Top-level error envelope returned by the Messages API on any non-2xx response. Shape matches Anthropic's wire format. This envelope is used ONLY on `/messages` and `/messages/count_tokens`","properties":{"type":{"title":"Type","type":"string","description":"Always `error` for error envelopes.","enum":["error"],"const":"error","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"title":"Message Error","type":"object","description":"Inner error object carried inside a `MessageErrorResponse`. The `type` value follows Anthropic's published error taxonomy.","properties":{"type":{"title":"Type","type":"string","description":"Error category. Values follow Anthropic's taxonomy.","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","request_too_large","rate_limit_error","api_error","overloaded_error","not_implemented_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"title":"Message","type":"string","description":"Human-readable explanation of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"Message Error · object"},"request_id":{"oneOf":[{"title":"Request Id","type":"string","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"title":"Request Id","type":"null","description":"Opaque request identifier echoed by the server, useful for correlating client-side failures with server-side logs.","uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"request_id","typeLabel":"string | null"}},"required":["type","error"],"uniqueKey":"","typeLabel":"Message Error Response · object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"7f3e65b0-8f32-4de8-878c-f65d28aa804a":{"api_key":{"type":"http","description":"SambaNova API key, sent as a bearer token in the `Authorization` header (`Authorization: Bearer \u003ckey>`). Default authentication scheme used by the SambaNova SDK across every OpenAI compatible endpoint.","scheme":"bearer","bearerFormat":"apiKey","scopes":[],"schemeName":"api_key"}},"e355470b-5043-49a3-821a-ee69ca58e06f":{"x_api_key":{"type":"apiKey","description":"SambaNova API key, sent in the `x-api-key` header. Accepted on the Messages API routes (`/messages`, `/messages/count_tokens`) so that callers can point the official Anthropic SDK at SambaNova by swapping `base_url` — no code changes. The credential value is the same as the bearer `api_key` scheme; only the transport differs.","in":"header","name":"x-api-key","scopes":[],"schemeName":"x_api_key"}}},"servers":{"b709db63-5fc4-4727-be6d-2a9dac334711":{"url":"https://api.sambanova.ai/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","description":"SambaNova API key, sent as a bearer token in the `Authorization` header (`Authorization: Bearer \u003ckey>`). Default authentication scheme used by the SambaNova SDK across every OpenAI compatible endpoint.","scheme":"bearer","bearerFormat":"apiKey","scopes":[],"schemeName":"api_key"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"SambaNova API key, sent as a bearer token in the `Authorization` header (`Authorization: Bearer \u003ckey>`). Default authentication scheme used by the SambaNova SDK across every OpenAI compatible endpoint.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"api_key","name":"Authorization"}],"title":"api_key"},{"schemes":[{"scheme":{"type":"apiKey","description":"SambaNova API key, sent in the `x-api-key` header. Accepted on the Messages API routes (`/messages`, `/messages/count_tokens`) so that callers can point the official Anthropic SDK at SambaNova by swapping `base_url` — no code changes. The credential value is the same as the bearer `api_key` scheme; only the transport differs.","in":"header","name":"x-api-key","scopes":[],"schemeName":"x_api_key"},"schema":{"title":"x-api-key","type":"string","description":"SambaNova API key, sent in the `x-api-key` header. Accepted on the Messages API routes (`/messages`, `/messages/count_tokens`) so that callers can point the official Anthropic SDK at SambaNova by swapping `base_url` — no code changes. The credential value is the same as the bearer `api_key` scheme; only the transport differs.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"x_api_key","name":"x-api-key"}],"title":"x_api_key"}]},"originalFileLocation":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json"},"subdomain":"sambanova-systems","siteName":"SambaNova Documentation","title":"Create a message - SambaNova Documentation","navMaps":{"firstHrefInVersion":{"v2.3.2":{"href":"/api-reference/messages/create-a-message","matchLevel":0},"v2.2.6":{"href":"/api-reference/messages/create-a-message","matchLevel":0},"v2.2.5":{"href":"/api-reference/messages/create-a-message","matchLevel":0},"v2.2.3":{"href":"/api-reference/messages/create-a-message","matchLevel":0},"v2.1.2":{"href":"/api-reference/messages/create-a-message","matchLevel":0},"v2.1.1":{"href":"/api-reference/messages/create-a-message","matchLevel":0},"v2.0.2":{"href":"/api-reference/messages/create-a-message","matchLevel":0},"v1.2.0":{"href":"/api-reference/messages/create-a-message","matchLevel":0},"v1.1.1":{"href":"/api-reference/messages/create-a-message","matchLevel":0},"v1.0.57":{"href":"/api-reference/messages/create-a-message","matchLevel":0},"v0.5.17":{"href":"/api-reference/messages/create-a-message","matchLevel":0}},"firstHrefInLanguage":{"en":{"href":"/api-reference/messages/create-a-message","matchLevel":0},"ja":{"href":"/api-reference/messages/create-a-message","matchLevel":0}}},"lastModified":"2026-10-27T19:26:53.510Z","originalFileLocation":"api-reference/messages/create-a-message.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Anthropic Messages API compatible endpoint. Generates a model response for the supplied conversation. Authentication accepts either the bearer Authorization: Bearer header (SambaNova SDK default) or the x-api-key header (Anthropic SDK default); the same API key is used in both cases. When stream: true is set, the response is a sequence of Server-Sent Events whose payloads conform to MessageStreamEvent; otherwise the response is a single Message object.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SambaNova Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sambanova-systems/tCkoeefWRScUtrir/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/sambanova-systems/tCkoeefWRScUtrir/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sambanova-systems/tCkoeefWRScUtrir/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sambanova-systems/tCkoeefWRScUtrir/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sambanova-systems/tCkoeefWRScUtrir/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/sambanova-systems/tCkoeefWRScUtrir/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/sambanova-systems/tCkoeefWRScUtrir/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/sambanova-systems/tCkoeefWRScUtrir/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/sambanova-systems/tCkoeefWRScUtrir/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a message - SambaNova Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Anthropic Messages API compatible endpoint. Generates a model response for the supplied conversation. Authentication accepts either the bearer Authorization: Bearer header (SambaNova SDK default) or the x-api-key header (Anthropic SDK default); the same API key is used in both cases. When stream: true is set, the response is a sequence of Server-Sent Events whose payloads conform to MessageStreamEvent; otherwise the response is a single Message object.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SambaNova Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sambanova.ai/docs/api-reference/messages/create-a-message\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sambanova-systems.mintlify.site/docs/_mintlify/api/og/v2?division=Messages\u0026amp;title=Create+a+message\u0026amp;description=Anthropic+Messages+API+compatible+endpoint.+Generates+a+model+response+for+the+supplied+conversation.+Authentication+accepts+either+the+bearer+%60Authorization%3A+B\u0026amp;theme=b0fade985727b879a050f159\u0026amp;signature=895a3c29305f4d8a757649421e9d7659887d20cc598b4406e132dbf80761eee3\">\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=\"Create a message - SambaNova Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Anthropic Messages API compatible endpoint. Generates a model response for the supplied conversation. Authentication accepts either the bearer Authorization: Bearer header (SambaNova SDK default) or the x-api-key header (Anthropic SDK default); the same API key is used in both cases. When stream: true is set, the response is a sequence of Server-Sent Events whose payloads conform to MessageStreamEvent; otherwise the response is a single Message object.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sambanova-systems.mintlify.site/docs/_mintlify/api/og/v2?division=Messages\u0026amp;title=Create+a+message\u0026amp;description=Anthropic+Messages+API+compatible+endpoint.+Generates+a+model+response+for+the+supplied+conversation.+Authentication+accepts+either+the+bearer+%60Authorization%3A+B\u0026amp;theme=b0fade985727b879a050f159\u0026amp;signature=895a3c29305f4d8a757649421e9d7659887d20cc598b4406e132dbf80761eee3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/sambanova-systems/tCkoeefWRScUtrir/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SambaNova Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#974FC7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sambanova.ai/docs/api-reference/messages/create-a-message\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/messages/create-a-message.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sambanova.ai/#organization\",\"name\":\"SambaNova Documentation\",\"url\":\"https://docs.sambanova.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sambanova-systems/SM8Xs_Eg3x1tlCPk/logo/new-logo.png?fit=max\u0026auto=format\u0026n=SM8Xs_Eg3x1tlCPk\u0026q=85\u0026s=20f20c2369b8f043d9b2ffa55408fd8d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sambanova.ai/docs#website\",\"name\":\"SambaNova Documentation\",\"url\":\"https://docs.sambanova.ai/docs\",\"publisher\":{\"@id\":\"https://docs.sambanova.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sambanova.ai/docs/api-reference/messages/create-a-message#webpage\",\"url\":\"https://docs.sambanova.ai/docs/api-reference/messages/create-a-message\",\"name\":\"Create a message\",\"description\":\"Anthropic Messages API compatible endpoint. Generates a model response for the supplied conversation. Authentication accepts either the bearer Authorization: Bearer header (SambaNova SDK default) or the x-api-key header (Anthropic SDK default); the same API key is used in both cases. When stream: true is set, the response is a sequence of Server-Sent Events whose payloads conform to MessageStreamEvent; otherwise the response is a single Message object.\",\"dateModified\":\"2026-10-27T19:26:53.510Z\",\"isPartOf\":{\"@id\":\"https://docs.sambanova.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sambanova.ai/docs/api-reference/messages/create-a-message#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sambanova.ai/docs/api-reference/messages/create-a-message#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Inference API\",\"item\":\"https://docs.sambanova.ai/docs/api-reference/chat-completions/create-chat-based-completion\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a message\",\"item\":\"https://docs.sambanova.ai/docs/api-reference/messages/create-a-message\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.sambanova.ai/docs/api-reference/messages/create-a-message#apireference\",\"headline\":\"Create a message\",\"name\":\"Create a message\",\"description\":\"Anthropic Messages API compatible endpoint. Generates a model response for the supplied conversation. Authentication accepts either the bearer Authorization: Bearer header (SambaNova SDK default) or the x-api-key header (Anthropic SDK default); the same API key is used in both cases. When stream: true is set, the response is a sequence of Server-Sent Events whose payloads conform to MessageStreamEvent; otherwise the response is a single Message object.\",\"url\":\"https://docs.sambanova.ai/docs/api-reference/messages/create-a-message\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sambanova.ai/docs/api-reference/messages/create-a-message#webpage\"},\"dateModified\":\"2026-10-27T19:26:53.510Z\",\"publisher\":{\"@id\":\"https://docs.sambanova.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sambanova.ai/docs#website\"}}]}\u003c/script>","agentPointerHref":"/docs/api-reference/messages/create-a-message.md","siteName":"SambaNova Documentation","nav":{"global":null,"versions":[{"version":"v2.3.2","tag":"Latest","languages":[{"language":"en","tabs":[{"tab":"Developer guide","pages":[{"title":"Developer guide","href":"/en/get-started/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"sidebarTitle":"API Reference","title":"SambaNova API reference","mode":"wide","href":"/en/api-reference/overview"}]},{"group":"Inference API","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API","pages":[{"sidebarTitle":"Overview","title":"Chat agents API overview","mode":"wide","href":"/en/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"Using the API","pages":[{"sidebarTitle":"API Error Codes","title":"API error codes","href":"/en/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/en/v2.3.2/sambastack/getting-started/introduction"}]},{"tab":"Release notes","pages":[{"title":"Release notes","href":"/en/release-notes/overview"}]}]},{"language":"ja","tabs":[{"tab":"開発者ガイド","pages":[{"title":"開発者ガイド","href":"/ja/get-started/overview"}]},{"tab":"API リファレンス","groups":[{"group":"概要","pages":[{"sidebarTitle":"API リファレンス","title":"SambaNova API リファレンス","mode":"wide","href":"/ja/api-reference/overview"}]},{"group":"推論 API (英語)","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API (英語)","pages":[{"sidebarTitle":"概要","title":"チャットエージェント API の概要","mode":"wide","href":"/ja/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"API の使用","pages":[{"sidebarTitle":"API エラーコード","title":"API エラーコード","href":"/ja/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"外部ツール連携","pages":[{"title":"外部ツール連携","href":"/ja/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/ja/v2.2.6/sambastack/getting-started/introduction"}]},{"tab":"リリースノート","pages":[{"title":"リリースノート","href":"/ja/release-notes/overview"}]}]}]},{"version":"v2.2.6","languages":[{"language":"en","tabs":[{"tab":"Developer guide","pages":[{"title":"Developer guide","href":"/en/get-started/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"sidebarTitle":"API Reference","title":"SambaNova API reference","mode":"wide","href":"/en/api-reference/overview"}]},{"group":"Inference API","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API","pages":[{"sidebarTitle":"Overview","title":"Chat agents API overview","mode":"wide","href":"/en/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"Using the API","pages":[{"sidebarTitle":"API Error Codes","title":"API error codes","href":"/en/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/en/v2.2.6/sambastack/getting-started/introduction"}]},{"tab":"Release notes","pages":[{"title":"Release notes","href":"/en/release-notes/overview"}]}]},{"language":"ja","tabs":[{"tab":"開発者ガイド","pages":[{"title":"開発者ガイド","href":"/ja/get-started/overview"}]},{"tab":"API リファレンス","groups":[{"group":"概要","pages":[{"sidebarTitle":"API リファレンス","title":"SambaNova API リファレンス","mode":"wide","href":"/ja/api-reference/overview"}]},{"group":"推論 API (英語)","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API (英語)","pages":[{"sidebarTitle":"概要","title":"チャットエージェント API の概要","mode":"wide","href":"/ja/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"API の使用","pages":[{"sidebarTitle":"API エラーコード","title":"API エラーコード","href":"/ja/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"外部ツール連携","pages":[{"title":"外部ツール連携","href":"/ja/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/ja/v2.2.6/sambastack/getting-started/introduction"}]},{"tab":"リリースノート","pages":[{"title":"リリースノート","href":"/ja/release-notes/overview"}]}]}]},{"version":"v2.2.5","languages":[{"language":"en","tabs":[{"tab":"Developer guide","pages":[{"title":"Developer guide","href":"/en/get-started/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"sidebarTitle":"API Reference","title":"SambaNova API reference","mode":"wide","href":"/en/api-reference/overview"}]},{"group":"Inference API","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API","pages":[{"sidebarTitle":"Overview","title":"Chat agents API overview","mode":"wide","href":"/en/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"Using the API","pages":[{"sidebarTitle":"API Error Codes","title":"API error codes","href":"/en/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/en/v2.2.5/sambastack/getting-started/introduction"}]},{"tab":"Release notes","pages":[{"title":"Release notes","href":"/en/release-notes/overview"}]}]},{"language":"ja","tabs":[{"tab":"開発者ガイド","pages":[{"title":"開発者ガイド","href":"/ja/get-started/overview"}]},{"tab":"API リファレンス","groups":[{"group":"概要","pages":[{"sidebarTitle":"API リファレンス","title":"SambaNova API リファレンス","mode":"wide","href":"/ja/api-reference/overview"}]},{"group":"推論 API (英語)","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API (英語)","pages":[{"sidebarTitle":"概要","title":"チャットエージェント API の概要","mode":"wide","href":"/ja/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"API の使用","pages":[{"sidebarTitle":"API エラーコード","title":"API エラーコード","href":"/ja/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"外部ツール連携","pages":[{"title":"外部ツール連携","href":"/ja/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/ja/v2.2.5/sambastack/getting-started/introduction"}]},{"tab":"リリースノート","pages":[{"title":"リリースノート","href":"/ja/release-notes/overview"}]}]}]},{"version":"v2.2.3","languages":[{"language":"en","tabs":[{"tab":"Developer guide","pages":[{"title":"Developer guide","href":"/en/get-started/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"sidebarTitle":"API Reference","title":"SambaNova API reference","mode":"wide","href":"/en/api-reference/overview"}]},{"group":"Inference API","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API","pages":[{"sidebarTitle":"Overview","title":"Chat agents API overview","mode":"wide","href":"/en/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"Using the API","pages":[{"sidebarTitle":"API Error Codes","title":"API error codes","href":"/en/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/en/v2.2.3/sambastack/getting-started/introduction"}]},{"tab":"Release notes","pages":[{"title":"Release notes","href":"/en/release-notes/overview"}]}]},{"language":"ja","tabs":[{"tab":"開発者ガイド","pages":[{"title":"開発者ガイド","href":"/ja/get-started/overview"}]},{"tab":"API リファレンス","groups":[{"group":"概要","pages":[{"sidebarTitle":"API リファレンス","title":"SambaNova API リファレンス","mode":"wide","href":"/ja/api-reference/overview"}]},{"group":"推論 API (英語)","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API (英語)","pages":[{"sidebarTitle":"概要","title":"チャットエージェント API の概要","mode":"wide","href":"/ja/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"API の使用","pages":[{"sidebarTitle":"API エラーコード","title":"API エラーコード","href":"/ja/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"外部ツール連携","pages":[{"title":"外部ツール連携","href":"/ja/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/ja/v2.2.3/sambastack/getting-started/introduction"}]},{"tab":"リリースノート","pages":[{"title":"リリースノート","href":"/ja/release-notes/overview"}]}]}]},{"version":"v2.1.2","languages":[{"language":"en","tabs":[{"tab":"Developer guide","pages":[{"title":"Developer guide","href":"/en/get-started/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"sidebarTitle":"API Reference","title":"SambaNova API reference","mode":"wide","href":"/en/api-reference/overview"}]},{"group":"Inference API","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API","pages":[{"sidebarTitle":"Overview","title":"Chat agents API overview","mode":"wide","href":"/en/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"Using the API","pages":[{"sidebarTitle":"API Error Codes","title":"API error codes","href":"/en/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/en/v2.1.2/sambastack/getting-started/introduction"}]},{"tab":"Release notes","pages":[{"title":"Release notes","href":"/en/release-notes/overview"}]}]},{"language":"ja","tabs":[{"tab":"開発者ガイド","pages":[{"title":"開発者ガイド","href":"/ja/get-started/overview"}]},{"tab":"API リファレンス","groups":[{"group":"概要","pages":[{"sidebarTitle":"API リファレンス","title":"SambaNova API リファレンス","mode":"wide","href":"/ja/api-reference/overview"}]},{"group":"推論 API (英語)","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API (英語)","pages":[{"sidebarTitle":"概要","title":"チャットエージェント API の概要","mode":"wide","href":"/ja/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"API の使用","pages":[{"sidebarTitle":"API エラーコード","title":"API エラーコード","href":"/ja/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"外部ツール連携","pages":[{"title":"外部ツール連携","href":"/ja/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/ja/v2.1.2/sambastack/getting-started/introduction"}]},{"tab":"リリースノート","pages":[{"title":"リリースノート","href":"/ja/release-notes/overview"}]}]}]},{"version":"v2.1.1","languages":[{"language":"en","tabs":[{"tab":"Developer guide","pages":[{"title":"Developer guide","href":"/en/get-started/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"sidebarTitle":"API Reference","title":"SambaNova API reference","mode":"wide","href":"/en/api-reference/overview"}]},{"group":"Inference API","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API","pages":[{"sidebarTitle":"Overview","title":"Chat agents API overview","mode":"wide","href":"/en/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"Using the API","pages":[{"sidebarTitle":"API Error Codes","title":"API error codes","href":"/en/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/en/v2.1.1/sambastack/getting-started/introduction"}]},{"tab":"Release notes","pages":[{"title":"Release notes","href":"/en/release-notes/overview"}]}]},{"language":"ja","tabs":[{"tab":"開発者ガイド","pages":[{"title":"開発者ガイド","href":"/ja/get-started/overview"}]},{"tab":"API リファレンス","groups":[{"group":"概要","pages":[{"sidebarTitle":"API リファレンス","title":"SambaNova API リファレンス","mode":"wide","href":"/ja/api-reference/overview"}]},{"group":"推論 API (英語)","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API (英語)","pages":[{"sidebarTitle":"概要","title":"チャットエージェント API の概要","mode":"wide","href":"/ja/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"API の使用","pages":[{"sidebarTitle":"API エラーコード","title":"API エラーコード","href":"/ja/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"外部ツール連携","pages":[{"title":"外部ツール連携","href":"/ja/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/ja/v2.1.1/sambastack/getting-started/introduction"}]},{"tab":"リリースノート","pages":[{"title":"リリースノート","href":"/ja/release-notes/overview"}]}]}]},{"version":"v2.0.2","languages":[{"language":"en","tabs":[{"tab":"Developer guide","pages":[{"title":"Developer guide","href":"/en/get-started/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"sidebarTitle":"API Reference","title":"SambaNova API reference","mode":"wide","href":"/en/api-reference/overview"}]},{"group":"Inference API","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API","pages":[{"sidebarTitle":"Overview","title":"Chat agents API overview","mode":"wide","href":"/en/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"Using the API","pages":[{"sidebarTitle":"API Error Codes","title":"API error codes","href":"/en/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/en/v2.0.2/sambastack/getting-started/introduction"}]},{"tab":"Release notes","pages":[{"title":"Release notes","href":"/en/release-notes/overview"}]}]},{"language":"ja","tabs":[{"tab":"開発者ガイド","pages":[{"title":"開発者ガイド","href":"/ja/get-started/overview"}]},{"tab":"API リファレンス","groups":[{"group":"概要","pages":[{"sidebarTitle":"API リファレンス","title":"SambaNova API リファレンス","mode":"wide","href":"/ja/api-reference/overview"}]},{"group":"推論 API (英語)","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API (英語)","pages":[{"sidebarTitle":"概要","title":"チャットエージェント API の概要","mode":"wide","href":"/ja/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"API の使用","pages":[{"sidebarTitle":"API エラーコード","title":"API エラーコード","href":"/ja/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"外部ツール連携","pages":[{"title":"外部ツール連携","href":"/ja/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/ja/v2.0.2/sambastack/getting-started/introduction"}]},{"tab":"リリースノート","pages":[{"title":"リリースノート","href":"/ja/release-notes/overview"}]}]}]},{"version":"v1.2.0","languages":[{"language":"en","tabs":[{"tab":"Developer guide","pages":[{"title":"Developer guide","href":"/en/get-started/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"sidebarTitle":"API Reference","title":"SambaNova API reference","mode":"wide","href":"/en/api-reference/overview"}]},{"group":"Inference API","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API","pages":[{"sidebarTitle":"Overview","title":"Chat agents API overview","mode":"wide","href":"/en/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"Using the API","pages":[{"sidebarTitle":"API Error Codes","title":"API error codes","href":"/en/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/en/v1.2.0/sambastack/getting-started/introduction"}]},{"tab":"Release notes","pages":[{"title":"Release notes","href":"/en/release-notes/overview"}]}]},{"language":"ja","tabs":[{"tab":"開発者ガイド","pages":[{"title":"開発者ガイド","href":"/ja/get-started/overview"}]},{"tab":"API リファレンス","groups":[{"group":"概要","pages":[{"sidebarTitle":"API リファレンス","title":"SambaNova API リファレンス","mode":"wide","href":"/ja/api-reference/overview"}]},{"group":"推論 API (英語)","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API (英語)","pages":[{"sidebarTitle":"概要","title":"チャットエージェント API の概要","mode":"wide","href":"/ja/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"API の使用","pages":[{"sidebarTitle":"API エラーコード","title":"API エラーコード","href":"/ja/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"外部ツール連携","pages":[{"title":"外部ツール連携","href":"/ja/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/ja/v1.2.0/sambastack/getting-started/introduction"}]},{"tab":"リリースノート","pages":[{"title":"リリースノート","href":"/ja/release-notes/overview"}]}]}]},{"version":"v1.1.1","languages":[{"language":"en","tabs":[{"tab":"Developer guide","pages":[{"title":"Developer guide","href":"/en/get-started/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"sidebarTitle":"API Reference","title":"SambaNova API reference","mode":"wide","href":"/en/api-reference/overview"}]},{"group":"Inference API","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API","pages":[{"sidebarTitle":"Overview","title":"Chat agents API overview","mode":"wide","href":"/en/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"Using the API","pages":[{"sidebarTitle":"API Error Codes","title":"API error codes","href":"/en/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/en/v1.1.1/sambastack/getting-started/introduction"}]},{"tab":"Release notes","pages":[{"title":"Release notes","href":"/en/release-notes/overview"}]}]},{"language":"ja","tabs":[{"tab":"開発者ガイド","pages":[{"title":"開発者ガイド","href":"/ja/get-started/overview"}]},{"tab":"API リファレンス","groups":[{"group":"概要","pages":[{"sidebarTitle":"API リファレンス","title":"SambaNova API リファレンス","mode":"wide","href":"/ja/api-reference/overview"}]},{"group":"推論 API (英語)","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API (英語)","pages":[{"sidebarTitle":"概要","title":"チャットエージェント API の概要","mode":"wide","href":"/ja/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"API の使用","pages":[{"sidebarTitle":"API エラーコード","title":"API エラーコード","href":"/ja/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"外部ツール連携","pages":[{"title":"外部ツール連携","href":"/ja/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/ja/v1.1.1/sambastack/getting-started/introduction"}]},{"tab":"リリースノート","pages":[{"title":"リリースノート","href":"/ja/release-notes/overview"}]}]}]},{"version":"v1.0.57","languages":[{"language":"en","tabs":[{"tab":"Developer guide","pages":[{"title":"Developer guide","href":"/en/get-started/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"sidebarTitle":"API Reference","title":"SambaNova API reference","mode":"wide","href":"/en/api-reference/overview"}]},{"group":"Inference API","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API","pages":[{"sidebarTitle":"Overview","title":"Chat agents API overview","mode":"wide","href":"/en/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"Using the API","pages":[{"sidebarTitle":"API Error Codes","title":"API error codes","href":"/en/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/en/v1.0.57/sambastack/getting-started/introduction"}]},{"tab":"Release notes","pages":[{"title":"Release notes","href":"/en/release-notes/overview"}]}]},{"language":"ja","tabs":[{"tab":"開発者ガイド","pages":[{"title":"開発者ガイド","href":"/ja/get-started/overview"}]},{"tab":"API リファレンス","groups":[{"group":"概要","pages":[{"sidebarTitle":"API リファレンス","title":"SambaNova API リファレンス","mode":"wide","href":"/ja/api-reference/overview"}]},{"group":"推論 API (英語)","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API (英語)","pages":[{"sidebarTitle":"概要","title":"チャットエージェント API の概要","mode":"wide","href":"/ja/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"API の使用","pages":[{"sidebarTitle":"API エラーコード","title":"API エラーコード","href":"/ja/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"外部ツール連携","pages":[{"title":"外部ツール連携","href":"/ja/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/ja/v1.0.57/sambastack/getting-started/introduction"}]},{"tab":"リリースノート","pages":[{"title":"リリースノート","href":"/ja/release-notes/overview"}]}]}]},{"version":"v0.5.17","languages":[{"language":"en","tabs":[{"tab":"Developer guide","pages":[{"title":"Developer guide","href":"/en/get-started/overview"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"sidebarTitle":"API Reference","title":"SambaNova API reference","mode":"wide","href":"/en/api-reference/overview"}]},{"group":"Inference API","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API","pages":[{"sidebarTitle":"Overview","title":"Chat agents API overview","mode":"wide","href":"/en/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"Using the API","pages":[{"sidebarTitle":"API Error Codes","title":"API error codes","href":"/en/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/en/v0.5.17/sambastack/getting-started/introduction"}]},{"tab":"Release notes","pages":[{"title":"Release notes","href":"/en/release-notes/overview"}]}]},{"language":"ja","tabs":[{"tab":"開発者ガイド","pages":[{"title":"開発者ガイド","href":"/ja/get-started/overview"}]},{"tab":"API リファレンス","groups":[{"group":"概要","pages":[{"sidebarTitle":"API リファレンス","title":"SambaNova API リファレンス","mode":"wide","href":"/ja/api-reference/overview"}]},{"group":"推論 API (英語)","pages":[{"group":"Chat completions","pages":[{"title":"Create chat-based completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /chat/completions","href":"/api-reference/chat-completions/create-chat-based-completion"}]},{"group":"Completions","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /completions","href":"/api-reference/completions/create-completion"}]},{"group":"Responses","pages":[{"title":"Create a model response","description":"Creates a model response for the given input. Only `type: \"function\"` tools are supported; other tool types are filtered server-side. SambaNova is stateless, conversation history must be supplied in full via `input[]` on each request.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /responses","href":"/api-reference/responses/create-a-model-response"}]},{"group":"Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages","href":"/api-reference/messages/create-a-message"},{"title":"Count tokens for a message request","description":"Anthropic `count_tokens` compatible endpoint. Returns the number of input tokens that would be consumed by a `POST /messages` call with the same prompt content (system, messages, tools, tool_choice). Authentication accepts either the bearer `Authorization: Bearer \u003ckey>` header (SambaNova SDK default) or the `x-api-key` header (Anthropic SDK default); the same API key is used in both cases.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /messages/count_tokens","href":"/api-reference/messages/count-tokens-for-a-message-request"}]},{"group":"Embeddings","pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Audio","pages":[{"title":"Transcribes audio into the input language.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/transcriptions","href":"/api-reference/audio/transcribes-audio-into-the-input-language"},{"title":"Translate audio into English.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json post /audio/translations","href":"/api-reference/audio/translate-audio-into-english"}]},{"group":"Models","pages":[{"title":"Get environment's available model list metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models","href":"/api-reference/models/get-environments-available-model-list-metadata"},{"title":"Get environment's available model metadata","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/sambanova-inference-api-spec/refs/heads/main/openapi.documented.json get /models/{model_id}","href":"/api-reference/models/get-environments-available-model-metadata"}]}]},{"group":"Chat Agents API (英語)","pages":[{"sidebarTitle":"概要","title":"チャットエージェント API の概要","mode":"wide","href":"/ja/agents-api-reference/overview"},{"group":"Main Agent","pages":[{"title":"Main Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent","href":"/api-reference/main-agent/main-agent"}]},{"group":"Main Agent Interactive","pages":[{"title":"Main Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/mainagent/interactive","href":"/api-reference/main-agent-interactive/main-agent-interactive"}]},{"group":"Subagents","pages":[{"title":"Coding Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding","href":"/api-reference/subagents/coding-agent"},{"title":"Datascience Agent And Report","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience","href":"/api-reference/subagents/datascience-agent-and-report"},{"title":"Deepresearch Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch","href":"/api-reference/subagents/deepresearch-agent"},{"title":"Financial Analysis Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis","href":"/api-reference/subagents/financial-analysis-agent"}]},{"group":"Subagents Interactive","pages":[{"title":"Coding Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/coding/interactive","href":"/api-reference/subagents-interactive/coding-agent-interactive"},{"title":"Datascience Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience/interactive","href":"/api-reference/subagents-interactive/datascience-interactive"},{"title":"Deepresearch Interactive Agent","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/deepresearch/interactive","href":"/api-reference/subagents-interactive/deepresearch-interactive-agent"},{"title":"Financial Analysis Agent Interactive","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/financialanalysis/interactive","href":"/api-reference/subagents-interactive/financial-analysis-agent-interactive"}]},{"group":"File Management","pages":[{"title":"Download Agent File","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml get /agent/files/{file_id}","href":"/api-reference/file-management/download-agent-file"}]}]},{"group":"API の使用","pages":[{"sidebarTitle":"API エラーコード","title":"API エラーコード","href":"/ja/api-reference/using-the-api/api-error-codes"}]}]},{"tab":"外部ツール連携","pages":[{"title":"外部ツール連携","href":"/ja/integrations/overview"}]},{"tab":"SambaStack","pages":[{"title":"SambaStack","href":"/ja/v0.5.17/sambastack/getting-started/introduction"}]},{"tab":"リリースノート","pages":[{"title":"リリースノート","href":"/ja/release-notes/overview"}]}]}]}]},"basePath":"","title":"Create a message - SambaNova Documentation","buildId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","deploymentId":"dpl_Aw98ji4XvBsgtZwL1VrkUF9ehFqz","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CQGbdtm4.js","utils-D88A1f-Z.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChqWdz1A.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-yBrxdh_6.js","snippetPresets-BgqDrFJC.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-Duxc2rZw.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C7jidOil.js","shallow-xkjpHm-U.js","getApiPlaygroundDisplay-fE3rVpvL.js","CodeSnippet-LgxljKed.js","CodeSnippets-D-pXWDHq.js","Page-C2-BijcO.js","getPastedJson-CLRcu-uo.js","icon-Cxirpjgo.js","MethodPill-D49eqY5e.js","DuplicateIcon-CivCz5Rp.js","createIcon-D71qL3f5.js","DynamicMarkdown-BcGRTrw6.js","SectionHeading-DzaqmmSD.js","axios-vUo_bRtp.js","Markdown-CZqUYmMp.js","clsx-B6IZIRsp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-B0ZV6X5T.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-MqLyPtsW.js"]}