To create an Anthropic message, use the following endpoint:POST /v1/messages
This endpoint is compatible with the Anthropic SDK (anthropic Python/Node.js package). Point
your SDK at https://api.routeway.ai and replace your Anthropic API key with your Routeway
key — no other changes needed.
An array of message objects forming the conversation. Each object must have a role
("user" or "assistant") and a content field (string or array of content blocks).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Routeway Docs","colors":{"primary":"#2563EB","light":"#EFF6FF","dark":"#3B82F6"},"favicon":"https://mintcdn.com/clashai-de6ad0cc/2_Y3YcKnIfODaDl3/logo/favicon.ico?fit=max\u0026auto=format\u0026n=2_Y3YcKnIfODaDl3\u0026q=85\u0026s=d5435736b864f150fdd8c06a82e353c7","api":{"playground":{"display":"interactive"}},"navbar":{"links":[{"href":"/getting-started/faq#still-stuck","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://routeway.ai"}},"footer":{"socials":{"x":"https://x.com/routewayai","discord":"https://discord.gg/Mynq6vGVPE"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"clashai-de6ad0cc","hasAudioNarration":false,"actualSubdomain":"clashai-de6ad0cc","customDomains":["docs.routeway.ai"],"gitSource":{"type":"github","owner":"routeway-ai","repo":"routeway-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":false,"edits":false,"agentFeedback":true},"entitlements":{},"buildId":"6ae925548786a2a7a5ab2c39:success","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Docs","count":38},{"language":"default","tag":"Integrations","count":22},{"language":"default","tag":"API Reference","count":19},{"language":"default","tag":"Chat Completions","count":15},{"language":"default","tag":"Guides","count":14},{"language":"default","tag":"Core Concepts","count":12},{"language":"default","tag":"Agents","count":12},{"language":"default","tag":"Account","count":8},{"language":"default","tag":"Image Generation","count":6},{"language":"default","tag":"Roleplay Platforms","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/Messages/messages","slug":"/api-reference/Messages/messages","pageMetadata":{"title":"Anthropic Messages","openapi":"POST /v1/messages","description":"Send a message to the Anthropic models. Supports streaming and non-streaming responses.","href":"/api-reference/Messages/messages"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Send a message to the Anthropic models. Supports streaming and non-streaming responses.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Heading,Info,ParamField}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Send a message to Anthropic models using the native Anthropic Messages API format. Supports streaming and non-streaming responses.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-anthropic-message`,children:`Create Anthropic Message`}),`\n`,_jsx(_components.p,{children:`To create an Anthropic message, use the following endpoint:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /v1/messages`})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`This endpoint is compatible with the Anthropic SDK (`,_jsx(_components.code,{children:`anthropic`}),` Python/Node.js package). Point\nyour SDK at `,_jsx(_components.code,{children:`https://api.routeway.ai`}),` and replace your Anthropic API key with your Routeway\nkey — no other changes needed.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`The Anthropic model ID to use (e.g. `,_jsx(_components.code,{children:`\"claude-opus-4-5\"`}),`, `,_jsx(_components.code,{children:`\"claude-sonnet-4-5\"`}),`). See\n`,_jsx(_components.a,{href:`/getting-started/models`,children:`Models`}),` for the full list of supported Anthropic models.`]})}),`\n`,_jsx(ParamField,{body:`messages`,type:`array`,required:true,id:`param-messages`,children:_jsxs(_components.p,{children:[`An array of message objects forming the conversation. Each object must have a `,_jsx(_components.code,{children:`role`}),`\n(`,_jsx(_components.code,{children:`\"user\"`}),` or `,_jsx(_components.code,{children:`\"assistant\"`}),`) and a `,_jsx(_components.code,{children:`content`}),` field (string or array of content blocks).`]})}),`\n`,_jsx(ParamField,{body:`max_tokens`,type:`integer`,required:true,id:`param-max-tokens`,children:_jsx(_components.p,{children:`The maximum number of tokens to generate before stopping.`})}),`\n`,_jsx(ParamField,{body:`system`,type:`string | array`,id:`param-system`,children:_jsx(_components.p,{children:`A system prompt that provides context and instructions to the model. Can be a plain string\nor an array of content blocks.`})}),`\n`,_jsx(ParamField,{body:`temperature`,type:`number`,id:`param-temperature`,children:_jsx(_components.p,{children:`Sampling temperature between 0 and 1. Higher values produce more varied outputs.`})}),`\n`,_jsx(ParamField,{body:`stream`,type:`boolean`,id:`param-stream`,children:_jsx(_components.p,{children:`Whether to stream the response as Server-Sent Events (SSE).`})}),`\n`,_jsx(ParamField,{body:`stop_sequences`,type:`array`,id:`param-stop-sequences`,children:_jsx(_components.p,{children:`Custom text sequences that will cause the model to stop generating.`})}),`\n`,_jsx(ParamField,{body:`tools`,type:`array`,id:`param-tools`,children:_jsxs(_components.p,{children:[`A list of tools the model may call. Each tool must have a `,_jsx(_components.code,{children:`name`}),`, optional `,_jsx(_components.code,{children:`description`}),`,\nand an `,_jsx(_components.code,{children:`input_schema`}),` (JSON Schema object).`]})}),`\n`,_jsx(ParamField,{body:`tool_choice`,type:`object`,id:`param-tool-choice`,children:_jsxs(_components.p,{children:[`Controls tool use. Can be `,_jsx(_components.code,{children:`{\"type\": \"auto\"}`}),`, `,_jsx(_components.code,{children:`{\"type\": \"any\"}`}),`, or\n`,_jsx(_components.code,{children:`{\"type\": \"tool\", \"name\": \"...\"}`}),`.`]})}),`\n`,_jsx(ParamField,{body:`top_p`,type:`number`,id:`param-top-p`,children:_jsxs(_components.p,{children:[`Nucleus sampling parameter. Use `,_jsx(_components.code,{children:`temperature`}),` or `,_jsx(_components.code,{children:`top_p`}),`, but not both.`]})}),`\n`,_jsx(ParamField,{body:`top_k`,type:`integer`,id:`param-top-k`,children:_jsx(_components.p,{children:`Only sample from the top K options for each subsequent token.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Anthropic Messages","openapi":"POST /v1/messages","description":"Send a message to the Anthropic models. Supports streaming and non-streaming responses.","href":"/api-reference/Messages/messages"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,ParamField,RequestExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Send a message to Anthropic models using the native Anthropic Messages API format. Supports streaming and non-streaming responses.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-anthropic-message`,children:`Create Anthropic Message`}),`\n`,_jsx(_components.p,{children:`To create an Anthropic message, use the following endpoint:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /v1/messages`})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`This endpoint is compatible with the Anthropic SDK (`,_jsx(_components.code,{children:`anthropic`}),` Python/Node.js package). Point\nyour SDK at `,_jsx(_components.code,{children:`https://api.routeway.ai`}),` and replace your Anthropic API key with your Routeway\nkey — no other changes needed.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`The Anthropic model ID to use (e.g. `,_jsx(_components.code,{children:`\"claude-opus-4-5\"`}),`, `,_jsx(_components.code,{children:`\"claude-sonnet-4-5\"`}),`). See\n`,_jsx(_components.a,{href:`/getting-started/models`,children:`Models`}),` for the full list of supported Anthropic models.`]})}),`\n`,_jsx(ParamField,{body:`messages`,type:`array`,required:true,id:`param-messages`,children:_jsxs(_components.p,{children:[`An array of message objects forming the conversation. Each object must have a `,_jsx(_components.code,{children:`role`}),`\n(`,_jsx(_components.code,{children:`\"user\"`}),` or `,_jsx(_components.code,{children:`\"assistant\"`}),`) and a `,_jsx(_components.code,{children:`content`}),` field (string or array of content blocks).`]})}),`\n`,_jsx(ParamField,{body:`max_tokens`,type:`integer`,required:true,id:`param-max-tokens`,children:_jsx(_components.p,{children:`The maximum number of tokens to generate before stopping.`})}),`\n`,_jsx(ParamField,{body:`system`,type:`string | array`,id:`param-system`,children:_jsx(_components.p,{children:`A system prompt that provides context and instructions to the model. Can be a plain string\nor an array of content blocks.`})}),`\n`,_jsx(ParamField,{body:`temperature`,type:`number`,id:`param-temperature`,children:_jsx(_components.p,{children:`Sampling temperature between 0 and 1. Higher values produce more varied outputs.`})}),`\n`,_jsx(ParamField,{body:`stream`,type:`boolean`,id:`param-stream`,children:_jsx(_components.p,{children:`Whether to stream the response as Server-Sent Events (SSE).`})}),`\n`,_jsx(ParamField,{body:`stop_sequences`,type:`array`,id:`param-stop-sequences`,children:_jsx(_components.p,{children:`Custom text sequences that will cause the model to stop generating.`})}),`\n`,_jsx(ParamField,{body:`tools`,type:`array`,id:`param-tools`,children:_jsxs(_components.p,{children:[`A list of tools the model may call. Each tool must have a `,_jsx(_components.code,{children:`name`}),`, optional `,_jsx(_components.code,{children:`description`}),`,\nand an `,_jsx(_components.code,{children:`input_schema`}),` (JSON Schema object).`]})}),`\n`,_jsx(ParamField,{body:`tool_choice`,type:`object`,id:`param-tool-choice`,children:_jsxs(_components.p,{children:[`Controls tool use. Can be `,_jsx(_components.code,{children:`{\"type\": \"auto\"}`}),`, `,_jsx(_components.code,{children:`{\"type\": \"any\"}`}),`, or\n`,_jsx(_components.code,{children:`{\"type\": \"tool\", \"name\": \"...\"}`}),`.`]})}),`\n`,_jsx(ParamField,{body:`top_p`,type:`number`,id:`param-top-p`,children:_jsxs(_components.p,{children:[`Nucleus sampling parameter. Use `,_jsx(_components.code,{children:`temperature`}),` or `,_jsx(_components.code,{children:`top_p`}),`, but not both.`]})}),`\n`,_jsx(ParamField,{body:`top_k`,type:`integer`,id:`param-top-k`,children:_jsx(_components.p,{children:`Only sample from the top K options for each subsequent token.`})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` anthropic`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` anthropic.Anthropic(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` base_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.routeway.ai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.getenv(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ROUTEWAY_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`message `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.messages.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"claude-opus-4-5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` max_tokens`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1024`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello, Claude!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(message.content[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].text)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`14`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Anthropic`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@anthropic-ai/sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Anthropic`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` baseURL:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.routeway.ai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`ROUTEWAY_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` message`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`messages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` model:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"claude-opus-4-5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` max_tokens:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1024`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` messages:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`role:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Hello, Claude!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`].`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.routeway.ai/v1/messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ROUTEWAY_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"claude-opus-4-5\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"max_tokens\": 1024,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"messages\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {\"role\": \"user\", \"content\": \"Hello, Claude!\"}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Anthropic Messages","openapi":"POST /v1/messages","description":"Send a message to the Anthropic models. Supports streaming and non-streaming responses.","href":"/api-reference/Messages/messages"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Create Anthropic Message","slug":"create-anthropic-message","depth":2,"children":[{"title":"Request Body","slug":"request-body","depth":3,"children":[]}]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"17\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> os\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> anthropic\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">client \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> anthropic.Anthropic(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> base_url\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api.routeway.ai\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> api_key\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">os.getenv(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ROUTEWAY_API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">message \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> client.messages.create(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> model\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"claude-opus-4-5\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> max_tokens\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1024\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> messages\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"role\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"user\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"content\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Hello, Claude!\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(message.content[\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">].text)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Node.js","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Anthropic\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> from\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"@anthropic-ai/sdk\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> client\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> new\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> Anthropic\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> baseURL:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.routeway.ai\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> apiKey:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> process\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">env\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">ROUTEWAY_API_KEY\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> message\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> client\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">messages\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">create\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> model:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"claude-opus-4-5\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> max_tokens:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 1024\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> messages:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [{ \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">role:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">content:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Hello, Claude!\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">message\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">content\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">[\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">].\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">text\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.routeway.ai/v1/messages\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$ROUTEWAY_API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"claude-opus-4-5\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"max_tokens\": 1024,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"messages\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> {\"role\": \"user\", \"content\": \"Hello, Claude!\"}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/clashai-de6ad0cc/780c66ce96fed920/routeway-analytics.js"],"openApiReferenceData":{"operation":{"tags":["Anthropic Messages"],"summary":"Create Anthropic Message (v1)","description":"Send a message to the Anthropic models. Supports streaming and non-streaming responses.","operationId":"anthropic_messages_v1_messages_post","parameters":["648cc36a-4f81-4a89-9d75-710ac59bda94"],"requestBody":"852d950e-64bf-40ef-87fb-5fbb7c48234b","responses":{"200":"1b31d4f6-7a80-4138-9492-55981e7cd46a","400":"d2edc3fc-ddfe-429b-b993-5d2c60e729e9","401":"0e1eeb2b-fb21-49ae-80f3-c235615d2b0d","403":"fe9f4351-9072-409b-a8c1-699984327d71","422":"7a0b8224-5121-4568-b89d-43a5bd13a2d2","429":"687056be-acdd-4d3a-9d67-9afd7ff51c26","500":"d8355207-a0eb-489a-8e0c-bfb386bcd4ec","502":"b3eb9432-39a9-48ec-ba57-f997f249837a"},"method":"post","type":"path","servers":["1d114d6e-bfaa-4431-894b-5546e3bb782a"],"security":["a13e6b3f-9321-402c-b9ae-61febd72e477"],"path":"/v1/messages","baseUrlOptions":["https://api.routeway.ai"],"title":"Create Anthropic Message (v1)","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"python","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"python","children":{"type":"code","key":null,"ref":null,"props":{"language":"python","numberOfLines":"17","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" os"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" anthropic"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"client "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" anthropic.Anthropic("}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" base_url"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://api.routeway.ai\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" api_key"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"os.getenv("}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"ROUTEWAY_API_KEY\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"message "}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" client.messages.create("}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" model"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"claude-opus-4-5\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" max_tokens"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"1024"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#9CDCFE"},"children":" messages"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":"="}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}}]}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" {"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"role\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"user\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"content\""}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Hello, Claude!\""}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}]}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" ]"}}}},"\n",{"type":"span","key":"28","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":")"}}}},"\n",{"type":"span","key":"30","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"32","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#DCDCAA"},"children":"print"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"(message.content["}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"0"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"].text)"}}]}},"\n"]}}}},"filename":"Python"},{"dropdown":false,"language":"javascript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"javascript","children":{"type":"code","key":null,"ref":null,"props":{"language":"javascript","numberOfLines":"14","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":"import"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" Anthropic"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" from"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"@anthropic-ai/sdk\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":";"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" client"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":" new"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":" Anthropic"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"({"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" baseURL:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"https://api.routeway.ai\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" apiKey:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" process"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"env"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":"ROUTEWAY_API_KEY"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"});"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#569CD6"},"children":"const"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#4FC1FF"},"children":" message"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D4D4D4"},"children":" ="}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#C586C0"},"children":" await"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" client"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"messages"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"create"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"({"}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" model:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"claude-opus-4-5\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" max_tokens:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":" 1024"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":" messages:"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" [{ "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"role:"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"user\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":", "}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"content:"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Hello, Claude!\""}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" }],"}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"});"}}}},"\n",{"type":"span","key":"24","ref":null,"props":{"className":"line","children":null}},"\n",{"type":"span","key":"26","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"console"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#8250DF","--shiki-dark":"#DCDCAA"},"children":"log"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"("}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"message"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"."}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"content"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"["}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"0"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"]."}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"text"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":");"}}]}},"\n"]}}}},"filename":"Node.js"},{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"10","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" https://api.routeway.ai/v1/messages"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Authorization: Bearer "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#9CDCFE"},"children":"$ROUTEWAY_API_KEY"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\""}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '{"}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"model\": \"claude-opus-4-5\","}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"max_tokens\": 1024,"}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"messages\": ["}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" {\"role\": \"user\", \"content\": \"Hello, Claude!\"}"}}}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" ]"}}}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }'"}}}},"\n"]}}}},"filename":"cURL"}],"requestExampleType":"mdx","responseExampleType":"generated"},"dependencies":{"parameters":{"648cc36a-4f81-4a89-9d75-710ac59bda94":{"name":"x-api-key","in":"header","required":false,"schema":{"type":"string","title":"X-Api-Key","isRequired":false,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"model":{"type":"string","title":"Model","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"max_tokens":{"type":"integer","exclusiveMinimum":0,"title":"Max Tokens","isRequired":true,"uniqueKey":"max_tokens","typeLabel":"integer"},"messages":{"items":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role","isRequired":true,"uniqueKey":"messages.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","title":"Content","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","title":"TextBlock","required":["text"],"properties":{"text":{"type":"string","title":"Text","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","const":"text","title":"Type","default":"text","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"string"},"cache_control":{"oneOf":[{"type":"object","title":"Cache Control","additionalProperties":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control.oneOf.0","typeLabel":"Cache Control · object"},{"type":"null","title":"Cache Control","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"Cache Control · object | null"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"TextBlock · object"},{"type":"object","title":"ImageBlock","required":["source"],"properties":{"source":{"properties":{"type":{"type":"string","enum":["base64","url"],"title":"Type","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","enum":["image/jpeg","image/png","image/gif","image/webp"],"title":"Media Type","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.media_type","typeLabel":"enum\u003cstring>"},"data":{"oneOf":[{"type":"string","title":"Data","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.data.oneOf.0","typeLabel":"string"},{"type":"null","title":"Data","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.data","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","title":"Url","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Url","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.url","typeLabel":"string | null"}},"type":"object","required":["type","media_type"],"title":"ImageSource","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source","typeLabel":"ImageSource · object"},"type":{"type":"string","const":"image","title":"Type","default":"image","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"ImageBlock · object"},{"type":"object","title":"DocumentBlock","required":["source"],"properties":{"source":{"properties":{"type":{"type":"string","enum":["base64","url"],"title":"Type","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","const":"application/pdf","title":"Media Type","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.media_type","typeLabel":"string"},"data":{"oneOf":[{"type":"string","title":"Data","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.data.oneOf.0","typeLabel":"string"},{"type":"null","title":"Data","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.data","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","title":"Url","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Url","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.url","typeLabel":"string | null"}},"type":"object","required":["type","media_type"],"title":"DocumentSource","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source","typeLabel":"DocumentSource · object"},"type":{"type":"string","const":"document","title":"Type","default":"document","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"DocumentBlock · object"},{"type":"object","title":"ToolUseBlock","required":["id","name","input"],"properties":{"id":{"type":"string","title":"Id","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.id","typeLabel":"string"},"name":{"type":"string","title":"Name","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.name","typeLabel":"string"},"input":{"additionalProperties":true,"type":"object","title":"Input","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.input","typeLabel":"Input · object"},"type":{"type":"string","const":"tool_use","title":"Type","default":"tool_use","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"ToolUseBlock · object"},{"type":"object","title":"ToolResultBlock","required":["tool_use_id","content"],"properties":{"tool_use_id":{"type":"string","title":"Tool Use Id","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.tool_use_id","typeLabel":"string"},"content":{"oneOf":[{"type":"string","title":"Content","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"additionalProperties":true,"type":"object","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"title":"Content","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"Content · object[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content","typeLabel":"string | Content · object[]"},"type":{"type":"string","const":"tool_result","title":"Type","default":"tool_result","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.type","typeLabel":"string"},"is_error":{"oneOf":[{"type":"boolean","title":"Is Error","default":false,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.is_error.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Is Error","default":false,"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"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4","typeLabel":"ToolResultBlock · object"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"TextBlock · object | ImageBlock · object | DocumentBlock · object | ToolUseBlock · object | ToolResultBlock · object"},"title":"Content","isRequired":true,"uniqueKey":"messages.items.[INDEX].content.oneOf.1","typeLabel":"(TextBlock · object | ImageBlock · object | DocumentBlock · object | ToolUseBlock · object | ToolResultBlock · object)[]"}],"isRequired":true,"uniqueKey":"messages.items.[INDEX].content","typeLabel":"string | (TextBlock · object | ImageBlock · object | DocumentBlock · object | ToolUseBlock · object | ToolResultBlock · object)[]"}},"type":"object","required":["role","content"],"title":"Message","uniqueKey":"messages.items.[INDEX]","typeLabel":"Message · object"},"type":"array","title":"Messages","isRequired":true,"uniqueKey":"messages","typeLabel":"Message · object[]"},"system":{"oneOf":[{"type":"string","title":"System","uniqueKey":"system.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","title":"TextBlock","required":["text"],"properties":{"text":{"type":"string","title":"Text","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","const":"text","title":"Type","default":"text","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"string"},"cache_control":{"oneOf":[{"type":"object","title":"Cache Control","additionalProperties":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.0.cache_control.oneOf.0","typeLabel":"Cache Control · object"},{"type":"null","title":"Cache Control","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.0.cache_control.oneOf.1","typeLabel":"null"}],"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"Cache Control · object | null"}},"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"TextBlock · object"},{"type":"object","title":"ImageBlock","required":["source"],"properties":{"source":{"properties":{"type":{"type":"string","enum":["base64","url"],"title":"Type","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.1.source.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","enum":["image/jpeg","image/png","image/gif","image/webp"],"title":"Media Type","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.1.source.media_type","typeLabel":"enum\u003cstring>"},"data":{"oneOf":[{"type":"string","title":"Data","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.1.source.data.oneOf.0","typeLabel":"string"},{"type":"null","title":"Data","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.1.source.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.1.source.data","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","title":"Url","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.1.source.url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Url","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.1.source.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.1.source.url","typeLabel":"string | null"}},"type":"object","required":["type","media_type"],"title":"ImageSource","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.1.source","typeLabel":"ImageSource · object"},"type":{"type":"string","const":"image","title":"Type","default":"image","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"ImageBlock · object"},{"type":"object","title":"DocumentBlock","required":["source"],"properties":{"source":{"properties":{"type":{"type":"string","enum":["base64","url"],"title":"Type","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.2.source.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","const":"application/pdf","title":"Media Type","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.2.source.media_type","typeLabel":"string"},"data":{"oneOf":[{"type":"string","title":"Data","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.2.source.data.oneOf.0","typeLabel":"string"},{"type":"null","title":"Data","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.2.source.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.2.source.data","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","title":"Url","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.2.source.url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Url","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.2.source.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.2.source.url","typeLabel":"string | null"}},"type":"object","required":["type","media_type"],"title":"DocumentSource","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.2.source","typeLabel":"DocumentSource · object"},"type":{"type":"string","const":"document","title":"Type","default":"document","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"string"}},"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"DocumentBlock · object"},{"type":"object","title":"ToolUseBlock","required":["id","name","input"],"properties":{"id":{"type":"string","title":"Id","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.3.id","typeLabel":"string"},"name":{"type":"string","title":"Name","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.3.name","typeLabel":"string"},"input":{"additionalProperties":true,"type":"object","title":"Input","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.3.input","typeLabel":"Input · object"},"type":{"type":"string","const":"tool_use","title":"Type","default":"tool_use","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"string"}},"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"ToolUseBlock · object"},{"type":"object","title":"ToolResultBlock","required":["tool_use_id","content"],"properties":{"tool_use_id":{"type":"string","title":"Tool Use Id","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.4.tool_use_id","typeLabel":"string"},"content":{"oneOf":[{"type":"string","title":"Content","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"additionalProperties":true,"type":"object","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"title":"Content","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"Content · object[]"}],"isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.4.content","typeLabel":"string | Content · object[]"},"type":{"type":"string","const":"tool_result","title":"Type","default":"tool_result","uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.4.type","typeLabel":"string"},"is_error":{"oneOf":[{"type":"boolean","title":"Is Error","default":false,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.4.is_error.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Is Error","default":false,"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.4.is_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.4.is_error","typeLabel":"boolean | null"}},"uniqueKey":"system.oneOf.1.items.[INDEX].oneOf.4","typeLabel":"ToolResultBlock · object"}],"uniqueKey":"system.oneOf.1.items.[INDEX]","typeLabel":"TextBlock · object | ImageBlock · object | DocumentBlock · object | ToolUseBlock · object | ToolResultBlock · object"},"title":"System","uniqueKey":"system.oneOf.1","typeLabel":"(TextBlock · object | ImageBlock · object | DocumentBlock · object | ToolUseBlock · object | ToolResultBlock · object)[]"},{"type":"null","title":"System","uniqueKey":"system.oneOf.2","typeLabel":"null"}],"uniqueKey":"system","typeLabel":"string | (TextBlock · object | ImageBlock · object | DocumentBlock · object | ToolUseBlock · object | ToolResultBlock · object)[] | null"},"stream":{"oneOf":[{"type":"boolean","title":"Stream","default":false,"uniqueKey":"stream.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Stream","default":false,"uniqueKey":"stream.oneOf.1","typeLabel":"null"}],"uniqueKey":"stream","typeLabel":"boolean | null"},"temperature":{"oneOf":[{"type":"number","title":"Temperature","maximum":2,"minimum":0,"uniqueKey":"temperature.oneOf.0","typeLabel":"number"},{"type":"null","title":"Temperature","uniqueKey":"temperature.oneOf.1","typeLabel":"null"}],"uniqueKey":"temperature","typeLabel":"number | null"},"top_p":{"oneOf":[{"type":"number","title":"Top P","maximum":1,"minimum":0,"uniqueKey":"top_p.oneOf.0","typeLabel":"number"},{"type":"null","title":"Top P","uniqueKey":"top_p.oneOf.1","typeLabel":"null"}],"uniqueKey":"top_p","typeLabel":"number | null"},"top_k":{"oneOf":[{"type":"integer","title":"Top K","minimum":0,"uniqueKey":"top_k.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Top K","uniqueKey":"top_k.oneOf.1","typeLabel":"null"}],"uniqueKey":"top_k","typeLabel":"integer | null"},"stop_sequences":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"stop_sequences.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Stop Sequences","uniqueKey":"stop_sequences.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Stop Sequences","uniqueKey":"stop_sequences.oneOf.1","typeLabel":"null"}],"uniqueKey":"stop_sequences","typeLabel":"string[] | null"},"tools":{"oneOf":[{"type":"array","items":{"properties":{"name":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,64}$","title":"Name","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","title":"Description","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].description","typeLabel":"string"},"input_schema":{"properties":{"properties":{"additionalProperties":{"properties":{"type":{"oneOf":[{"type":"string","title":"Type","enum":["string","number","boolean","object","array","integer","null"],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Type","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.type.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.type","typeLabel":"enum\u003cstring> | null"},"description":{"oneOf":[{"type":"string","title":"Description","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.description.oneOf.0","typeLabel":"string"},{"type":"null","title":"Description","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.description","typeLabel":"string | null"},"enum":{"oneOf":[{"type":"array","items":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.enum.oneOf.0.items.[INDEX]","typeLabel":"any"},"title":"Enum","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.enum.oneOf.0","typeLabel":"any[]"},{"type":"null","title":"Enum","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.enum.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.enum","typeLabel":"any[] | null"},"items":{"oneOf":[{"type":"object","title":"Items","additionalProperties":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.\\items.oneOf.0","typeLabel":"Items · object"},{"type":"null","title":"Items","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.\\items.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.\\items","typeLabel":"Items · object | null"},"properties":{"oneOf":[{"type":"object","title":"Properties","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.properties.oneOf.0","typeLabel":"Properties · object"},{"type":"null","title":"Properties","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.properties.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.properties","typeLabel":"Properties · object | null"},"required":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.required.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Required","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.required.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Required","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.required.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.required","typeLabel":"string[] | null"},"minimum":{"oneOf":[{"type":"integer","title":"Minimum","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.minimum.oneOf.0","typeLabel":"integer"},{"type":"number","title":"Minimum","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.minimum.oneOf.1","typeLabel":"number"},{"type":"null","title":"Minimum","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.minimum.oneOf.2","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.minimum","typeLabel":"integer | number | null"},"maximum":{"oneOf":[{"type":"integer","title":"Maximum","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.maximum.oneOf.0","typeLabel":"integer"},{"type":"number","title":"Maximum","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.maximum.oneOf.1","typeLabel":"number"},{"type":"null","title":"Maximum","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.maximum.oneOf.2","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.maximum","typeLabel":"integer | number | null"},"min_length":{"oneOf":[{"type":"integer","title":"Min Length","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.min_length.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Min Length","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.min_length.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.min_length","typeLabel":"integer | null"},"max_length":{"oneOf":[{"type":"integer","title":"Max Length","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.max_length.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Max Length","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.max_length.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.max_length","typeLabel":"integer | null"},"pattern":{"oneOf":[{"type":"string","title":"Pattern","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.pattern.oneOf.0","typeLabel":"string"},{"type":"null","title":"Pattern","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.pattern.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.pattern","typeLabel":"string | null"},"format":{"oneOf":[{"type":"string","title":"Format","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.format.oneOf.0","typeLabel":"string"},{"type":"null","title":"Format","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.format","typeLabel":"string | null"},"default":{"oneOf":[{"title":"Default"},{"type":"null","title":"Default","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.default.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.default","typeLabel":"null"},"nullable":{"oneOf":[{"type":"boolean","title":"Nullable","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.nullable.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Nullable","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.nullable.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.nullable","typeLabel":"boolean | null"},"additional_properties":{"oneOf":[{"type":"boolean","title":"Additional Properties","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.additional_properties.oneOf.0","typeLabel":"boolean"},{"type":"object","title":"Additional Properties","additionalProperties":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.additional_properties.oneOf.1","typeLabel":"Additional Properties · object"},{"type":"null","title":"Additional Properties","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.additional_properties.oneOf.2","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties.additional_properties","typeLabel":"boolean | Additional Properties · object | null"}},"type":"object","title":"ToolParameter","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties.additionalProperties","typeLabel":"ToolParameter · object"},"type":"object","title":"Properties","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.properties","typeLabel":"Properties · object"},"type":{"type":"string","const":"object","title":"Type","default":"object","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.type","typeLabel":"string"},"required":{"items":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.required.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Required","default":[],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema.required","typeLabel":"string[]"}},"type":"object","required":["properties"],"title":"ToolInputSchema","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].input_schema","typeLabel":"ToolInputSchema · object"},"input_examples":{"oneOf":[{"type":"array","items":{"additionalProperties":true,"type":"object","uniqueKey":"tools.oneOf.0.items.[INDEX].input_examples.oneOf.0.items.[INDEX]","typeLabel":"object"},"title":"Input Examples","uniqueKey":"tools.oneOf.0.items.[INDEX].input_examples.oneOf.0","typeLabel":"Input Examples · object[]"},{"type":"null","title":"Input Examples","uniqueKey":"tools.oneOf.0.items.[INDEX].input_examples.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].input_examples","typeLabel":"Input Examples · object[] | null"},"cache_control":{"oneOf":[{"type":"object","title":"Cache Control","additionalProperties":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].cache_control.oneOf.0","typeLabel":"Cache Control · object"},{"type":"null","title":"Cache Control","uniqueKey":"tools.oneOf.0.items.[INDEX].cache_control.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].cache_control","typeLabel":"Cache Control · object | null"},"strict":{"oneOf":[{"type":"boolean","title":"Strict","uniqueKey":"tools.oneOf.0.items.[INDEX].strict.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Strict","uniqueKey":"tools.oneOf.0.items.[INDEX].strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].strict","typeLabel":"boolean | null"},"defer_loading":{"oneOf":[{"type":"boolean","title":"Defer Loading","uniqueKey":"tools.oneOf.0.items.[INDEX].defer_loading.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Defer Loading","uniqueKey":"tools.oneOf.0.items.[INDEX].defer_loading.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].defer_loading","typeLabel":"boolean | null"},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].allowed_callers.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Allowed Callers","uniqueKey":"tools.oneOf.0.items.[INDEX].allowed_callers.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Allowed Callers","uniqueKey":"tools.oneOf.0.items.[INDEX].allowed_callers.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].allowed_callers","typeLabel":"string[] | null"}},"type":"object","required":["name","description","input_schema"],"title":"ToolDefinition","uniqueKey":"tools.oneOf.0.items.[INDEX]","typeLabel":"ToolDefinition · object"},"title":"Tools","uniqueKey":"tools.oneOf.0","typeLabel":"ToolDefinition · object[]"},{"type":"null","title":"Tools","uniqueKey":"tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools","typeLabel":"ToolDefinition · object[] | null"},"tool_choice":{"oneOf":[{"type":"object","title":"ToolChoiceAuto","properties":{"type":{"type":"string","const":"auto","title":"Type","default":"auto","uniqueKey":"tool_choice.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"tool_choice.oneOf.0","typeLabel":"ToolChoiceAuto · object"},{"type":"object","title":"ToolChoiceNone","properties":{"type":{"type":"string","const":"none","title":"Type","default":"none","uniqueKey":"tool_choice.oneOf.1.type","typeLabel":"string"}},"uniqueKey":"tool_choice.oneOf.1","typeLabel":"ToolChoiceNone · object"},{"type":"object","title":"ToolChoiceAny","properties":{"type":{"type":"string","const":"any","title":"Type","default":"any","uniqueKey":"tool_choice.oneOf.2.type","typeLabel":"string"}},"uniqueKey":"tool_choice.oneOf.2","typeLabel":"ToolChoiceAny · object"},{"type":"object","title":"ToolChoiceSpecific","required":["name"],"properties":{"name":{"type":"string","title":"Name","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.name","typeLabel":"string"},"type":{"type":"string","const":"tool","title":"Type","default":"tool","uniqueKey":"tool_choice.oneOf.3.type","typeLabel":"string"}},"uniqueKey":"tool_choice.oneOf.3","typeLabel":"ToolChoiceSpecific · object"},{"type":"null","title":"Tool Choice","uniqueKey":"tool_choice.oneOf.4","typeLabel":"null"}],"uniqueKey":"tool_choice","typeLabel":"ToolChoiceAuto · object | ToolChoiceNone · object | ToolChoiceAny · object | ToolChoiceSpecific · object | null"},"disable_parallel_tool_use":{"oneOf":[{"type":"boolean","title":"Disable Parallel Tool Use","uniqueKey":"disable_parallel_tool_use.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Disable Parallel Tool Use","uniqueKey":"disable_parallel_tool_use.oneOf.1","typeLabel":"null"}],"uniqueKey":"disable_parallel_tool_use","typeLabel":"boolean | null"},"thinking":{"oneOf":[{"type":"object","title":"ThinkingConfigEnabled","required":["budget_tokens"],"properties":{"budget_tokens":{"type":"integer","minimum":1024,"title":"Budget Tokens","isRequired":true,"uniqueKey":"thinking.oneOf.0.budget_tokens","typeLabel":"integer"},"type":{"type":"string","const":"enabled","title":"Type","default":"enabled","uniqueKey":"thinking.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"thinking.oneOf.0","typeLabel":"ThinkingConfigEnabled · object"},{"type":"object","title":"ThinkingConfigDisabled","properties":{"type":{"type":"string","const":"disabled","title":"Type","default":"disabled","uniqueKey":"thinking.oneOf.1.type","typeLabel":"string"}},"uniqueKey":"thinking.oneOf.1","typeLabel":"ThinkingConfigDisabled · object"},{"type":"object","title":"ThinkingConfigAdaptive","properties":{"type":{"type":"string","const":"adaptive","title":"Type","default":"adaptive","uniqueKey":"thinking.oneOf.2.type","typeLabel":"string"},"budget_tokens":{"oneOf":[{"type":"integer","title":"Budget Tokens","minimum":1024,"uniqueKey":"thinking.oneOf.2.budget_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Budget Tokens","uniqueKey":"thinking.oneOf.2.budget_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.2.budget_tokens","typeLabel":"integer | null"}},"uniqueKey":"thinking.oneOf.2","typeLabel":"ThinkingConfigAdaptive · object"},{"type":"null","title":"Thinking","uniqueKey":"thinking.oneOf.3","typeLabel":"null"}],"uniqueKey":"thinking","typeLabel":"ThinkingConfigEnabled · object | ThinkingConfigDisabled · object | ThinkingConfigAdaptive · object | null"},"metadata":{"oneOf":[{"type":"object","title":"Metadata","additionalProperties":true,"uniqueKey":"metadata.oneOf.0","typeLabel":"Metadata · object"},{"type":"null","title":"Metadata","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"Metadata · object | null"}},"type":"object","required":["model","max_tokens","messages"],"title":"MessagesRequest","uniqueKey":"","typeLabel":"MessagesRequest · object"},"examples":{"Example":{"title":"Example","value":{"model":"\u003cstring>","max_tokens":123,"messages":[{"content":"\u003cstring>"}],"system":"\u003cstring>","stream":false,"temperature":1,"top_p":0.5,"top_k":1,"stop_sequences":["\u003cstring>"],"tools":[{"name":"\u003cstring>","description":"\u003cstring>","input_schema":{"properties":{},"type":"object","required":[]},"input_examples":[{}],"cache_control":{},"strict":true,"defer_loading":true,"allowed_callers":["\u003cstring>"]}],"tool_choice":{"type":"auto"},"disable_parallel_tool_use":true,"thinking":{"budget_tokens":1025,"type":"enabled"},"metadata":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"1b31d4f6-7a80-4138-9492-55981e7cd46a":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"string","title":"Id","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"model":{"type":"string","title":"Model","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"content":{"items":{"oneOf":[{"type":"object","title":"TextBlock","required":["text"],"properties":{"text":{"type":"string","title":"Text","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","const":"text","title":"Type","default":"text","uniqueKey":"content.items.[INDEX].oneOf.0.type","typeLabel":"string"},"cache_control":{"oneOf":[{"type":"object","title":"Cache Control","additionalProperties":true,"uniqueKey":"content.items.[INDEX].oneOf.0.cache_control.oneOf.0","typeLabel":"Cache Control · object"},{"type":"null","title":"Cache Control","uniqueKey":"content.items.[INDEX].oneOf.0.cache_control.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.items.[INDEX].oneOf.0.cache_control","typeLabel":"Cache Control · object | null"}},"uniqueKey":"content.items.[INDEX].oneOf.0","typeLabel":"TextBlock · object"},{"type":"object","title":"ImageBlock","required":["source"],"properties":{"source":{"properties":{"type":{"type":"string","enum":["base64","url"],"title":"Type","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.source.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","enum":["image/jpeg","image/png","image/gif","image/webp"],"title":"Media Type","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.source.media_type","typeLabel":"enum\u003cstring>"},"data":{"oneOf":[{"type":"string","title":"Data","uniqueKey":"content.items.[INDEX].oneOf.1.source.data.oneOf.0","typeLabel":"string"},{"type":"null","title":"Data","uniqueKey":"content.items.[INDEX].oneOf.1.source.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.items.[INDEX].oneOf.1.source.data","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","title":"Url","uniqueKey":"content.items.[INDEX].oneOf.1.source.url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Url","uniqueKey":"content.items.[INDEX].oneOf.1.source.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.items.[INDEX].oneOf.1.source.url","typeLabel":"string | null"}},"type":"object","required":["type","media_type"],"title":"ImageSource","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.source","typeLabel":"ImageSource · object"},"type":{"type":"string","const":"image","title":"Type","default":"image","uniqueKey":"content.items.[INDEX].oneOf.1.type","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].oneOf.1","typeLabel":"ImageBlock · object"},{"type":"object","title":"DocumentBlock","required":["source"],"properties":{"source":{"properties":{"type":{"type":"string","enum":["base64","url"],"title":"Type","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.2.source.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","const":"application/pdf","title":"Media Type","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.2.source.media_type","typeLabel":"string"},"data":{"oneOf":[{"type":"string","title":"Data","uniqueKey":"content.items.[INDEX].oneOf.2.source.data.oneOf.0","typeLabel":"string"},{"type":"null","title":"Data","uniqueKey":"content.items.[INDEX].oneOf.2.source.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.items.[INDEX].oneOf.2.source.data","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","title":"Url","uniqueKey":"content.items.[INDEX].oneOf.2.source.url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Url","uniqueKey":"content.items.[INDEX].oneOf.2.source.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.items.[INDEX].oneOf.2.source.url","typeLabel":"string | null"}},"type":"object","required":["type","media_type"],"title":"DocumentSource","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.2.source","typeLabel":"DocumentSource · object"},"type":{"type":"string","const":"document","title":"Type","default":"document","uniqueKey":"content.items.[INDEX].oneOf.2.type","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].oneOf.2","typeLabel":"DocumentBlock · object"},{"type":"object","title":"ToolUseBlock","required":["id","name","input"],"properties":{"id":{"type":"string","title":"Id","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.3.id","typeLabel":"string"},"name":{"type":"string","title":"Name","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.3.name","typeLabel":"string"},"input":{"additionalProperties":true,"type":"object","title":"Input","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.3.input","typeLabel":"Input · object"},"type":{"type":"string","const":"tool_use","title":"Type","default":"tool_use","uniqueKey":"content.items.[INDEX].oneOf.3.type","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].oneOf.3","typeLabel":"ToolUseBlock · object"},{"type":"object","title":"ToolResultBlock","required":["tool_use_id","content"],"properties":{"tool_use_id":{"type":"string","title":"Tool Use Id","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.tool_use_id","typeLabel":"string"},"content":{"oneOf":[{"type":"string","title":"Content","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"additionalProperties":true,"type":"object","uniqueKey":"content.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"title":"Content","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"Content · object[]"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.content","typeLabel":"string | Content · object[]"},"type":{"type":"string","const":"tool_result","title":"Type","default":"tool_result","uniqueKey":"content.items.[INDEX].oneOf.4.type","typeLabel":"string"},"is_error":{"oneOf":[{"type":"boolean","title":"Is Error","default":false,"uniqueKey":"content.items.[INDEX].oneOf.4.is_error.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Is Error","default":false,"uniqueKey":"content.items.[INDEX].oneOf.4.is_error.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.items.[INDEX].oneOf.4.is_error","typeLabel":"boolean | null"}},"uniqueKey":"content.items.[INDEX].oneOf.4","typeLabel":"ToolResultBlock · object"}],"uniqueKey":"content.items.[INDEX]","typeLabel":"TextBlock · object | ImageBlock · object | DocumentBlock · object | ToolUseBlock · object | ToolResultBlock · object"},"type":"array","title":"Content","isRequired":true,"uniqueKey":"content","typeLabel":"(TextBlock · object | ImageBlock · object | DocumentBlock · object | ToolUseBlock · object | ToolResultBlock · object)[]"},"stop_reason":{"type":"string","enum":["end_turn","max_tokens","stop_sequence","tool_use","content_filter"],"title":"Stop Reason","isRequired":true,"uniqueKey":"stop_reason","typeLabel":"enum\u003cstring>"},"usage":{"properties":{"input_tokens":{"type":"integer","title":"Input Tokens","isRequired":true,"uniqueKey":"usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","title":"Output Tokens","isRequired":true,"uniqueKey":"usage.output_tokens","typeLabel":"integer"},"cache_creation_input_tokens":{"type":"integer","title":"Cache Creation Input Tokens","default":0,"uniqueKey":"usage.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","title":"Cache Read Input Tokens","default":0,"uniqueKey":"usage.cache_read_input_tokens","typeLabel":"integer"},"cache_creation":{"oneOf":[{"type":"object","title":"CacheCreation","properties":{"ephemeral_5m_input_tokens":{"type":"integer","title":"Ephemeral 5M Input Tokens","default":0,"uniqueKey":"usage.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"},"ephemeral_1h_input_tokens":{"type":"integer","title":"Ephemeral 1H Input Tokens","default":0,"uniqueKey":"usage.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.cache_creation.oneOf.0","typeLabel":"CacheCreation · object"},{"type":"null","uniqueKey":"usage.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.cache_creation","typeLabel":"CacheCreation · object | null"},"service_tier":{"oneOf":[{"type":"string","title":"Service Tier","default":"standard","enum":["standard","priority"],"uniqueKey":"usage.service_tier.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Service Tier","default":"standard","uniqueKey":"usage.service_tier.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.service_tier","typeLabel":"enum\u003cstring> | null"}},"type":"object","required":["input_tokens","output_tokens"],"title":"Usage","isRequired":true,"uniqueKey":"usage","typeLabel":"Usage · object"},"type":{"type":"string","const":"message","title":"Type","default":"message","uniqueKey":"type","typeLabel":"string"},"role":{"type":"string","const":"assistant","title":"Role","default":"assistant","uniqueKey":"role","typeLabel":"string"},"stop_sequence":{"oneOf":[{"type":"string","title":"Stop Sequence","uniqueKey":"stop_sequence.oneOf.0","typeLabel":"string"},{"type":"null","title":"Stop Sequence","uniqueKey":"stop_sequence.oneOf.1","typeLabel":"null"}],"uniqueKey":"stop_sequence","typeLabel":"string | null"}},"type":"object","required":["id","model","content","stop_reason","usage"],"title":"MessagesResponse","uniqueKey":"","typeLabel":"MessagesResponse · object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","model":"\u003cstring>","content":[{"text":"\u003cstring>","type":"text","cache_control":{}}],"stop_reason":"end_turn","usage":{"input_tokens":123,"output_tokens":123,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"service_tier":"standard"},"type":"message","role":"assistant","stop_sequence":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"d2edc3fc-ddfe-429b-b993-5d2c60e729e9":{"description":"Bad Request - Invalid query parameters or body format.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"message":{"type":"string","title":"Message","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"The type of error returned (e.g. invalid_request_error, rate_limit_error).","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"status_code":{"type":"integer","title":"Status Code","description":"The HTTP status code.","isRequired":true,"uniqueKey":"error.status_code","typeLabel":"integer"},"id":{"type":"string","title":"Id","description":"Unique error or trace ID associated with this request.","isRequired":true,"uniqueKey":"error.id","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"tip":{"oneOf":[{"type":"string","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.0","typeLabel":"string"},{"type":"null","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.tip","typeLabel":"string | null"},"docs":{"oneOf":[{"type":"string","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.0","typeLabel":"string"},{"type":"null","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.docs","typeLabel":"string | null"},"support":{"oneOf":[{"type":"string","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.0","typeLabel":"string"},{"type":"null","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.support","typeLabel":"string | null"},"community":{"oneOf":[{"type":"object","title":"Community","description":"Links to community resources like Discord and Twitter.","additionalProperties":{"type":"string","uniqueKey":"error.community.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"error.community.oneOf.0","typeLabel":"Community · object"},{"type":"null","title":"Community","description":"Links to community resources like Discord and Twitter.","uniqueKey":"error.community.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.community","typeLabel":"Community · object | null"}},"type":"object","required":["message","type","status_code","id"],"title":"ErrorDetail","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetail · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","status_code":123,"id":"\u003cstring>","param":"\u003cstring>","code":"\u003cstring>","tip":"\u003cstring>","docs":"https://docs.routeway.ai","support":"https://discord.gg/RjX2CpdPpd","community":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"0e1eeb2b-fb21-49ae-80f3-c235615d2b0d":{"description":"Unauthorized - Missing or invalid API key.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"message":{"type":"string","title":"Message","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"The type of error returned (e.g. invalid_request_error, rate_limit_error).","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"status_code":{"type":"integer","title":"Status Code","description":"The HTTP status code.","isRequired":true,"uniqueKey":"error.status_code","typeLabel":"integer"},"id":{"type":"string","title":"Id","description":"Unique error or trace ID associated with this request.","isRequired":true,"uniqueKey":"error.id","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"tip":{"oneOf":[{"type":"string","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.0","typeLabel":"string"},{"type":"null","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.tip","typeLabel":"string | null"},"docs":{"oneOf":[{"type":"string","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.0","typeLabel":"string"},{"type":"null","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.docs","typeLabel":"string | null"},"support":{"oneOf":[{"type":"string","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.0","typeLabel":"string"},{"type":"null","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.support","typeLabel":"string | null"},"community":{"oneOf":[{"type":"object","title":"Community","description":"Links to community resources like Discord and Twitter.","additionalProperties":{"type":"string","uniqueKey":"error.community.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"error.community.oneOf.0","typeLabel":"Community · object"},{"type":"null","title":"Community","description":"Links to community resources like Discord and Twitter.","uniqueKey":"error.community.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.community","typeLabel":"Community · object | null"}},"type":"object","required":["message","type","status_code","id"],"title":"ErrorDetail","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetail · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","status_code":123,"id":"\u003cstring>","param":"\u003cstring>","code":"\u003cstring>","tip":"\u003cstring>","docs":"https://docs.routeway.ai","support":"https://discord.gg/RjX2CpdPpd","community":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"fe9f4351-9072-409b-a8c1-699984327d71":{"description":"Forbidden - Key does not have permission or is disabled.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"message":{"type":"string","title":"Message","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"The type of error returned (e.g. invalid_request_error, rate_limit_error).","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"status_code":{"type":"integer","title":"Status Code","description":"The HTTP status code.","isRequired":true,"uniqueKey":"error.status_code","typeLabel":"integer"},"id":{"type":"string","title":"Id","description":"Unique error or trace ID associated with this request.","isRequired":true,"uniqueKey":"error.id","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"tip":{"oneOf":[{"type":"string","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.0","typeLabel":"string"},{"type":"null","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.tip","typeLabel":"string | null"},"docs":{"oneOf":[{"type":"string","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.0","typeLabel":"string"},{"type":"null","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.docs","typeLabel":"string | null"},"support":{"oneOf":[{"type":"string","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.0","typeLabel":"string"},{"type":"null","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.support","typeLabel":"string | null"},"community":{"oneOf":[{"type":"object","title":"Community","description":"Links to community resources like Discord and Twitter.","additionalProperties":{"type":"string","uniqueKey":"error.community.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"error.community.oneOf.0","typeLabel":"Community · object"},{"type":"null","title":"Community","description":"Links to community resources like Discord and Twitter.","uniqueKey":"error.community.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.community","typeLabel":"Community · object | null"}},"type":"object","required":["message","type","status_code","id"],"title":"ErrorDetail","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetail · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","status_code":123,"id":"\u003cstring>","param":"\u003cstring>","code":"\u003cstring>","tip":"\u003cstring>","docs":"https://docs.routeway.ai","support":"https://discord.gg/RjX2CpdPpd","community":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"7a0b8224-5121-4568-b89d-43a5bd13a2d2":{"description":"Unprocessable Entity - Request body validation failed.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"message":{"type":"string","title":"Message","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"The type of error returned (e.g. invalid_request_error, rate_limit_error).","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"status_code":{"type":"integer","title":"Status Code","description":"The HTTP status code.","isRequired":true,"uniqueKey":"error.status_code","typeLabel":"integer"},"id":{"type":"string","title":"Id","description":"Unique error or trace ID associated with this request.","isRequired":true,"uniqueKey":"error.id","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"tip":{"oneOf":[{"type":"string","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.0","typeLabel":"string"},{"type":"null","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.tip","typeLabel":"string | null"},"docs":{"oneOf":[{"type":"string","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.0","typeLabel":"string"},{"type":"null","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.docs","typeLabel":"string | null"},"support":{"oneOf":[{"type":"string","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.0","typeLabel":"string"},{"type":"null","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.support","typeLabel":"string | null"},"community":{"oneOf":[{"type":"object","title":"Community","description":"Links to community resources like Discord and Twitter.","additionalProperties":{"type":"string","uniqueKey":"error.community.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"error.community.oneOf.0","typeLabel":"Community · object"},{"type":"null","title":"Community","description":"Links to community resources like Discord and Twitter.","uniqueKey":"error.community.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.community","typeLabel":"Community · object | null"}},"type":"object","required":["message","type","status_code","id"],"title":"ErrorDetail","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetail · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","status_code":123,"id":"\u003cstring>","param":"\u003cstring>","code":"\u003cstring>","tip":"\u003cstring>","docs":"https://docs.routeway.ai","support":"https://discord.gg/RjX2CpdPpd","community":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"687056be-acdd-4d3a-9d67-9afd7ff51c26":{"description":"Too Many Requests - Rate limit exceeded.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"message":{"type":"string","title":"Message","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"The type of error returned (e.g. invalid_request_error, rate_limit_error).","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"status_code":{"type":"integer","title":"Status Code","description":"The HTTP status code.","isRequired":true,"uniqueKey":"error.status_code","typeLabel":"integer"},"id":{"type":"string","title":"Id","description":"Unique error or trace ID associated with this request.","isRequired":true,"uniqueKey":"error.id","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"tip":{"oneOf":[{"type":"string","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.0","typeLabel":"string"},{"type":"null","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.tip","typeLabel":"string | null"},"docs":{"oneOf":[{"type":"string","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.0","typeLabel":"string"},{"type":"null","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.docs","typeLabel":"string | null"},"support":{"oneOf":[{"type":"string","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.0","typeLabel":"string"},{"type":"null","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.support","typeLabel":"string | null"},"community":{"oneOf":[{"type":"object","title":"Community","description":"Links to community resources like Discord and Twitter.","additionalProperties":{"type":"string","uniqueKey":"error.community.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"error.community.oneOf.0","typeLabel":"Community · object"},{"type":"null","title":"Community","description":"Links to community resources like Discord and Twitter.","uniqueKey":"error.community.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.community","typeLabel":"Community · object | null"}},"type":"object","required":["message","type","status_code","id"],"title":"ErrorDetail","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetail · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","status_code":123,"id":"\u003cstring>","param":"\u003cstring>","code":"\u003cstring>","tip":"\u003cstring>","docs":"https://docs.routeway.ai","support":"https://discord.gg/RjX2CpdPpd","community":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"d8355207-a0eb-489a-8e0c-bfb386bcd4ec":{"description":"Internal Server Error - Internal error occurred.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"message":{"type":"string","title":"Message","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"The type of error returned (e.g. invalid_request_error, rate_limit_error).","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"status_code":{"type":"integer","title":"Status Code","description":"The HTTP status code.","isRequired":true,"uniqueKey":"error.status_code","typeLabel":"integer"},"id":{"type":"string","title":"Id","description":"Unique error or trace ID associated with this request.","isRequired":true,"uniqueKey":"error.id","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"tip":{"oneOf":[{"type":"string","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.0","typeLabel":"string"},{"type":"null","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.tip","typeLabel":"string | null"},"docs":{"oneOf":[{"type":"string","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.0","typeLabel":"string"},{"type":"null","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.docs","typeLabel":"string | null"},"support":{"oneOf":[{"type":"string","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.0","typeLabel":"string"},{"type":"null","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.support","typeLabel":"string | null"},"community":{"oneOf":[{"type":"object","title":"Community","description":"Links to community resources like Discord and Twitter.","additionalProperties":{"type":"string","uniqueKey":"error.community.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"error.community.oneOf.0","typeLabel":"Community · object"},{"type":"null","title":"Community","description":"Links to community resources like Discord and Twitter.","uniqueKey":"error.community.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.community","typeLabel":"Community · object | null"}},"type":"object","required":["message","type","status_code","id"],"title":"ErrorDetail","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetail · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","status_code":123,"id":"\u003cstring>","param":"\u003cstring>","code":"\u003cstring>","tip":"\u003cstring>","docs":"https://docs.routeway.ai","support":"https://discord.gg/RjX2CpdPpd","community":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"b3eb9432-39a9-48ec-ba57-f997f249837a":{"description":"Bad Gateway - Provider error occurred.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"message":{"type":"string","title":"Message","description":"A human-readable description of the error.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","title":"Type","description":"The type of error returned (e.g. invalid_request_error, rate_limit_error).","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"status_code":{"type":"integer","title":"Status Code","description":"The HTTP status code.","isRequired":true,"uniqueKey":"error.status_code","typeLabel":"integer"},"id":{"type":"string","title":"Id","description":"Unique error or trace ID associated with this request.","isRequired":true,"uniqueKey":"error.id","typeLabel":"string"},"param":{"oneOf":[{"type":"string","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","title":"Param","description":"The parameter that caused the error, if applicable.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Code","description":"A short code identifier for the error type (e.g. invalid_request, rate_limit).","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"tip":{"oneOf":[{"type":"string","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.0","typeLabel":"string"},{"type":"null","title":"Tip","description":"An optional troubleshooting tip or resolution suggestion.","uniqueKey":"error.tip.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.tip","typeLabel":"string | null"},"docs":{"oneOf":[{"type":"string","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.0","typeLabel":"string"},{"type":"null","title":"Docs","description":"Link to the documentation related to this error.","default":"https://docs.routeway.ai","uniqueKey":"error.docs.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.docs","typeLabel":"string | null"},"support":{"oneOf":[{"type":"string","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.0","typeLabel":"string"},{"type":"null","title":"Support","description":"Link to support for further help.","default":"https://discord.gg/RjX2CpdPpd","uniqueKey":"error.support.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.support","typeLabel":"string | null"},"community":{"oneOf":[{"type":"object","title":"Community","description":"Links to community resources like Discord and Twitter.","additionalProperties":{"type":"string","uniqueKey":"error.community.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"error.community.oneOf.0","typeLabel":"Community · object"},{"type":"null","title":"Community","description":"Links to community resources like Discord and Twitter.","uniqueKey":"error.community.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.community","typeLabel":"Community · object | null"}},"type":"object","required":["message","type","status_code","id"],"title":"ErrorDetail","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorDetail · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"\u003cstring>","status_code":123,"id":"\u003cstring>","param":"\u003cstring>","code":"\u003cstring>","tip":"\u003cstring>","docs":"https://docs.routeway.ai","support":"https://discord.gg/RjX2CpdPpd","community":{}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"a13e6b3f-9321-402c-b9ae-61febd72e477":{"HTTPBearer":{"type":"http","scheme":"bearer","scopes":[]}}},"servers":{"1d114d6e-bfaa-4431-894b-5546e3bb782a":{"url":"https://api.routeway.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"clashai-de6ad0cc","siteName":"Routeway Docs","title":"Anthropic Messages - Routeway Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-24T14:45:36.922Z","originalFileLocation":"api-reference/Messages/messages.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send a message to the Anthropic models. Supports streaming and non-streaming responses.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Routeway Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/clashai-de6ad0cc/BBQQEAtOaw0Ffz_T/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/clashai-de6ad0cc/BBQQEAtOaw0Ffz_T/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/clashai-de6ad0cc/BBQQEAtOaw0Ffz_T/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/clashai-de6ad0cc/BBQQEAtOaw0Ffz_T/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/clashai-de6ad0cc/BBQQEAtOaw0Ffz_T/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/clashai-de6ad0cc/BBQQEAtOaw0Ffz_T/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/clashai-de6ad0cc/BBQQEAtOaw0Ffz_T/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/clashai-de6ad0cc/BBQQEAtOaw0Ffz_T/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/clashai-de6ad0cc/BBQQEAtOaw0Ffz_T/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Anthropic Messages - Routeway Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send a message to the Anthropic models. Supports streaming and non-streaming responses.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Routeway Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.routeway.ai/api-reference/Messages/messages\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://clashai-de6ad0cc.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Anthropic+Messages\u0026amp;description=Send+a+message+to+the+Anthropic+models.+Supports+streaming+and+non-streaming+responses.\u0026amp;theme=73f045eebd28aeeaef8b9424\u0026amp;signature=78fbf508970accab0586fd58cd519d6c44d34ebf95d5548368d1b51aea9527f8\">\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=\"Anthropic Messages - Routeway Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send a message to the Anthropic models. Supports streaming and non-streaming responses.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://clashai-de6ad0cc.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Anthropic+Messages\u0026amp;description=Send+a+message+to+the+Anthropic+models.+Supports+streaming+and+non-streaming+responses.\u0026amp;theme=73f045eebd28aeeaef8b9424\u0026amp;signature=78fbf508970accab0586fd58cd519d6c44d34ebf95d5548368d1b51aea9527f8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/clashai-de6ad0cc/BBQQEAtOaw0Ffz_T/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Routeway Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.routeway.ai/api-reference/Messages/messages\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/Messages/messages.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.routeway.ai/#organization\",\"name\":\"Routeway Docs\",\"url\":\"https://docs.routeway.ai\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.routeway.ai#website\",\"name\":\"Routeway Docs\",\"url\":\"https://docs.routeway.ai\",\"publisher\":{\"@id\":\"https://docs.routeway.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.routeway.ai/api-reference/Messages/messages#webpage\",\"url\":\"https://docs.routeway.ai/api-reference/Messages/messages\",\"name\":\"Anthropic Messages\",\"description\":\"Send a message to the Anthropic models. Supports streaming and non-streaming responses.\",\"dateModified\":\"2026-06-24T14:45:36.922Z\",\"isPartOf\":{\"@id\":\"https://docs.routeway.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.routeway.ai/api-reference/Messages/messages#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.routeway.ai/api-reference/Messages/messages#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.routeway.ai/api-reference/ChatCompletions/completions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Anthropic Messages\",\"item\":\"https://docs.routeway.ai/api-reference/Messages/messages\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.routeway.ai/api-reference/Messages/messages#apireference\",\"headline\":\"Anthropic Messages\",\"name\":\"Anthropic Messages\",\"description\":\"Send a message to the Anthropic models. Supports streaming and non-streaming responses.\",\"url\":\"https://docs.routeway.ai/api-reference/Messages/messages\",\"mainEntityOfPage\":{\"@id\":\"https://docs.routeway.ai/api-reference/Messages/messages#webpage\"},\"dateModified\":\"2026-06-24T14:45:36.922Z\",\"publisher\":{\"@id\":\"https://docs.routeway.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.routeway.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Routeway Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Routeway Docs","nav":{"global":null,"tabs":[{"tab":"Docs","icon":"book-open","pages":[{"title":"Docs","href":"/getting-started/introduction"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Overview","icon":"map","pages":[{"title":"Overview","icon":"map","href":"/api-reference/overview"}]},{"group":"API Reference","icon":"book","pages":[{"title":"Chat Completions","openapi":"POST /v1/chat/completions","href":"/api-reference/ChatCompletions/completions"},{"title":"Responses","openapi":"POST /v1/responses","description":"Generate a unified response block from various input configurations.","href":"/api-reference/Responses/responses"},{"title":"Anthropic Messages","openapi":"POST /v1/messages","href":"/api-reference/Messages/messages"},{"title":"Image Generations","openapi":"POST /v1/images/generations","description":"Generate one or more images from a text prompt. Supports both synchronous and asynchronous modes.","href":"/api-reference/ImageGenerations/generations"},{"title":"Image Edits","openapi":"POST /v1/images/edits","href":"/api-reference/ImageEdits/edits"}]},{"group":"Account","icon":"circle-user","pages":[{"title":"Get Balance","openapi":"GET /v1/account/balance","href":"/api-reference/Account/balance"},{"title":"Get Activity","openapi":"GET /v1/account/activity","href":"/api-reference/Account/activity"},{"title":"Get Analytics","openapi":"GET /v1/account/analytics","href":"/api-reference/Account/analytics"},{"title":"List Keys","openapi":"GET /v1/account/keys","href":"/api-reference/Account/keys-list"},{"title":"Create Key","openapi":"POST /v1/account/keys","href":"/api-reference/Account/keys-create"},{"title":"Get Key","openapi":"GET /v1/account/keys/{key_id}","href":"/api-reference/Account/keys-get"},{"title":"Update Key","openapi":"PATCH /v1/account/keys/{key_id}","href":"/api-reference/Account/keys-update"},{"title":"Delete Key","openapi":"DELETE /v1/account/keys/{key_id}","href":"/api-reference/Account/keys-delete"}]}]},{"tab":"Integrations","icon":"plug","pages":[{"title":"Integrations","href":"/integrations/overview"}]}]},"basePath":"","title":"Anthropic Messages - Routeway Docs","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}