APERGREXDocumentation
Sections

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

  1. Sign in to the apergrex.ru cabinet and open Settings → API.
  2. Click "Create key" — you receive a value like fl_live_….
  3. 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

For AI agents/en/docs.md