{"type":"root","children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"What this solves"}]},{"type":"text","value":": Look up endpoint paths, request fields, and response fields by task when you integrate Tare, all in one place."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If this is your first integration, you don't have to read all of it. Find the endpoint you need in the task table below, then jump to the matching section."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Find endpoints by task"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"What you want to do"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Which endpoints to look at"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Which key to use"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Run a model chat"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"POST /v1/chat/completions"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Inference key or Child key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Create embeddings"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"POST /v1/embeddings"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Inference key or Child key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Generate images"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"POST /v1/images"}]},{"type":"text","value":" or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/images/generations"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Inference key or Child key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Submit a video task"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"POST /v1/videos/generations"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Inference key or Child key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Classify a text (yes/no, choice, score)"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"POST /v1/decisions"}]},{"type":"text","value":" (also "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/systemone"}]},{"type":"text","value":"); see "},{"type":"element","tagName":"a","properties":{"href":"decisions"},"children":[{"type":"text","value":"Decisions"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Inference key or Child key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Check available models"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/models"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"May omit the key; with a key, returns the catalog available to that key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Check the cost of one call"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/generation?id=gen-..."}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"The key that made the call"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Issue child keys"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys/*"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Provisioning key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Machine reconciliation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/integration/*"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Reconciliation key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Two response formats"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The model endpoints, key management, "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/models"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/generation"}]},{"type":"text","value":", and similar endpoints follow a format close to OpenAI / OpenRouter.\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/integration/*"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/mocks/*"}]},{"type":"text","value":" use the ApiResponse envelope (the result is wrapped in one uniform outer structure).\nWhen you write a client, do not assume every endpoint uses the same error body."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"The images endpoint in particular"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/images"}]},{"type":"text","value":" response may contain both "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"b64_json"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"url"}]},{"type":"text","value":". "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"b64_json"}]},{"type":"text","value":" stays valid indefinitely; "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"url"}]},{"type":"text","value":" is a hosted address that expires after 24 hours. If you need to keep an image long term, save the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"b64_json"}]},{"type":"text","value":" or copy the bytes to your own object storage."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Details"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Base URL: "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"https://tare.jamerly.ai"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"text","value":"Model traffic"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Method"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Path"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Purpose"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"POST"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/chat/completions"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Model call. OpenAI format, streaming supported"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"POST"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/embeddings"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Text to vectors. OpenAI format, no streaming"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"POST"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/images"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Image generation. No streaming"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"POST"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/images/generations"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Compatibility path for the same endpoint"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"POST"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/videos/generations"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Submit a video generation task. Asynchronous, see below"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"GET"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/videos/generations/{id}"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Check the status and result of a video task"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"POST"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/decisions"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Decisions: one text and a set of questions, a probability for each answer. No streaming; see "},{"type":"element","tagName":"a","properties":{"href":"decisions"},"children":[{"type":"text","value":"Decisions"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"POST"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/systemone"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Compatibility path for the same endpoint (the TypeSafe Jev / Microsoft Foundry name)"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"GET"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/models"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Models available to this account, with prices"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"GET"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/generation?id=gen-…"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Look up the cost of one call after the fact"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h5","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"POST /v1/embeddings"}]},{"type":"text","value":": text to vectors"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"OpenAI format. The request body is forwarded to the upstream as-is, with the same two exceptions as chat: "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"models"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"provider"}]},{"type":"text","value":".\nThe response is the upstream's original body plus one "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage.cost"}]},{"type":"text","value":" field:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-json"]},"children":[{"type":"text","value":"{\"model\":\"text-embedding-3-small\",\"input\":\"hello\"}\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"How it differs from chat:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Model names are not mapped."}]},{"type":"text","value":" For chat you send the platform-side model name (the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"id"}]},{"type":"text","value":" from "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/models"}]},{"type":"text","value":"),\nbut here you send the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"upstream's own name"}]},{"type":"text","value":". Embeddings do not go through the model routing table, so there is no\nmapping layer, and the model name in the response is not rewritten either."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"A channel must be explicitly configured before it can do embeddings."}]},{"type":"text","value":" Only when you fill in an embeddings\naddress for a channel on the Channels page does it count as offering this endpoint; leave it empty and it does not\noffer it. "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"The platform does not infer this from the Dialect"}]},{"type":"text","value":": \"the chat endpoint uses the\nOpenAI format\" and \"there is an embeddings endpoint\" are two different things. Plenty of relay services, aggregator\ngateways, and self-hosted inference services only offer chat, and the inferred address does not exist on them."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Candidate order: your own channels first, platform channels as the fallback."}]},{"type":"text","value":" Every channel where you have\nconfigured an embeddings address becomes a candidate, in ascending channel id order; only when you have configured\nnone does the platform channel that specifically offers embeddings come into play."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Your own channels fail over among themselves."}]},{"type":"text","value":" Configure several and they are tried in order; when the first\none is unreachable, the next is used automatically, and each handoff is visible individually in\n"},{"type":"element","tagName":"a","properties":{"href":"content-retention"},"children":[{"type":"text","value":"Call Traces"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"When every candidate is taken out of rotation (automatically and temporarily disabled by the platform) you get a\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"503"}]},{"type":"text","value":", not the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"404"}]},{"type":"text","value":" for an unpriced model."}]},{"type":"text","value":" The two mean different things and have different fixes (wait and\nretry, versus go configure a price). Reporting works the same as chat and images: one incident of type\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"UPSTREAM_ALL_DOWN"}]},{"type":"text","value":", visible on the model's health timeline."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"models"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"provider"}]},{"type":"text","value":" also work here, but "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"models"}]},{"type":"text","value":" does not mean exactly the same thing as it does in chat."}]},{"type":"text","value":"\nEmbeddings have no routing table to map through, so a name in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"models"}]},{"type":"text","value":" is another "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"raw upstream model name"}]},{"type":"text","value":",\nnot a platform-side name. The outer layer swaps model names along that chain, and each swap re-tries all of your\nchannels; only after that one model name has failed on every channel does it move to the next. "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"provider"}]},{"type":"text","value":" behaves\nexactly as in chat: it only reorders or filters "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"your own"}]},{"type":"text","value":" channels and never pulls platform channels in.\nFor the full field reference see "},{"type":"element","tagName":"a","properties":{"href":"routing"},"children":[{"type":"text","value":"Routing"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"There is no fallback from your own channels to platform channels."}]},{"type":"text","value":" The two are billed differently: your own\nchannels are only recorded, not charged, while platform channels deduct from your balance at the sale price.\nA silent fallback would amount to "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"starting to charge you without consent"}]},{"type":"text","value":", and all you would see is \"the call\nsucceeded\". When all your own channels are unavailable, the call fails outright rather than being replaced by a\nplatform channel."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Models without a price on platform channels are rejected, not given away for free."}]},{"type":"text","value":" Platform channel tokens are\nbought by the platform from the upstream, and when that row is missing from the price list the price computes to 0.\nFailing clearly is better than silently serving for free.\nThis case returns 404 with the reason; switch to your own channel, or contact us to price that model."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"No streaming. The "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"gen-"}]},{"type":"text","value":" number still comes back in a response header, and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/generation"}]},{"type":"text","value":" can look it up."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Embedding models do not appear in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/models"}]},{"type":"text","value":"."}]},{"type":"text","value":" That catalog comes from the upstream's model catalog,\nand the upstream catalog has no embedding models in it (measured: 421 models, 0 embedding models). Fill in the model name\nfrom the upstream's documentation; you cannot pick it from the platform catalog."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Embedding calls share the "},{"type":"element","tagName":"a","properties":{"href":"content-retention"},"children":[{"type":"text","value":"same retention switch"}]},{"type":"text","value":" as chat."}]},{"type":"text","value":" With the switch\non, the request body and the upstream response are both retained and can be expanded in Call Traces; with it off,\nnot a single byte is written to the database."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This endpoint used to retain nothing regardless of the switch, on the grounds that \"the input is often a whole\ndocument\". The price was that Call Traces showed nothing at all for it. A successful embedding call and a record\nthat never finished looked exactly alike. Whether to retain is now your decision, not a decision made by the\nendpoint type."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h5","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"POST /v1/images"}]},{"type":"text","value":": image generation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-json"]},"children":[{"type":"text","value":"{\"model\":\"google/gemini-3-pro-image\",\"prompt\":\"a red fox in the snow\"}\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Request"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Field"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"model"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Required."}]},{"type":"text","value":" A model you configured on the Routing page, or a platform default model. As with chat, use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"models"}]},{"type":"text","value":" for the fallback chain and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"provider"}]},{"type":"text","value":" for the per-request routing preference, see "},{"type":"element","tagName":"a","properties":{"href":"routing"},"children":[{"type":"text","value":"Routing"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"prompt"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Required."}]},{"type":"text","value":" The image description"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Other fields"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Forwarded to the upstream as-is"}]},{"type":"text","value":": "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"size"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"aspect_ratio"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"n"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"input_references"}]},{"type":"text","value":", and each provider's own parameters. Which ones are supported depends on the model; when you pass a field the upstream does not support, you get the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"upstream's"}]},{"type":"text","value":" error, not the platform's. "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"models"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"provider"}]},{"type":"text","value":" are the exceptions: as with chat, these two are consumed and not forwarded to the upstream"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"POST /v1/images/generations"}]},{"type":"text","value":" is the same endpoint, with an identical request and response."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Response"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-json"]},"children":[{"type":"text","value":"{\n  \"id\": \"gen-c9d21c16eec04f968fc9bbcd08e140f9\",\n  \"created\": 1787820572,\n  \"model\": \"google/gemini-3-pro-image\",\n  \"data\": [\n    {\n      \"b64_json\": \"iVBORw0KGgo…\",\n      \"media_type\": \"image/png\",\n      \"url\": \"https://s.jamerly.ai/img/36/b21a5d9fa79b4135993282e1baf34999.png\",\n      \"expires_at\": 1787906972\n    }\n  ],\n  \"usage\": {\"prompt_tokens\": 7, \"completion_tokens\": 4175, \"total_tokens\": 4182, \"cost\": 0.000900}\n}\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Field"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"id"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"The number for this call, the same value as the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"X-Generation-Id"}]},{"type":"text","value":" response header; use it to query "},{"type":"element","tagName":"a","properties":{"href":"endpoints"},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/generation"}]}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"model"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"The model name used in the request"}]},{"type":"text","value":", not the upstream's model name"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"data[].b64_json"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"The image bytes, base64. "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"This field stays valid indefinitely"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"data[].media_type"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"image/png"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"image/jpeg"}]},{"type":"text","value":", …"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"data[].url"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"A hosted address for the same bytes. "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Expires 24 hours after the call"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"data[].expires_at"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Unix seconds, the moment this URL expires; treat this as authoritative"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"text"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Text the model returned alongside the image. "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"The field is omitted when empty."}]},{"type":"text","value":" A standard images response has no field for carrying text, so this is a field the platform adds, and the standard fields are unchanged"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"finish_reason"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"The upstream's finish reason. "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"When "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"data"}]},{"type":"text","value":" is empty, read this field first"}]},{"type":"text","value":": "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"content_filter"}]},{"type":"text","value":" means the upstream did generate an image but its own content policy blocked it"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Token counts, plus "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"cost"}]},{"type":"text","value":" = "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"the cost of this call"}]},{"type":"text","value":". Images are billed by token, so "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"completion_tokens"}]},{"type":"text","value":" is large"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"data"}]},{"type":"text","value":" may be an empty array, and that is not an error."}]},{"type":"text","value":" The upstream returned normally and simply gave no\nimage, for example because the model only returned text this time, or because the image was blocked by the\nupstream's content policy. The platform "},{"type":"text","value":"<b>"},{"type":"text","value":"does not treat this as a failure"},{"type":"text","value":"</b>"},{"type":"text","value":":\nthe HTTP status is still 200, and the specific reason is in the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"finish_reason"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"text"}]},{"type":"text","value":" fields."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Do not persist "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"url"}]},{"type":"text","value":" to a database."}]},{"type":"text","value":" The link stops working the next day, and before it expires it cannot be\ntold apart from a permanent link. When you need to keep the image, save the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"b64_json"}]},{"type":"text","value":" or copy the bytes to your own\nstorage.\nThe purpose of this URL is to hand the image to other systems without transferring several MB of bytes."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"img","properties":{"src":"diagram:en-endpoints-image-expiry","alt":"Images endpoint · the URL expires after 24 hours","data-block":"true"},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Behavior"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Routed by model"}]},{"type":"text","value":", just like "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/chat/completions"}]},{"type":"text","value":": whichever channel you point\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"google/gemini-3-pro-image"}]},{"type":"text","value":" at on the Routing page is the channel this call takes. Image models differ in price by\nmore than an order of magnitude, so the model choice has a large effect on cost."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Failover works as in chat"}]},{"type":"text","value":": when a model has more than one route configured, a failure moves to the next\ncandidate instead of failing the call outright. The second candidate may be billed differently (one is your own\nchannel, one is a platform channel), so the balance check looks at "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"every candidate along the whole chain"}]},{"type":"text","value":", not\njust the first."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Billing, quotas, and call records are exactly as in chat"}]},{"type":"text","value":": the same three checks for balance / budget / child key\nlimit, the same records in "},{"type":"element","tagName":"a","properties":{"href":"content-retention"},"children":[{"type":"text","value":"Call Traces"}]},{"type":"text","value":" (including the prompt), and the same\nbilling definition. Every endpoint uses the same accounting."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"No streaming."}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h5","properties":{},"children":[{"type":"text","value":"Generating images inside a chat call: "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"modalities"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This approach is supported too: pass "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"modalities"}]},{"type":"text","value":" to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/chat/completions"}]},{"type":"text","value":" and the images come back in\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"message.images"}]},{"type":"text","value":". Use it when a single call must return both text and images; when you need images only, use\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/images"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-json"]},"children":[{"type":"text","value":"{\"model\":\"…\",\"messages\":[{\"role\":\"user\",\"content\":\"a red fox\"}],\n \"modalities\":[\"image\",\"text\"]}\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The request body is "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"forwarded to the upstream as-is"}]},{"type":"text","value":", and the response is "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"the upstream's original body"}]},{"type":"text","value":" (only "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"model"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"id"}]},{"type":"text","value":" are rewritten). Three things to note:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Routing looks only at the input modality, not at the output modality of the request."}]},{"type":"text","value":" When one model name has\nseveral candidates and only some of them can produce images, failover may land on one that cannot, showing up as\n\"the same request sometimes returns an image and sometimes only text\".\n"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Avoid this in configuration"}]},{"type":"text","value":": give image-capable models their own model name, or configure only one channel for\nthem. Selecting candidates by output modality is on the roadmap."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Pricing is by token plus the upstream's self-reported cost"}]},{"type":"text","value":". "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pricing.image"}]},{"type":"text","value":" in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/models"}]},{"type":"text","value":" "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"is always 0,\nwhich does not mean free"}]},{"type":"text","value":" (there is no \"per image\" tier). For the cost of one image, read "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage.cost"}]},{"type":"text","value":" from the\nresponse."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Whether an image comes back as base64 or as a URL "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"is decided by the upstream"}]},{"type":"text","value":"; the platform does not rewrite it."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h5","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"POST /v1/videos/generations"}]},{"type":"text","value":": video generation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Video tasks routinely run for minutes, not seconds, so the format is \"submit, then poll\" rather than request-response:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-json"]},"children":[{"type":"text","value":"{\"model\":\"…\",\"prompt\":\"a red fox running through snow\",\n \"duration_seconds\":5,\"aspect_ratio\":\"16:9\"}\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Request"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Field"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"model"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Required."}]},{"type":"text","value":" Supports the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"models"}]},{"type":"text","value":" fallback model chain and the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"provider"}]},{"type":"text","value":" per-request channel preference, see "},{"type":"element","tagName":"a","properties":{"href":"routing"},"children":[{"type":"text","value":"Routing"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"prompt"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Required"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"duration_seconds"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"aspect_ratio"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Optional; which values a model accepts depends on the model itself"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"reference_image_url"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"reference_video_url"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Optional reference inputs, for models that support image-to-video / video-to-video"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"callback_url"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Accepted and stored. "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"It is not delivered at present"}]},{"type":"text","value":" — it is not called when the task finishes — so poll instead"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Other fields"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Forwarded to the upstream as-is, with the same rules as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/images"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The three gates for balance / budget / child key limit are checked at submit time, as in chat. A task over the limit cannot be created at all."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"There is no cross-channel failover here, unlike in chat, embeddings, and images."}]},{"type":"text","value":" A submit hits "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"one"}]},{"type":"text","value":" candidate\nonly, the highest-priority one after "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"provider"}]},{"type":"text","value":" filtering. If that channel's own submit call fails, the task fails\noutright and is not moved to the next channel you configured. "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"models"}]},{"type":"text","value":" can only catch the case where \"this model has\nno route configured at all\"; when the model does have a route but that one channel rejects the submit request,\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"models"}]},{"type":"text","value":" cannot help. If you configure a fallback channel for a video model and expect it to fail over\nautomatically like chat, that fallback channel will not be used unless the primary channel has no route at all."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the first candidate happens to be out of rotation already, a submit with more than one candidate configured will at least\nskip to one that is not. That is the \"pick a candidate\" step looking at circuit breaker state, not the failure retry\ndescribed above. If every candidate is out of rotation, the submit is rejected outright rather than forcing a call to\na channel known to be parked, and as with chat and images, an incident of type "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"UPSTREAM_ALL_DOWN"}]},{"type":"text","value":" is recorded here\ntoo."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Response"}]},{"type":"text","value":" (the submit endpoint and every poll return this format)"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-json"]},"children":[{"type":"text","value":"{\"id\":\"gen-…\",\"status\":\"pending\",\"model\":\"…\",\"created\":1700000000}\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"status"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Meaning"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Accepted, the upstream has not started yet"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"running"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"The upstream is generating"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"succeeded"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"result.video_url"}]},{"type":"text","value":" (plus "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"result.video_urls"}]},{"type":"text","value":" when the upstream returns more than one), "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage.video_tokens"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"completed"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"failed"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"error.message"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"expired"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Gave up waiting for the upstream. Treat it as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"failed"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The diagram below helps you understand the states; when polling, go by the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"status"}]},{"type":"text","value":" in the response and do not rely on a fixed order of state transitions."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"img","properties":{"src":"diagram:en-endpoints-video-status","alt":"Video generation · the five values of status","data-block":"true"},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Polling "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/videos/generations/{id}"}]},{"type":"text","value":" never hits your upstream provider."}]},{"type":"text","value":" It reads the platform's own task\ntable; the polling rhythm that actually hits the upstream is controlled centrally by Tare. Poll as often as you\nlike: it adds no extra calls to the provider and does not make the task run faster."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"chat, embeddings, and images have two things this endpoint does not have right now: "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage_label"}]},{"type":"text","value":" is accepted but\nnot read (silently, it just becomes a field the upstream does not recognize and ignores), and the prompt and the\nresult are "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"never"}]},{"type":"text","value":" written to "},{"type":"element","tagName":"a","properties":{"href":"content-retention"},"children":[{"type":"text","value":"Call Traces"}]},{"type":"text","value":", regardless of the account's\nretention switch. Neither of these can be turned on right now:\nvideo generation calls have no attribution label for the moment and no queryable history, unlike the other three\nendpoints."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"text","value":"Request headers"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Unrecognized request headers are ignored: the request is not rejected because of them, and they are not forwarded\nto the upstream."}]},{"type":"text","value":" The platform rebuilds the headers it sends upstream (credentials, "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"Content-Type"}]},{"type":"text","value":", and the\nseveral headers that each provider's Dialect requires), so "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"headers your client sends do not appear on the\nupstream side"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The attribution headers "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"HTTP-Referer"}]},{"type":"text","value":" / "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"X-Title"}]},{"type":"text","value":" are in this category: sending them has no side effects (they do not\naffect routing, billing, or rate limits), but they do not reach the upstream. For attribution, use these two methods:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Need"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Method"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Mark which business a call belongs to"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage_label"}]},{"type":"text","value":" in the request body, recorded as-is in the usage record. "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Only chat, embeddings, and images support it"}]},{"type":"text","value":"; video generation does not read this field at present, so passing it does nothing (and raises no error, because unrecognized fields are forwarded to the upstream as-is)"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Mark which end user a call belongs to"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Create a separate child key for that user, see "},{"type":"element","tagName":"a","properties":{"href":"provisioning"},"children":[{"type":"text","value":"Provisioning key"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"CORS is not enabled."}]},{"type":"text","value":" When connecting directly from a browser, these two custom headers are stopped by the\nbrowser during the preflight, and the request is never sent at all. Server-side calls are unaffected, and you\nshould always call from the server anyway: putting an inference key in a browser is the same as publishing it."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"text","value":"The "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"gen-"}]},{"type":"text","value":" number"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Every call returns a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"gen-xxxxx"}]},{"type":"text","value":", "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"generated by the platform"}]},{"type":"text","value":", not by the upstream. Use it to look up cost, or as an\nidempotency key for your own accounting."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The prefix is a hard requirement: plenty of clients check whether a call has a number with "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"id.startsWith(\"gen-\")"}]},{"type":"text","value":",\nand changing the prefix makes that check fail and leaves the reconciliation pipeline spinning."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"text","value":"Key management (provisioning key)"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Lets platform customers issue child keys to end users and call with the provisioning key, "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"without depending on a\nlogin session"}]},{"type":"text","value":". See "},{"type":"element","tagName":"a","properties":{"href":"provisioning"},"children":[{"type":"text","value":"Provisioning key"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Method"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Path"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Purpose"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"POST"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Create a child key (idempotent when "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"external_id"}]},{"type":"text","value":" is supplied)"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"GET"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"List child keys under this account, cursor pagination, including disabled ones"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"GET"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys/{hash}"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Check a child key's limit and usage"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"PATCH"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys/{hash}"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Change the limit / disable / rename"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"GET"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys/external/{externalId}"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Same as above, located by "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"external id"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"PATCH"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys/external/{externalId}"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Same as above, located by "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"external id"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"POST"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys/{hash}/reset"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Reset the limit now ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys/external/{externalId}/reset"}]},{"type":"text","value":" by external id)"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"GET"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys/usage/daily"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Daily usage of every child key under the account"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"GET"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys/{hash}/usage/daily"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Daily usage of one child key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"GET"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys/external/{externalId}/usage/daily"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Same as above, located by "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"external id"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"text","value":"Console and reconciliation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The console (channels, routing, statements, alerts) is a separate interface that uses a login session. Machine-to-machine reconciliation has dedicated, key-authenticated endpoints, see "},{"type":"element","tagName":"a","properties":{"href":"integration-api"},"children":[{"type":"text","value":"Reconciliation API"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The three key types have non-overlapping permissions: an inference key can only call models, a reconciliation key\ncan only read reports, and a provisioning key can only manage keys.\nUsing the wrong type returns an explicit refusal, not a vague 401."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/models"}]},{"type":"text","value":": fields and what they mean"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Send your inference key and the catalog includes the models you configured yourself"}]},{"type":"text","value":": the ones on your own\nchannels ∪ the platform's, with your own entry winning on a name collision, exactly matching how routing behaves on\na real call.\n"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Without a key"}]},{"type":"text","value":" you get the platform catalog (this path is always kept, so a client can pull the catalog without\nany request headers)."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Either an inference key or a provisioning key works."}]},{"type":"text","value":" A provisioning key has no Router bound, so it gets the\ncatalog for the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"account's default routing"}]},{"type":"text","value":"; to see which models a child key bound to a different Router can use,\ncall with that child key."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"When a key is supplied but is invalid or expired, you get "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"401"}]},{"type":"text","value":" (it does not silently return a catalog missing\nyour own models);\na reconciliation key gets "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"403"}]},{"type":"text","value":": a reconciliation key has no access to model-related endpoints."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"For models on your own channels, "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pricing.prompt"}]},{"type":"text","value":" / "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"completion"}]},{"type":"text","value":" are "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"0"}]}]},{"type":"text","value":": those tokens are paid by you directly\nto the upstream and do not go through the platform price list. Read the real cost from "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage.cost"}]},{"type":"text","value":" in the response."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-json"]},"children":[{"type":"text","value":"{\"data\":[{\"id\":\"GLM 5.1\",\"name\":\"GLM 5.1\",\"description\":\"…\",\"context_length\":128000,\n  \"architecture\":{\"modality\":\"text->text\",\"input_modalities\":[\"text\"],\"output_modalities\":[\"text\"]},\n  \"reasoning\":{\"mandatory\":false,\"default_enabled\":true,\n    \"supported_efforts\":[\"low\",\"medium\",\"high\"],\"default_effort\":\"medium\"},\n  \"pricing\":{\"prompt\":\"0.0000006\",\"completion\":\"0.0000022\",\n    \"input_cache_read\":\"0.00000006\",\"input_cache_write\":\"0.00000075\",\n    \"request\":\"0\",\"image\":\"0\"}}]}\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Field"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Meaning"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"id"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"The platform-side model name"}]},{"type":"text","value":", use it to make calls"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pricing.prompt"}]},{"type":"text","value":" / "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"completion"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Per token"}]},{"type":"text","value":" (not per million), a string"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pricing.input_cache_read"}]},{"type":"text","value":" / "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"input_cache_write"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"The two cache tiers, also per token"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pricing.request"}]},{"type":"text","value":" / "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"image"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Always "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"0"}]}]},{"type":"text","value":", see the warning below"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Currency"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"US dollars"}]},{"type":"text","value":"; conversion to other currencies is not offered for now"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"description"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"The model description from the upstream catalog; "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"the field is absent"}]},{"type":"text","value":" when unavailable"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"context_length"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"From the upstream catalog; "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"the field is absent"}]},{"type":"text","value":" when unavailable (do not treat it as 0)"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"max_completion_tokens"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"This model's own output length limit; when unavailable it is absent, the same rule as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"context_length"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"architecture"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"What you set for the model on Routing, otherwise the upstream catalog, otherwise Tare's model reference; "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"absent"}]},{"type":"text","value":" when none of them has it"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"reasoning"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Thinking capability, from the upstream catalog; when unavailable "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"the field is absent and no default is given"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"For the three fields "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"description"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"context_length"}]},{"type":"text","value":", and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"max_completion_tokens"}]},{"type":"text","value":", an upstream catalog that does not\nsupply them does not mean there is nothing to say: Tare maintains its own baseline data for common models, and when\nthe upstream does not supply them it checks that baseline first before deciding whether to leave them empty. For\nself-hosted and uncommon models it still invents nothing. This baseline only helps models that the upstream catalog\nhappens not to cover."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pricing.image"}]},{"type":"text","value":" "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"is always "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"0"}]},{"type":"text","value":", but images are not free"}]},{"type":"text","value":". The price list has only the four token tiers (input /\noutput / cache read / cache write) and no \"per image\" tier; calls with images are priced by the tokens and the cost that the\nupstream reports.\n"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Do not use this field to estimate image cost"}]},{"type":"text","value":"; read "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage.cost"}]},{"type":"text","value":" from the response."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h5","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"reasoning"}]},{"type":"text","value":": thinking capability"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-json"]},"children":[{"type":"text","value":"{\"mandatory\":false,\"default_enabled\":true,\n \"supported_efforts\":[\"low\",\"medium\",\"high\"],\"default_effort\":\"medium\"}\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Use it to decide whether to show a \"thinking effort\" selector, and which tiers to show:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"The values of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"supported_efforts"}]},{"type":"text","value":" are decided by the upstream"}]},{"type":"text","value":" and are not limited to these three (some\nupstreams also offer "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"minimal"}]},{"type":"text","value":" / "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"xhigh"}]},{"type":"text","value":" / "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"none"}]},{"type":"text","value":"). "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Render based on the field; do not hard-code it in the client"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"mandatory: true"}]},{"type":"text","value":" means it cannot be turned off"}]},{"type":"text","value":", so do not render a toggle in that case."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"A missing "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"reasoning"}]},{"type":"text","value":" means unknown, not \"thinking not supported\"."}]},{"type":"text","value":" Self-hosted and local models have no catalog\nentry, so the field is absent for them; treating absence as unsupported would make the selector disappear for those\nmodels. There is no fallback here: inventing a default amounts to making an unconfirmed promise on the upstream's\nbehalf, and a user who picks an effort the upstream does not accept gets a 400 that looks like a model failure."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"How to get the thinking content from the response"}]},{"type":"text","value":": if the model actually produced a reasoning process, it appears\nin "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"message.reasoning_content"}]},{"type":"text","value":" (streaming: "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"delta.reasoning_content"}]},{"type":"text","value":"), a field separate from "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"content"}]},{"type":"text","value":". Different\nupstreams give different formats, for example Anthropic's "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"thinking"}]},{"type":"text","value":" content blocks, in both complete and streaming\nform, all translated into this one field, so the client only has to read one place and does not care which provider is\nanswering."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"There is currently no separate flag for tool-calling capability"}]},{"type":"text","value":", so this catalog cannot tell you whether a model supports tool calls."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage.cost"}]},{"type":"text","value":": the cost of this call"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In US dollars:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Platform models: equal to the platform sale price;"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"BYOK: the upstream cost price + a governance fee"}]},{"type":"text","value":". With BYOK you pay the provider for the tokens directly, and\nputting 0 here would make the cost report show millions of tokens used for free this month. The governance fee floor\nis "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"0.0001"}]},{"type":"text","value":". A higher rate follows the trial or contract."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"For channels where the upstream reports its own cost in the response, "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"that reported value is used"}]},{"type":"text","value":", and you get\nit even without recording a cost price."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"When it cannot be computed, the field is absent"}]},{"type":"text","value":" rather than 0: a fake 0 would be taken at face value.\n\"This model is not priced yet\" also counts as not computable, so "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"0"}]},{"type":"text","value":" that appears is a real 0"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"The final frame of a stream also carries "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"cost"}]}]},{"type":"text","value":" (only the final frame has usage)."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"A platform model's response has no "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage.cost_details"}]}]},{"type":"text","value":": that field is the fee the upstream charges the\nplatform. It is kept under BYOK, where the value comes from your own upstream statement and is exactly what cost\nattribution needs.\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"upstream_inference_cost"}]},{"type":"text","value":" in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/generation"}]},{"type":"text","value":" works the same way and only BYOK calls have that field."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Self-hosted and local models, and relays whose model list carries only ids, usually have no "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"architecture"}]},{"type":"text","value":".\nApps that filter models by "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"input_modalities"}]},{"type":"text","value":" drop them. Set the capabilities on the console's "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Routing"}]},{"type":"text","value":" page\n(open the model and click "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Capabilities"}]},{"type":"text","value":"): the dialog fills in what the upstream says, and what you save is what\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/models"}]},{"type":"text","value":" reports from then on."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/generation?id="}]},{"type":"text","value":": when the data becomes queryable"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The data comes from the usage record, and "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"the usage record is written after the response"}]},{"type":"text","value":", so querying the number immediately returns 404."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A 404 has two meanings and "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"they currently share one code"}]},{"type":"text","value":": not yet written (you should retry) and a call that is\nnot yours (you should give up). Tell them apart by time: "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"a 404 within 60 seconds of receiving the number is\nalways treated as not yet written"}]},{"type":"text","value":", and beyond that as the latter. Not telling them apart is deliberate, because\ntelling them apart amounts to providing a probe endpoint for \"does this number exist\"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Non-streaming"}]},{"type":"text","value":": usually queryable within 1 second of the response."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Streaming"}]},{"type":"text","value":": written after the final frame, so go by "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"the end of the stream"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"A 404 is a normal path"}]},{"type":"text","value":", treat it as \"try again later\" and retry with a few seconds of backoff."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"For a streaming call that was cut off midway"}]},{"type":"text","value":", the cost has to be back-queried from the upstream afterwards and\nrecorded late, which can take up to minutes."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h5","properties":{},"children":[{"type":"text","value":"Timing fields"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Field"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Meaning"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"generation_time"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"The time spent by the provider that actually answered (milliseconds). Equal to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"latency"}]},{"type":"text","value":" when there was no handoff"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"latency"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Total time: "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"generation_time"}]},{"type":"text","value":" plus the time of each failed attempt before the handoff"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"routing_overhead_ms"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"latency"}]},{"type":"text","value":" minus "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"generation_time"}]},{"type":"text","value":". "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Appears only when a channel handoff actually happened"}]},{"type":"text","value":"; with no handoff this cell is not given, rather than 0"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"time_to_first_token_ms"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Time until the first byte arrived. "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Only streaming calls have it"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The field names and the way "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"latency"}]},{"type":"text","value":" / "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"generation_time"}]},{"type":"text","value":" are split are copied from OpenRouter's own generation\nstats. "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"routing_overhead_ms"}]},{"type":"text","value":" is one it does not have. OpenRouter does not expose its own retries to the caller, and\nTare can because each attempt is accounted for separately to begin with; see the explanation of \"how can one call try\nmore than one provider\" in "},{"type":"element","tagName":"a","properties":{"href":"routing"},"children":[{"type":"text","value":"Routing"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"These four fields do not appear on usage records written before the feature shipped. If it is missing, it is missing; no guessed value is filled in."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"text","value":"Streaming: "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"stream_options.include_usage"}]},{"type":"text","value":" is forced on"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Without usage there is no way to bill, so this option "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"overrides what is in the request"}]},{"type":"text","value":" (the platform replaces the whole "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"stream_options"}]},{"type":"text","value":" block). The resulting format differences:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Upstream Dialect"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Final frame format"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"OpenAI-compatible"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"The upstream's final frame is "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"forwarded as-is"}]},{"type":"text","value":": "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"choices"}]},{"type":"text","value":" is an "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"empty array"}]},{"type":"text","value":", with "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Anthropic"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Translated by the platform: "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"choices"}]},{"type":"text","value":" has one item, "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"delta"}]},{"type":"text","value":" is empty, with "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"finish_reason"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"The final frame formats of the two Dialects are not consistent."}]},{"type":"text","value":" When the frontend renders frame by frame, writing the\ntest as \""},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"choices"}]},{"type":"text","value":" is empty "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"or"}]},{"type":"text","value":" "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"delta"}]},{"type":"text","value":" has no content → skip rendering and just take "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"usage"}]},{"type":"text","value":"\" covers both\nformats. The Anthropic one is not padded into an empty "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"choices"}]},{"type":"text","value":" frame, because that would add an extra frame."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"img","properties":{"src":"diagram:en-endpoints-streaming-final-frame","alt":"Streaming final frame · two formats","data-block":"true"},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"text","value":"OpenAPI / JSON Schema"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The public endpoints ("},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/chat/completions"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/models"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/generation"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/integration/*"}]},{"type":"text","value":") have a\n"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"hand-maintained OpenAPI 3.1 description file"}]},{"type":"text","value":", updated in step with this document:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"/openapi/tare.html"},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"View online"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"A single page, "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"works offline"}]},{"type":"text","value":", no external dependencies"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"/openapi/tare.yaml"},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Download openapi.yaml"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Use it to generate clients, or import into Postman / Insomnia"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The automatically generated description is not provided: it would also expose the console, health checks, and other\nendpoints not aimed at callers, and those are not a stable contract and are not exposed on the gateway either. The\nscope of the hand-written one is exactly "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"the endpoints that appear in this document"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The description file only covers "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"field structure"}]},{"type":"text","value":" and does not repeat the reasoning here (why an exhausted limit\nis a 403, why the streaming final frame formats differ between the two Dialects, and so on). Read both together when you\nintegrate."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{},"children":[{"type":"text","value":"Console and admin endpoints"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Everything above covers model calls — the set of endpoints your application will hit. The console itself, and the people who want to\nscript directly against their logged-in session, sit in front of a much larger endpoint surface. None of these need\nan API key; what they need is a login session. Below is one row per area, without listing paths one by one; see the\nmatching document for what each one does:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Area"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Root path"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[{"type":"text","value":"Covered in"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"API Key (the account owner's full view: provisioning keys, inference keys, and child keys are all in here)"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/api-keys"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"auth"},"children":[{"type":"text","value":"API Key"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Provisioning keys managing the child keys they issued"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/keys"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"provisioning"},"children":[{"type":"text","value":"Provisioning key"}]},{"type":"text","value":", this group "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"can"}]},{"type":"text","value":" be called with a provisioning key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Channels"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/providers"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"channels"},"children":[{"type":"text","value":"Channels"}]},{"type":"text","value":", "},{"type":"element","tagName":"a","properties":{"href":"cost-prices"},"children":[{"type":"text","value":"Cost prices"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Local Node"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/node"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"local-nodes"},"children":[{"type":"text","value":"Local Node"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Default routing"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/routing"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"routing"},"children":[{"type":"text","value":"Routing"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Named Router"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/routers"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"routing"},"children":[{"type":"text","value":"Routing"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Alert rules and channels"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/alerts"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"alerts"},"children":[{"type":"text","value":"Alerts"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Drill scenarios"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/mocks"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"mock"},"children":[{"type":"text","value":"Mock"}]},{"type":"text","value":", this group "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"can"}]},{"type":"text","value":" also be called with an inference key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Content retention and viewing authorization"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/content-settings"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"content-retention"},"children":[{"type":"text","value":"Call Traces"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Audit log"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/audit"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"audit-trail"},"children":[{"type":"text","value":"Audit log"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"DLP policies and skip settings"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/dlp"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"security"},"children":[{"type":"text","value":"Data protection"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Channels, routing and DLP with a management key"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/manage"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"management-key"},"children":[{"type":"text","value":"Management keys"}]},{"type":"text","value":", this group can "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"only"}]},{"type":"text","value":" be called with a management key"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Model and channel health"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/health"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"routing"},"children":[{"type":"text","value":"Routing"}]},{"type":"text","value":", "},{"type":"element","tagName":"a","properties":{"href":"channels"},"children":[{"type":"text","value":"Channels"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Billing center, statements, invoices"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/billing"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"statements"},"children":[{"type":"text","value":"Statements and invoices"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Usage analytics and charts"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/v1/analytics"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/usage"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"attribution"},"children":[{"type":"text","value":"Cost attribution"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Next steps"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Just want to get your first request working: read "},{"type":"element","tagName":"a","properties":{"href":"quickstart"},"children":[{"type":"text","value":"Quickstart"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Want to connect your own provider: read "},{"type":"element","tagName":"a","properties":{"href":"channels"},"children":[{"type":"text","value":"Channels"}]},{"type":"text","value":", "},{"type":"element","tagName":"a","properties":{"href":"cost-prices"},"children":[{"type":"text","value":"Cost prices"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Want to configure model routing: read "},{"type":"element","tagName":"a","properties":{"href":"routing"},"children":[{"type":"text","value":"Routing"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Want to know what the error codes mean: read "},{"type":"element","tagName":"a","properties":{"href":"errors"},"children":[{"type":"text","value":"Error codes"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Want machine reconciliation: read "},{"type":"element","tagName":"a","properties":{"href":"integration-api"},"children":[{"type":"text","value":"Reconciliation API"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]}]}