Authentication & Essentials
Last updated
Last updated
In this section, we’ll discuss how to securely authorize your requests, handle potential errors, and manage credits for ShortGenius services.
All ShortGenius endpoints require a valid bearer token. If you haven’t already retrieved a token from your , follow the sign-up process mentioned in our .
How to include your token:
Example request:
ShortGenius will return standard HTTP status codes and JSON-encoded error messages when something goes wrong. Below are some common error types:
400
Bad Request
{"message": "Invalid request"}
401
Unauthorized
{"message": "Unauthorized"}
404
Not Found
{"message": "Not found"}
429
Too Many Requests
{"message": "Rate limit exceeded"}
500
Internal Server Error
{"message": "Something went wrong"}
Example of a 400 Response:
Always inspect the returned JSON for more details on why a request failed.
ShortGenius enforces usage limits via a credit-based system. Each time you generate a video, image, or audio file, credits are deducted from your account.
Types of credits include:
credits
– General-purpose for many actions
animated_video_credits
– Special tier for certain AI animations
image_credits
– Used specifically for image generation
high_quality_video_credits
– For higher resolution or advanced video rendering
Use the GET /credits
endpoint to see how many credits remain:
Sample response:
Next Steps You’re now ready to dig into ShortGenius’s core functionality. Let’s move on to to learn how to create short AI-driven clips from scratch.