Skip to content

YouTube OAuth setup

To upload videos to YouTube from the app, you need your own YouTube OAuth Client ID. This is a one-time setup.

1. Open Google Cloud Console

Go to console.cloud.google.com.

Sign in with the Google account associated with the YouTube channel you want to upload to.

2. Create a project

Click the project dropdown at the top of the page and choose New Project.

  • Project name: AI Music Video Generator
  • Organization: leave as default

Click Create. Wait a few seconds for it to be ready, then select it from the project dropdown.

Creating a new Google Cloud project

3. Enable the YouTube Data API

  1. In the left sidebar, go to APIs & Services → Library.
  2. Search for YouTube Data API v3.
  3. Click it, then click Enable.

Wait a minute or two for it to activate.

  1. Go to APIs & Services → OAuth consent screen.
  2. Choose External user type and click Create.
  3. Fill in the required fields:
    • App name: AI Music Video Generator
    • User support email: your email
    • Developer contact: your email
  4. Click Save and Continue.
  5. On the Scopes page, click Add or Remove Scopes and search for youtube.upload. Check it and click Update.
  6. Click Save and Continue.
  7. On the Test users page, click Add Users and add your own email. This is required while the app is in “Testing” status.
  8. Click Save and Continue, then Back to Dashboard.

5. Create the OAuth Client ID

  1. Go to APIs & Services → Credentials.
  2. Click Create Credentials → OAuth 2.0 Client ID.
  3. Choose Desktop app as the application type.
  4. Name it (e.g. “MVG Desktop”).
  5. Click Create.
  6. Copy the Client ID — it looks like 123456789-xxxxx.apps.googleusercontent.com.

Copying the Client ID

6. Add the Client ID to the app

  1. Open AI Music Video Generator.
  2. Go to Settings → Connections → YouTube.
  3. Paste the Client ID into the Client ID field.
  4. Click Save.

7. Connect your channel

Click Connect YouTube. See Connecting YouTube for the rest of the flow.

Notes

  • Only the Client ID is needed — no secrets. The app uses the PKCE auth flow (a secret-free way to log in).
  • YouTube may take a few minutes to fully enable the API after you turn it on.
  • You’re limited to 6 uploads per day while the app is in “Testing” mode. To lift this, submit your app for Google review (takes a few days).