Getting API Keys
Step-by-step guides for obtaining API keys from major AI providers.
Why Get API Keys?
API keys let you use your own accounts with AI providers (BYOK - Bring Your Own Key). This gives you:
- Unlimited usage (no Tiny Land rate limits)
- Access to all models from that provider
- Direct billing from provider (pay only for what you use)
- Lower costs for heavy usage
See API Keys (BYOK) Guide for more on using API keys in Tiny Land.
OpenAI (GPT Models)
Getting Your OpenAI API Key
- Go to platform.openai.com
- Sign up for an account or log in
- Click your profile icon (top right)
- Select View API Keys
- Click + Create new secret key
- Give it a name (e.g., "Tiny Land")
- Click Create secret key
- Important: Copy your key immediately (starts with sk-...)
- Store it securely - you won't be able to see it again!
Setting Up Billing
- Go to Billing section
- Click Add payment method
- Enter credit card information
- Set a monthly spending limit (recommended: start with $10-20)
- Save payment details
Pricing
GPT-5: $0.03-0.06 per message GPT-4.5: $0.01-0.02 per message GPT-4 Turbo: $0.005-0.015 per messageCosts vary by message length. See OpenAI Pricing for details.
Usage Limits
New accounts have usage limits that increase over time based on spending history. Check your limits at: Account → Usage Limits.
Anthropic (Claude Models)
Getting Your Anthropic API Key
- Go to console.anthropic.com
- Sign up or log in
- Navigate to API Keys (left sidebar)
- Click Create Key
- Give it a name (e.g., "Tiny Land")
- Click Create Key
- Copy your key (starts with sk-ant-...)
- Store securely!
Setting Up Billing
- Go to Billing in the console
- Click Add payment method
- Enter payment information
- Purchase credits (minimum $5, recommended $20+ for testing)
Pricing
Claude Opus 4.5: $0.05-0.12 per message Claude Sonnet 4.5: $0.015-0.04 per message Claude Haiku 4.5: $0.003-0.008 per messageSee Anthropic Pricing for current rates.
Credits System
Anthropic uses a prepaid credit system. Purchase credits in advance, and they're deducted as you use the API. Set up auto-reload to avoid interruptions.
Google (Gemini Models)
Getting Your Google AI API Key
- Go to Google AI Studio
- Sign in with your Google account
- Click Get API key
- Select or create a Google Cloud project
- Click Create API key
- Copy your API key
- Store securely
Pricing
Gemini 2.5 Pro: $0.01-0.03 per message Gemini 2.5 Flash: $0.001-0.006 per message FREE TIER: - 15 requests per minute - 1 million tokens per day - Great for personal use!Gemini has a generous free tier! See Google AI Pricing.
Free Tier Benefits
Google's free tier is perfect for personal use. No credit card required for free tier access. Upgrade to paid only if you exceed free limits.
DeepSeek
Getting Your DeepSeek API Key
- Go to platform.deepseek.com
- Sign up or log in
- Navigate to API Keys
- Click Create new API key
- Name your key
- Copy the generated key
- Store securely
Pricing
DeepSeek Chat: $0.001-0.003 per message DeepSeek Coder: $0.001-0.003 per message (One of the most affordable options!)Credits
DeepSeek uses a prepaid credit system. Purchase credits in advance at very competitive rates.
Other Providers
Mistral AI
Website: console.mistral.ai
Process similar to Anthropic - create account, generate API key, add payment method.
Cohere
Website: dashboard.cohere.com
Free tier available. Create account and generate API key in dashboard.
Adding Keys to Tiny Land
Once You Have Your Key
- Log in to Tiny Land
- Go to Settings → API Keys
- Click + Add API Key
- Select the provider
- Paste your API key
- Give it a nickname (optional)
- Click Save
- Tiny Land will verify the key
See Full API Keys Guide for detailed usage instructions.
Cost Management Tips
Set Spending Limits
- OpenAI: Set monthly spending limit in Billing settings
- Anthropic: Only purchase credits you're comfortable spending
- Google: Set up billing alerts in Google Cloud Console
- DeepSeek: Purchase small amounts initially
Monitor Usage
- Check provider dashboards regularly
- Review Tiny Land usage stats in Settings
- Set up email alerts for high usage
- Start with small credit purchases
Start Small
Begin with $10-20 in credits to test. You can always add more as needed.
Security Best Practices
Protecting Your API Keys
- Never share API keys publicly
- Don't commit keys to Git repositories
- Store keys in password manager
- Rotate keys periodically (every 3-6 months)
- Delete unused keys immediately
If Your Key is Compromised
- Immediately delete the key from provider dashboard
- Generate a new key
- Update Tiny Land with the new key
- Review recent usage for unauthorized activity
- Contact provider if suspicious charges appear
Usage Monitoring
- Check usage daily for first week
- Set up billing alerts
- Review unusual spikes in usage
- Keep spending limits conservative initially
Troubleshooting
Key Not Working
- Verify you copied the entire key (no spaces)
- Check key is active in provider dashboard
- Ensure billing is set up
- Confirm you have available credits/balance
- Try regenerating the key
Rate Limit Errors
- New accounts often have lower rate limits
- Limits increase with usage history
- Wait a few minutes and try again
- Consider upgrading account tier
Payment Issues
- Verify payment method is valid
- Check for sufficient funds
- Review billing alerts/emails from provider
- Contact provider support if issues persist