X (Twitter) Stream Key: How to Get It in Live Studio and Use It in OBS

Where X shows your stream key and RTMP URL, how sources work, X's recommended encoder settings, OBS setup, and fixes for the errors Live Studio shows. From X's own Help Center.

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:

X Help Center, Live Studio, checked November 20, 2026.
FeatureSourceLivestream
What it isA connection point that ingests video into Live Studio via RTMPThe broadcast viewers watch on X
Where the key isEach source has its own RTMP URL and Stream KeyA livestream uses a source; it has no key of its own
ReuseOne source can be reused across multiple livestreamsEach livestream is created separately, live now or scheduled
LimitsUp to 100 sources per account; the region cannot be changed after creationOne 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:

  1. Go to studio.x.com/live, or open Creator Studio and select Live Studio under Tools.
  2. Click New Livestream.
  3. Enter a title. If the livestream is public, this title appears on X.
  4. 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.
  5. 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.
  6. Upload a thumbnail, which appears on X before and after your livestream. X suggests a 16:9 image at 1280×720 or 1920×1080.
  7. Set the audience: visibility (Public, or Private, which is visible only within Live Studio), chat controls and any geo-restrictions.
  8. 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:

  1. In OBS Studio, open Settings, then Stream.
  2. Set Service to Custom….
  3. Paste X's RTMP URL (or the RTMPS URL) into Server.
  4. Paste the Stream Key into Stream Key. Leave any authentication option off: X says RTMP authentication is not currently supported.
  5. Match the output settings to X's recommendations below, then click Start Streaming.
  6. Back in Live Studio, wait until X detects your signal, then go live or let a scheduled livestream start.
X Help Center, Live Studio, Recommended Encoder Settings, checked November 20, 2026. X also lists keyframe intervals of 72, 90, 150 and 180 frames at 24, 30, 50 and 60 fps.
SettingX recommendsX maximum
Video codecH.264H.264
Video bitrate12 Mbps40 Mbps
Resolution and frame rate1920×1080 at 60 fps3840×2160 at 60 fps
AudioAAC (mono or stereo), 128 kbpsAAC, 128 kbps
Keyframe interval (OBS)Every 3 seconds—
Encoder profileMain 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:

  1. Create a source in Live Studio and pick the region closest to the relay's servers.
  2. 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.
  3. 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.
  4. 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

X Help Center, Live Studio, checked November 20, 2026.
What Live Studio showsWhat X says it meansWhat to do
Waiting for streamNo encoder signal has been detectedStart your encoder and begin sending video to the configured source
The media could not be playedLive Studio cannot detect a valid video signalCheck that the encoder uses the correct RTMP URL and Stream Key; copy both again with no extra spaces
Livestream already runningAn active livestream already uses this sourceEnd the existing livestream, or use a separate source
Invalid livestreamScheduled livestreams require a source created in Live StudioCreate a new source in Live Studio and try again
Timed outThe source stopped sending videoTimed-out livestreams cannot be restarted; create a new one
Create Source does nothingThe account has reached 100 sourcesDelete 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:

X Help Center pages Live Studio and Media Studio Producer, both checked November 20, 2026.
FeatureLive Studio (current)Media Studio Producer (older)
IngestRTMP, with an RTMPS URL optionRTMP or HLS sources; RTMPS URL option
Recommended video1920×1080 at 60 fps, 12 Mbps1280×720 at 60 fps, 9 Mbps
Maximum video3840×2160 at 60 fps, 40 Mbps1920×1080 at 30 fps, 12 Mbps
AudioAAC, 128 kbpsAAC-LC, 128 kbps maximum
Source limit100 per account100 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-studio does 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

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

Where is my X (Twitter) stream key?
In Live Studio. Go to x.com/i/live-studio, or open Creator Studio and select Live Studio under Tools, then select or create a source. X shows the source's RTMP URL and Stream Key to copy into your encoder.
No. The key belongs to a source, and X says a single source can be reused across multiple livestreams. Each source can carry only one active livestream at a time.
X's pages we checked do not describe a reset button. Create a new source in Live Studio, update your encoder with its RTMP URL and key, and delete the old source.
Yes. In OBS Studio open Settings, then Stream, choose Custom, and paste X's RTMP URL into Server and the key into Stream Key. Leave authentication off: X says RTMP authentication is not supported.
X's Live Studio page recommends H.264 at 1920x1080 and 60 fps, 12 Mbps video (40 Mbps maximum, up to 3840x2160 at 60 fps), AAC audio at 128 kbps, a keyframe every 3 seconds and the Main or High profile.
Yes. X says you can use the RTMPS URL shown with your source for an additional layer of transport security.
Not by reusing one platform's stream directly. X's FAQ says a third-party multistreaming service can split one encoder output and send it to several RTMP destinations, including Live Studio. Add X there as a custom RTMP destination.
Have questions that aren't listed here? Talk to the team

Go 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.

Go Live Today

Ready to stream everywhere?

Bring your live, hosted, and pre-recorded streams into one platform.

One platform. Limitless audiences. Stream. Grow. Everywhere.