Skylark SDK
Skylark SDK

Quickstart

From nothing to a detection in about a minute.

1. Get a key

Create one on the API Keys page and choose how long it lasts: 1 day, 7 days, 4 weeks or 2 months. A key looks like skl_ followed by 40 letters and digits — 44 characters in all. It is shown once, so copy it straight away; only a hash of it is stored. You can hold up to five active keys and revoke any of them at any time, which takes effect on the very next call.

The playground runs on a key too: paste one in (or click Use in playground right after creating it) and every run is made with it, exactly as your code would — billed, rate-limited and listed in usage under that key. The playground keeps it for that browser tab only.

2. Pick a model

A model is one detector — CFAM-CCTV for fixed cameras, CFAM-Aerial for drone footage, and so on — and one call returns everything it detects. List them from the catalog, or browse them in the playground.

curl https://sdk.skylarklabs.ai/v1/catalog | jq '.models[] | {model: .id, detects}'

3. Run it

curl -X POST https://sdk.skylarklabs.ai/v1/infer/image \
  -H "Authorization: Bearer $SKYLARK_API_KEY" \
  -F "model=CFAM-CCTV" \
  -F "file=@street.jpg"

The result names the model that ran and carries every detection of every class, counts per class, plate text and PPE flags on the detections they belong to, and a crowd block. Keep what you need by filtering on class.

Boxes come back both in pixels (bboxPx, in the resolution the service analysed) and normalised to 0–1 (bbox). Draw with the normalised pair so your overlay does not depend on the service's resize decisions.

4. Or from code

Every client is a single dependency-free file, served by the API itself, so the one you download always matches the build you are calling.

curl -O https://sdk.skylarklabs.ai/v1/sdk/python
from skylark_models import Skylark

sky = Skylark("skl_...")
model = sky.models.load("CFAM-CCTV")
result = model.predict("street.jpg")
people = [d for d in result["detections"] if d["class"] == "person"]