Skip to main content
Everything the SDK and the command line do goes through this HTTP API, so you can use it from any language.

Authentication

Create an API key in the console on the API keys page. Only an owner of the organisation can create one, and a key belongs to one organisation. The secret is shown once.
Send it as a bearer token on every request. Keep it in a secret store; never commit it or put it in browser code. Revoke a leaked key on the same page and create another.

First call

org.credits is the balance: 4520 is $45.20. billing.prices has every model and method; one is shown here.

Errors

A failed request has a 4xx or 5xx status and a JSON body with a detail that says what to change. Most also carry a short error code.

Limits

  • 300 requests a minute.
  • 10 jobs queued or running at a time.
  • 50 datasets; 10 GB a file, 20 GB a bundle with images or videos.
  • 10 support requests a day.

Retries

These are safe to send again after a connection error or a 429, 502, 503 or 504:
  • every GET;
  • POST /v1/training/jobs with an Idempotency-Key header: the same key with the same body returns the same job. Once that job has failed, the key starts a new one;
  • cancels.
The SDK does this for you (three retries by default).

Polling

Nothing is pushed to you: poll. A job every 30 seconds or slower is enough. Events and logs take a cursor, so each poll returns only what is new.

SDK and command line

Each page of this reference shows the HTTP request with the matching Python and command-line call. Install both with:
The full list of calls is in Python SDK and CLI; every endpoint and training setting on one page is in All endpoints.