Quickstart Guide
Get started with Outcry AI in under 5 minutes. This guide will walk you through authentication, adding credits, and making your first API requests.Prerequisites
- An Outcry AI account (sign up here)
- Node.js 16+ or Python 3.8+ installed
- 5 minutes of your time
Step 1: Get Your API Key
1
Log in to your dashboard
Navigate to outcryai.com and log in to your account.
2
Generate an API key
Go to Settings > API Keys and click Create New Key.Give your key a name (e.g., “Production Key”) and select the scopes you need:
video:write- Create videosvideo:read- Check video statuschat:write- Create chat completionschat:read- Retrieve chat history
3
Save your key securely
Your API key will be shown only once. Copy it and store it securely:Never commit API keys to version control! Use environment variables instead.
Step 2: Add Credits to Your Account
All API usage is prepaid. Add credits to your account before making requests:- Go to Billing > Add Credits
- Select a credit bundle:
- Starter: 4 credits ($10) - Good for 3-8 videos
- Popular: 11 credits ($25, +1 bonus)
- Power: 22.5 credits ($50, +2.5 bonus)
- Creator: 50 credits ($100, +10 bonus)
- Complete payment via Stripe or crypto wallet
- Videos: 0.5 - 9 credits per video (based on model, duration, resolution)
- Chat/Text: ~0.03 credits per 1,000 tokens ($0.08 per 1K tokens)
Step 3: Install the SDK
Step 4: Set Up Your Environment
Create a.env file (or .env.local for Next.js):
Step 5: Make Your First Request
Generate an Activist Video
- Videos take ~60-90 seconds to generate
secondsmust be a STRING (“4”, “8”, or “12”), not a numbersizeis pixel dimensions, not aspect ratio- Poll every 5 seconds - don’t hammer the API!
Chat with Theory of Change
xaxis: -1 (Subjective) to +1 (Objective)yaxis: -1 (Material) to +1 (Spiritual)- Examples:
{x: -0.8, y: -0.6}- Strong voluntarist (grassroots organizing){x: 0.7, y: -0.5}- Structuralist (policy/systems focus){x: 0, y: 0}- Balanced approach
Step 6: Handle Errors Gracefully
Always wrap API calls in try-catch blocks:- 400 - Bad request (invalid parameters)
- 401 - Invalid API key
- 402 - Insufficient prepaid balance
- 403 - Missing required scope
- 429 - Rate limit exceeded
- 500 - Server error
Next Steps
Authentication Guide
Learn about API keys, scopes, and security best practices
Video API Reference
Complete documentation for video generation endpoints
Webhooks Guide
Set up real-time notifications for video completions
Theory of Change
Understand how to align AI outputs with your strategy
Production Checklist
Before going to production:- Store API keys in environment variables (never hardcode)
- Implement error handling for all API calls
- Set up webhooks for video completions (don’t poll)
- Add retry logic for transient errors (429, 500)
- Monitor your credit balance
- Set up alerts for low credit balance
- Test rate limiting behavior
- Implement exponential backoff for retries