# Zimze — Put AI on air.

> Zimze is API-first automation for 24/7 internet radio and video streaming stations. It schedules pre-recorded music, jingles, news and video, plays them out with exact timing, and streams every station to Icecast and HLS. Every dashboard action is also an API call, so scripts, newsrooms and AI agents can run a station end to end.

Zimze runs 24/7 radio and video stations that never go silent, and puts every action behind an API. Your voice models, newsroom, scripts and agents publish and schedule. The engine puts it on air, exactly on time.

Design targets: ≤ 50 ms hard-start accuracy · ≤ 5 s back on air after a crash · 60 min+ on air with the API down · 1080p video at audio-station CPU cost.

## Your AI stack plugs straight into the broadcast chain.

Zimze doesn't lock you into one model or one vendor. It is the broadcast layer your tools publish to: every dashboard action is an API call, fresh content flows in through feeds, and everything that happens on air comes back as an event.

### What connects, and the endpoint it calls

All of these work today, through the API.

| Tool | What it does | Endpoint | Scope |
| --- | --- | --- | --- |
| Voice models | Render a bulletin with any text-to-speech model and upload it to a feed. Stations air the newest valid item in their next slot. | `POST /v1/feeds/{feed}/items` | `feeds:write` |
| LLM newsrooms | Write, voice and expire news, weather and traffic on a schedule. Every item has a validity window, so stale news never airs. | `POST /v1/feeds/{feed}/items` | `feeds:write` |
| Music generators | Upload tracks by API or drop them into an S3 bucket. Each file is analyzed for loudness, cue points and segues before it can air. | `POST /v1/media/uploads` | `content:write` |
| Video generators | Clips upload, schedule and play exactly like audio. One transcode, then frames are stitched on air without re-encoding. | `POST /v1/media/uploads` | `content:write` |
| Programming agents | Hand an agent the OpenAPI document and a scoped key. It can build clocks, set rotation rules, preview an hour and replan. | `PUT /v1/clocks/{id}/slots` | `schedule:write` |
| Ad & promo systems | Insert a spot at 14:05:00 sharp. A hard insert becomes a fixed point and the planner re-fits the music around it. | `POST /v1/stations/{id}/log/items` | `log:write` |
| Ops agents | A diagnosis endpoint says whether a station is on air and, if not, why, with the actions that fix it: start, restart, replan, sync. | `GET /v1/stations/{id}/diagnosis` | `read + control` |
| Sites, apps & workflows | Follow every track change over a WebSocket, receive signed webhooks, or read public now-playing without a key. | `GET /v1/events/ws` | `read` |

### Inside Zimze

- **Library:** S3 master · local mirror · analysis
- **Feeds:** versioned items · validity windows
- **Planner:** clocks · rotation · backtiming
- **Engine:** sample-accurate mixer · encoders
- **Events:** WebSocket · webhooks · audit

### What comes out

- **Icecast:** MP3 · AAC · Opus mounts. Now-playing metadata on MP3 and AAC mounts.
- **HLS audio:** AAC, several bitrates. Holds up when a phone changes networks.
- **HLS video:** 1080p · 25 fps · H.264. One stitched stream per station.
- **Player & embed:** listen page · iframe · now playing. Plays HLS and falls back to Icecast.
- **Webhooks:** HMAC-signed · retried for 24 h. At-least-once, with a delivery log.
- **Event stream:** WebSocket · 30-day history. Resume from the last event you saw.

### Why agents can run it safely

- **OpenAPI 3.1 for every endpoint.** One document describes the whole surface: parameters, examples and the scope each call needs. An agent reads it once and knows what it can do.
- **Scoped keys, per station.** Seven scopes and an optional station restriction. A newsroom key can publish to feeds and touch nothing else.
- **Safe retries.** Any POST accepts an Idempotency-Key. A retry after a timeout replays the stored response, so nothing airs twice.
- **Errors with stable codes.** Every error is application/problem+json with a machine-readable code. Automation branches on facts, not on strings.
- **Dry runs before writes.** Preview a clock or a category filter against the real catalog and history. Nothing is saved until you say so.
- **Every change attributed.** Each event records the user or key that caused it. The activity log answers who changed what for 30 days.

> Zimze does not generate content itself. It airs what your tools produce and guarantees timing, loudness and continuity. Built-in voice tracking, text-to-speech and AI inserts are on the roadmap.

## Everything a station needs to run itself.

One platform runs many stations. Each has its own schedule, content sources, outputs and time zone, and each one plays 24/7.

### Clocks, anchors and backtiming

Build an hour from slots: a pick from a category, a specific file, or a feed. Anchor a slot hard and it interrupts at exactly that time. Anchor it soft and it starts when the current item ends. The planner backtimes every segment, so the news lands on the hour.

- Planned 180 min ahead
- Replanned every 60 s
- 120 s lock window

### Feeds for anything fresh

News, weather, traffic. Every upload is a versioned item with a validity window. At air time the station plays the newest valid item and never an expired one. If nothing is valid: skip, play a fallback, or reuse the last item for a grace period.

- On the stream server in ≤ 30 s (p95)
- Re-checked 5 s before air

### Rotation rules that explain themselves

Song, artist and title separation, maximum plays per day, dayparting by tag. When rules collide they relax in priority order, and every relaxation is recorded on the log item.

### A mixer that counts samples

Crossfades with configurable curves, hard cuts, ducked overlays, and jingles that end exactly where the vocals start. Loudness is measured to EBU R128 on ingest and normalized on air.

### A library that lives in S3

Object storage holds the master copy. Each stream server mirrors what its stations need and plays only from local disk. Every file is analyzed on ingest: duration, tags, loudness, true peak, cue-in, cue-out and mix-out.

- MP3
- AAC
- FLAC
- WAV
- Opus
- MP4
- MOV
- MKV
- WebM

### Many outputs per station

Icecast mounts in MP3, AAC and Opus. HLS in AAC at several bitrates, and HLS video at 1080p. Each output is its own encoder: one that stalls restarts without touching the others.

- Icecast
- HLS
- HLS video

### A live pad for the unplanned

Up to 48 buttons per station. Fire a jingle, a sweeper or a pick from a category, next or right now.

### Alerts before listeners notice

Late feeds, offline nodes, silence, failing outputs, low disk. Delivered to Slack, Telegram or email, with a diagnosis that names the cause.

### As-played, exported

What actually aired, as CSV or JSON. Top tracks and artists. Listener counts per output over time.

### Teams with an audit trail

Viewer, editor and admin roles, invitations by email, and an activity log of who changed what for 30 days.

### A player for every station

An embeddable player and a listen page out of the box, plus public now-playing endpoints with CORS and ETag caching for your own site.

## Video stations at the cost of audio.

Most playout systems decode and re-encode the picture for every station. Zimze transcodes each video once to a single profile, then cuts and joins whole compressed frames on air. The picture is never decoded at playout.

- **Copy-stitch playout.** Whole H.264 frames are cut at keyframes and joined into one stream. A video station costs about what an audio station costs in CPU.
- **Video is just media.** Video files are uploaded, stored, scheduled and played exactly like audio. An audio-only station can air a video item's sound.
- **A slate between items.** Between video items the output shows your station's loop, or black. There is always a decodable picture.
- **Sound keeps its transitions.** The picture cuts. The audio still crossfades, ducks and overlays, exactly as on a radio station.

### Video profile

| Property | Value |
| --- | --- |
| Profile | 1920×1080 · 25 fps · H.264 + AAC |
| Keyframes | Every second, no B-frames |
| Mezzanine | ≈ 45 MB per minute (6 Mbit/s max) |
| Delivery | HLS, 2–6 s segments |
| Inputs | MP4 · M4V · MOV · MKV · WebM · AVI · MPEG |

> Today a station has one video rendition and video items join with cuts. Adaptive bitrate and dissolves are on the roadmap.

## If the dashboard can do it, your code can too.

The dashboard is only a client of the API. It has no database access and no business logic of its own, so there is nothing a person can do that a script or an agent can't.

- API reference: https://api.zimze.com/docs
- OpenAPI 3.1 document: https://api.zimze.com/v1/openapi.json
- Base URL: https://api.zimze.com/v1
- Authentication: `Authorization: Bearer <API key>`

### What the API gives you

- **REST + OpenAPI 3.1.** Every endpoint documented, with examples and scopes.
- **WebSocket event stream.** Track changes, alerts and config, live. Catch up by cursor.
- **Signed webhooks.** HMAC-SHA256, at-least-once, retried from 30 s to 24 h.
- **Seven scopes.** read, content, schedule, feeds, log, control, admin.
- **Idempotency keys.** On every POST, stored for 24 h.
- **Stable error codes.** application/problem+json with field-level errors.
- **Public endpoints.** Stations and now-playing, no key, CORS and ETag.
- **Cursor pagination.** Opaque cursors, up to 500 items a page.

### Events

Delivered over the WebSocket stream and webhooks: `track.started`, `track.ended`, `feed_item.created`, `feed_item.synced`, `log.updated`, `station.state_changed`, `station.silence`, `output.state_changed`, `node.offline`, `alert.opened`, `media.ready`, `programming.changed`, `config.changed`, and more.

### Examples

Example values. Responses are abridged.

#### A bulletin, from any voice model to air

```sh
# Voice the 15:00 bulletin with any TTS model, then publish it.
curl -X POST "https://api.zimze.com/v1/feeds/news-hourly/items" \
  -H "Authorization: Bearer $ZIMZE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F "file=@news-1500.mp3" \
  -F "expires_at=2026-12-01T16:00:00Z"

# 201 Created. Every station that uses the feed plays it
# in its next news slot, and never after it expires.
```

#### On air at 14:05:00 sharp

```js
// A hard insert is a fixed point: the planner re-fits the music around it.
const response = await fetch("https://api.zimze.com/v1/stations/nova/log/items", {
  method: "POST",
  headers: {
    authorization: `Bearer ${process.env.ZIMZE_API_KEY}`,
    "content-type": "application/json",
    "idempotency-key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    media_item_id: "0192f0c1-0000-7000-8000-000000000004",
    position: { type: "at", at: "2026-12-01T14:05:00Z", mode: "hard" },
  }),
});

const { item } = await response.json();
console.log(item.planned_start_at); // "2026-12-01T14:05:00.000Z"
```

#### Every track change, without polling

```js
// Node 22+. Subscribe to what happens on air.
const socket = new WebSocket("wss://api.zimze.com/v1/events/ws", {
  headers: { authorization: `Bearer ${process.env.ZIMZE_API_KEY}` },
});

socket.onopen = () =>
  socket.send(JSON.stringify({ type: "subscribe", station_ids: null, types: ["track.started"] }));

socket.onmessage = ({ data }) => {
  const message = JSON.parse(data);
  if (message.type !== "event") return;
  const { title, artist, kind } = message.event.data;
  console.log(`Now on air: ${title} — ${artist ?? kind}`);
};
```

#### Public, cacheable, no key

```sh
curl "https://api.zimze.com/v1/public/stations/nova/now-playing"

{
  "current": {
    "title": "Northern Lights", "artist": "The Wanderers", "kind": "music",
    "started_at": "2026-12-01T13:58:12.400Z", "duration_ms": 214000
  },
  "next": [
    { "title": "News (hourly)", "artist": null, "planned_start_at": "2026-12-01T14:00:00.000Z" },
    { "title": "Long Way Home", "artist": "Harbor Lights", "planned_start_at": "2026-12-01T14:01:30.000Z" }
  ]
}
```

#### An agent reads the cause, then acts on it

```sh
curl "https://api.zimze.com/v1/stations/nova/diagnosis" -H "Authorization: Bearer $ZIMZE_API_KEY"

{
  "state": "offline",
  "summary": "Nova FM is off air: its process is not running.",
  "causes": [{
    "code": "process_not_running", "severity": "critical",
    "actions": [{ "kind": "restart", "label": "Restart station" }]
  }]
}

curl -X POST "https://api.zimze.com/v1/stations/nova/restart" -H "Authorization: Bearer $ZIMZE_API_KEY"
# 202 Accepted
```

## Built to never go silent.

Nobody is in the control room. Everything is on air. A station keeps playing through crashes, deploys and outages, because the plan lives next to the encoder.

### Design targets

| Target | Value | How |
| --- | --- | --- |
| dead air per incident | ≤ 10 s | Silence detection skips ahead. A missing file costs ≤ 2 s. |
| back on air after a crash | ≤ 5 s | The station rejoins the item that should be playing, at the right offset. |
| on air without the API | ≥ 60 min | Stations play their persisted log, then fall back. |
| hard-start accuracy | ≤ 50 ms | Against the station clock, re-anchored at every hard start. |
| feed upload to stream server | ≤ 30 s | 95th percentile, through a priority queue. |
| encoder restart | ≤ 5 s | Other outputs keep streaming. |

### How it stays on air

- **One process per station.** A crash in one station never touches another. The supervisor restarts it within a second.
- **The plan lives on the stream server.** Each station persists its log locally. If the API or the database goes away, it keeps playing.
- **Nothing is lost.** As-played events queue in a local outbox and are delivered in order, exactly once, when the API returns.
- **Fallback, always.** If the log runs out or a file won't decode, the station plays its fallback set and raises an alert.
- **No network on the playout path.** Stations play only from local disk. Object storage is the master copy and the backup.
- **Stream servers hold no secrets.** No storage or database credentials on a node. Files arrive through presigned URLs.

## Frequently asked questions

### What is Zimze?

Zimze is automation software for internet radio and video streaming stations. It schedules pre-recorded music, jingles, news and video, plays them out 24/7 with exact timing, and streams each station to Icecast (MP3, AAC, Opus) and HLS (audio, and video at 1080p). Every action in the dashboard is also available through a REST API.

### How do AI tools connect to Zimze?

Through the same API the dashboard uses. A voice model or newsroom pipeline uploads a bulletin to a feed with one HTTP request. A music or video generator uploads files to the library. An agent with a scoped API key can build clocks, insert items into the log at exact times, skip, start and stop stations, and read a machine-readable diagnosis of why a station is off air. Events come back over a WebSocket stream and signed webhooks, and the whole surface is described by an OpenAPI 3.1 document.

### Does Zimze generate AI voices, music or video itself?

No. Zimze is the broadcast layer: it airs what your tools produce and guarantees timing, loudness and continuity. Built-in voice tracking, text-to-speech and AI inserts are on the roadmap.

### Can Zimze take a live DJ or another live source?

Not today. Stations play pre-recorded audio and video only. That is deliberate: because every item's length is known, the planner computes an exact timeline hours ahead and is designed to hit hard start times within 50 ms. Anything recorded shortly before air can still go in through a feed or a log insert.

### Which formats and outputs are supported?

Input: MP3, AAC/M4A, FLAC, WAV and Ogg/Opus audio, and MP4, M4V, MOV, MKV, WebM, AVI and MPEG video. Output: Icecast mounts in MP3, AAC and Opus, HLS in AAC at several bitrates, and HLS video at 1080p, 25 fps, H.264. A station can have many outputs.

### How does video playout work?

Each video is transcoded once to a single 1080p, 25 fps H.264 profile. At playout the engine cuts and joins whole compressed frames instead of decoding and re-encoding them, so a video station costs about what an audio station costs in CPU. The picture cuts between items while the sound keeps its crossfades.

### What happens if the API or the database goes down?

Stations keep playing. Each station persists its planned log on its stream server and continues for at least 60 minutes, then plays its fallback content. What aired is queued locally and delivered in order, exactly once, when the API returns.

### How precise is the timing?

The mixer is sample-accurate, and the planner backtimes every segment so that hard-anchored items, such as the news at the top of the hour or a spot at 14:05:00, start on time. The design target for hard starts is within 50 ms of the station clock.

### How do I show what is playing on my website?

Embed the player with one iframe, or read the public endpoints: a station's streams and its now-playing are available without an API key, with CORS enabled and ETag caching.

### Where is my media stored?

In S3-compatible object storage, which holds the master copy. Each stream server mirrors the files its stations need and plays only from local disk, so playback never depends on the network. Stream servers hold no storage or database credentials.

### How do I get access?

Zimze is invitation-only for now. Write to hello@zimze.com and tell us what you want to put on air.

## One language. One database. No scripting dialect.

Changing the future of a station means editing rows in Postgres. That is what makes a complete API straightforward.

- **TypeScript end to end.** Dashboard, API, worker and playout engine.
- **Postgres only.** State, job queue and pub/sub in one database.
- **ffmpeg for codecs.** Decoding and encoding. The mixer is ours.
- **S3-compatible storage.** Any provider. Master copy plus local mirrors.
- **Scale by adding nodes.** Assign stations to a stream server. Add another when it is full.

### Architecture

- **Control plane:** Dashboard, REST + WebSocket API, Worker, Postgres
- **Storage:** S3 library & feeds, Presigned access
- **Stream server:** Agent, Station × N, Mixer → encoders
- **Listeners:** Icecast, HLS audio, HLS video

## Where it goes next.

None of this is shipped. It is the direction.

- **AI built in** (Planned). Voice tracking, text-to-speech and AI inserts as first-class features, next to the tools you already plug in.
- **Connectors for agents** (Exploring). First-party connectors for AI tools and agent protocols such as MCP, on top of the same scoped API.
- **Adaptive video** (Planned). Several renditions per station, dissolves between video items, titles drawn into the picture.
- **A radio sound** (Planned). An audio processing chain: compressor and limiter on the output bus.
- **Hot standby** (Planned). Standby stations on a second node, and moving a station between nodes without interruption.
- **In-stream metadata** (Planned). ID3 metadata inside HLS, and listener estimates for HLS outputs.
- **Ad campaigns** (Planned). Advertisers, flights and reporting on top of exact-time spot inserts.

## Hand the faders to your stack.

Bring a library, a feed and an API key. Zimze keeps the station on air. Request access: hello@zimze.com.

---

Source: https://zimze.com/ · Index for language models: https://zimze.com/llms.txt
