# Neuroencoder > Neuroencoder is a hosted embeddings API and Python package for EEG. It turns a recording of any montage and sampling rate into one 768-dimensional, L2-normalised vector per 30 s window, using EPI-300K, an EEG foundation model. Neuroencoder is based in Zurich, Switzerland. ## Use it - Install: `pip install neuroencoder` (client and command line; needs only numpy and httpx; reads `NEUROENCODER_API_KEY`) - Real output without a key: `GET https://api.neuroencoder.com/v1/samples` (a scored Sleep-EDF night and a 10-minute EDF with the embeddings it should give). - Instant key, no email (2 h of EEG, 7 days; the call accepts https://docs.neuroencoder.com/terms, and free keys keep a de-identified copy of what you send): `curl -X POST https://api.neuroencoder.com/v1/signup -H 'content-type: application/json' -d '{"instant":true,"accept_terms":true}'`, then `export NEUROENCODER_API_KEY=`. Its `claim_url` turns it into a trial key. - Trial key by email (100 hours of EEG per month for 30 days): `neuroencoder login --email you@lab.org`, or `curl -X POST https://api.neuroencoder.com/v1/signup -H 'content-type: application/json' -d '{"email":"you@lab.org"}'` and open the emailed link once. - First call in 4 commands: https://docs.neuroencoder.com/quickstart - Python: ```python from neuroencoder import embeddings r = embeddings("recording.edf") # EDF, BDF, FIF or NPY path; or an array with sfreq= and channel_names= E = r.to_numpy() # [n_windows, 768]; r.t_start gives window start times in seconds ``` - REST: `curl https://api.neuroencoder.com/v1/embeddings -H "Authorization: Bearer $NEUROENCODER_API_KEY" -F file=@recording.edf` - Command line (2.1 or later): `neuroencoder login --email you@lab.org` (approve the emailed link; the key is saved to `~/.config/neuroencoder/api_key`), `neuroencoder inspect recording.edf` (free, shows channels and cost), `neuroencoder embed recording.edf` (writes `recording.npz`), `neuroencoder whoami`. `--json` gives machine-readable output. - Typical uses: similarity search across recordings, linear probes on a few labels (sleep staging, seizure and artefact detection), clustering and visualising a recording. ## Machine-readable docs - Instructions and page index: https://docs.neuroencoder.com/llms.txt - All documentation in one file: https://docs.neuroencoder.com/llms-full.txt - Skill file: https://docs.neuroencoder.com/skill.md - OpenAPI: https://api.neuroencoder.com/v1/openapi.json - Every API error carries a `fix` field that says what to change. ## Pages - Home: https://neuroencoder.com - Embeddings (request, response and a mapped night of sleep): https://neuroencoder.com/embeddings - Console (trial key by email, usage): https://neuroencoder.com/console/ - Playground (map of a recording's embeddings in the browser): https://neuroencoder.com/playground/ - Quickstart: https://docs.neuroencoder.com/quickstart - API reference: https://docs.neuroencoder.com/api - Benchmarks: https://docs.neuroencoder.com/benchmarks - Package: https://pypi.org/project/neuroencoder/ - Contact: https://neuroencoder.com/contact or support@neuroencoder.com - Status: https://neuroencoder.com/status - Terms: https://neuroencoder.com/terms - Privacy: https://neuroencoder.com/privacy