Four layered, copy-pasteable API caller workflows. Each is self-contained and
uses documented atlas commands (auth, models, generate, chat).
| Script | Layer | What it shows |
|---|---|---|
01-minimal.sh |
Discovery-first call | Check auth, list model catalog entries, inspect a schema, then make one chat call. |
02-product-shot.sh |
Cost-aware generation | Estimate an image request, then start an async product hero image job. |
03-pipeline.sh |
Scripted pipeline | Idea → LLM prompts → cost checks → async image and video jobs. |
04-ci-json.sh |
CI JSON job | Authenticate from ATLASCLOUD_API_KEY, isolate credentials, validate a model, then emit JSON. |
-
Install the CLI — see the root README.
-
Install
jqif you want to run the JSON automation examples unchanged. -
Authenticate once:
atlas auth login # interactive atlas auth login --token "$ATLASCLOUD_API_KEY" # CI / non-interactive
Get a free key at the Atlas Cloud console.
chmod +x examples/*.sh
./examples/01-minimal.shFor CI:
ATLASCLOUD_API_KEY=... ./examples/04-ci-json.sh