Set up

Connect Gemini and OpenAI

Get the Google and OpenAI keys the app uses to write scripts and generate voices.

Video Automation uses AI from Google and OpenAI to pick stories, write the script, title and tags, and speak the narration. The AI runs on API keys from your own Google and OpenAI accounts, and each provider bills you directly for what you use.

WhereSettings›Auth/Models
Who adds the keys: the Auth/Models tab is shown to admin and staff accounts. Other accounts do not add keys; their videos automatically use the main admin's keys.

What the AI is used for

JobWith GoogleWith OpenAI
Score new stories and pick the best onesGemini API keyOpenAI API key
Write the script, title, description and tagsGemini API keyOpenAI API key
Speak the narration (voice-over)Google Text-to-Speech: the service account JSON file and the Gemini API keyOpenAI API key (voices Alloy, Ash, Coral, Echo, Fable, Onyx, Nova, Sage, Shimmer)

You need at least one provider. You can mix them, for example Gemini for the script and OpenAI for the voice. You choose this per channel (see Turn it on for your channels).

1. Gemini API key (Google AI Studio)

  1. Open Google AI Studio Go to aistudio.google.com/app/apikey and sign in with your Google account.
  2. Create the key Click Create API key. Choose an existing Google Cloud project or let it create one. Copy the key (it starts with AIza).
  3. Higher limits (recommended) The free tier has low daily limits. To make videos regularly, open Billing in AI Studio and set up billing on the project.
  4. Save it here In Settings → Auth/Models, paste it into the Google Gemini box, click Save, then Test connection. The badge changes to Key saved.

2. Google Text-to-Speech file (for Google voices)

Only needed if you want Google voices. It is a small JSON file that lets the app use Google Cloud Text-to-Speech on your Google Cloud project.

  1. Open your project Go to Google Cloud Console and select a project (the one from step 1 is fine). Billing must be turned on for the project.
  2. Enable the API In APIs & Services → Library, search for Cloud Text-to-Speech API and click Enable.
  3. Create a service account In IAM & Admin → Service Accounts, click Create service account, give it a name such as video-voice, and finish. It needs no extra role.
  4. Download the key file Open the new service account → Keys → Add key → Create new key → JSON. A .json file downloads.
  5. Upload it here In Auth/Models, under Google Text-to-Speech, choose the file, click Upload, then Test connection. The badge changes to File uploaded.
Google voices need both this file and the Gemini key from step 1. If your organisation blocks service account keys (policy iam.disableServiceAccountKeyCreation), ask the organisation admin to allow it for this project.

3. OpenAI API key

  1. Open the OpenAI platform Go to platform.openai.com and sign in. This is separate from a ChatGPT subscription: ChatGPT Plus does not pay for API use.
  2. Add credit In Settings → Billing, add a payment method and some prepaid credit. Without credit every request fails with insufficient_quota.
  3. Create the key Open API keys → Create new secret key. Copy it straight away (it starts with sk-); OpenAI shows it only once.
  4. Save it here In Auth/Models, paste it into the OpenAI box, click Save, then Test connection.

4. Choose the models

In the Models box on the same tab, pick the Google Gemini model and the OpenAI model used for writing, then save. The lists are loaded from your own accounts, so they appear after the keys are saved. If a provider retires the model you picked, the app switches to the closest current one by itself.

5. Turn it on for your channels

  1. Pick the AI that scores stories In Settings → Flows → Auto check & create, set AI Plateform to Google Gemini or Open AI and click Update. Only providers with a saved key are listed. Without it, no stories are recommended.
  2. Pick the AI per channel Under Actions on the same tab, select a channel and tick Summarization Text (who writes the script) and Audio Generate (who speaks it), then click Enable. Boxes stay greyed out when that provider has no key. See Automation and scheduling.
  3. Pick the voice In Settings → Voice, choose the same provider under Select Model, pick a voice and click Test & Update. See Voice and audio.

Costs and safety

  • You pay the provider. Google and OpenAI bill your own account for every script and voice-over. Set a monthly budget or usage limit in their billing pages so a busy day cannot surprise you.
  • See what you use. The Costing page (admin and staff) estimates the AI cost per video and per day.
  • Keep keys private. Never share a key or the JSON file. If one leaks, delete it in Google AI Studio, Google Cloud or OpenAI, create a new one, and save the new one here.

When Test connection fails

MessageWhat to do
API key not valid / invalid_api_keyThe key was copied wrongly or deleted. Copy it again, or create a new one.
RESOURCE_EXHAUSTED / 429 (Gemini)The free-tier limit is used up. Wait for it to reset, or turn on billing for the project.
insufficient_quota (OpenAI)No credit left. Add credit under Billing on platform.openai.com.
Cloud Text-to-Speech API has not been used / PERMISSION_DENIEDEnable the Cloud Text-to-Speech API and billing on the project the JSON file belongs to, wait a few minutes, then test again.
Voice works in the test but not in videosCheck that the channel's Audio Generate action and its voice use the same provider.

Still stuck? Email vishalrathour06@gmail.com and tell us which step you are on.