Getting started
Quick start with the FrankLab API: base URL, key, first request.
Getting started with the FrankLab API
The FrankLab API is the programmatic interface to the content generation platform. A single partner API key unlocks generation (video, images, audio, text) and every billing operation: balance, transactions, tariffs, cost estimates and exports.
Base URL
https://apergrex.ru/franklab/api
The same API is served at https://franklab.ru/franklab/api.
Get an API key
- Sign in to the apergrex.ru cabinet and open Settings → API.
- Click "Create key" — you receive a value like
fl_live_…. - The raw key is shown exactly once — store it immediately. Treat it like a password: it grants access to your balance and partner operations.
Keys can also be managed programmatically — see API reference → api-keys.
First request
Check the balance:
curl -H "X-API-Key: $FRANKLAB_KEY" \
https://apergrex.ru/franklab/api/v1/billing/balance
Response:
{
"available": 413.5,
"total": 500,
"used": 86.5,
"reserved": 0,
"isLow": false,
"updatedAt": "2026-09-04T12:00:00.000Z"
}
Cost before you launch
Before running a generation, request an exact quote at your tariff:
curl -X POST -H "X-API-Key: $FRANKLAB_KEY" -H "Content-Type: application/json" \
-d '{"modelId":"mars-v1-5","duration":5,"resolution":"720p"}' \
https://apergrex.ru/franklab/api/v1/billing/pricing/estimate
The estimate charges nothing and starts no tasks.
Next steps
- Authentication — keys, headers, limits
- Billing — balance, reservations, transactions, tariffs
- API reference — every endpoint
- Pricing — the base price list
For AI agents/en/docs.md