API reference / Billing
The plans and their limits
Every plan with the limits it sets, as getUsage reports them for the plan you are on, and
for a plan you can buy, its price. Your current plan is plan.id in getUsage.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
object
Every plan, by id.
A plan and the limits it sets. A limit that is absent is not set by the plan. Test accounts have none of the plan’s limits on storage, minutes and clips.
object
The plan’s identifier, as plan.id in getUsage. New plans may be added.
The plan’s name, for display.
object
The longest video an analysis may have, in seconds. After the start, the whole video is read
to measure its length. An analysis of a longer video ends FAILED, without results, before
it is processed, and so does one that can’t be read as a video. Its start doesn’t count.
The storage for source videos, as storage.limitBytes in getUsage.
The seconds of video you can analyse per period, as minutes.limitSeconds in getUsage.
The clips you can make per period, as clips.limit in getUsage.
What the plan costs. Present only for a plan you can buy now, in the web app; absent for a free plan, and for any plan while buying is not available.
object
The price per interval in the currency’s smallest unit (cents for EUR).
ISO 4217 currency code.
How often the price is charged. New values may be added.
Example
{ "items": [ { "id": "creator", "name": "Creator", "limits": { "maxFileSizeBytes": 2147483648, "maxDurationSeconds": 1800 }, "storageLimitBytes": 50000000000, "minutesLimitSeconds": 36000, "clipsLimit": 100, "price": { "amount": 1900, "currency": "EUR", "interval": "MONTH" } } ]}Missing, invalid or expired credentials (UNAUTHENTICATED).
object
Stable machine-readable code. Clients branch on this, never on message.
Human-readable, safe to show to the user. For VALIDATION with a single detail, it states
that detail’s reason, naming the field where the reason needs it; with several, it is
generic and details lists them.
Optional field-level or limit-level detail.
object
The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was
hit.
Example
{ "code": "VALIDATION", "message": "The file is larger than the limit of 2147483648 bytes.", "details": [ { "field": "sizeBytes", "message": "must be at most 2147483648" } ]}default
Section titled “default”Unexpected error
object
Stable machine-readable code. Clients branch on this, never on message.
Human-readable, safe to show to the user. For VALIDATION with a single detail, it states
that detail’s reason, naming the field where the reason needs it; with several, it is
generic and details lists them.
Optional field-level or limit-level detail.
object
The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was
hit.
Example
{ "code": "VALIDATION", "message": "The file is larger than the limit of 2147483648 bytes.", "details": [ { "field": "sizeBytes", "message": "must be at most 2147483648" } ]}