Documentation Menu
Quickstart
Go from zero to your first AIR response in 60 seconds.
1
Get an API Key
Grab a developer API key from the dashboard, or use direct x402 payment for paid requests.
2
Make your First Stream
Use `POST /v1/air` to send a natural-language query. Add `Accept: text/event-stream` if you want progressive planning and terminal events.
curl -X POST https://api.agentinternetruntime.com/v1/air \
-H "Authorization: Bearer air_platform_sk_..." \
-H "Accept: text/event-stream" \
-H "Content-Type: application/json" \
-d '{
"query": "weather in Berlin",
"cache_preference": "cached"
}'3
Parse the Results
AIR can return a structured `result`, an async `execution` job, a `capabilities` discovery payload, or a `no_match` response. If you request SSE, look for the terminal event to settle the UI.
See the SSE stream schema →