Changelog
Changes to the Belarel API, newest first. Additive changes and deprecations are both recorded here; see Versioning & deprecations for what each kind means for your integration.
2026-10-05 (3) — Enclave hosts behind on Intel’s patches
Section titled “2026-10-05 (3) — Enclave hosts behind on Intel’s patches”Behavior changes
Section titled “Behavior changes”- An enclave host behind on Intel’s TCB patches (
OutOfDate,ConfigurationNeeded,ConfigurationAndSWHardeningNeeded,OutOfDateConfigurationNeeded) now serves confidential calls, and Belarel is alerted. OnlyRevoked, or any other status, is refused. This replaces the rule of 2026-10-05 (2) that refused an instance with an out-of-date TCB. tcb_statusin an answer’sbelarel.attestationblock is the worst status among the instances sampled for the verdict. It can be worse than the status of the quoteGET /v1/attestationreturns, which comes from one instance. See Confidential inference.
2026-10-05 (2) — Reasoning effort, enclave sampling and cache billing
Section titled “2026-10-05 (2) — Reasoning effort, enclave sampling and cache billing”reasoning_effort(Chat Completions) andreasoning.effort(Responses) acceptnone, next tominimal,low,mediumandhigh.
Behavior changes
Section titled “Behavior changes”- On
z-ai/glm-5.3-flash, Belarel sends only the effort the model really honors, as measured:lowis sent as is;none, which would return an empty answer on this model, becomeslow;minimal,mediumandhighleave the model at its default reasoning, the deepest it offers. Each substitution comes with awarndecision inbelarel.policy.deepseek/deepseek-v4.1-flashandornith/ornith-1.5-397b, as served by Belarel, receive your value as is. See Reasoning. - Cached tokens are billed at the model’s cache rates only when it publishes a real cache rate (read and write separately). Otherwise they are billed at the input rate — no longer for free. See Cost & usage.
- Every sampled enclave instance now goes through the nonce, debug mode, key, DCAP chain and TCB status checks before its measurements are recorded — not only the instance that answers the proof. The optional Intel Trust Authority cross-check still runs only on the instance that answers the proof. An instance with an out-of-date TCB is refused. Within each verdict, every sampled quote is verified afresh; only Intel’s collateral is reused (up to an hour). The verdict itself is reused for up to 10 minutes.
- Since 2026-10-05, a combination of measurements can be approved only from a DCAP-verified quote; a combination without that verification can only be revoked. Combinations approved before keep their status.
- The pinned connection to the enclave keeps no TLS session for resumption: every new connection goes through a full handshake and proves the attested key again. See Confidential inference.
2026-10-05 — Measurement review and token billing
Section titled “2026-10-05 — Measurement review and token billing”belarel.attestationcarriesmeasurements_approved:truewhen Belarel has reviewed and approved every combination of measurements the enclave fleet was recently seen with. See Confidential inference.- GET
/v1/attestationreturnsmeasurements_status:approved,pending(not reviewed yet; calls are served) orrevoked(calls refused).measurements_approvedistrueonly when the status isapproved. See Verify the attestation.
Behavior changes
Section titled “Behavior changes”- A new combination of enclave measurements — a new deployment or a new host type — serves
confidential calls as soon as it is seen, and Belarel reviews it afterwards. The quote is
DCAP-verified on the instance that answers the proof; the other sampled instances are checked
for nonce, debug mode and key only. Only a combination Belarel revokes refuses calls
(
503 attestation_unavailable), while a replica running it has been seen in the last 15 minutes (instances are sampled, not enumerated). - Reasoning tokens are billed at the model’s output rate when the model has no separate reasoning
rate. Cached input tokens (
cached_tokens) are billed at the model’s cache rate when it has one, and not billed when it has none. See Cost & usage.
2026-10-03 — Confidential inference
Section titled “2026-10-03 — Confidential inference”The confidential data mode is available. A confidential key is served only through an attested
Intel TDX enclave that terminates the connection, which Belarel verifies before your prompt leaves
its gateway, and you can verify that enclave yourself. See
Confidential inference.
confidentialkeys can be created in your organization dashboard (Governance → API keys → Confidential inference) and as sub-keys throughPOST /v1/keys. Their content is kept nowhere, like azero_retentionkey.- New endpoint GET
/v1/attestation?nonce=<64 hex characters>, for confidential keys: a fresh proof of the enclave, bound to your nonce, that you can re-check with any DCAP verifier. See Verify the attestation. - Answers to a confidential key carry
belarel.attestation: the enclave verdict the call was served under — a record of that verdict, not a proof. See Cost & usage. GET /v1/modelsmarks every model withbelarel.confidential_available. A confidential key lists only those models.- New error codes:
400 model_not_confidentialand403 confidential_key_required(both withx-should-retry: false), and503 attestation_unavailablewithRetry-After: 30.
Behavior changes
Section titled “Behavior changes”confidentialkeys no longer answer501 not_implemented, and that code is gone from the API.- A confidential key cannot call
/v1/embeddings(400 model_not_confidential) and cannot run on your own provider keys (BYOK). - A sub-key of a
confidentialkey isconfidential; a sub-key of azero_retentionkey that asks forconfidential(or the reverse) is refused with400 invalid_request. - Breaking — On Chat Completions and Responses,
zero_retentionandconfidentialkeys no longer keep a fingerprint of the request body forIdempotency-Key. The same idempotency key sent with another body now answers409 idempotency_conflict(“already served” once the first call finished) instead of422 idempotency_key_reused.standardkeys, and/v1/embeddings, are unchanged. See Idempotency.
2026-10-02 — Changes (2)
Section titled “2026-10-02 — Changes (2)”More corrections to the developer preview. The ones marked Breaking can refuse a request that was accepted before.
Parameters
Section titled “Parameters”- Breaking — Fields inside the objects the API reads are checked, and refused by their path
with
400 unsupported_parameter(for exampleparam: "text.verbosity"). Inresponse_formatandtext.format,json_schematakesname,schema,descriptionandstrict, andjson_objectandtexttake onlytype; on Responses,texttakes onlyformatandreasoningtakeseffortandsummary. Before, unknown nested fields were ignored. - Breaking —
POST /v1/embeddingsrefuses fields it does not take with400 unsupported_parameter. It acceptsmodel,input,encoding_format,dimensions,user,metadataandbelarel_tags. - Breaking — A tool that cannot be attached is refused with
400 invalid_requestandparamset to its position, such astools[24]for a 25th tool. The same goes for a tool that is not a function, a missing, invalid or duplicate name, a schema over 16,000 characters, or an unknown field infunction. Before, such tools were dropped without an error. On Responses, a refused tool is named by its index in yourtoolsarray, and aweb_searchtool takes no other field. - Breaking — On Chat Completions,
connectors,hitl_approvalsandchat_idare refused with400 connectors_require_user_sessionas soon as they are present, even empty. - Chat Completions accepts the
developerrole and treats it assystem, as Responses does. It used to answer400 invalid_messages. - Responses accepts
reasoning.summary, andincludewithweb_search_call.action.sourcesorreasoning.encrypted_content— values the Vercel AI SDK adds on its own — with no effect. Any otherincludevalue is refused by its position.strictis accepted, with no effect, on function tools and JSON schemas. belarel.ignored_parameters,max_tokens_exceeds_key_limitandmodel_lacks_structured_outputname a field as you sent it:max_completion_tokenswhen you used it, andmax_output_tokensortext.formaton Responses, instead ofmax_tokensandresponse_format.
Errors and retries
Section titled “Errors and retries”- Answers that a retry cannot change carry
x-should-retry: false, so the official OpenAI SDKs return them at once instead of retrying twice:501 not_implemented,503 pricing_unavailable,503 admission_unavailablewhen BYOK is not enabled for your organization (it no longer carriesRetry-After: 60),503 model_unavailablefor a disabled model,503 service_unavailablewhen the model’s provider refused Belarel’s own credential (noRetry-After),409 provider_credential_missing, and anidempotency_conflictwhose key was already served. One still in progress can be retried. - New
503 idempotency_unavailable, withx-should-retry: false:Idempotency-Keycannot be used on this deployment, so send the request without it. A temporary outage of the idempotency check is still503 admission_unavailablewithRetry-After. - When your organization’s AI access cannot be checked, the call gets
503 admission_unavailablewithRetry-After, instead of403 entitlement_denied. A403 entitlement_deniednow always means AI is not enabled for your organization. - Some error messages were reworded in plain public terms. Branch on
error.code, which did not change. - The keyless
GET /v1/modelsanswers its rate limit with429 rate_limitedin the OpenAI error shape, withRetry-After. Its answers carryX-RateLimit-Limit-Requests,X-RateLimit-Remaining-RequestsandX-RateLimit-Reset-Requests, like the keyed routes, instead ofX-RateLimit-LimitandX-RateLimit-Remaining. A successful answer can be cached by the CDN for up to 5 minutes, so itsX-RateLimit-*headers (andX-Request-Id) may be those of an earlier caller: rely on the429and itsRetry-After.
Spend caps
Section titled “Spend caps”- A BYOK key is admitted at the platform fee: the reservation against the key’s caps, your organization’s credit check and your contract’s maximum cost per request use the fee’s worst case, not the model’s full price.
- Rotating a key no longer resets its caps. The new key inherits the daily and monthly spend of the
key it replaces, and while the old token still works, both draw on the same caps.
GET /v1/key, the key list in your dashboard and theapi_key.cap_reachedwebhook report the spend of the whole rotation chain. Requests per minute, tokens per minute and calls in flight stay per key. A key rotated before this change keeps its own counters.
2026-10-02 — Changes
Section titled “2026-10-02 — Changes”A set of corrections to the developer preview. Most make the API behave more like OpenAI’s; the ones marked Breaking can change what your integration receives.
Parameters
Section titled “Parameters”- Breaking — Chat Completions and Responses refuse any parameter they do not support, by name,
with
400 unsupported_parameterandparamset to the field. Before, unknown parameters were ignored. Refused by name:nabove 1,logprobs,top_logprobs,logit_bias,store: true,prediction,audio, non-textmodalities, atool_choicethat forces a tool, the legacyfunctions; on Responses alsotruncation: "auto"andbackground: true. See Unsupported parameters. top_p,stop(up to 4),seed,presence_penalty,frequency_penaltyandtool_choice: "none"are now forwarded to the model (top_pon Responses too). Values are validated:temperaturefrom 0 to 2,top_pfrom 0 to 1, token budgets as positive integers.- New
belarel.ignored_parameterson answers: the parameters the model’s provider ignored, when there are some.supported_parametersinGET /v1/modelslists what is forwarded to each model. - Breaking —
toolssent to a model that cannot call tools are refused with400 model_lacks_tools. Before, they were removed and the call answered without tool calls.
Answers
Section titled “Answers”finish_reasonnow reports why the model stopped:lengthwhenmax_tokenscut the reply,content_filter,tool_calls, elsestop. On Responses, a reply cut bymax_output_tokenshasstatus: "incomplete"andincomplete_details.reason: "max_output_tokens", and a stream ends withresponse.incomplete.POST /v1/embeddingsacceptsencoding_format: "base64"(little-endian float32), the default of the official OpenAI SDKs, which now work with no setting.
Errors and authentication
Section titled “Errors and authentication”- Breaking — A missing key, or a bearer that is not a Belarel key, answers
401 invalid_api_keyin the OpenAI shape on every endpoint, including/v1/chat/completionsand/v1/responses. - When the model’s provider refuses a request as written, you get
400 invalid_requestwith the provider’s explanation, cleaned — fix the request rather than retrying it. A provider rate limit is a429. On a BYOK key, a provider key the provider rejects is400 byok_credential_rejected. - Breaking — Spend refusals use public codes only:
insufficient_credits,budget_exceeded,spend_refused(402) andpricing_unavailable(503).price_book_missingis no longer returned. - Streamed failures carry the same
codeas non-streamed ones.
Long calls
Section titled “Long calls”- A call runs for at most about five minutes. A non-streamed call that runs out of time answers
504 request_timeoutwithx-should-retry: false; a streamed one ends with an in-bandrequest_timeouterror. - Streams send a
: keep-alivecomment every 15 seconds.
Cost and caps
Section titled “Cost and caps”- A call the provider refuses before doing any work costs nothing: its reservation is released.
- A provider server error or a lost connection with nothing produced and no usage reported now counts the input share of the estimate against the key’s caps, instead of the full estimate. That amount counts against the caps only and is not billed. See what a failed call counts.
- Embeddings whose price is not known when the answer is sent report
cost.source: "pending".
Catalog and inspection
Section titled “Catalog and inspection”- Breaking —
belarel.provideris removed from answers and fromGET /v1/models;owned_byis the model’s vendor. - Breaking —
GET /v1/requests/{id}no longer returnsproviderorgateway. - The keyless
GET /v1/modelsshows the price list the platform publishes as its public price (pricing_basis: "public_price_book"), or no price when none is published. - The OpenAPI description lists bare hosts, so a client generated from it no longer requests
/v1/v1/….
Keys and idempotency
Section titled “Keys and idempotency”- Required tags apply to model calls only: reading
/v1/models,/v1/usage,/v1/credits,/v1/requests/{id}and managing/v1/keysno longer need them. - The idempotency fingerprint is now a keyed hash held by the server, for every key. A request
sent with an
Idempotency-Keybefore this change and repeated within its 24 hours answers422 idempotency_key_reused.
2026-10-02 — Developer preview
Section titled “2026-10-02 — Developer preview”The first public release of the API, under /v1. This entry describes the surface at preview launch; the entries above list what changed since.
Inference
Section titled “Inference”- POST
/v1/chat/completions— the OpenAI Chat Completions format, as JSON or server-sent events. Streams end with a chunk carryingusageandbelarel, thendata: [DONE]. Supportsmax_tokens/max_completion_tokens,temperature, image inputs on vision models, client-executed function tools (relayed astool_calls),response_format(text,json_object,json_schema),reasoning_effort(minimal,low,medium,high) andweb_searchwhere your organization allows it. - POST
/v1/responses— the OpenAI Responses format, stateless. Typed streaming events fromresponse.createdtoresponse.completed. Function tools, web search,text.formatandreasoning.effort.store: true,previous_response_id,item_referenceandinput_fileare refused with400. - POST
/v1/embeddings—openai/text-embedding-3-small, 1536 dimensions,floatencoding, up to 256 inputs of up to 8,000 characters each.
Models
Section titled “Models”- GET
/v1/models— without a key, the public catalog at the platform’s starting price; with a key, the models that key may call at your organization’s price. - Each model carries catalog fields (
name,description,context_length,architecture,top_provider,supported_parameters) and abelarelblock: category, capabilities, residency zone, zero-retention and BYOK availability, and pricing in USD and credits.
Keys and authentication
Section titled “Keys and authentication”- Live (
bel_live_…) and sandbox (bel_test_…) keys, created in the organization dashboard. - Scopes
inference,embeddings,usage:readandkeys:manage. - Per-key daily and monthly spend caps, requests and tokens per minute, calls in flight, maximum output tokens, allowed models, and required and default tags.
- GET
/v1/key— a key reads its own settings, spend, remaining cap and rate-limit state. - GET POST
/v1/keysand PATCH DELETE/v1/keys/{id}— one level of sub-keys that never exceed their parent; reversible disable and definitive revoke.
Governance and cost
Section titled “Governance and cost”- Every call is reserved at your organization’s price before it runs, on the key and on its parent, then settled at its real cost or released when refused.
- Every answer carries a
belarelblock: request id, model requested and served, provider (since removed), cost in USD and credits with its source and billing, data mode, and policy decisions. - Policy refusals name the rule in
belarel.policy.decisions. A model your organization cannot see answers404 model_not_found. - Errors use the OpenAI shape.
429and503carryRetry-After. X-RateLimit-Limit-Requests,X-RateLimit-Remaining-RequestsandX-RateLimit-Reset-Requestson admitted answers.
Usage and inspection
Section titled “Usage and inspection”X-Request-Idon the answers of the inference and read endpoints, errors included.- GET
/v1/requests/{id}— one request’s status, model, provider (since removed), usage, cost and tags. Never its content. - GET
/v1/usage— usage grouped bytotal,key,model,dayortag:<name>, over up to 93 days. - GET
/v1/credits— your organization’s credit balance.
Reliability and attribution
Section titled “Reliability and attribution”Idempotency-Keyon inference calls, scoped to the key, kept for 24 hours.- Attribution tags from
X-Belarel-Tags, themetadatabody field andbelarel_tags;X-TitleandHTTP-Referername your application.
Data and trust
Section titled “Data and trust”- Data modes per key:
standardandzero_retention.confidentialis coming soon and answers501 not_implementedtoday. - Bring your own provider key (BYOK) for OpenAI and Anthropic models, configured in the organization dashboard.
Sandbox and webhooks
Section titled “Sandbox and webhooks”- Sandbox keys are served by a deterministic mock provider and never billed.
- Webhook event
api_key.cap_reached, signed with HMAC-SHA256 inX-Belarel-Signature. More events will follow.

