Models: aliases and snapshots
- A snapshot never changes. The same snapshot with the same
pipeline_versionand the same input and options gives the same output, up to float32 rounding. Requests and jobs run on different CPUs, so results are not bit-identical: on one 5-minute EDF, the largest difference between a request and a job was 1e-7, and the lowest cosine similarity was 0.9999999. - An alias may move to a newer snapshot, after the notice described below. Requests that name no model use the alias.
GET /v1/modelslists every id with itstype, thesnapshotan alias points to, anddeprecated_atandretires_atfor snapshots (bothnulluntil a deprecation is announced).
neuroencoder-eeg-2026-11, pipeline_version 2026-11-28.
Pinning a model
Send the id in the request body, or in theNeuroencoder-Model header:
POST /v1/embeddingstakesmodelin the JSON body or inmetadata.POST /v1/jobstakesmodelnext totask: an embeddings id forembeddings, a sleep-staging id forsleep_staging.- The header applies to the request’s task. The header ignores an id that belongs to the other task, so one header can pin your embeddings model without affecting sleep-staging jobs.
- If the body and the header name different models, the request fails with 400
invalid_input. An unknown or retired id returns 404model_not_found.
What responses report
Embeddings responses, job results and the hypnogram file carry all three.
GET /healthz and GET /v1/models report the current values.
API version
The API version is a date. The current one is2026-11-28. Every response sends it back in the Neuroencoder-Version header. To pin it, send the same header:
unsupported_api_version. Without the header you get the current version.
- No new version is needed for additive changes: new endpoints, new optional fields or parameters, new response fields, new error codes on new paths, new models. Write clients that ignore fields they do not know.
- Breaking changes get a new dated version: removing or renaming a field, changing a type or a default, or making an optional parameter required. Requests that pin the older version keep the old behaviour until that version is retired.
- The number in the OpenAPI document (for example 2.7.0) is a release number of the service and its spec. The dated version moves only for breaking changes.
Deprecation policy
- Models: we announce a snapshot’s deprecation at least 6 months before it is retired. In that time it keeps working, and
GET /v1/modelsshows itsdeprecated_atandretires_at. An alias moves to a new snapshot only after the same notice, and the changelog says what changes. - API versions: an API version is supported for at least 6 months after the next one is published.
- Notice: every deprecation goes in the changelog. We also email the owner of every account that used the deprecated model or version in the previous 90 days.
- Security and law: we may shorten notice when a model or version has to be withdrawn for a security problem or a legal obligation. If we do, we say so in the changelog.