Skip to main content

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 videos
  • video:read - Check video status
  • chat:write - Create chat completions
  • chat: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:
  1. Go to Billing > Add Credits
  2. 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)
  3. Complete payment via Stripe or crypto wallet
Credit Pricing:
  • 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

Yes, you read that right - just install the official OpenAI SDK! Outcry AI is 100% OpenAI-compatible.

Step 4: Set Up Your Environment

Create a .env file (or .env.local for Next.js):
Security Tip: Never hardcode API keys in your source code. Always use environment variables.

Step 5: Make Your First Request

Generate an Activist Video

Notes:
  • Videos take ~60-90 seconds to generate
  • seconds must be a STRING (“4”, “8”, or “12”), not a number
  • size is pixel dimensions, not aspect ratio
  • Poll every 5 seconds - don’t hammer the API!

Chat with Theory of Change

Theory of Change Position:
  • x axis: -1 (Subjective) to +1 (Objective)
  • y axis: -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
Learn more in the Theory of Change Guide.

Step 6: Handle Errors Gracefully

Always wrap API calls in try-catch blocks:
Common status codes:
  • 400 - Bad request (invalid parameters)
  • 401 - Invalid API key
  • 402 - Insufficient prepaid balance
  • 403 - Missing required scope
  • 429 - Rate limit exceeded
  • 500 - Server error
See the Error Handling Guide for complete details.

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
Ready to build? Explore the full API Reference or read the Authentication Guide.