You, the developer making the API request, has to have registered an app on Twitch, but the the Get Stream Key endpoint works for any user. You just need that user to go through your apps OAuth flow to grant you an OAuth token with permission to access their stream key.