Skip to content

API reference / Billing

The plans and their limits

GET
/plans

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.

OK

Media typeapplication/json
object
items
required

Every plan, by id.

Array<object>

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
id
required

The plan’s identifier, as plan.id in getUsage. New plans may be added.

string
name
required

The plan’s name, for display.

string
limits
required
object
maxFileSizeBytes
required
integer format: int64
maxDurationSeconds
required

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.

integer
storageLimitBytes

The storage for source videos, as storage.limitBytes in getUsage.

integer format: int64
minutesLimitSeconds

The seconds of video you can analyse per period, as minutes.limitSeconds in getUsage.

integer format: int64
clipsLimit

The clips you can make per period, as clips.limit in getUsage.

integer
price

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
amount
required

The price per interval in the currency’s smallest unit (cents for EUR).

integer format: int64
currency
required

ISO 4217 currency code.

string
/^[A-Z]{3}$/
interval
required

How often the price is charged. New values may be added.

string
Allowed values: MONTH YEAR

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).

Media typeapplication/json
object
code
required

Stable machine-readable code. Clients branch on this, never on message.

string
Allowed values: VALIDATION UNAUTHENTICATED INVALID_TOKEN FORBIDDEN EMAIL_NOT_VERIFIED NOT_FOUND INVALID_STATE UPLOAD_INCOMPLETE QUOTA_EXCEEDED RATE_LIMITED UPSTREAM_ERROR CLIPS_NOT_CONFIGURED CLIPS_UNAVAILABLE INTERNAL
message
required

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.

string
details

Optional field-level or limit-level detail.

Array<object>
object
field

The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was hit.

string
message
required
string

Example

{
"code": "VALIDATION",
"message": "The file is larger than the limit of 2147483648 bytes.",
"details": [
{
"field": "sizeBytes",
"message": "must be at most 2147483648"
}
]
}

Unexpected error

Media typeapplication/json
object
code
required

Stable machine-readable code. Clients branch on this, never on message.

string
Allowed values: VALIDATION UNAUTHENTICATED INVALID_TOKEN FORBIDDEN EMAIL_NOT_VERIFIED NOT_FOUND INVALID_STATE UPLOAD_INCOMPLETE QUOTA_EXCEEDED RATE_LIMITED UPSTREAM_ERROR CLIPS_NOT_CONFIGURED CLIPS_UNAVAILABLE INTERNAL
message
required

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.

string
details

Optional field-level or limit-level detail.

Array<object>
object
field

The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was hit.

string
message
required
string

Example

{
"code": "VALIDATION",
"message": "The file is larger than the limit of 2147483648 bytes.",
"details": [
{
"field": "sizeBytes",
"message": "must be at most 2147483648"
}
]
}