Billing and FAQ
Learn how API credits are charged and review common integration questions.
API playground
Send a real request to this site and inspect the HTTP response immediately.
Send a request to view its response here.Credits-based API billing
Generation requests reserve and settle credits through the existing AI Studio generation flow.
API usage is billed with credits.
Each generation can consume credits based on the selected model, duration, quality, resolution, and pricing row.
Users can check remaining credits from the account or /api/auth/user.
Generation is blocked when the account has insufficient credits.
AI Studio API FAQ
Quick answers for setup, billing, and generation progress.
How do I get an API key?
Log in, open the API Keys dashboard, and create an active key. Use it as Authorization: Bearer YOUR_API_KEY.
How do I authenticate API requests?
Send the API key in the Authorization header using the Bearer format on every request.
How is API usage billed?
Generation calls use account credits. The consumed amount depends on the model and selected pricing options.
How do I check video generation status?
After the execute endpoint returns taskId and statusSupported is true, poll /api/ai-studio/tasks/{taskId}?modelId={modelId}.
Where can I view my generation history?
Use /api/ai-studio/video-history for your paginated generation history.
What happens if I run out of credits?
New generation requests cannot continue when the account does not have enough credits.
Can I use the API for commercial projects?
The API can be integrated into production workflows, subject to your account plan and the service terms.
Does the API support different video models?
Yes. Available model IDs are the models configured in config/ai-video-studio.ts.