Drop-in compatible with Anthropic’s Messages API. Authenticate with x-api-key (or Authorization: Bearer). A bare model id like claude-haiku-4-5 routes to Anthropic; use provider/model for others. Set stream: true for SSE.
Fast inference, available only for claude-opus-5-5 via native Anthropic. Standard is a no-op. Unsupported models and incompatible deployment pins return 400. Anthropic service_tier is a separate Priority Tier control and does not select Fast. No automatic downgrade on capacity errors.
Request-level breakpoint. Not part of Anthropic's own API — accepted so all three surfaces behave alike. A per-block cache_control anywhere, system included, takes precedence and this is ignored.
Show child attributes
Response
A message object. When stream: true, the body is an SSE stream of
Anthropic events (message_start, content_block_delta, …, message_stop).
{"docsConfig":{"theme":"willow","$schema":"https://mintlify.com/docs.json","name":"impossibl","description":"Use one API key for models across providers. Get started, connect your app, and manage usage and billing.","colors":{"primary":"#000000","light":"#FFFFFF","dark":"#000000"},"logo":{"light":"https://mintcdn.com/impossibl/3d3DRU0do26ni_Q1/logo-light-v2.png?fit=max\u0026auto=format\u0026n=3d3DRU0do26ni_Q1\u0026q=85\u0026s=c8f499ee9ee34ad48d6237725054f6d5","dark":"https://mintcdn.com/impossibl/3d3DRU0do26ni_Q1/logo-dark-v2.png?fit=max\u0026auto=format\u0026n=3d3DRU0do26ni_Q1\u0026q=85\u0026s=3d2870508f4e1d38ce884314bc45bf93"},"favicon":{"light":"https://mintcdn.com/impossibl/3d3DRU0do26ni_Q1/favicon-light.svg?fit=max\u0026auto=format\u0026n=3d3DRU0do26ni_Q1\u0026q=85\u0026s=e2f99d84d17cfc0ce1e8a69fa9ce22d7","dark":"https://mintcdn.com/impossibl/3d3DRU0do26ni_Q1/favicon-dark.svg?fit=max\u0026auto=format\u0026n=3d3DRU0do26ni_Q1\u0026q=85\u0026s=1478ca16d79753dfb3afa484f449af86"},"background":{"color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"href":"https://impossibl.com/models","label":"Models"}],"primary":{"type":"button","label":"Console","href":"https://impossibl.com/dashboard"}},"seo":{"metatags":{"canonical":"https://impossibl.com/docs","og:site_name":"impossibl","twitter:site":"@Impossiblai","og:image":"https://impossibl.com/opengraph-image","twitter:image":"https://impossibl.com/opengraph-image","twitter:card":"summary_large_image"},"organization":{"name":"impossibl","url":"https://impossibl.com","logo":"https://impossibl.com/brand/impossibl-icon.png","sameAs":["https://x.com/Impossiblai","https://github.com/impossiblco"]}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"impossibl","hasAudioNarration":false,"actualSubdomain":"impossibl","customDomains":["impossibl.com"],"gitSource":{"type":"github","owner":"impossiblco","repo":"imp-monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"collectionId":"c3292231-1b34-4e3f-8585-5bedf8c02381","liveDeploymentHistoryId":"6adfa93e1421c8c54a042a7e","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adfa93e1421c8c54a042a7e"},"entitlements":{},"buildId":"6ae2f6b2eead52743c6f5e6e","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API Reference","count":68},{"language":"default","tag":"Guides","count":27},{"language":"default","tag":"Build","count":8},{"language":"default","tag":"Modalities","count":8},{"language":"default","tag":"Get started","count":6},{"language":"default","tag":"Manage","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","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":"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":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/create-a-message-anthropic-messages-api","slug":"/api-reference/create-a-message-anthropic-messages-api","pageMetadata":{"title":"Create a message (Anthropic Messages API)","description":"Drop-in compatible with Anthropic's Messages API. Authenticate with `x-api-key` (or `Authorization: Bearer`). A bare model id like `claude-haiku-4-5` routes to Anthropic; use `provider/model` for others. Set `stream: true` for SSE.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/messages","href":"/api-reference/create-a-message-anthropic-messages-api","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Drop-in compatible with Anthropic’s Messages API. Authenticate with \", _jsx(_components.code, {\n children: \"x-api-key\"\n }), \" (or \", _jsx(_components.code, {\n children: \"Authorization: Bearer\"\n }), \"). A bare model id like \", _jsx(_components.code, {\n children: \"claude-haiku-4-5\"\n }), \" routes to Anthropic; use \", _jsx(_components.code, {\n children: \"provider/model\"\n }), \" for others. Set \", _jsx(_components.code, {\n children: \"stream: true\"\n }), \" for SSE.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a message (Anthropic Messages API)","description":"Drop-in compatible with Anthropic's Messages API. Authenticate with `x-api-key` (or `Authorization: Bearer`). A bare model id like `claude-haiku-4-5` routes to Anthropic; use `provider/model` for others. Set `stream: true` for SSE.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/messages","href":"/api-reference/create-a-message-anthropic-messages-api","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/impossibl/c75059c84ec01199/analytics.js"],"openApiReferenceData":{"operation":{"operationId":"createMessage","summary":"Create a message (Anthropic Messages API)","description":"Drop-in compatible with Anthropic's Messages API. Authenticate with `x-api-key` (or `Authorization: Bearer`). A bare model id like `claude-haiku-4-5` routes to Anthropic; use `provider/model` for others. Set `stream: true` for SSE.","security":["3211594d-8a10-46fb-9a25-4ad08cf98240","607a56a0-c9c2-4bce-8498-d4db2bdba712"],"requestBody":"7181b150-12dd-4834-ab58-8518d157f168","responses":{"200":"87e288fd-3593-47f2-836e-e0e6dd3a0453","400":"7a61bf9a-d713-404b-b0b3-4de89243f56d","401":"9e61f1c8-c008-4cd8-862b-4fa0ff952f17","402":"6920a62c-0e17-4818-a4b5-498ae8345ba0","404":"37f1d49c-fa62-4c95-b564-a245489143ba","502":"1a81de51-18b6-4f36-ae92-1a4bb0c3297b","503":"0b4cc3d3-742e-4d67-9c17-7aac913abbc4"},"method":"post","type":"path","servers":["56354270-4d43-4a36-9df8-087ce55ddbb8","b9326fa1-d188-49aa-a659-8ec127b80a40"],"path":"/v1/messages","baseUrlOptions":["https://api.impossibl.com","http://localhost:8787"],"title":"Create a message (Anthropic Messages API)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","max_tokens","messages"],"properties":{"model":{"type":"string","example":"claude-haiku-4-5","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"max_tokens":{"type":"integer","description":"Required by the Anthropic API.","isRequired":true,"uniqueKey":"max_tokens","typeLabel":"integer"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"],"uniqueKey":"messages.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"string","description":"A text string, or an array of content blocks (text, image, tool_use, tool_result).","uniqueKey":"messages.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","description":"A content block on a message — text, image, tool_use, or tool_result.","properties":{"type":{"type":"string","enum":["text","image","tool_use","tool_result"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Present when `type` is `text`.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].text","typeLabel":"string"},"source":{"type":"object","description":"Present when `type` is `image`.","properties":{"type":{"type":"string","enum":["base64","url"],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source.type","typeLabel":"enum\u003cstring>"},"media_type":{"type":"string","description":"For base64, e.g. `image/png`.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source.media_type","typeLabel":"string"},"data":{"type":"string","description":"For base64","the raw base64 image data.":null,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source.data","typeLabel":"string"},"url":{"type":"string","description":"For url","an http(s) URL.":null,"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source.url","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].source","typeLabel":"object"},"id":{"type":"string","description":"tool_use block id.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"tool_use tool name.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].name","typeLabel":"string"},"input":{"type":"object","description":"tool_use parsed input.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].input","typeLabel":"object"},"tool_use_id":{"type":"string","description":"tool_result — the tool_use id it answers.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].tool_use_id","typeLabel":"string"},"content":{"oneOf":[{"type":"string","description":"tool_result content — a string, or nested blocks (text and image) to return an image from the tool. An image block there must use a `base64` source; a `url` source returns 400.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"object","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"tool_result content — a string, or nested blocks (text and image) to return an image from the tool. An image block there must use a `base64` source; a `url` source returns 400.","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].content.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].content","typeLabel":"string | object[]"},"is_error":{"type":"boolean","uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX].is_error","typeLabel":"boolean"}},"uniqueKey":"messages.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"A text string, or an array of content blocks (text, image, tool_use, tool_result).","uniqueKey":"messages.items.[INDEX].content.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"messages.items.[INDEX].content","typeLabel":"string | object[]"}},"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages","typeLabel":"object[]"},"speed":{"type":"string","enum":["fast","standard"],"description":"Fast inference, available only for claude-opus-5-5 via native Anthropic. Standard is a no-op. Unsupported models and incompatible deployment pins return 400. Anthropic service_tier is a separate Priority Tier control and does not select Fast. No automatic downgrade on capacity errors.","uniqueKey":"speed","typeLabel":"enum\u003cstring>"},"system":{"type":"string","description":"Top-level system prompt.","uniqueKey":"system","typeLabel":"string"},"stream":{"type":"boolean","default":false,"uniqueKey":"stream","typeLabel":"boolean"},"temperature":{"type":"number","uniqueKey":"temperature","typeLabel":"number"},"top_p":{"type":"number","uniqueKey":"top_p","typeLabel":"number"},"top_k":{"type":"integer","uniqueKey":"top_k","typeLabel":"integer"},"stop_sequences":{"type":"array","items":{"type":"string","uniqueKey":"stop_sequences.items.[INDEX]","typeLabel":"string"},"uniqueKey":"stop_sequences","typeLabel":"string[]"},"thinking":{"oneOf":[{"type":"object","description":"Anthropic thinking control, preserved on native Anthropic and Bedrock routes.","required":["type","budget_tokens"],"properties":{"type":{"type":"string","const":"enabled","isRequired":true,"uniqueKey":"thinking.oneOf.0.type","typeLabel":"string"},"budget_tokens":{"type":"integer","minimum":1024,"isRequired":true,"uniqueKey":"thinking.oneOf.0.budget_tokens","typeLabel":"integer"}},"uniqueKey":"thinking.oneOf.0","typeLabel":"object"},{"type":"object","description":"Anthropic thinking control, preserved on native Anthropic and Bedrock routes.","required":["type"],"properties":{"type":{"type":"string","const":"adaptive","isRequired":true,"uniqueKey":"thinking.oneOf.1.type","typeLabel":"string"},"display":{"type":"string","enum":["omitted","summarized"],"uniqueKey":"thinking.oneOf.1.display","typeLabel":"enum\u003cstring>"}},"uniqueKey":"thinking.oneOf.1","typeLabel":"object"},{"type":"object","description":"Anthropic thinking control, preserved on native Anthropic and Bedrock routes.","required":["type"],"properties":{"type":{"type":"string","const":"disabled","isRequired":true,"uniqueKey":"thinking.oneOf.2.type","typeLabel":"string"}},"uniqueKey":"thinking.oneOf.2","typeLabel":"object"}],"uniqueKey":"thinking","typeLabel":"object"},"output_config":{"type":"object","properties":{"effort":{"type":"string","enum":["low","medium","high","xhigh","max"],"uniqueKey":"output_config.effort","typeLabel":"enum\u003cstring>"}},"uniqueKey":"output_config","typeLabel":"object"},"tools":{"type":"array","description":"Tools the model may call (relay mode — the gateway does not execute them).","items":{"type":"object","required":["name","input_schema"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].name","typeLabel":"string"},"input_schema":{"type":"object","description":"JSON Schema for the tool input.","isRequired":true,"uniqueKey":"tools.items.[INDEX].input_schema","typeLabel":"object"},"description":{"type":"string","uniqueKey":"tools.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"uniqueKey":"tools","typeLabel":"object[]"},"tool_choice":{"description":"`{ type: auto }`, `{ type: any }`, `{ type: tool, name }`, or `{ type: none }`.","type":"object","properties":{"type":{"type":"string","enum":["auto","any","tool","none"],"uniqueKey":"tool_choice.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","uniqueKey":"tool_choice.name","typeLabel":"string"}},"uniqueKey":"tool_choice","typeLabel":"object"},"cache_control":{"type":"object","description":"Request-level breakpoint. Not part of Anthropic's own API — accepted so all three surfaces behave alike. A per-block `cache_control` anywhere, `system` included, takes precedence and this is ignored.","required":["type"],"properties":{"type":{"type":"string","const":"ephemeral","isRequired":true,"uniqueKey":"cache_control.type","typeLabel":"string"},"ttl":{"type":"string","enum":["5m","1h"],"default":"5m","description":"Cache lifetime; one-hour writes use the higher published write rate.","uniqueKey":"cache_control.ttl","typeLabel":"enum\u003cstring>"}},"uniqueKey":"cache_control","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"model":"claude-haiku-4-5","max_tokens":123,"messages":[{"content":"\u003cstring>"}],"system":"\u003cstring>","stream":false,"temperature":123,"top_p":123,"top_k":123,"stop_sequences":["\u003cstring>"],"thinking":{"type":"enabled","budget_tokens":1025},"output_config":{},"tools":[{"name":"\u003cstring>","input_schema":{},"description":"\u003cstring>"}],"tool_choice":{"name":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"87e288fd-3593-47f2-836e-e0e6dd3a0453":{"description":"A `message` object. When `stream: true`, the body is an SSE stream of\nAnthropic events (`message_start`, `content_block_delta`, …, `message_stop`).\n","content":{"application/json":{"schema":{"type":"object","description":"Non-streaming Anthropic `message` response.","properties":{"id":{"type":"string","example":"msg_...","uniqueKey":"id","typeLabel":"string"},"type":{"type":"string","const":"message","uniqueKey":"type","typeLabel":"string"},"role":{"type":"string","const":"assistant","uniqueKey":"role","typeLabel":"string"},"model":{"type":"string","uniqueKey":"model","typeLabel":"string"},"content":{"type":"array","description":"Text blocks and, when the model calls a tool, tool_use blocks.","items":{"type":"object","properties":{"type":{"type":"string","enum":["text","tool_use"],"uniqueKey":"content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Present on `text` blocks.","uniqueKey":"content.items.[INDEX].text","typeLabel":"string"},"id":{"type":"string","description":"Present on `tool_use` blocks.","uniqueKey":"content.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"Present on `tool_use` blocks.","uniqueKey":"content.items.[INDEX].name","typeLabel":"string"},"input":{"type":"object","description":"Parsed tool input on `tool_use` blocks.","uniqueKey":"content.items.[INDEX].input","typeLabel":"object"}},"uniqueKey":"content.items.[INDEX]","typeLabel":"object"},"uniqueKey":"content","typeLabel":"object[]"},"stop_reason":{"oneOf":[{"type":"string","enum":["end_turn","max_tokens","stop_sequence","tool_use"],"uniqueKey":"stop_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["end_turn","max_tokens","stop_sequence","tool_use"],"uniqueKey":"stop_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"stop_reason","typeLabel":"enum\u003cstring> | null"},"stop_sequence":{"oneOf":[{"type":"string","uniqueKey":"stop_sequence.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"stop_sequence.oneOf.1","typeLabel":"null"}],"uniqueKey":"stop_sequence","typeLabel":"string | null"},"usage":{"type":"object","properties":{"speed":{"type":"string","enum":["fast","standard"],"description":"Delivered speed when the request supplied speed and the provider reported it. Omitted when unknown; never filled from the request. In streams, appears on message_delta.usage.","uniqueKey":"usage.speed","typeLabel":"enum\u003cstring>"},"input_tokens":{"type":"integer","uniqueKey":"usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","uniqueKey":"usage.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"msg_...","type":"message","role":"assistant","model":"\u003cstring>","content":[{"type":"text","text":"\u003cstring>","id":"\u003cstring>","name":"\u003cstring>","input":{}}],"stop_reason":"end_turn","stop_sequence":"\u003cstring>","usage":{"speed":"fast","input_tokens":123,"output_tokens":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"7a61bf9a-d713-404b-b0b3-4de89243f56d":{"description":"Malformed request (bad JSON, or missing required fields).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"`model` and `messages` are required","type":"invalid_request_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"`model` and `messages` are required","type":"invalid_request_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"9e61f1c8-c008-4cd8-862b-4fa0ff952f17":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Invalid API key","type":"authentication_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Invalid API key","type":"authentication_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"6920a62c-0e17-4818-a4b5-498ae8345ba0":{"description":"Available credits or postpaid headroom cannot cover the request's balance check, which can include estimated input cost. Top up or reduce the request size.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Insufficient credits. Top up to continue.","type":"insufficient_quota"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Insufficient credits. Top up to continue.","type":"insufficient_quota"}}}},"exampleType":"examples"}},"exampleType":"examples"},"37f1d49c-fa62-4c95-b564-a245489143ba":{"description":"The requested `model` id is not in the registry (see GET /v1/models).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Unknown model: foo/bar","type":"invalid_request_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Unknown model: foo/bar","type":"invalid_request_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"1a81de51-18b6-4f36-ae92-1a4bb0c3297b":{"description":"The upstream provider returned an error.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"permission-denied: ...","type":"upstream_error"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"permission-denied: ...","type":"upstream_error"}}}},"exampleType":"examples"}},"exampleType":"examples"},"0b4cc3d3-742e-4d67-9c17-7aac913abbc4":{"description":"The provider for this model has no API key configured on the gateway.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Common types include authentication_error, invalid_request_error, insufficient_quota, billing_required, permission_error, upstream_error, and provider_not_configured.","uniqueKey":"error.type","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Provider not configured: missing OPENAI_API_KEY","type":"provider_not_configured"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Provider not configured: missing OPENAI_API_KEY","type":"provider_not_configured"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"3211594d-8a10-46fb-9a25-4ad08cf98240":{"BearerKey":{"type":"http","scheme":"bearer","description":"Gateway API key (`imp-rt-...`) from POST /v1/accounts or /v1/keys.","scopes":[],"schemeName":"BearerKey"}},"607a56a0-c9c2-4bce-8498-d4db2bdba712":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"x-api-key","description":"Gateway API key via the `x-api-key` header (what the Anthropic SDK sends).","scopes":[],"schemeName":"ApiKeyHeader"}}},"servers":{"56354270-4d43-4a36-9df8-087ce55ddbb8":{"url":"https://api.impossibl.com","description":"Production"},"b9326fa1-d188-49aa-a659-8ec127b80a40":{"url":"http://localhost:8787","description":"Local dev"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Gateway API key (`imp-rt-...`) from POST /v1/accounts or /v1/keys.","scopes":[],"schemeName":"BearerKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Gateway API key (`imp-rt-...`) from POST /v1/accounts or /v1/keys.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerKey","name":"Authorization"}],"title":"BearerKey"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Gateway API key via the `x-api-key` header (what the Anthropic SDK sends).","scopes":[],"schemeName":"ApiKeyHeader"},"schema":{"title":"x-api-key","type":"string","description":"Gateway API key via the `x-api-key` header (what the Anthropic SDK sends).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyHeader","name":"x-api-key"}],"title":"ApiKeyHeader"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"impossibl","siteName":"impossibl","title":"Create a message (Anthropic Messages API) - impossibl","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-16T00:28:49.689Z","originalFileLocation":"api-reference/create-a-message-anthropic-messages-api.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=\"Drop-in compatible with Anthropic\u0026#x27;s Messages API. Authenticate with x-api-key (or Authorization: Bearer). A bare model id like claude-haiku-4-5 routes to Anthropic; use provider/model for others. Set stream: true for SSE.\">\u003cmeta data-mint-head name=\"application-name\" content=\"impossibl\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a message (Anthropic Messages API) - impossibl\">\u003cmeta data-mint-head property=\"og:description\" content=\"Drop-in compatible with Anthropic\u0026#x27;s Messages API. Authenticate with x-api-key (or Authorization: Bearer). A bare model id like claude-haiku-4-5 routes to Anthropic; use provider/model for others. Set stream: true for SSE.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"impossibl\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://impossibl.com/docs/api-reference/create-a-message-anthropic-messages-api\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://impossibl.com/opengraph-image\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a message (Anthropic Messages API) - impossibl\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Drop-in compatible with Anthropic\u0026#x27;s Messages API. Authenticate with x-api-key (or Authorization: Bearer). A bare model id like claude-haiku-4-5 routes to Anthropic; use provider/model for others. Set stream: true for SSE.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://impossibl.com/opengraph-image\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/impossibl/0tSg0CUa7jlGvPGO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"impossibl\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://impossibl.com/docs/api-reference/create-a-message-anthropic-messages-api\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/create-a-message-anthropic-messages-api.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://impossibl.com/#organization\",\"name\":\"impossibl\",\"url\":\"https://impossibl.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://impossibl.com/brand/impossibl-icon.png\"},\"sameAs\":[\"https://x.com/Impossiblai\",\"https://github.com/impossiblco\"]},{\"@type\":\"WebSite\",\"@id\":\"https://impossibl.com/docs#website\",\"name\":\"impossibl\",\"url\":\"https://impossibl.com/docs\",\"publisher\":{\"@id\":\"https://impossibl.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://impossibl.com/docs/api-reference/create-a-message-anthropic-messages-api#webpage\",\"url\":\"https://impossibl.com/docs/api-reference/create-a-message-anthropic-messages-api\",\"name\":\"Create a message (Anthropic Messages API)\",\"description\":\"Drop-in compatible with Anthropic's Messages API. Authenticate with x-api-key (or Authorization: Bearer). A bare model id like claude-haiku-4-5 routes to Anthropic; use provider/model for others. Set stream: true for SSE.\",\"dateModified\":\"2026-10-16T00:28:49.689Z\",\"isPartOf\":{\"@id\":\"https://impossibl.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://impossibl.com/docs/api-reference/create-a-message-anthropic-messages-api#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://impossibl.com/docs/api-reference/create-a-message-anthropic-messages-api#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://impossibl.com/docs/api-reference/complete-artificial-analysis-benchmark-snapshot-for-a-serving-model\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a message (Anthropic Messages API)\",\"item\":\"https://impossibl.com/docs/api-reference/create-a-message-anthropic-messages-api\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://impossibl.com/docs/api-reference/create-a-message-anthropic-messages-api#apireference\",\"headline\":\"Create a message (Anthropic Messages API)\",\"name\":\"Create a message (Anthropic Messages API)\",\"description\":\"Drop-in compatible with Anthropic's Messages API. Authenticate with x-api-key (or Authorization: Bearer). A bare model id like claude-haiku-4-5 routes to Anthropic; use provider/model for others. Set stream: true for SSE.\",\"url\":\"https://impossibl.com/docs/api-reference/create-a-message-anthropic-messages-api\",\"mainEntityOfPage\":{\"@id\":\"https://impossibl.com/docs/api-reference/create-a-message-anthropic-messages-api#webpage\"},\"image\":\"https://impossibl.com/opengraph-image\",\"dateModified\":\"2026-10-16T00:28:49.689Z\",\"publisher\":{\"@id\":\"https://impossibl.com/#organization\"},\"isPartOf\":{\"@id\":\"https://impossibl.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"impossibl\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"impossibl","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"Complete Artificial Analysis benchmark snapshot for a serving model","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/models/{creator}/{model}/benchmarks","href":"/api-reference/complete-artificial-analysis-benchmark-snapshot-for-a-serving-model"},{"title":"Get executable agent onboarding manifest","deprecated":null,"version":null,"openapi":"/openapi.yaml get /auth.md","href":"/api-reference/get-executable-agent-onboarding-manifest"},{"title":"Get auth.md manifest from the well-known compatibility path","deprecated":null,"version":null,"openapi":"/openapi.yaml get /.well-known/auth.md","href":"/api-reference/get-authmd-manifest-from-the-well-known-compatibility-path"},{"title":"Get OAuth protected-resource metadata for agent discovery","deprecated":null,"version":null,"openapi":"/openapi.yaml get /.well-known/oauth-protected-resource","href":"/api-reference/get-oauth-protected-resource-metadata-for-agent-discovery"},{"title":"List available models and pricing","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/models","href":"/api-reference/list-available-models-and-pricing"},{"title":"Create a funded account (agent onboarding)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/accounts","href":"/api-reference/create-a-funded-account-agent-onboarding"},{"title":"Get the authenticated account and balance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/account","href":"/api-reference/get-the-authenticated-account-and-balance"},{"title":"List API keys (metadata only)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/keys","href":"/api-reference/list-api-keys-metadata-only"},{"title":"Mint a new API key","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/keys","href":"/api-reference/mint-a-new-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/keys/{id}","href":"/api-reference/revoke-an-api-key"},{"title":"Rename an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/keys/{id}","href":"/api-reference/rename-an-api-key"},{"title":"List BYOK provider credentials (metadata only)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/provider-keys","href":"/api-reference/list-byok-provider-credentials-metadata-only"},{"title":"Add (or replace) a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/provider-keys","href":"/api-reference/add-or-replace-a-byok-provider-credential"},{"title":"Revoke a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/provider-keys/{id}","href":"/api-reference/revoke-a-byok-provider-credential"},{"title":"Recent usage ledger","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/usage","href":"/api-reference/recent-usage-ledger"},{"title":"Live usage stream (SSE)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/usage/stream","href":"/api-reference/live-usage-stream-sse"},{"title":"Recent request log","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/requests","href":"/api-reference/recent-request-log"},{"title":"One request with its captured payload","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/requests/{id}","href":"/api-reference/one-request-with-its-captured-payload"},{"title":"Start a claim ceremony (hand the account to a human)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /agent/identity/claim","href":"/api-reference/start-a-claim-ceremony-hand-the-account-to-a-human"},{"title":"Poll a claim ceremony (claim grant)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /oauth2/token","href":"/api-reference/poll-a-claim-ceremony-claim-grant"},{"title":"Complete a claim (called by the frontend after WorkOS sign-in)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/claims/complete","href":"/api-reference/complete-a-claim-called-by-the-frontend-after-workos-sign-in"},{"title":"Current balance and top-up pricing","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/billing","href":"/api-reference/current-balance-and-top-up-pricing"},{"title":"Buy net credits with a hosted Stripe Invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/billing/invoice","href":"/api-reference/buy-net-credits-with-a-hosted-stripe-invoice"},{"title":"Verify Stripe webhook and credit paid invoices","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/billing/webhook","href":"/api-reference/verify-stripe-webhook-and-credit-paid-invoices"},{"title":"Create a chat completion (OpenAI-compatible)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/chat/completions","href":"/api-reference/create-a-chat-completion-openai-compatible"},{"title":"Generate images (OpenAI-compatible)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/images/generations","href":"/api-reference/generate-images-openai-compatible"},{"title":"Transcribe a completed audio file","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/audio/transcriptions","href":"/api-reference/transcribe-a-completed-audio-file"},{"title":"Synthesize speech from text","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/audio/speech","href":"/api-reference/synthesize-speech-from-text"},{"title":"Create a response (OpenAI Responses API)","description":"Implements OpenAI's Responses API for text. Set `stream: true` for semantic-event SSE.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/responses","href":"/api-reference/create-a-response-openai-responses-api"},{"title":"Create a message (Anthropic Messages API)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/messages","href":"/api-reference/create-a-message-anthropic-messages-api"},{"title":"Create embeddings (OpenAI-compatible)","description":"Drop-in compatible with OpenAI's Embeddings API. Requires a model whose `output_modality` is `embedding` (see GET /v1/models); text models return 400. Billed on input tokens only.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/embeddings","href":"/api-reference/create-embeddings-openai-compatible"},{"title":"Evaluate state against typed questions (TypeSafe System One)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/systemone","href":"/api-reference/evaluate-state-against-typed-questions-typesafe-system-one"},{"title":"Answer typed questions about an input (OpenAI Decisions)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/decisions","href":"/api-reference/answer-typed-questions-about-an-input-openai-decisions"},{"title":"Rerank documents by relevance","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/rerank","href":"/api-reference/rerank-documents-by-relevance"}]}]}]},"title":"Create a message (Anthropic Messages API) - impossibl","buildId":"dpl_DGmhKsAzJdVqypJzon18vViniWRY","deploymentId":"dpl_DGmhKsAzJdVqypJzon18vViniWRY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-2jF_ccbi.js","utils-NNMVb_sb.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DdtBhtt6.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D1OxL5O8.js","snippetPresets-DDC-KAXp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BOnTqOyQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-EEWI6FIO.js","shallow-fGZcWzm2.js","getApiPlaygroundDisplay-B3B8qEvw.js","CodeSnippet-BG9nsSU4.js","CodeSnippets-BlRACLKl.js","Page-FtoC8lZ9.js","getPastedJson-COV-Kgnr.js","icon-BXu3lasn.js","MethodPill-DGMUqJKh.js","DuplicateIcon-JEUJDHz_.js","createIcon-BDFucJ34.js","DynamicMarkdown-34OtG_BH.js","SectionHeading-tBbRD59j.js","axios-vUo_bRtp.js","Markdown-SoRz2nk2.js","clsx-BOmkPVIU.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DN0dCbTw.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BcsLYcfW.js"]}