Why multiple AI keys?

TrafficLoopback can talk to OpenAI, Google (Gemini), and Anthropic (Claude) for ad creative generation. Pick whichever you prefer — but the strongest setup is to register keys for two or three of them. Here's why.

The failover reality

AI providers have outages. They have rate limits. They sometimes reject content they shouldn't. Every one of them.

  • Outages — Google's Gemini API has had multi-hour outages several times per quarter. OpenAI has too. Anthropic is generally stable but isn't immune. When generation is part of your ad-creation loop, an outage stalls your queue.
  • Rate limits — Free-tier quotas are generous but finite. A burst of ad-gen activity can hit your per-minute cap on one provider while another still has headroom.
  • Content policy mismatches — Different providers reject different things. A creative for a regulated industry (HIPAA, financial) might trip one provider's safety filter and pass another's fine.

What this means in practice: if you register keys for two providers (e.g. Google + OpenAI) and Google goes down, your ad-gen continues on OpenAI without you doing anything. Same for rate-limit overflow. Same for policy rejections.

How failover works

You assign each registered key a priority (1 = highest). When a generation request fires, TrafficLoopback tries priority-1 first. On any of these failures, it falls through to the next priority automatically:

  • HTTP error (5xx, network timeout)
  • Rate-limit response (429)
  • Content policy rejection (safety filter triggered)
  • Quota-exhausted response (free tier hit)

The failover is per-request, so a temporary issue on one provider doesn't lock you into the fallback forever — the next request tries priority-1 again.

Recommended setup

For most users:

  1. Priority 1: Google AI Studio (Gemini Flash) — generous free tier, fast, good quality on ad copy.
  2. Priority 2: OpenAI (GPT-4o-mini) — broad coverage of edge cases Gemini's safety filter rejects.
  3. Priority 3: Anthropic (Claude Haiku) — best for nuanced brand tone if you care about voice consistency.

You can register multiple keys per provider too (e.g. two Google keys from different Google accounts) for per-tenant quota stacking.

Get keys

Step-by-step guides for each provider:

Pricing reality check

Ad creative generation is small workload. A typical session generates 2–10 variants per ad, each ~300 tokens output. That's well below the free-tier limits on Google and OpenAI for solo / small-team usage. You shouldn't incur any provider charges during normal operation. Anthropic has no free tier but pay-as-you-go is pennies per ad.