Back

Blog details

Stream Key vs Streaming Session: Preconfiguring a Livestream

AIOZ Network
7 min readOctober 23, 2026
aioz-streamguide

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:

  • A stream key is a reusable credential your encoder uses to authenticate and send video to AIOZ Stream. A streaming session is a configured broadcast instance, with a title, resolutions, thumbnail and destinations, created for one specific live event.
  • One key can serve many sessions. The docs say a key can be reused for multiple broadcasts unless you rotate or replace it.
  • You do not have to create a session before streaming. AIOZ Stream creates one automatically when you stream with valid credentials, but then you skip the settings the session form offers.
  • In the API, sessions live under a key: POST /api/live_streams/:key_id/streamings needs a title, and save defaults to false.
  • The update endpoint takes only the key ID in its path, and the docs do not say which session it changes, so keep the session ID from the create response.

The short version

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.

How other platforms split the same job

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.

What lives on the stream key

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.

What lives on the streaming session

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:

FieldRequiredWhat it does
TitleYesThe display name shown for the broadcast
Desired ResolutionsNoOne or more output qualities for the session, for example 720p and 1080p
Save Stream to Archive When FinishedNoArchives the broadcast as a standard video
ThumbnailNoA JPG or PNG image
Add DestinationNoExternal 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.

Preconfigure the session, or let it be created for you

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:

  • For a spontaneous or test broadcast, rely on the automatic session and check the dashboard afterward.
  • For a scheduled event, restreaming or a recording you need, create the session first, set the title and archive option, and attach destinations.
  • For a recurring show, keep one key for the show and create a fresh session per episode, so each episode gets its own title and record.

An API detail worth planning around

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.

A setup pattern that follows from the docs

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.

What the documentation does not say

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.

Frequently Asked Questions

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.

References

We only send updates when meaningful changes ship, and you can unsubscribe anytime

Related Content

blog thumbnail

MPEG-TS vs fMP4 for HLS Segments and When to Use Each

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.

aioz-stream
7 min readNovember 17, 2026
blog thumbnail

Live Streaming vs VOD (Video on Demand) and When to Use Each

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.

aioz-streamguide
6 min readNovember 13, 2026
blog thumbnail

How Does Live Streaming Work? From Encoder to Viewer

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.

aioz-streamguide
7 min readNovember 12, 2026
blog thumbnail

How Web Video Players Work: HTML5 Video, MSE and EME

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.

aioz-streamguide
7 min readNovember 11, 2026
blog thumbnail

SRT vs VTT Subtitle Formats and When to Use Each One

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.

aioz-stream
6 min readNovember 10, 2026
blog thumbnail

What Is Live to VOD? Saving a Livestream as a Video

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.

aioz-streamguide
6 min readNovember 06, 2026