Skip to main content
Embeddings feed into analyses and papers, so you need to know which model produced them and to get the same vectors again later. We follow the practice of OpenAI and Anthropic for models (an alias that moves, dated snapshots that never change) and Stripe’s practice for the API (a dated version you can pin in a header).

Models: aliases and snapshots

  • A snapshot never changes. The same snapshot with the same pipeline_version and 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/models lists every id with its type, the snapshot an alias points to, and deprecated_at and retires_at for snapshots (both null until a deprecation is announced).
For results you will publish, name the snapshot: neuroencoder-eeg-2026-11, pipeline_version 2026-11-28.

Pinning a model

Send the id in the request body, or in the Neuroencoder-Model header:
  • POST /v1/embeddings takes model in the JSON body or in metadata. POST /v1/jobs takes model next to task: an embeddings id for embeddings, a sleep-staging id for sleep_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 404 model_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 is 2026-11-28. Every response sends it back in the Neuroencoder-Version header. To pin it, send the same header:
An unknown value fails with 400 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/models shows its deprecated_at and retires_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.