Skip to main content
Don’t hand your user’s access token to a sandbox. Mint a child token instead:
In the Python, Go, and cURL tabs, the subject token is the user’s access token. One call makes it from the refresh token you saved, and it lasts an hour: see Refresh. The Node client makes it for you. In the sandbox it is an ordinary API key: base URL DARI_GATEWAY_URL/v1 for OpenAI clients, DARI_GATEWAY_URL for Anthropic ones. A model or thinking level the connection can’t serve fails here, with invalid_target, before anything starts.

What A Child Token Can Do

It stops working when it expires or the user disconnects.

Network

The sandbox only needs HTTPS to your Dari gateway’s host. It never talks to OpenAI, Anthropic, or your app.

Get A Trial’s Cost

See Usage And Budgets.