background
Skip to main content
X (Twitter)

How to find your live stream key on X (Twitter)

Quick answer: your X (Twitter) stream key is in X's Live Studio, the livestreaming tool in Creator Studio that replaced Media Studio Producer in 2026. Create a new livestream, select or create a source, and copy the RTMP URL and Stream Key into your encoder. To broadcast with external software, your X account must be verified with an X Premium or Premium+ subscription; X Basic isn't enough. If you stream through Restream's native X connection, you don't need a stream key at all.

How to find your stream key on X (Twitter)

Here's how to get your stream key in X's Live Studio:

  1. Log in to your X account and open Live Studio from Creator Studio (under Tools).
  2. Click New Livestream and enter a title. For public streams, the title appears on X.
  3. Select an existing Source or create a new one: give it a name and choose the region closest to your encoder for the lowest latency.
  4. Copy the RTMP URL and Stream Key into your streaming software. The RTMPS URL works too and adds transport security.
  5. Add a 16:9 thumbnail and set visibility, chat controls and any geo-restrictions. You can't change visibility or geo-restrictions once the stream is scheduled or live.
  6. Start streaming from your software, then click Go Live, or click Later to schedule the livestream.

You can reuse a source for future livestreams instead of creating a new one every time.

How to stream to X from OBS

  1. Create a livestream and copy the RTMP URL and stream key in Live Studio as described above.
  2. In OBS Studio, open Settings → Stream and choose Custom as the service.
  3. Paste the RTMP URL into Server and the stream key into Stream Key, then click OK.
  4. Click Start Streaming in OBS, then go live from Live Studio.

X recommends H.264 video at 12 Mbps, 1920x1080 at 60 fps, AAC audio at 128 kbps and a 3-second keyframe interval for Live Studio streams.

Do you need a stream key with Restream?

No, not for the native X connection. Add X as a channel in Restream, log in and authorize your account, and Restream handles the connection. You still need a verified X account with Premium or Premium+. A custom RTMP connection that uses your X stream key is a separate workflow that requires a paid Restream plan, and it doesn't include the native chat and analytics integration. See how streaming to X with Restream works.


If you don't want to download encoding software to go live on X, you can use Restream Studio instead. Simply add X as a channel to your Restream account and go live from your browser. Learn more about X's verification requirements.

Restream Studio lets you invite guests, add your logo and custom graphics, share your screen, play local video files, display your live chat and stream to X and other platforms at the same time. The number of guests on screen depends on your plan. For everything about going live on X, read our guide to X (Twitter) Live.