Documentation menu
AI Studio API

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.

GET
GET

Only same-origin /api/* paths are allowed.

Leave blank to use your current signed-in browser session. The key is never saved.

Response
Send a request to view its response here.

Credits-based API billing

FSG 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, output type, 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.

FSG API FAQ

Quick answers for setup, billing, video generation, image generation, and progress tracking.

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.

Does the API support AI video generation?

Yes. Current AI Studio endpoints can create generation tasks for configured video models. Check each model schema before sending payload fields.

Does the API support AI image generation?

FSG is positioned for image API workflows, but you should only use image generation fields and models that are exposed by the current model schema.

How do I check generation status?

After the execute endpoint returns taskId and statusSupported is true, poll /api/ai-studio/tasks/{taskId}?modelId={modelId}.

Where can I view generation history?

Use /api/ai-studio/video-history for paginated generation history.

What happens if I run out of credits?

New generation requests cannot continue when the account does not have enough credits.