install ยท curl / direct HTTP

Wire curl / direct HTTP into AdToken

Just an HTTP client โ€” no SDK, no CLI.

1
Install AdToken
curl -fsSL https://limitlesstokens.com/install.sh | sh
adtoken init
2
Watch ads
adtoken earn
3
Lane 1 โ€” Claude (BYO key)
Same shape as a direct Anthropic call โ€” just swap the host.
curl https://limitlesstokens.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "max_tokens": 512,
    "messages": [{"role": "user", "content": "hi"}]
  }'
4
Lane 3 โ€” Open (no BYO key, ad-funded wallet)
curl https://limitlesstokens.com/v1/openrouter \
  -H "x-adtoken-user: $ADTOKEN_USER_ID" \
  -H "content-type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4-pro",
    "messages": [{"role": "user", "content": "hi"}],
    "max_tokens": 200
  }'
Need the upstream documentation for curl / direct HTTP? https://docs.anthropic.com/en/api/messages โ†—

โ† back to all tools