
AIOZ Stream splits a livestream into two objects: the stream key and the streaming session. Both appear under the Live Streaming tab and in the API, but they do different jobs and last for different lengths of time. Both are steps in the larger workflow described in the complete guide to live streaming on AIOZ Stream.
TL;DR:
POST /api/live_streams/:key_id/streamings needs a title, and save defaults to false.The livestream creation guide defines the two terms directly. A stream key is "a reusable credential used by your streaming software to authenticate and send video to AIOZ Stream." A streaming session is "a configured broadcast instance (e.g., title, resolutions, thumbnail, destinations) created for a specific live event." The same page adds the rule that connects them: a key can be reused for multiple broadcasts unless you rotate or replace it.
Think of the key as a door and the session as a room. The same door serves many rooms, so you set it up once and configure a room for each event.
AIOZ Stream uses a persistent key with separate sessions, one of two common designs. LiveU's explanation of reusable versus single-use stream keys frames the choice: with a reusable key, "the same key can be used again and again," while single-use keys "require unique keys for every stream." Reusable keys are more versatile, because if a stream stops, for instance when a camera battery runs out, you can start streaming again with the same key. They also offer somewhat lower security, since a revealed key has to be changed proactively.
Mux, a video API platform, also uses persistent keys. Its documentation says that streaming with the same key again creates a new asset for the recording, and that the key should be treated as a private key for live streaming, since anyone holding it can stream to the live stream it belongs to. If you lose control of a key, Mux says you can delete the live stream or reset the key.
Because the key is long-lived, protecting it matters more than protecting any single session. Both the OBS and PRISM setup guides give the same warning: keep the key private, never show it in screenshots or recordings, and regenerate it before streaming again if it is exposed.
Creating a key takes four steps in the dashboard: open Live Streaming, click Create Stream Key, enter a name and choose a type, then save. Video is for live video workflows such as OBS Studio and PRISM Live Studio. Audio is for audio-only workflows. The creation page records nothing else about a key.
It also leaves two things out. It does not explain how to regenerate, delete or rotate a key, even though the setup guides tell you to regenerate an exposed one; the OBS and PRISM walkthroughs repeat that advice. And I found no REST endpoint for creating keys in the live-streaming API reference. The documented programmatic route is the create-livestream-key tool in the AIOZ MCP server, which takes a required keyName and creates a key. The MCP server article lists all nine tools and how to connect a client.
The session is where the configuration lives. After you create a key, click its row and choose Start new stream. The Stream Settings panel offers these fields:
| Field | Required | What it does |
|---|---|---|
| Title | Yes | The display name shown for the broadcast |
| Desired Resolutions | No | One or more output qualities for the session, for example 720p and 1080p |
| Save Stream to Archive When Finished | No | Archives the broadcast as a standard video |
| Thumbnail | No | A JPG or PNG image |
| Add Destination | No | External destinations for restreaming |
The Create Stream button becomes active once the required fields are complete, which in practice means a title.
The streamings reference documents three endpoints under https://api.aiozstream.network/api/live_streams/:key_id/streamings: POST to create, GET to list, and PUT to update. Creating takes a required title, an optional save boolean that defaults to false, and an optional qualities array. The response describes the session with its own id, the key_id it belongs to, a status, the duration, frame rate and audio bitrate, current_view and total_view counters, and an assets object with a thumbnail URL, an HLS URL, an iframe snippet and a player URL. The docs show the status field but do not list its possible values on that page.
In the API, save is false unless you set it. The dashboard checkbox is described as optional, and the docs do not say whether it starts checked. If a recording matters, set it explicitly in both places.
The desktop and mobile setup guides both say you do not need to create a livestream manually first, because AIOZ Stream creates one automatically after you start streaming with valid credentials. That makes the key the only setup step you cannot skip, and it suits spontaneous broadcasts. The go-live walkthrough shows the full dashboard sequence.
The cost is control. An automatic session skips the form, so you do not set the title, thumbnail, resolutions, restream destinations or archive choice. The docs do not say what title or settings an automatic session receives, or whether it is archived. That suggests a split:
The update endpoint is PUT /api/live_streams/:key_id/streamings. Its path contains the key ID and no session ID, and its body takes a title and the save flag. The documentation does not say which session it changes when a key has several, whether it only works on a live session, or whether it can alter a session that is already running. The list endpoint has no documented pagination or filtering, and the page documents no delete endpoint. Store the session ID from the create response in your own system, test update calls on a throwaway key before relying on them in an event, and do not assume you can clean up old sessions through the API.
The docs do not prescribe a setup, but their design points to one. Anyone holding a key can broadcast to your account, so give each channel, or each encoder you do not fully control, its own key. If one leaks, you replace that key and the others keep working. Pre-create a session for every important event, run a short private test with a throwaway title, and confirm in the dashboard that the stream shows as active before sharing the link. A stream key is a different credential from an API key: Upload-Only vs Full-Access API Keys explains the roles for REST credentials, and the developer guide covers the wider API.
A few questions remain open, so verify them before an important event: how to regenerate or delete a key, the possible values of a session's status, what an automatic session is titled and whether it archives, the format of the qualities array, which session the update endpoint changes, and how many destinations a session can hold.
What is the difference between a stream key and a streaming session?
A stream key is a reusable credential your encoder uses to authenticate. A streaming session is a configured broadcast instance with a title, resolutions, thumbnail and destinations, created for one live event.
Can I reuse a stream key for multiple broadcasts?
Yes. The docs say a key can be reused unless you rotate or replace it.
Do I need to create a session before I stream?
No. AIOZ Stream creates one automatically when you stream with valid credentials. Create it yourself to set the title, thumbnail, resolutions, destinations and archive option.
What is the difference between Video and Audio stream keys?
Video is for live video workflows such as OBS Studio and PRISM Live Studio. Audio is for audio-only workflows.
Is my broadcast saved by default?
In the API, save defaults to false. The dashboard's archive checkbox is optional, and the docs do not state its starting value.
Can I create a stream key through an API?
The live-streaming API reference documents no key-creation endpoint. The AIOZ MCP server documents a create-livestream-key tool.

MPEG-TS vs fMP4 for HLS: how 188-byte TS packets and fMP4 init segments differ, what each costs in overhead, which codecs need fMP4, and when TS still fits.

Live streaming vs VOD comes down to when your audience watches. Three questions help you pick live, on demand or both, with real costs and AIOZ Stream limits.

How does live streaming work? Video is captured, encoded, sent over RTMP, transcoded, cut into HLS segments and served to players. See each stage end to end.

How web video players work: the HTML5 video element plays media, MSE lets JavaScript feed it HLS and DASH segments, and EME unlocks DRM-protected streams.

SRT vs VTT explained: how the two subtitle formats differ in timestamps, headers and styling, which one browsers, HLS and YouTube expect, and how to convert.

Live to VOD records a livestream and turns it into an on-demand video viewers can replay. Here's how the conversion works and how AIOZ Stream saves a broadcast.