Versioning
How the API grows without breaking the code you have already written.
The version is in the path
Every endpoint starts with /v1. Code written against v1 keeps working against v1: we don't change the meaning of a field, remove one, or rename an endpoint inside a version.
What changes within v1
We add to v1 all the time, without a new version. These are not breaking changes:
- New endpoints, products and models.
- New optional request fields, and new fields in responses and webhook events.
- New event types, error codes and enum values (for example a new resolution or aspect ratio).
- Better wording in error messages.
What counts as a breaking change
Removing or renaming a field or endpoint, changing a field's type or meaning, making an optional field required, or changing the defaults of a request. Changes like these only ever come in a new version, such as /v2, which you move to when you choose.
Deprecation notices
A new version is announced in the changelog and by email to every account well ahead of time, with a guide to moving across. The old version keeps running while you move. Prices are not part of the version: they are on the pricing page and every job tells you its own.