Skip to main content

Gateway

Gateway

The Auton gateway is an OpenAI-compatible proxy. Point any compatible client at it — balances deduct per token from your forward compute balance.

For step-by-step agent integration (OpenAI SDK, LangChain, streaming, error handling), see For Agents.

Compatibility

The gateway proxies to OpenRouter-compatible model routes. Works with the OpenAI SDK, LangChain, Cursor, and any tool that accepts a custom baseURL and API key.

curl https://api.autonaisol.xyz/api/v1/gateway/v1/chat/completions \
  -H "Authorization: Bearer YOUR_AUTON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "deepseek/deepseek-chat", "messages": [{"role": "user", "content": "Hello"}]}'

Authentication

Create API keys in the dashboard. Keys start with auton_sk_, are hashed at rest, and passed as Bearer tokens. Each key is tied to your wallet and forward balances.

Billing

Usage is metered per token against your locked rate. When a forward balance hits zero, requests return 402 Payment Required — purchase more capacity on the marketplace to continue.