Testing All in One AI in the Sandbox at no cost: what each answer looks like

API & DocumentationPlayground & Tools·· 23 views· 3 min read

In short: with a sandbox_ key, the AI API answers in its usual format, but calls no model and charges nothing. Use it to write your program and set up each tool before spending points or credits. Before you put a client to work with AI reselling, start here.

What the Sandbox answers

Request What you get with sandbox_
Chat Always Resposta de teste (sandbox)., with usage at zero, streaming included.
Image, video or voice The generation is completed straight away, with a sample link in outputs and 0 credits.
Agents The same format, without calling the model or the tools.
Coding tools The test answer, in the format each one uses, without spending credits or points.
Model list, prices and balance The real ones.

Your first test, step by step

1 Create a sandbox_ key on the API page in Meu Interweb, with ai:read and ai:write.
2 Keep it in an environment variable, as in the example below.
3 Send a chat request. With curl -i you also see the headers: X-API-Mode says sandbox.
4 When the program or the tool is right, just swap the key for a prod_ one. The address is the same in both modes: the key decides.

export INTERWEB_API_KEY="sandbox_..."

curl -i https://api.interweb.ao/v1/chat/completions \
-H "Authorization: Bearer $INTERWEB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "deepseek-ai/deepseek-v4-flash", "messages": [{"role": "user", "content": "Hello"}], "max_tokens": 50}'

The model must exist in the catalogue, even in the Sandbox: GET /v1/models returns the real list, with each model's id.

Checking a coding tool

In the Sandbox, Claude Code, Codex CLI, Cursor and the others always get the test answer. That is enough to confirm the address, the key and the model. Claude Code uses the address without /v1:

export ANTHROPIC_BASE_URL="https://api.interweb.ao"
export ANTHROPIC_AUTH_TOKEN="$INTERWEB_API_KEY"

The other tools use https://api.interweb.ao/v1. If you get 404 not_found, the likely cause is an extra /v1 in Claude Code or a missing one in the others.

The Sandbox does not write code for you. With a sandbox_ key, the tool only gets the test answer. To work, switch to prod_. And guard the sandbox_ key just as carefully: it reads real data from your account.
Without writing code: in the documentation, every operation has a Playground button to send the request from your browser. Use your sandbox_ key there. See the API Playground. To see an agent's real answers without code, there is the «Try it» button in All in One AI, which spends credits. The differences between the two modes are in API Sandbox or Production.

Ready to test AI at no cost? See the AI reselling page and create your Sandbox key.

See AI reselling

SEE ALSO

API Sandbox or Production: what each key really does, and moving your program to production

The API Playground: trying a real request from your browser, step by step

The same API key for your clients: AI and the rest of our API with one key

Using the OpenAI SDK with All in One AI: only the address and the key change

AI reselling in the Reseller Program

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $6.59/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.