X (Twitter) Stream Key: How to Get It in Live Studio and Use It in OBS
The short answer
Your X (formerly Twitter) stream key lives in a source in X's Live Studio. Open Live Studio at x.com/i/live-studio, or open Creator Studio and select Live Studio under Tools, then create a source. X then shows an RTMP URL and a Stream Key that you copy into your encoder, such as OBS Studio. X's Live Studio help page says Live Studio replaces Media Studio Producer, the older tool many guides still describe.
Unlike platforms that issue a new key for every show, an X source can be reused: X says a single source can be reused across multiple livestreams. Everything on this page comes from X's own Help Center, checked on November 20, 2026.
Sources and livestreams: how X organises keys
X splits a broadcast into two parts, and knowing which is which saves a lot of confusion:
| Feature | Source | Livestream |
|---|---|---|
| What it is | A connection point that ingests video into Live Studio via RTMP | The broadcast viewers watch on X |
| Where the key is | Each source has its own RTMP URL and Stream Key | A livestream uses a source; it has no key of its own |
| Reuse | One source can be reused across multiple livestreams | Each livestream is created separately, live now or scheduled |
| Limits | Up to 100 sources per account; the region cannot be changed after creation | One active livestream per source at a time |
So the key belongs to the source, not to your account settings. If you stream to X every week, one source can stay saved in your encoder. If you need two X livestreams at the same time, X says to create separate sources and use separate encoders.
How to get your X stream key in Live Studio
X's Live Studio help page lists these steps for creating a livestream via RTMP:
- Go to
studio.x.com/live, or open Creator Studio and select Live Studio under Tools. - Click New Livestream.
- Enter a title. If the livestream is public, this title appears on X.
- Select an existing Source or create a new one. To create one, enter a source name and select the region closest to your encoder for the lowest latency.
- Your RTMP URL and Stream Key appear. Copy these into your encoder. X adds that you can use the RTMPS URL for an additional layer of transport security.
- Upload a thumbnail, which appears on X before and after your livestream. X suggests a 16:9 image at 1280×720 or 1920×1080.
- Set the audience: visibility (Public, or Private, which is visible only within Live Studio), chat controls and any geo-restrictions.
- Choose Go Live to start immediately, or Later to schedule.
X lists 12 source regions: US East (N. Virginia), US West (Oregon), US West (N. California), EU (Frankfurt), EU (Ireland), EU (Paris), South America (São Paulo), and AP Tokyo, Seoul, Mumbai, Singapore and Sydney. Pick the one nearest the machine that sends the stream. If you send through a cloud relay, that is the relay's server, not your home.
Find, reuse or replace your X stream key
Finding it again. The key is attached to the source, so you look for it in Live Studio, where you select or create a source for a livestream. It is not in your X account or privacy settings.
Reusing it. X says one source can be reused across many livestreams, so the same RTMP URL and key can stay in OBS or your relay from week to week. The only rule is one active livestream per source: if you see Livestream already running, end the existing livestream first.
Replacing it. X's pages we checked do not describe a "reset key" button. What they do describe is creating sources and deleting ones you no longer need: Producer's FAQ says that when you cannot change a source's location you "may create a new source and delete old ones", and the Live Studio FAQ says to create a new source with the correct region and delete the old one. If a key has been exposed, for example on screen, the practical step is to create a new source, move your encoder to it and delete the old source. That is our reading of X's pages, not an X statement about leaked keys.
Keep the key private, as with any platform: anyone who has it may be able to send video to that source. Our guide what is a stream key explains why, and stream keys by platform compares how other platforms handle reuse and resets.
Use your X stream key in OBS Studio
The OBS Project's OBS Studio Overview Guide says to open the Stream section of Settings, select one of the included services or set a Custom Streaming Server, enter the server URL, and enter your stream key. For X:
- In OBS Studio, open Settings, then Stream.
- Set Service to Custom….
- Paste X's RTMP URL (or the RTMPS URL) into Server.
- Paste the Stream Key into Stream Key. Leave any authentication option off: X says RTMP authentication is not currently supported.
- Match the output settings to X's recommendations below, then click Start Streaming.
- Back in Live Studio, wait until X detects your signal, then go live or let a scheduled livestream start.
| Setting | X recommends | X maximum |
|---|---|---|
| Video codec | H.264 | H.264 |
| Video bitrate | 12 Mbps | 40 Mbps |
| Resolution and frame rate | 1920×1080 at 60 fps | 3840×2160 at 60 fps |
| Audio | AAC (mono or stereo), 128 kbps | AAC, 128 kbps |
| Keyframe interval (OBS) | Every 3 seconds | — |
| Encoder profile | Main or High | — |
A 12 Mbps video stream needs a steady upload with headroom on top. Check what your connection can carry with the streaming bitrate recommender before copying X's figure, and see keyframe interval if the seconds-versus-frames setting is new to you. Our best OBS settings for streaming guide covers the rest of the output panel. X recommends running a few private test livestreams to find the settings that work for your setup.
Go live, schedule and post on X
A few things in Live Studio behave differently from other platforms:
- Test privately first. X says private livestreams are only visible within Live Studio and are useful for testing your setup before going live publicly.
- Creating a livestream does not post it. X says to open the livestream details page and click Post livestream on X, or use Copy URL or Embed. Followers with live notifications enabled are notified when the livestream goes live.
- Scheduling. Livestreams can be scheduled up to one year in advance. A scheduled public livestream can be posted early with your poster image and a countdown. If you are not streaming at the scheduled start time, X says the livestream enters a Timed out state and ends automatically.
- Some settings lock at the start. Visibility and geo-restrictions can only be changed before the stream starts; the title and chat controls can be changed while live.
- Length. X states a maximum duration of 24 hours, and notes that very long livestreams may load slowly or have replay issues.
For planning shows across several platforms, see how live stream scheduling works.
Send to X and other platforms at once
X's Live Studio FAQ answers this directly: you cannot directly reuse a stream you are already sending to YouTube, Twitch or another platform, but third-party multistreaming services can split a single encoder output and send it to multiple RTMP destinations at the same time, including Live Studio.
Multistream Platform works that way. On our features and pricing pages (checked November 20, 2026), every plan supports custom RTMP and SRT destinations, and you can paste a server URL and stream key for any platform. X is not one of the platforms we list for one-click OAuth, so you add it as a custom RTMP destination:
- Create a source in Live Studio and pick the region closest to the relay's servers.
- Add a custom RTMP destination in your relay and paste X's RTMP URL and Stream Key. Because the X source is reusable, you set this up once.
- Point OBS at the relay, not at X. Your encoder sends one stream; the relay sends a copy to X, YouTube, Twitch and the rest.
- Create the livestream in Live Studio with that source, go live, and click Post livestream on X so people can find it.
Check the plan details before matching X's 1080p60 recommendation: our pricing page lists 720p at 30 fps on the free Starter plan and 1080p at 60 fps from the Creator plan. Each platform also keeps its own rules, for example Twitch's simulcasting guidelines (see what is simulcasting). The full multistream setup is in how to multistream with OBS Studio and custom RTMP explained.
Try it with Multistream Platform. Send one RTMP or SRT stream and relay it to YouTube, Twitch, Facebook, Kick, TikTok and custom endpoints. Start on the free Starter plan (2 channels, 20 streaming hours a month) and see the pricing page for paid plans.
When the X stream key does not work
| What Live Studio shows | What X says it means | What to do |
|---|---|---|
| Waiting for stream | No encoder signal has been detected | Start your encoder and begin sending video to the configured source |
| The media could not be played | Live Studio cannot detect a valid video signal | Check that the encoder uses the correct RTMP URL and Stream Key; copy both again with no extra spaces |
| Livestream already running | An active livestream already uses this source | End the existing livestream, or use a separate source |
| Invalid livestream | Scheduled livestreams require a source created in Live Studio | Create a new source in Live Studio and try again |
| Timed out | The source stopped sending video | Timed-out livestreams cannot be restarted; create a new one |
| Create Source does nothing | The account has reached 100 sources | Delete sources you no longer use |
X adds one more case: disappearing sources or livestreams, or repeated Error creating livestream messages, may indicate a copyright enforcement action on the account. For connection errors on the encoder side, see custom RTMP explained, and test your camera and microphone in the browser first with the free webcam test and microphone test.
Older guides: Media Studio Producer
Many tutorials still describe Media Studio Producer. X's Producer help page now carries a notice pointing to Live Studio, and the Live Studio page says Live Studio replaces it. The idea is the same (create a source, copy the RTMP URL and stream key, then create a broadcast), but the published figures differ, so do not mix them up:
| Feature | Live Studio (current) | Media Studio Producer (older) |
|---|---|---|
| Ingest | RTMP, with an RTMPS URL option | RTMP or HLS sources; RTMPS URL option |
| Recommended video | 1920×1080 at 60 fps, 12 Mbps | 1280×720 at 60 fps, 9 Mbps |
| Maximum video | 3840×2160 at 60 fps, 40 Mbps | 1920×1080 at 30 fps, 12 Mbps |
| Audio | AAC, 128 kbps | AAC-LC, 128 kbps maximum |
| Source limit | 100 per account | 100 per account |
If a guide quotes 720p at 9 Mbps, it is describing Producer. Use the Live Studio figures for new setups.
Going live from the X app without a key
You do not need a stream key to go live from a phone. X's help page How to create live videos on X gives these steps for iOS and Android: tap the compose icon, tap Live at the bottom, add an optional description and location, and tap Go live. The broadcast appears as a post in your followers' timelines and on your profile, and you end it with the Stop button. The same page describes an older encoder route where some encoders offer X in a Custom Streaming Server list and sign in to your account instead of using a key; X advises checking your encoder's manual, as every encoder is different.
For a camera, screen capture, overlays or sending to more than one platform, the Live Studio source and stream key described above is the route to use.
What this guide leaves out
- Who can use Live Studio. X's Live Studio help page we checked does not list account or subscription requirements, so we do not state any. If
x.com/i/live-studiodoes not open for your account, check X's Help Center for your account type. - A fixed X server address. X shows the RTMP URL for each source and region, so copy it from Live Studio rather than from a tutorial.
- Payouts and monetization. Out of scope here; see X's own pages.
If X changes any of this, we will update the page with the source and date.
Sources
- X Help Center: Live Studio
- X Help Center: Media Studio Producer
- X Help Center: How to create live videos on X
- OBS Project knowledge base: OBS Studio Overview Guide (cited by name; the OBS Project asks people not to link to knowledge base pages)
Platform figures were checked on November 20, 2026. Platforms change their recommendations, so confirm against the current documentation before you go live.
Frequently asked questions
Keep learning
Where each platform keeps its stream key, whether it can be reset or reused, and the protocol it uses.
Read the guideStep-by-step OBS Studio settings to send one stream to a multistreaming relay and out to every platform.
Read the guideThe server URL and stream key, rtmp:// vs rtmps://, where each platform shows them, and fixes for common errors.
Read the guideGo live everywhere from one stream
Send one RTMP or SRT stream from OBS, vMix or a hardware encoder and we relay it to YouTube, Twitch, Facebook, Kick, TikTok and custom destinations. The Starter plan is $0 a month with 2 channels and 20 streaming hours.
Ready to stream everywhere?
Bring your live, hosted, and pre-recorded streams into one platform.
