2026-11; if you send nothing you get 2026-08. You select one with a header:
/v1 in the path is not a version. It is a stable namespace and it is not going
to change. Everything about the shape of a request or response is governed by the dated
version instead. The one /v2 path, /v2/models,
is a second view of the model catalog, not a new version of the API: /v1/models stays as
it is, and the dated version applies to both.
Why a version header
Additive changes — a new field, a new optional parameter, a new endpoint — are shipped continuously and do not need a version. You get them without doing anything. A dated version exists for the changes that are not safe: renaming a field, removing one, or changing what a value means. Rather than break your integration or freeze the API forever, those changes land in a new dated version, and requests pinned to an older one keep receiving the older shape. Pinning is what makes that a guarantee rather than a coincidence. A pinned request states which shape your code can parse, so a change to the current shape cannot reach it.If you send no header
You are served the baseline — the oldest supported version, which today is2026-08.
That is a deliberate choice, and worth understanding because it inverts what people
usually expect from a default:
Publishing a new version never moves existing traffic. Because the baseline is the
oldest supported version rather than the newest, an integration that sends no header
keeps getting the same shapes after a new version ships. You move only by pinning the
new version yourself.
Responses are converted back to the version you resolve to. A request that sends no header
and has no key pin — or that pins
2026-08 — does not receive two fields that belong to
2026-09: pricing.discounted on the models endpoints, and request_id on video task
bodies. Both remain part of 2026-09 and everything after it, so if your code reads either
one, pin 2026-09 or 2026-11 and you keep it. Pinning is also what stops the same
surprise at the next boundary.Which versions are served
GET /v1/api-versions lists them, oldest first. It takes your rsk_ API key.
baseline marks what an unpinned request gets; latest marks the newest. They are now two
different entries — latest is deliberately not the default, so shipping 2026-09 and
2026-11 moved nobody.
capabilities lists behaviour a version adds, and it is cumulative: everything introduced
at or before that label. Unlike a change to a response shape, a capability is something you
can only use once you pin for it — see What each version added.
Pinning a whole API key
Rather than sending the header on every request, you can pin the key itself — useful when the calling code is not yours to change, or when a whole integration should sit on one version. Set it when creating a key, or on an existing one — key management takes an admin key (mak_...), not the rsk_ key being pinned:
"api_version": null to clear it. In the dashboard the same setting is on the key’s
API Version field under API Keys.
Resolution order, highest first:
- The
X-Mesh-Versionheader on the request — always wins. - The key’s stored pin.
- The baseline.
A key’s pin is resolved when the key is created, from your organisation’s default at that
moment — so a key created without an explicit version may show a concrete one afterwards
rather than staying empty. Changing your org default later does not move existing keys.
Unsupported versions are rejected, not downgraded
If you send a version Mesh does not serve, the request fails:400, with the versions that are served, and no fallback.
Validation runs before authentication, so a bad version is rejected with 400 even if
the key is also wrong.
Reading the version that served a request
Every response carriesX-Mesh-Version with the version that served it — including error
responses, and including requests that sent no header at all. So you can confirm what you
actually got rather than assume it, and you can see which version a stored key pin resolved to
without looking the key up.
Format
A version label isYYYY-MM, e.g. 2026-08, or YYYY-MM-DD for a version cut later in a
month, e.g. 2026-08-18, which is newer than 2026-08. Anything else, including a
well-formed label that names no version, is rejected with the same 400 invalid_api_version.
Pass it as a literal string. Do not compute it from the current date: the label names a
contract, not today’s month, and there is no version for most months.
Which version to pin
Pin the version you developed and tested against, and change it deliberately. Concretely: hold the label in one constant in your codebase, send it on every request, and treat bumping it as a change with its own review — because a new version exists precisely when some shape is different, so moving to it means reading what changed.What is not covered by a version
- Model availability and pricing. Models are added, retired, and repriced continuously. Pin a version and you still get the current catalogue — see Models.
- Rate limits and quotas. Governed by your plan, not the contract. See Rate limits.
- Provider behaviour. A model’s output quality or latency is the provider’s, and no version freezes it.
- Bug fixes. A response that did not match its documented shape gets corrected in place, in every version.
Realtime
The realtime WebSocket API (/v1/realtime) negotiates separately and does not read this
header. Sending it on the handshake has no effect.
Knowing something is going away, without reading this page
When a version or an endpoint is scheduled for retirement, its responses start carrying standard headers — so your monitoring can find out before a human does:Sunset may be absent while Deprecation is present: “deprecated, retirement date to be
announced” is the normal state at announcement time. Absence means undecided, not imminent.
These arrive on every response for an affected route, including errors — a 429 from a
deprecated endpoint is still deprecated, and an error response is often the only one a client
logs.
Nothing is deprecated today, so nothing currently emits them.
If you read these from browser JavaScript, note they are already in the CORS
Access-Control-Expose-Headers allowlist along with X-Mesh-Version.
What each version added
cost_breakdown.lines on a usage row covers every kind of charge, not only token-metered
text. Each line carries quantity, unit (tokens, images, megapixels, seconds,
characters, utf8_bytes, calls or requests), rate_usd — null on a flat charge
such as a BYOK platform_fee — amount_usd, a modifiers list saying what the rate was
qualified by (a resolution tier, long_context, flex, with_audio, or how it was
derived, such as tier_fallback), and charged, which is false for a model cost you
paid on your own provider key. The breakdown itself gains rounding_usd. A token line
still carries tokens and rate_per_1m_usd too. The endpoints are
POST /v1/usage/events, GET /v1/usage/requests/{request_id} and
GET /v1/usage/events/{event_id}/attempts — see Usage API.The receipt is not switched on in production yet. You can pin 2026-11 today, and
until the switch is on no caller receives the receipt fields, whatever they pin. Pinning
now costs nothing about your usage rows: they start carrying receipts when it is turned
on, without a second change.A receipt covers rows recorded after it is switched on. A breakdown is written when
the request is billed and is never rebuilt on read, so paging back over older history
under 2026-11 returns what that row was recorded with: the token-only shape with the
receipt fields null where the charge was token-metered, and cost_breakdown: null
where it was not.Under 2026-08 and 2026-09 a row keeps the token-only breakdown, with the same figures
it carries today. A charge that shape cannot express — an image or a video, or a text
request whose image input is priced at its own rate — reports cost_breakdown: null there
rather than a partial breakdown.A video generation task can be fetched with the
request_id Mesh returned for the request
that created it, as well as with the provider task id. Video task bodies also carry a
request_id field. Capability: video.poll_by_request_id. See
Video generation.The pricing object on GET /v1/models, GET /v1/models/search and the per-model reads
carries discounted: the same rates with your account’s discount applied, null when you
have none. The unauthenticated /v1/public/models twins carry the same field holding the
discount every caller gets, never your own. On GET /v2/models and
GET /v2/models/{model_id} it is on the model’s pricing and on the pricing of every
row in providers. See Models and
Models with providers (v2).The contract as it stood when dated versions were introduced. This is what you are served
if you send no header and have set no pin.
Support window
Every versionGET /v1/api-versions lists is served. 2026-08, 2026-09 and 2026-11 are
all ga, nothing is scheduled for retirement, and no pin can go stale today.
A version is never withdrawn without notice. When one is scheduled for retirement it starts
returning Deprecation and Sunset response headers, so your client can detect it without
reading this page. If you need the retirement policy’s exact numbers before committing to a
pin, contact support.