Authentication
Every endpoint except /health requires a Bearer API key in the Authorization header.
Bearer token header
Keys are formatted as rk_live_ or rk_test_ followed by 32 random alphanumeric characters (40 characters total). Reelpipe stores only the first 12 characters as a prefix and the SHA-256 hash—the raw key is shown once when created.
curl https://reelpipe.dev/api/v1/usage \ -H "Authorization: Bearer rk_live_YOUR_KEY"Live keys vs. test keys
| Property | Live key (rk_live_) | Test key (rk_test_) |
|---|---|---|
| Credit billing | Reserves estimated seconds; bills ceil(duration) on done | Free — never reserves or consumes credits |
| Resolution | 720p (Free) or 720p / 1080p (paid plans) | Always forced to 480p |
| Watermark | Free plan only; none on Starter/Pro/Scale | Always watermarked |
| Max duration | 120 s (Free) or 7,200 s (paid plans) | 120 s across every plan (estimated & real duration) |
| Daily cap | Limited only by credit balance & rate limit | 20 test renders per user per UTC day (429 rate_limited) |
Key security & revocation
Never embed live keys in browser JavaScript or public repositories. If a key leaks, revoke it immediately from Dashboard → API Keys—revoked keys immediately return 401 invalid_api_key.