Docs
Robot policies, served over an API. You send camera images and joint state; we return the next two seconds of motion. Your code runs the control loop.
01Start here
One listed model: agi-wfm/so101-ttt, a world model post-tuned to play tic-tac-toe on an SO-101 arm. In rendered simulation it succeeds 117 times in 180 (65 %); it has not been measured on a real arm yet. SO-101 only today.
It runs on our own GPU. Your client reaches it through a Zenoh router in the cloud; the API on this site leases it, meters it and bills it.
02Your first call
Sign in on the keys page and create a key; it is shown once. Then, with Python 3.12, one call with synthetic inputs, nothing moves, 32 actions = $0.0032:
python3.12 -m venv .venv && source .venv/bin/activate pip install agi-diy agi login --url https://platform.xsi.here # paste the key agi run agi-wfm/so101-ttt --probe -n 1 # black frames + a zero state
agi login --url saves the key and this API's address to ~/.agi/credentials; every later command uses both. Or set AGI_API_URL and AGI_API_KEY in the environment.
What comes back is a chunk: 32 rows × 6 joints at 15 Hz, 2.13 s of motion. Each row is one target per joint (shoulder_pan … gripper) in normalized units (arm −100…100, gripper 0…100), never degrees.
03The loop
A session leases one running copy of the policy. Create it, connect within 60 s, then repeat: send front + wrist frames and the six-value state, get a chunk, execute it. Idle costs nothing; every returned action costs one token, executed or not.
Do not wait for a chunk to finish: send the next observation while motion is still queued. agi rollout asks for the next chunk when 0.75 s of motion is left, so a call has about 750 ms whatever the horizon.
--robot.disable_torque_on_disconnect=false.04Your robot
Two cameras named like the model's, front and wrist, 640 × 480; a six-value state; normalized units. LeRobot defaults to degrees: pass --robot.use_degrees=false. Dry run first; a returned chunk is not proof it is safe to execute.
agi rollout agi-wfm/so101-ttt --dry-run -- \
--robot.type=so101_follower --robot.use_degrees=false \
--robot.port=/dev/tty.usbmodemYOUR_ARM \
--robot.cameras='{
"front": {"type": "opencv", "index_or_path": 0, "width": 640, "height": 480, "fps": 30},
"wrist": {"type": "opencv", "index_or_path": 1, "width": 640, "height": 480, "fps": 30}
}'Drop --dry-run when the ranges check out, and keep the workspace clear.
05Your own code
import agi # pip install agi-diy; uses the URL and key saved by `agi login --url` with agi.Policy("agi-wfm/so101-ttt") as session: chunk = session.predict({ "observation.state": state, "observation.images.front": front, "observation.images.wrist": wrist, }) # (32, 6) float32
The lease itself is REST, with the key as a bearer token:
curl -s https://platform.xsi.here/v1/sessions \ -H "authorization: Bearer $AGI_API_KEY" \ -H "content-type: application/json" \ -d '{"model":"agi-wfm/so101-ttt"}' # → {"id":"ses_…","zenoh":{"endpoints":[…]},"deployment":"d_…",…} curl -s -X DELETE https://platform.xsi.here/v1/sessions/$SESSION \ -H "authorization: Bearer $AGI_API_KEY" # lease and bill stop here
Also: GET /v1/models (live list, no key), GET /v1/me, GET /v1/usage, GET /v1/sessions. The browser WebSocket wire and session traces are not on this platform yet; use the Python SDK or LeRobot.
Coding agents
claude mcp add --transport http xsi https://platform.xsi.here/mcp \
--header "Authorization: Bearer $AGI_API_KEY"Without a key the agent gets the docs and the model list; with one it can lease sessions.
06Cost and limits
One action = one token = $0.0001. The flagship returns 32 actions per call: $0.0032. New accounts receive 200,000 tokens ($20) once; there is no self-serve top-up yet. At zero, running sessions end with end_reason: credits and new leases answer 402 insufficient_credits.
- A session lives 60–3600 s (
ttl_s, default 600) and must connect within 60 s. - REST bodies are at most 16 KB.
- A runner silent for 60 s ends its sessions with
runner_lost. - One slot today: when it is busy a lease answers
409 no_slots, never a different model.
07Errors
Errors are {"error":"<code>","message":…}, plus retry_after_s when waiting helps, doc_url pointing at its row here, and an x-request-id header to quote.
| if you see | do |
|---|---|
| Sign in again or create a key; a shown-once key cannot be recovered. | |
| The grant is spent; no self-serve top-up yet. | |
Not your side: wait retry_after_s and check status. | |
Wrong id, another account's, or over. See GET /v1/models and end_reason. | |
message and param name the field; nothing is clamped or guessed. | |
Your hf: repo against the rules, or too many requests; message names the file or cap. |