Skip to content
Headcount AI Get it for ₹2,999

Guides4 stepsAbout 10 minBeginner

Free AI keys for your agents: Gemini, Z.ai and OpenRouter, plus spend caps

Get free Gemini, Z.ai and OpenRouter keys in about 6 minutes, and cap any paid model you add later.

By Headcount AI teamUpdated

Google AI Studio · API keysSTEP BY STEP4stepsAbout 10 minBeginnerCreate a free Gemini API keyAdd free Z.ai and OpenRouter keys…3Paste the keys into your farm4Set a spend cap before you add a…
All 10 guides9 of 10

Short answer

Sign in at Google AI Studio, click Create API key, pick a project and copy the key without setting up billing; on Headcount Cloud it covers about 500 agent steps a day. Add free Z.ai and OpenRouter keys as backups, and put a spend cap on any paid key you add later.

  1. 1Create a free Gemini API key
  2. 2Add free Z.ai and OpenRouter keys as backups
  3. 3Paste the keys into your farm
  4. 4Set a spend cap before you add a paid key

An API key is a long code that lets software, here your agent farm, use an AI model on your own account with that provider. A free key uses the provider's free tier, which has daily limits the provider sets and can change.

Headcount Cloud, the farm that comes with Headcount AI, needs no paid AI plan. It runs on these free keys plus Cloudflare's own free models, and part 2 of the setup video shows every click.

What are the 10 free AI lanes?

A lane is one free model your agents can use: five for text, five for media. Four need no key at all.

LaneWhat it doesKeyFree allowance
GeminiMain text model: plans, writes, uses toolsFree, from Google AI StudioAbout 500 agent steps a day
Z.ai GLMText backupFree, from Z.aiOne request at a time
OpenRouter free modelsText backupFree, from OpenRouter50 requests a day across free models
Workers AIText on Cloudflare's own modelNoneAbout 100 agent steps a day
GroqFast text for short promptsFree, from the Groq consoleDaily limits per model
FLUX imagesImages from a promptNoneAbout 55 to 95 images a day
Aura voiceVoiceoversNoneShares the Workers AI allowance
WhisperTranscripts from audio and videoNoneShares the Workers AI allowance
LTX and Wan videoShort clips; Wan animates an imageFree Hugging Face tokenHugging Face's free daily quota
Gemini video understandingWatches a video, returns moments, a transcript or answersThe same Gemini keyGemini's free tier

Workers AI, FLUX, Aura and Whisper share Cloudflare's free allowance of 10,000 neurons a day, which resets at 00:00 UTC (Workers AI pricing, checked 1 Dec 2026).

Gemini is the key that matters most. Without it, agents fall back to Cloudflare's small free model, which is slower and does weaker work. Our comparison of free LLM APIs covers each provider.

Step 1Create a free Gemini API key

Sign in with Google at Google AI Studio, click Create API key, pick or create a project, and copy the key.

Google AI Studio API keys list showing a new Gemini key on the free tier
Stay on the free tier: no billing set up.
  1. Accept AI Studio's terms if it asks. New accounts get a default project.
  2. Skip billing. The free tier is the one you want.

AI Studio shows your exact free limits, and daily request limits reset at midnight Pacific time (Gemini API rate limits, checked 1 Dec 2026).

Step 2Add free Z.ai and OpenRouter keys as backups

Create a key on the Z.ai API keys page and another on the OpenRouter keys page, and copy both.

On Z.ai, sign up and keep the Standard key type. On OpenRouter, click Create Key and name it; the key starts with sk-or-.

Z.ai lists GLM-4.7-Flash as free on its pricing page (checked 1 Dec 2026). The farm sends it one request at a time, which makes it a steady backup on days Gemini runs out.

OpenRouter's free models allow 50 requests a day in total and 20 a minute (OpenRouter limits, checked 1 Dec 2026). Accounts that have bought credits get more, but you don't need to buy anything.

Step 3Paste the keys into your farm

Paste them into the deploy form when you set up the farm, or later under Settings, AI models.

  • On the deploy form, add them next to your Cloudflare token before you click Deploy to my Cloudflare. The Headcount Cloud guide covers the rest.
  • Later, add a key on its row in Settings, AI models. The farm tests it before saving, and Groq keys go here too.
  • The video lanes take a free Hugging Face token, added on the Tools page under Hugging Face video.

Without a Google account you can still deploy. The farm runs on Cloudflare's free model, about 100 agent steps a day, until you add a key.

Step 4Set a spend cap before you add a paid key

Open Settings, then Spend caps, type a cap for each paid source and click Save.

Caps cover paid AI models (Anthropic, OpenAI or a paid OpenRouter model) and paid data or outreach tools. Each source has three boxes: an amount a day, an amount a month and a number of calls a day. An empty box means no cap, so fill in at least the daily one.

When a source hits its cap, it stops for the day or month. A card on your Overview says so, with a button to raise the cap, and the agents carry on with free models.

Paid jobs show their cost first. Lead enrichment, for example, gives its worst-case cost and waits for your yes. You pay each provider directly, at the prices on its own pricing page.

What happens when a free model runs out or refuses?

The agents move to the next model in your list. On a busy day free Gemini can run out by evening, and a card on your Overview names the limit and the fix, such as "Add a Z.ai key (free)".

The list in Settings, AI models is tried from the top. Free models go first (Gemini, Z.ai, OpenRouter free, Workers AI, then Groq for short prompts), and paid models follow only while under their cap.

Limits reset daily, and the farm retries Gemini during the day instead of waiting for morning. Settings shows today's Workers AI use and when it resets.

Sometimes Settings says "Gemini refuses here" or "User location is not supported". Your farm then sits in a Cloudflare data center where Google's Gemini API refuses requests, and Google lists where it works.

The farm moves itself to Western Europe within the hour when no agent is busy. To move it now:

  1. Open Settings, then Farm location.
  2. Click Move my farm and confirm.
  3. Wait about 1 minute. Memory, runs, chats, schedules, tools, keys and sign-ins all move, and the old farm stays untouched as a backup.

Watch it done

See all 30 videos

Flows that do this

See all 61 flows

A flow is several agents working through one job, start to finish, on Headcount Cloud.

Agents that do this

Meet all 42 agents
  • Creative StudioStatic Ad FactoryWebsite URL in, 20 finished on-brand static ads out, grounded in real product photos.
  • Viral ContentClip RepurposerOne long video in, 10 captioned clips + newsletter + posts out.
  • Core (included)Company BrainInterviews you once; writes the memory every agent reads. Included.

Frequently asked questions

Is the Gemini API key really free?

Yes. AI Studio's free tier needs no billing and covers about 500 agent steps a day on Headcount Cloud, within limits Google sets and can change.

Do I need a credit card for these keys?

No. Gemini, Z.ai and OpenRouter keys are free to create without a card, and 4 of the 10 lanes need no key at all.

How many agent steps a day can I run for free?

About 500 on the free Gemini key and about 100 on Workers AI, plus what Z.ai, OpenRouter and Groq add under their own free tiers.

Do I need paid keys at all?

Not to start. Add one when you want work kept out of Gemini's free tier, or more agent steps than the free lanes give, and the usual approvals before anything is sent or spent still apply.

Headcount Cloud Mission Control with agents at work, approvals waiting and recent runs
Mission Control on your own Headcount Cloud

Headcount AI

Get the whole marketing team

  • 42 AI agents in 10 departments
  • 61 ready-made flows
  • Your own free cloud, running 24/7
  • 127 extra skills and 100+ tools
  • 7 bonuses worth ₹10,493
  • Priority support: a real person within 24 hours

₹2,999 one time, no monthly fee

Runs in Claude or ChatGPT, or free on your own Cloudflare account within free-tier limits. Every post, email and spend waits for your yes.

Explore the library