CLI
Every pictograph CLI command with examples, plus global flags, profiles, JSON output and exit codes for shell scripts and coding agents.
On this page
- Global options
- Inputs and outputs
- init / login
- profiles
- datasets
- images
- annotations
- classes
- annotation-comments
- auto-annotate
- sam3
- exports
- train
- models
- metrics
- deployments
- workflows
- augment
- tile
- explore
- connectors
- search
- video
- directories
- organizations
- api-keys
- webhooks
- tasks
- notifications
- jobs
- credits
- tools
- agents
- Output and exit codes
pictograph runs SDK operations from a shell; coding agents drive Pictograph through it
(Claude Code plugin, or pictograph init for an AGENTS.md).
pip install 'pictograph[cli]'
pictograph login # asks for your API key; writes ~/.pictograph/config.toml
pictograph datasets list
Global options
| Option | Where | What it does |
|---|---|---|
--profile <name> |
before the command | Runs as that profile |
--version, -V |
before the command | Prints the version |
--api-key <key> |
after the command | Uses this key instead of a profile |
--json |
after the command | Prints JSON; every command takes it |
--yes |
after the command | Skips the confirmation prompt |
--help |
anywhere | Lists a command’s arguments and options |
PICTOGRAPH_API_KEY |
environment | Sets the key when there’s no --api-key or --profile |
PICTOGRAPH_PROFILE |
environment | Sets the profile when there’s no --profile or key |
PICTOGRAPH_OUTPUT=json |
environment | Prints JSON from every command |
- Key - the first of
--api-key,--profile,PICTOGRAPH_API_KEY,PICTOGRAPH_PROFILEand the[default]profile (resolution order). - Names - datasets, models, exports, deployments and workflows take a name or an id; images their path; webhooks their URL or id.
- Lists -
--limit(-n) is how many rows you get, paged for you.tasks listandcredits historyreturn one page (up to 100) unless--all;notifications listandwebhooks deliveriesreturn one page (up to 100 and 200).
Inputs and outputs
- Images -
models predict,deployments predictandsam3 predicttake files, a quoted glob ('frames/*.jpg'),http(s)URLs or-(stdin).--videoruns a video’s sampled frames (--sample-fps, default 1; needs[inference]), and--dataset(with--directory) a dataset’s images, writing nothing back.--limitstops after that many. - One JSON line per input - with several images, or
--jsonl, each result prints as it finishes (a video frame addsframeandt, a dataset imageimage_id). A failed input’s line haserroranderror_code, the rest go on, and the exit code is 1; an error that would fail every input (key, role, credit) stops the run. - Drawings -
--drawonmodels predictanddeployments predictsaves each prediction drawn on its image: one image to a file, several into a folder, a video’s frames into one video (--draw out.mp4).--looktakes a preset (frost,smoke), JSON, or@look.json;--look '{"label": {"parts": {"confidence": true}}}'adds scores. - Selections - a bulk image change (
images move,copy,set-status,set-split,archive,restore) acts on exactly one of--images <id>,<id>,--from-file ids.txt(-for stdin), filters (--directory,--status,--split) or--all.--dry-runcounts and changes nothing. - Waiting - a command that starts a job waits unless
--no-wait. A wait that runs out exits 10 and leaves the job running: wait again (jobs wait), don’t start it again.
{"input": "frames/0001.jpg", "result": {"model_type": "object_detection", "predictions": []}}
{"input": "aisle.mp4", "frame": 15, "t": 0.5, "result": {"model_type": "object_detection", "predictions": []}}
{"input": "val/0042.jpg", "image_id": "7241531b-3b1b-4de6-a754-5750ef288754", "result": {"model_type": "object_detection", "predictions": []}}
{"input": "frames/0002.jpg", "result": {"model_type": "object_detection", "predictions": []}, "drawn": "drawn/0002.jpg"}
{"input": "https://example.com/a.jpg", "error": "Could not fetch the image ...", "error_type": "ValueError", "error_code": "invalid_input"}
init / login
pictograph init # drop an AGENTS.md template into ./
pictograph login # save an API key (input hidden)
profiles
pictograph login --profile research # save a second key
pictograph --profile research datasets list # run one command as it
export PICTOGRAPH_PROFILE=research # or every command here
pictograph profiles list # every key, masked
Keep one profile per key (a key belongs to one organization); each is a table in
~/.pictograph/config.toml (mode 0600). A profile’s key is only sent to the base URL it was saved
with. The Python SDK doesn’t read this file.
datasets
pictograph datasets list --json
pictograph datasets get road-signs --include-images
pictograph datasets insights road-signs # class balance, stages, dimensions
pictograph datasets duplicates road-signs -t 0.94 # near-duplicate clusters
pictograph datasets create road-signs --readme README.md -t bbox
pictograph datasets list --archived # the archived datasets
pictograph datasets update road-signs --name renamed
pictograph datasets update road-signs --license cc-by-4.0 --visibility public
pictograph datasets update road-signs --readme README.md # the dataset card ('-' reads stdin)
pictograph datasets archive road-signs # hide from the default list
pictograph datasets unarchive road-signs
pictograph datasets delete road-signs --yes
pictograph datasets download road-signs -o ./dump -w 10 # images + annotations
pictograph datasets download road-signs -o ./done --status complete # finished images only
pictograph datasets export road-signs --format coco -o ./exports # -o is a DIRECTORY
pictograph datasets import-coco road-signs ./instances.json # = annotations import-coco
pictograph datasets import-public pictograph-research/coco-5k --name coco-start # copy a public dataset; waits
pictograph datasets import-status <import-id> --wait # after import-public --no-wait
pictograph datasets storage road-signs # cold-storage state + restore quote
pictograph datasets freeze road-signs # cold storage (free)
pictograph datasets restore road-signs # charges compute credits
Reference: Datasets.
images
pictograph images list road-signs --directory /train --status complete
pictograph images list road-signs --split val --min-confidence-lt 0.4 # an annotation scored under 0.4
pictograph images upload road-signs ./photo.jpg --directory /cars
pictograph images bulk-upload road-signs ./a.jpg ./b.jpg --directory /cars
pictograph images upload-directory road-signs ./photos # keeps the folder tree; --by-class, --flat
pictograph images get road-signs 001.jpg
pictograph images download road-signs 001.jpg -o ./out.jpg
pictograph images delete road-signs 001.jpg --yes # archive; --permanent for good
pictograph images tag road-signs <image-id> -t blurry # ids; --remove to remove
pictograph images review road-signs 001.jpg # approve -> complete
pictograph images review road-signs 001.jpg --request-changes -n "fix bbox"
pictograph images split road-signs 001.jpg train # train | val | test | none
pictograph images rebalance road-signs # by the dataset's saved split; --train/--val/--test, --mode embedding
pictograph images move road-signs --to /val --directory /incoming --dry-run
pictograph images move road-signs --to /val --images <uuid>,<uuid> # a name already there gets -1
pictograph images copy road-signs --to /backup --split val --with-annotations
pictograph images copy road-signs --to-dataset signs-night --directory /night # another dataset
pictograph images set-status road-signs --to complete --directory /reviewed
pictograph images set-split road-signs --to val --directory /val # train | val | test | none
pictograph images archive road-signs --status new --yes # kept; restore brings back
pictograph images restore road-signs --all # among the archived images
Per-image commands take the dataset, then the image’s path (train/001.jpg). Bulk changes act on
a selection and report selected, processed and failed (exit 1 when
any failed). copy --to-dataset copies into an existing dataset, keeping annotations, tags, split
and stage.
annotations
pictograph annotations get road-signs 001.jpg
pictograph annotations save road-signs 001.jpg -f ./anns.json # JSON list, full overwrite
pictograph annotations bulk-save road-signs -f ./many.json # {"001.jpg": [...]}
pictograph annotations delete road-signs 001.jpg --yes
pictograph annotations rename-class road-signs car vehicle --yes
pictograph annotations merge-class road-signs van truck --yes # reassign, then drop `van`
pictograph annotations delete-class road-signs van --with-annotations --yes
pictograph annotations import-coco road-signs ./instances.json
pictograph annotations import-yolo road-signs ./export/train/labels # finds export/data.yaml
pictograph annotations import-yolo road-signs ./labels --classes classes.txt # or 'car,truck'
pictograph annotations import-voc road-signs ./Annotations
The imports label images already in the dataset, replacing each matched image’s annotations: a
file matches its image’s exact name, else the one image with its stem (a.txt labels a.jpg).
import-yolo needs the class names in order: --classes takes a data.yaml, classes.txt or
obj.names file, or car,truck (default: the first such file in or above the label folder).
Missing classes are added unless --no-create-classes.
Reference: Annotations.
classes
pictograph classes list road-signs # name, type, color, attributes, joints
pictograph classes add road-signs "stop sign" --type box --color '#e6194b'
pictograph classes add people person --type keypoint --skeleton person-skeleton.json
pictograph classes update road-signs "stop sign" --attributes sign-attributes.json
pictograph classes update road-signs "stop sign" --type box --clear-attributes
pictograph classes remove road-signs "stop sign" --with-annotations --yes
A class is a name and a type: car the box and car the polygon are two classes (--type picks
one). Without --color, a new class gets an unused color. --attributes takes a JSON list
([{"name": "occluded", "type": "checkbox"}]; types text, number, select with values,
checkbox); --skeleton a keypoint class’s joints and edges
(format). To rename or merge a class, use
annotations rename-class and merge-class, which update its annotations too.
annotation-comments
pictograph annotation-comments list road-signs 001.jpg --unresolved # open threads, with replies
pictograph annotation-comments add road-signs 001.jpg <annotation-id> "Is this a yield sign? @noah"
pictograph annotation-comments reply road-signs 001.jpg <comment-id> "Yes - relabelled."
pictograph annotation-comments edit <comment-id> "Yield sign, partly hidden."
pictograph annotation-comments resolve <comment-id> # --reopen opens it again
pictograph annotation-comments delete <comment-id> --yes
A comment is on one annotation, by its id (annotations get prints them). @username notifies
that member; - reads the text from stdin.
Reference: Annotation comments.
auto-annotate
pictograph auto-annotate point road-signs 001.jpg --x 120 --y 90 --name sign
pictograph auto-annotate box road-signs 001.jpg --box 10,20,200,150 --name sign
pictograph auto-annotate text road-signs 001.jpg --prompt "stop sign"
pictograph auto-annotate batch road-signs --images a.jpg,b.jpg \
--classes "person:bbox,car:polygon" --confidence 0.5 # waits unless --no-wait
pictograph auto-annotate batch road-signs --images a.jpg,b.jpg --model "Shelf Detector"
pictograph auto-annotate dataset road-signs --classes "stop sign:bbox" # every unlabeled image
pictograph auto-annotate dataset road-signs --classes car --directory /val --limit 500 --no-wait
pictograph auto-annotate dataset road-signs --model "Shelf Detector" --json
pictograph auto-annotate quote --dataset road-signs --images a.jpg,b.jpg \
--classes "person:bbox" # price it without running
pictograph auto-annotate similar road-signs val/001.jpg --class sign --quote
pictograph auto-annotate similar road-signs val/001.jpg --class sign --scope dataset
pictograph auto-annotate similar road-signs 001.jpg -a <annotation-id> --target sign \
--output-type bbox --no-wait
pictograph auto-annotate get <job-uuid>
pictograph auto-annotate cancel-batch <job-uuid> --yes
dataset drafts a dataset or one folder (5,000 images a job; run it again for the rest),
skipping annotated images unless --overwrite. similar labels every object like your example
polygons (2,000 images a job; --quote prices it first). quote --frames N prices images not
uploaded yet. Review drafts before you export: images list --min-confidence-lt 0.5 lists them.
Reference: Auto-annotate. For an image outside a dataset, use sam3 predict.
sam3
pictograph sam3 predict photo.jpg --text "red car" # every match
pictograph sam3 predict photo.jpg --box 120,80,200,160 --name car # it and every one like it
pictograph sam3 predict photo.jpg --point 320,240 --point 300,400,neg --output bbox
curl -s https://example.com/a.jpg | pictograph sam3 predict - --text forklift --json
pictograph sam3 predict 'shots/*.jpg' --text forklift --jsonl # one JSON line per image
pictograph sam3 predict --video clip.mp4 --sample-fps 1 --text person
pictograph sam3 predict --dataset my-dataset --directory /val --text car --limit 20
It prints what SAM3 finds and saves nothing. --confidence defaults to 0.3 (text), 0.5 (box)
or 0.75 (point).
Reference: SAM3.
exports
pictograph exports list --dataset road-signs --status completed
pictograph exports create road-signs --name v1 -f coco # waits unless --no-wait
pictograph exports create road-signs --name v1 -f yolo \
--include-images --organize-by-split # train/valid/test folders
pictograph exports get road-signs v1
pictograph exports download road-signs v1 -o ./out.zip
pictograph exports delete road-signs v1 --yes # needs an admin key
pictograph exports bulk-delete <export-uuid> <export-uuid> --yes
Reference: Exports.
train
pictograph train quote road-signs road-signs-v1 --pipeline rfdetr_detection --gpu auto
pictograph train start road-signs road-signs-v1 --pipeline yolox --gpu a10g
pictograph train start road-signs road-signs-v1 --pipeline rfdetr_segmentation \
--gpu a100 --config '{"epochs": 50}'
pictograph train start road-signs road-signs-v1 --pipeline rfdetr_detection \
--gpu auto --config config.json # a JSON object, or a JSON file
pictograph train list --status running
pictograph train status <run-uuid>
pictograph train wait <run-uuid> --timeout 7200
pictograph train cancel <run-uuid> --yes
pictograph train cancel-batch <run-uuid> <run-uuid> --yes
pictograph train augmentation-profiles yolox # the ops config.augmentation takes
start takes the dataset and a completed export. quote takes the same arguments, runs the
same checks and starts nothing; can_start: false still exits 0, with the reason on stderr.
Reference: Training.
models
pictograph models list --dataset road-signs --status ready --type object_detection
pictograph models get "Shelf Detector"
pictograph models update "Shelf Detector" --name "Signs v2" --visibility public
pictograph models download "Shelf Detector" -o ./yolox.onnx -f onnx
pictograph models predict "Shelf Detector" ./photo.jpg # local; needs [inference]
pictograph models predict "Shelf Detector" ./photo.jpg --remote # on Pictograph; free, one image
pictograph models predict "Shelf Detector" 'frames/*.jpg' https://example.com/a.jpg # several: JSON Lines
curl -s https://example.com/a.jpg | pictograph models predict "Shelf Detector" - --remote --json
pictograph models predict "Shelf Detector" --video aisle.mp4 --sample-fps 2 # a video's frames
pictograph models predict "Shelf Detector" --dataset shelves --directory /val --limit 100 # read-only
pictograph models predict "Shelf Detector" ./photo.jpg --draw photo.drawn.jpg # drawn in the annotation look
pictograph models predict "Shelf Detector" --video aisle.mp4 --draw aisle.drawn.mp4 --look smoke # a drawn video
pictograph models evaluate "Shelf Detector" --dataset shelves --export holdout --wait # score it
pictograph models evaluate "Shelf Detector" --dataset shelves --export holdout --precision fp16 --gpu l4
pictograph models evaluate-options # the GPUs (priced) and precisions it runs on
pictograph models evaluations "Shelf Detector"
pictograph models evaluation <evaluation-id> --report evaluation.json
pictograph models versions "Shelf Detector" # each version, its metric, the current one
pictograph models set-version "Shelf Detector" 1.0.0 # roll back (label, number or id); --clear unpins
pictograph models files "Shelf Detector" # ONNX / PyTorch / TensorRT / ExecuTorch, fp32 / fp16
pictograph models download-file "Shelf Detector" config.json -o config.json
pictograph models fork pictograph-research/pictograph-sceneparse150-m --name "Ours" # import a public model
pictograph models delete "Shelf Detector" --yes # needs an admin key
-f takes onnx (default), pytorch, safetensors, pte or engine. predict takes
images, a video or a dataset, locally (needs [inference]) or with
--remote on Pictograph (one image at a time, free within a daily limit). evaluate scores the
model against an export on its TensorRT engine; use an export it didn’t train on.
Reference: Models, Model evaluations.
metrics
pictograph metrics evaluate preds.json ground_truth.json --iou 0.5 # P/R/F1 + mAP
Scores predictions against labels locally, with no network or credits. Both files map an image
to its annotations ({"img.jpg": [...]}). In CI, read its --json to fail a build when mAP
drops.
deployments
pictograph deployments list # status + live state, GPU, precision
pictograph deployments get "prod-detector"
pictograph deployments compute-options # regions, GPU tiers (container, rate), precisions
pictograph deployments quote --gpu t4 --min-containers 0 --max-containers 2 --region us-west
pictograph deployments create "Shelf Detector" --name prod --region us-west --gpu t4 --wait # one-time token, once active
pictograph deployments create "Shelf Detector" --name prod-fast --gpu l4 --precision fp16
pictograph deployments wait "prod-fast" # provisioning -> active
pictograph deployments create "Shelf Detector" --name lobby --environment edge --wait # in the viewer's browser, on its GPU, at FP16
pictograph deployments edge-session lobby # what that browser runs it with
pictograph deployments edge-stream lobby --outputs '{"passive_capture": {"dataset": "Lobby frames"}}' # one of its streams, saving its frames
pictograph deployments predict "prod-detector" ./photo.jpg --token pk_deploy_...
pictograph deployments predict "prod-detector" 'frames/*.jpg' --token pk_deploy_... # JSON Lines
pictograph deployments predict "prod-detector" --video aisle.mp4 --token pk_deploy_... # a video's frames
pictograph deployments predict "prod-detector" 'frames/*.jpg' --token pk_deploy_... --draw drawn/ # each one drawn
pictograph deployments stream "prod-detector" rtsp://camera.example.com/live --token pk_deploy_... # live, JSON Lines
pictograph deployments stream "prod-detector" rtsp://camera.example.com/live --token pk_deploy_... --idle-timeout 5 # exit 9 after 5 s without a frame
pictograph deployments stream "prod-detector" rtsp://camera.example.com/live --token pk_deploy_... --no-stream # results only, no live view
pictograph deployments stream "prod-detector" rtsp://camera.example.com/live --token pk_deploy_... --confidence 0.3 # open at a confidence
pictograph deployments stream "prod-detector" rtsp://camera.example.com/live --token pk_deploy_... \
--outputs '{"passive_capture": {"dataset": "Dock frames", "every_s": 10}}' # save a frame every 10 s
pictograph deployments logs "prod-detector" --since 1h # its Live log: every session's records
pictograph deployments logs "prod-detector" --kind capture --since 1d --download captures/ # each capture's image
pictograph deployments logs "prod-detector" --since 10m --json | jq -r '.annotations[].name' # one record a line
pictograph deployments pause "prod-detector" # stops compute + billing
pictograph deployments resume "prod-detector" --wait
pictograph deployments update "prod-detector" --min-containers 1 --max-containers 3 # its autoscaling
pictograph deployments update "prod-detector" --readme "Dock cameras, 6am - 10pm." # its README (--name renames it)
pictograph deployments update "prod-detector" --rate-limit 6000 # a request limit, requests a minute (0 removes it)
pictograph deployments delete "prod-detector" --yes
createprints the token once and returns whileprovisioning;--wait(oncreateandresume) anddeployments waitwait untilactive(exit 1 if it fails, 10 on--timeout).predictwith--endpoint <url>needs only the token.streamprints a JSON line per frame from a camera (rtsp://,rtsps://, a WHEPhttps://URL) orwhip, until Ctrl-C,--framesor--seconds.--no-streamsends results without a live view;--no-overlaydrops the drawing (live view);--confidenceopens it at that confidence (Change the confidence);--outputssaves its frames into a dataset (passive_capturealone: Save a stream’s frames).edge-streamprints one stream of an edge deployment for you to run yourself, with its Passive capture when--outputsnames one.logsreads the deployment’s Live log, oldest first: a table of its first 100 records (--limit,0for every one), or with--jsonevery record as a JSON line.--sinceand--untiltakenow, a duration ago (10m,1h30m) or an ISO 8601 time;--kind,--class,--min-confidence,--sessionand--everyfilter at the server;--download DIRsaves each capture’s image;--cursorreads on from a record’s cursor or a gap’s backfill.--live(-f,--follow) prints each record as it arrives, until Ctrl-C.
Reference: Deployments, Streams.
workflows
pictograph workflows templates
pictograph workflows templates traffic -o graph.json
pictograph workflows nodes measure
pictograph workflows validate --graph graph.json
pictograph workflows validate --graph graph.json --dataset gate-cams # against the input a run would name
pictograph workflows create gate-crossings --template line_counter --region us-west # its endpoint, its token once
pictograph workflows list
pictograph workflows get "gate-crossings"
pictograph workflows create gate-crossings -g ./graph.json
pictograph workflows update "gate-crossings" -g ./graph.json # graph / name / readme / status
pictograph workflows update "gate-crossings" --gpu l4 # the GPU its endpoint runs on
pictograph workflows compute-options --region us-west # each GPU, its memory and price in a region; a model's precisions
pictograph workflows run "gate-crossings" --file ./gate.mp4 # each run names its input; waits unless --no-wait
pictograph workflows run "gate-crossings" --file ./gate.mp4 --write-video --outputs @outputs.json
pictograph workflows run "gate-crossings" --file ./gate.mp4 --stream --no-wait # its live view's pictures on
pictograph workflows run "gate-crossings" --dataset gate-cams --confidence 0.4 --no-wait # every model at 0.4
pictograph workflows run "gate-crossings" --file https://example.com/gate.mp4 --sample-fps 2
cat gate.mp4 | pictograph workflows run "gate-crossings" --file -
pictograph workflows run "gate-crossings" --dataset gate-cams --directory /north --no-wait
pictograph workflows run "gate-crossings" --export "Night shift" --no-wait
pictograph workflows runs "gate-crossings"
pictograph workflows run-status <run-uuid>
pictograph workflows logs "gate-crossings" --session <run-uuid> # the run's log
pictograph workflows logs "gate-crossings" --session <run-uuid> --kind frame --class car --min-confidence 0.5 --json
pictograph workflows cancel <run-uuid> --yes # keeps what it made so far
pictograph workflows delete "gate-crossings" --yes
pictograph workflows stream "gate-crossings" rtsp://camera.example.com/live --token pk_deploy_...
pictograph workflows stream "gate-crossings" whip --token pk_deploy_... --seconds 60
pictograph workflows watch <run-uuid> --token pk_deploy_... --stream # a run's frames, and its live view
pictograph workflows watch <run-uuid> --token pk_deploy_... --confidence 0.6 # move a running run's confidence
pictograph workflows stream "gate-crossings" rtsp://camera.example.com/live --token pk_deploy_... --write-video # on its run once it ends
pictograph workflows stream "gate-crossings" rtsp://camera.example.com/live --token pk_deploy_... --no-stream # results, events and outputs; no live view
pictograph workflows scale "gate-crossings" --max-containers 3 --scaledown-window 300
pictograph workflows pause "gate-crossings" # its streams and runs refused, nothing billed
pictograph workflows resume "gate-crossings" --wait
pictograph workflows deploy "gate-crossings" --region us-west --wait # a failed endpoint, again
pictograph workflows logs "gate-crossings" --live --kind event # its events as they happen
pictograph workflows logs "gate-crossings" --kind event --since 10m # its Live log: every run's and stream's records
pictograph workflows logs "gate-crossings" --session <run-uuid> --json # one run's, a JSON line each
pictograph workflows create gate-edge -g ./graph.json --environment edge # runs in the browser that opens it
pictograph workflows edge-session gate-edge # what that browser runs a stream of it with
createmakes the workflow’s endpoint, where its runs and streams run, and prints its token once (Endpoint).--gpu(t4orl4) sets its GPU; each Model block sets its own precision.- To write a graph, start from a template (
templates <key> -o), read each block’s settings (nodes <block>) andvalidateit (--dataset,--export,--videoor--imagechecks it against an input). runnames its input:--file(a path, anhttp(s)link or-),--datasetwith--directory,--export, or--video/--imagefor a link with no extension. A video is read at its own frame rate unless--sample-fpslowers it.- A run writes only its log unless
--outputs(JSON or@file.json) or--write-videoadds more (Outputs);streamtakes both, plus--no-stream. watchprints a run’s frames as JSON lines and where to watch its live view (--streamturns the picture on,--confidencemoves the run’s). Ctrl-C stops watching; the run goes on.run,streamandwatchtake--confidence(over 0, at most 1): every whole-frame model’s, in place of each Model block’s own.logsreads the workflow’s whole Live log, every run’s and stream’s records in one shape, live (--live) or as history, withdeployments logs’ flags (--sessiontakes a stream’s id or a run’s).create --environment edgemakes a workflow that runs in the browser of whoever opens its Run view, on that device’s GPU: no--gpu,--regionor scaling, no token.edge-sessionprints what a stream of it runs with (Edge).
Reference: Workflows.
augment
pictograph augment ops # every op and its flag
pictograph augment dataset road-signs --into road-signs-aug \
--multiplier 3 --flip --rotate 15 --brightness 0.2
pictograph augment dataset road-signs --grayscale --blur 2 \
--crop 0.8 --resize 640x480 --seed 42 # --seed for reproducibility
Reference: images.augment, Augment and tile.
tile
pictograph tile dataset aerial --into aerial-tiled -r 2 -c 2
pictograph tile dataset aerial --into aerial-tiled \
-r 3 -c 3 --overlap 0.1 --exclude-empty
Reference: images.tile.
explore
pictograph explore datasets --search coco --sort popular # the public catalog; REF column
pictograph explore datasets --class person -n 200 --json
pictograph explore dataset pictograph-research/coco-5k # card, license, every class
pictograph explore models --task instance_segmentation # public, ready models
pictograph explore model pictograph-research/pictograph-sceneparse150-m # card, license, classes
A public dataset or model is named org/name (the REF column). datasets import-public copies
a dataset into your organization; models fork copies a model.
Reference: Explore.
connectors
export PICTOGRAPH_SOURCE_KEY=… # the SOURCE provider's key, not yours
pictograph connectors validate v7 # list importable datasets
pictograph connectors check-limits --images 500 --bytes 100000000
pictograph connectors import v7 -d <source-dataset-id> # waits unless --no-wait
pictograph connectors status <import-id>
pictograph connectors cancel <import-id> # keeps imported images
Pass the source’s key in PICTOGRAPH_SOURCE_KEY, not on the command line (shell history).
Reference: Connectors.
search
pictograph search similar road-signs 001.jpg -n 20 -t 0.6 # visual similarity
pictograph search tags --dataset road-signs --object car # --object/--scene/--attribute
Reference: Search.
video
pictograph video upload ./clip.mp4 # prints the video's handle
pictograph video probe <video> # duration / fps / dimensions
pictograph video extract-frames road-signs <video> \
--directory /frames --sample-fps 1 # waits unless --no-wait
pictograph video status <job-uuid>
Reference: Video.
directories
pictograph directories list road-signs --parent /train # direct children
pictograph directories tree road-signs
pictograph directories stats road-signs /train # counts incl. subdirectories
pictograph directories create road-signs /train/positive # parents auto-created
pictograph directories rename road-signs /train/old new # NEW_NAME is one segment
pictograph directories delete road-signs /train/old --cascade --yes
--cascade moves the directory’s images up to its parent, then deletes it.
Reference: Directories.
organizations
pictograph organizations me # tier, credits, member cap
pictograph organizations update --name "New Name" --public
pictograph organizations members
pictograph organizations member-role <membership-uuid> --role admin
pictograph organizations member-remove <membership-uuid> --yes
pictograph organizations invites --status pending
pictograph organizations invite teammate@example.com --role member
pictograph organizations invite-revoke <invite-uuid>
member-role and member-remove take the membership id members prints.
Reference: Organizations.
api-keys
pictograph api-keys list # never shows a secret
pictograph api-keys create labeller --role viewer \
--save-profile labeller
pictograph --profile labeller datasets list # the agent's own key
pictograph api-keys get labeller
pictograph api-keys update labeller --rate-limit 1000
pictograph api-keys update labeller --inactive # off; --active is on
pictograph api-keys revoke labeller --yes
A key is named by its id, its prefix (pk_live_...) or its name. create prints the secret once;
--save-profile <name> saves it to that profile instead, e.g. to give an agent its
own key. list and get need a member key, the rest admin; no key creates one above its own
role. revoke can’t be undone.
Reference: API keys.
webhooks
pictograph webhooks event-types # subscribable events
pictograph webhooks create https://example.com/hook -e workflow_run.completed
pictograph webhooks create https://example.com/hooks/dock -e deployment.frames -e capture.saved \
--filters '{"deployments": ["loading-dock"], "classes": ["forklift"]}' # the Live log's frames and captures
pictograph webhooks list
pictograph webhooks get https://example.com/hook
pictograph webhooks update https://example.com/hook --disabled
pictograph webhooks rotate-secret https://example.com/hook # a new secret
pictograph webhooks test https://example.com/hook # synthetic signed event
pictograph webhooks deliveries --endpoint https://example.com/hook --status failed
pictograph webhooks replay <delivery-uuid>
pictograph webhooks delete https://example.com/hook --yes
create and rotate-secret print the signing secret; the app shows it again under
Settings → Webhooks.
--filters (JSON or @file.json; '{}' clears them on update) chooses what the Live log’s
deployment.frames, capture.saved and session.status send
(Live log events).
Reference: Webhooks.
tasks
pictograph tasks list --limit 25
pictograph tasks list --all --max-total 500 # every task, page by page
pictograph tasks contributions <task-id> # per-annotator breakdown
pictograph tasks contributions <task-id> --json
contributions prints each annotator’s images, editing time and annotations.
Reference: Tasks.
notifications
pictograph notifications list --unread
pictograph notifications unread-count
pictograph notifications read <notification-id>
pictograph notifications read-all
pictograph notifications delete <notification-id>
Reference: Notifications.
jobs
pictograph jobs list # queued + running, every kind
pictograph jobs list --status all --type training -n 20 # history of one kind
pictograph jobs get <job-id> --json
pictograph jobs wait <job-id> --timeout 1800 # exit 0 completed, 10 still running
pictograph jobs cancel <job-id> # through the route for its kind
Every kind of job in one list: training, auto-annotation, workflow runs, evaluations, exports,
imports, frame extraction and bulk image changes. The cancel column marks the ones
jobs cancel can stop.
Reference: Jobs.
credits
pictograph credits balance --json
pictograph credits history --all --max-total 5000 # the whole ledger, page by page
pictograph credits usage -r week # day / week / month / all
pictograph credits estimate training_a10g -q 30
Reference: Credits.
tools
pictograph tools list # every tool you can call
pictograph tools list --kind workflow --json
pictograph tools describe sam3 # the card, as Markdown
pictograph tools describe "model/Shelf Detector" --json # the card, for an agent
pictograph tools describe "workflow/Door counter"
A card gives the tool’s inputs, a sample prediction, the exact calls and what each costs.
Reference: Vision tools.
agents
pictograph agents list-tools # all 38 tools (--json for the full list)
pictograph agents export-tools -o tools.json # JSON Schema dump
pictograph agents install-skill --target claude-code # ~/.claude/skills/pictograph-cv/
pictograph agents install-skill --target claude-ai # ./pictograph-cv.zip
In Claude Code, the plugin installs the skill and your key at once.
Reference: Agent tools.
Output and exit codes
A list prints a table and a single object prints JSON; --json prints the SDK’s JSON, ready for
jq:
for ds in $(pictograph datasets list --json | jq -r '.[].name'); do
pictograph exports create "$ds" --name nightly -f coco --no-wait
done
Every failure exits with the code for its kind:
| Code | Meaning | What to do |
|---|---|---|
0 |
Success | - |
1 |
Failed: a job ended failed or cancelled, some inputs of a batch failed, or a confirmation was declined |
Read the error; pass --yes to skip a confirmation |
2 |
No API key, an unknown profile, or the key was refused (401) | Run pictograph login, set PICTOGRAPH_API_KEY, or pick a profile from profiles list |
3 |
The key’s role or the plan doesn’t allow it (403) | Use a key with a higher role, or upgrade |
4 |
Not found (404) | Check the name; names are case-sensitive |
5 |
Conflicts with the current state (409): it already exists, the dataset is in cold storage, or a job hasn’t finished | Fetch what exists, restore the dataset, or wait |
6 |
Invalid input: a bad flag or value, a missing or malformed file, or the API refused the request (400 / 422) | Fix the arguments; --help lists them |
7 |
Not enough compute credit (402) | Buy credits in Settings → Usage, or upgrade |
8 |
Rate limited (429) | Wait retry_after seconds, then retry |
9 |
Unavailable: a server or network error, a timeout, or a stream with no frame for --idle-timeout |
Retry later; for a stalled stream, check the camera or connection |
10 |
A --wait ran out of time; the job keeps running |
Wait again (jobs wait); don’t start it again |
130 |
Interrupted (Ctrl-C) | - |
A failure prints error: ... on stderr. With --json (or PICTOGRAPH_OUTPUT=json) it’s one line
of JSON on stderr, so stdout stays empty for a pipe:
{"error": {"code": "not_found", "message": "Dataset 'shelf' not found", "exit_code": 4, "type": "NotFoundError", "status": 404, "retry_after": null, "details": null, "fix": "...", "docs_url": "...", "request_id": null}}
Every key is always present (null when it doesn’t apply). code is the API’s error code, or
the failure’s kind (not_found, invalid_input, job_failed, wait_timeout, …); details
adds context, such as required_micro_usd on exit 7.
pictograph train wait "$RUN" --timeout 600
case $? in
0) echo "trained" ;;
10) echo "still training - wait again later" ;;
7) echo "out of credit - ask a person to top up" ;;
*) echo "failed" ;;
esac