Error Response Format

All errors follow RFC 7807 (Problem Details for HTTP APIs) and return a consistent JSON structure:

HTTP Status Codes

Common Errors

Authentication Errors

Solution: Include your API key in the Authorization header:
Solution: Verify your API key is correct. Check for typos, extra spaces, or expired/revoked keys.
Solution: Create a new API key with the required scopes or use a different key.

Credit & Payment Errors

Solution:
  • Purchase more credits or upgrade your plan
  • Use a template with lower credit requirements
  • Reduce video resolution or duration

Validation Errors

Solution: Review the validation_errors array and fix each field mentioned.
Solution:
  • Verify the resource ID is correct
  • Check that the resource belongs to your account
  • Ensure the resource hasn’t been deleted

Rate Limit Errors

Headers Returned:
Solution:
  • Wait until the rate limit resets (check Retry-After header)
  • Implement exponential backoff
  • Upgrade to a higher tier for increased limits

Server Errors

Solution:
  • Retry the request after a brief delay
  • Contact stephen@getbluma.com with the request_id for investigation
Solution:
  • Wait and retry after the time specified in retry_after (seconds)
  • Implement retry logic with exponential backoff

Error Handling Best Practices

1. Always Check Status Codes

2. Implement Retry Logic

3. Log Request IDs

Always log the request_id from error responses for support inquiries:

4. Handle Validation Errors

Rate Limit Headers

Monitor these headers to avoid hitting rate limits:

Webhook Error Notifications

Configure webhooks to receive notifications about video generation failures:
See Webhooks Guide for setup instructions.

Support

If you encounter persistent errors:
  1. Review relevant documentation sections
  2. Contact stephen@getbluma.com with:
    • Request ID from error response
    • Full error message
    • Steps to reproduce
    • Expected vs actual behavior

Next Steps

Rate Limits

Learn how rate limiting works

Webhooks

Set up error notifications

Best Practices

Build reliable integrations

API Reference

Explore all endpoints