Start here (no key)
2 endpoints at https://api.kosa8.com, sent with Authorization: Bearer $KOSA8_API_KEY. Generated from the API's own OpenAPI description, which a test holds to the router.
Start here with no key: run a small snippet in a kosa8 sandbox (no account, no browser, no CAPTCHA)#
/v1/try/agentpublicThe first operation for an AI agent that has no API key: it proves kosa8 runs code before anyone signs up. No Authorization header, never a Turnstile check. Each run: a fresh sandbox with no network, at most 60 s and 8 KiB of code (16 KiB of each output back), deleted after the run. Per network (an IPv4 address or IPv6 /64): 5 minutes of run time per 24 hours, 10 runs an hour, 100 a day; across all agents a daily cap. The answer is the same as POST /v1/try's: the run's output, a public run card (view_url) and a claim token the person can use on sign-up. When this network's free budget is used: 402 signup_required with {code, message, limit, upgrade_url, agent_message}; relay agent_message to the person word for word. When the daily cap across all agents is reached: 503 no_capacity with Retry-After (not a limit on you). To get a key with no CLI: POST /v1/auth/device {"client": "agent"}, give the person the link, poll POST /v1/auth/device/token (see that operation). After sign-up (free Starter, no card: that, kosa8 login or https://app.kosa8.com/signup), use the API key with POST /v1/run or POST /v1/sandboxes.
language"python" | "node" | "bash""python".coderequiredstringcurl -s -X POST https://api.kosa8.com/v1/try/agent \ -H 'Content-Type: application/json' -d @body.json
How to call POST /v1/try/agent: method, body, limits, an example curl, and this network's budget left#
/v1/try/agentpublicNo key needed. Fetch it first if unsure: it answers {method, url, body (JSON Schema), limits, errors, example, quota}.
Responsescurl -s -X GET https://api.kosa8.com/v1/try/agent