Quickstart
Addresses and samples are below. Model ids, credit, and prices come from the console.
You need
- A console account
- An API key you keep to yourself
- A client that speaks the OpenAI or Anthropic protocol
Addresses
OpenAI-compatible clients use https://api.axonhop.com/v1. Some Anthropic clients append /v1 themselves; for those, use https://api.axonhop.com. Send the key as Authorization: Bearer or as x-api-key. Do not put the key in the query string.
Environment variables
If your tool reads environment variables, this is a common shape. Use the names that tool documents.
OPENAI_BASE_URL=https://api.axonhop.com/v1
OPENAI_API_KEY=YOUR_API_KEY
ANTHROPIC_BASE_URL=https://api.axonhop.com
ANTHROPIC_API_KEY=YOUR_API_KEY Samples
curl https://api.axonhop.com/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "MODEL_ID", "messages": [{"role": "user", "content": "Hello"}] }' YOUR_API_KEY and MODEL_ID are placeholders. Do not commit a real key.
Anthropic-compatible sample
One common shape for /v1/messages. Extra fields, if any, depend on your client and the console.
curl https://api.axonhop.com/v1/messages \ -H "x-api-key: YOUR_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "MODEL_ID", "max_tokens": 256, "messages": [{"role": "user", "content": "Hello"}] }' Model id
MODEL_ID in the samples is not a real model. Copy a current id from the console. Families are listed on the home page.
Credit
Before you call, add credit in the console with USDC on Arbitrum and Base. This page does not state amounts.