Skip to content

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
  • An enclave host behind on Intel’s TCB patches (OutOfDate, ConfigurationNeeded, ConfigurationAndSWHardeningNeeded, OutOfDateConfigurationNeeded) now serves confidential calls, and Belarel is alerted. Only Revoked, 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_status in an answer’s belarel.attestation block is the worst status among the instances sampled for the verdict. It can be worse than the status of the quote GET /v1/attestation returns, 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”
New Behavior changes Fixed
  • reasoning_effort (Chat Completions) and reasoning.effort (Responses) accept none, next to minimal, low, medium and high.
  • On z-ai/glm-5.3-flash, Belarel sends only the effort the model really honors, as measured: low is sent as is; none, which would return an empty answer on this model, becomes low; minimal, medium and high leave the model at its default reasoning, the deepest it offers. Each substitution comes with a warn decision in belarel.policy. deepseek/deepseek-v4.1-flash and ornith/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”
New Behavior changes
  • belarel.attestation carries measurements_approved: true when Belarel has reviewed and approved every combination of measurements the enclave fleet was recently seen with. See Confidential inference.
  • GET /v1/attestation returns measurements_status: approved, pending (not reviewed yet; calls are served) or revoked (calls refused). measurements_approved is true only when the status is approved. See Verify the attestation.
  • 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.
New Behavior changes

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.

  • confidential keys can be created in your organization dashboard (Governance → API keys → Confidential inference) and as sub-keys through POST /v1/keys. Their content is kept nowhere, like a zero_retention key.
  • 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/models marks every model with belarel.confidential_available. A confidential key lists only those models.
  • New error codes: 400 model_not_confidential and 403 confidential_key_required (both with x-should-retry: false), and 503 attestation_unavailable with Retry-After: 30.
  • confidential keys no longer answer 501 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 confidential key is confidential; a sub-key of a zero_retention key that asks for confidential (or the reverse) is refused with 400 invalid_request.
  • Breaking — On Chat Completions and Responses, zero_retention and confidential keys no longer keep a fingerprint of the request body for Idempotency-Key. The same idempotency key sent with another body now answers 409 idempotency_conflict (“already served” once the first call finished) instead of 422 idempotency_key_reused. standard keys, and /v1/embeddings, are unchanged. See Idempotency.
Behavior changes

More corrections to the developer preview. The ones marked Breaking can refuse a request that was accepted before.

  • Breaking — Fields inside the objects the API reads are checked, and refused by their path with 400 unsupported_parameter (for example param: "text.verbosity"). In response_format and text.format, json_schema takes name, schema, description and strict, and json_object and text take only type; on Responses, text takes only format and reasoning takes effort and summary. Before, unknown nested fields were ignored.
  • Breaking — POST /v1/embeddings refuses fields it does not take with 400 unsupported_parameter. It accepts model, input, encoding_format, dimensions, user, metadata and belarel_tags.
  • Breaking — A tool that cannot be attached is refused with 400 invalid_request and param set to its position, such as tools[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 in function. Before, such tools were dropped without an error. On Responses, a refused tool is named by its index in your tools array, and a web_search tool takes no other field.
  • Breaking — On Chat Completions, connectors, hitl_approvals and chat_id are refused with 400 connectors_require_user_session as soon as they are present, even empty.
  • Chat Completions accepts the developer role and treats it as system, as Responses does. It used to answer 400 invalid_messages.
  • Responses accepts reasoning.summary, and include with web_search_call.action.sources or reasoning.encrypted_content — values the Vercel AI SDK adds on its own — with no effect. Any other include value is refused by its position. strict is accepted, with no effect, on function tools and JSON schemas.
  • belarel.ignored_parameters, max_tokens_exceeds_key_limit and model_lacks_structured_output name a field as you sent it: max_completion_tokens when you used it, and max_output_tokens or text.format on Responses, instead of max_tokens and response_format.
  • 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_unavailable when BYOK is not enabled for your organization (it no longer carries Retry-After: 60), 503 model_unavailable for a disabled model, 503 service_unavailable when the model’s provider refused Belarel’s own credential (no Retry-After), 409 provider_credential_missing, and an idempotency_conflict whose key was already served. One still in progress can be retried.
  • New 503 idempotency_unavailable, with x-should-retry: false: Idempotency-Key cannot be used on this deployment, so send the request without it. A temporary outage of the idempotency check is still 503 admission_unavailable with Retry-After.
  • When your organization’s AI access cannot be checked, the call gets 503 admission_unavailable with Retry-After, instead of 403 entitlement_denied. A 403 entitlement_denied now 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/models answers its rate limit with 429 rate_limited in the OpenAI error shape, with Retry-After. Its answers carry X-RateLimit-Limit-Requests, X-RateLimit-Remaining-Requests and X-RateLimit-Reset-Requests, like the keyed routes, instead of X-RateLimit-Limit and X-RateLimit-Remaining. A successful answer can be cached by the CDN for up to 5 minutes, so its X-RateLimit-* headers (and X-Request-Id) may be those of an earlier caller: rely on the 429 and its Retry-After.
  • 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 the api_key.cap_reached webhook 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.
Behavior 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.

  • Breaking — Chat Completions and Responses refuse any parameter they do not support, by name, with 400 unsupported_parameter and param set to the field. Before, unknown parameters were ignored. Refused by name: n above 1, logprobs, top_logprobs, logit_bias, store: true, prediction, audio, non-text modalities, a tool_choice that forces a tool, the legacy functions; on Responses also truncation: "auto" and background: true. See Unsupported parameters.
  • top_p, stop (up to 4), seed, presence_penalty, frequency_penalty and tool_choice: "none" are now forwarded to the model (top_p on Responses too). Values are validated: temperature from 0 to 2, top_p from 0 to 1, token budgets as positive integers.
  • New belarel.ignored_parameters on answers: the parameters the model’s provider ignored, when there are some. supported_parameters in GET /v1/models lists what is forwarded to each model.
  • Breaking — tools sent to a model that cannot call tools are refused with 400 model_lacks_tools. Before, they were removed and the call answered without tool calls.
  • finish_reason now reports why the model stopped: length when max_tokens cut the reply, content_filter, tool_calls, else stop. On Responses, a reply cut by max_output_tokens has status: "incomplete" and incomplete_details.reason: "max_output_tokens", and a stream ends with response.incomplete.
  • POST /v1/embeddings accepts encoding_format: "base64" (little-endian float32), the default of the official OpenAI SDKs, which now work with no setting.
  • Breaking — A missing key, or a bearer that is not a Belarel key, answers 401 invalid_api_key in the OpenAI shape on every endpoint, including /v1/chat/completions and /v1/responses.
  • When the model’s provider refuses a request as written, you get 400 invalid_request with the provider’s explanation, cleaned — fix the request rather than retrying it. A provider rate limit is a 429. On a BYOK key, a provider key the provider rejects is 400 byok_credential_rejected.
  • Breaking — Spend refusals use public codes only: insufficient_credits, budget_exceeded, spend_refused (402) and pricing_unavailable (503). price_book_missing is no longer returned.
  • Streamed failures carry the same code as non-streamed ones.
  • A call runs for at most about five minutes. A non-streamed call that runs out of time answers 504 request_timeout with x-should-retry: false; a streamed one ends with an in-band request_timeout error.
  • Streams send a : keep-alive comment every 15 seconds.
  • 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".
  • Breaking — belarel.provider is removed from answers and from GET /v1/models; owned_by is the model’s vendor.
  • Breaking — GET /v1/requests/{id} no longer returns provider or gateway.
  • The keyless GET /v1/models shows 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/….
  • Required tags apply to model calls only: reading /v1/models, /v1/usage, /v1/credits, /v1/requests/{id} and managing /v1/keys no longer need them.
  • The idempotency fingerprint is now a keyed hash held by the server, for every key. A request sent with an Idempotency-Key before this change and repeated within its 24 hours answers 422 idempotency_key_reused.
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.

  • POST /v1/chat/completions — the OpenAI Chat Completions format, as JSON or server-sent events. Streams end with a chunk carrying usage and belarel, then data: [DONE]. Supports max_tokens / max_completion_tokens, temperature, image inputs on vision models, client-executed function tools (relayed as tool_calls), response_format (text, json_object, json_schema), reasoning_effort (minimal, low, medium, high) and web_search where your organization allows it.
  • POST /v1/responses — the OpenAI Responses format, stateless. Typed streaming events from response.created to response.completed. Function tools, web search, text.format and reasoning.effort. store: true, previous_response_id, item_reference and input_file are refused with 400.
  • POST /v1/embeddings — openai/text-embedding-3-small, 1536 dimensions, float encoding, up to 256 inputs of up to 8,000 characters each.
  • 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 a belarel block: category, capabilities, residency zone, zero-retention and BYOK availability, and pricing in USD and credits.
  • Live (bel_live_…) and sandbox (bel_test_…) keys, created in the organization dashboard.
  • Scopes inference, embeddings, usage:read and keys: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/keys and PATCH DELETE /v1/keys/{id} — one level of sub-keys that never exceed their parent; reversible disable and definitive revoke.
  • 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 belarel block: 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 answers 404 model_not_found.
  • Errors use the OpenAI shape. 429 and 503 carry Retry-After.
  • X-RateLimit-Limit-Requests, X-RateLimit-Remaining-Requests and X-RateLimit-Reset-Requests on admitted answers.
  • X-Request-Id on 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 by total, key, model, day or tag:<name>, over up to 93 days.
  • GET /v1/credits — your organization’s credit balance.
  • Idempotency-Key on inference calls, scoped to the key, kept for 24 hours.
  • Attribution tags from X-Belarel-Tags, the metadata body field and belarel_tags; X-Title and HTTP-Referer name your application.
  • Data modes per key: standard and zero_retention. confidential is coming soon and answers 501 not_implemented today.
  • Bring your own provider key (BYOK) for OpenAI and Anthropic models, configured in the organization dashboard.
  • Sandbox keys are served by a deterministic mock provider and never billed.
  • Webhook event api_key.cap_reached, signed with HMAC-SHA256 in X-Belarel-Signature. More events will follow.