API reference
Every Pictograph SDK resource, one page each: every method with its REST endpoint and, where there is one, its CLI command, plus the conventions they share.
On this page
from pictograph import Client
client = Client() # reads PICTOGRAPH_API_KEY
REST examples send $PICTOGRAPH_API_KEY in the X-API-Key header, to paths under
https://api.pictograph.io/api/v1/developer/ unless noted. Every returned model:
Result models.
Resources
Data
| Resource | What it does | CLI |
|---|---|---|
| Datasets | Create and manage datasets: class balance, duplicates, downloads, cold storage | datasets |
| Directories | Create, rename and delete directories; read the tree and image counts | directories |
| Images | Upload, download, review, split and tag images; tile and augment them | images |
| Video | Upload a video and extract its frames into a dataset | video |
| Batch | Move, copy, delete or update up to 10,000 images in one call | images |
| Search | Find images by visual similarity or by auto-tag | search |
| Connectors | Import datasets from V7 or Roboflow | connectors |
| Explore | Browse public datasets and models, and import one | explore |
Labeling
| Resource | What it does | CLI |
|---|---|---|
| Annotations | Read, save and delete annotations; manage classes; import COCO, YOLO or Pascal VOC | annotations, classes |
| Annotation comments | Comment on one annotation; reply, react and resolve | annotation-comments |
| Tasks | List annotation tasks and each annotator’s work on them | tasks |
| Auto-annotate | Label dataset images with SAM3 prompts, or with SAM3 or a model as a batch job | auto-annotate |
| SAM3 | Run SAM3 on any image (a file, URL or bytes); nothing is saved | sam3 |
Train and evaluate
| Resource | What it does | CLI |
|---|---|---|
| Exports | Freeze a dataset into one of 12 formats, for training or download | exports |
| Training | Quote, start, follow and cancel training runs | train |
| Models | List, version, download and import models; test one on an image | models |
| Model evaluations | Score a model against an export: precision, recall, F1, mAP and a confusion matrix | models evaluate |
Serve
| Resource | What it does | CLI |
|---|---|---|
| Deployments | Serve a model on a GPU endpoint for requests and live streams, billed by uptime | deployments |
| Workflows | Detect, track, count and measure dwell on images, video, datasets and streams | workflows |
| Vision tools | List what your agent can call (SAM3, models, deployments, workflows) and how | tools |
| Webhooks | Receive signed, retried events at your HTTPS endpoint | webhooks |
Account and jobs
| Resource | What it does | CLI |
|---|---|---|
| Jobs | List, wait for and cancel any job your organization is running | jobs |
| Notifications | Read and clear your organization’s event feed | notifications |
| Credits | Check your balance, ledger and usage; estimate what an operation costs | credits |
| Organizations | Read your organization; manage its members and invites | organizations |
| API keys | Create, list, update and revoke API keys | api-keys |
Conventions
- Names - datasets, models, exports, training runs, deployments and workflows take a name (case-sensitive) or an id; images and directories a path; jobs, runs, tasks, evaluations and comments an id.
- The address first - a method’s first arguments say what it acts on; the rest are keyword-only.
- Paging -
.list()returns one page;.iter()fetches every page. - Long jobs - training, exports, batch auto-annotation, imports and frame extraction wait
until they finish (
wait=Falsereturns at once); a workflow run returns at once unlesswait=True. - Partial failure - a bulk method lists the items that failed instead of raising (reports).
- Retries - every write sends an
Idempotency-Key, so a retried call applies once.