Start
Quickstart
Get a key, make a first call, and continue the same conversation on a different model, in three steps.
You need an AlphaNeural account with a balance above zero: calls are refused with 402 while it is zero. Add funds from your wallet first if you have not already.
1. Get a key
Checking whether you are signed in…
Keys live on the API Keys page. To run the examples from a terminal as they are written, export your key first:
export ALPHANEURAL_API_KEY="sk-..."The Python and TypeScript examples use the official OpenAI SDK (pip install openai, npm install openai). Nothing else is needed.
2. Make a call
The base URL is https://backend.alfnrl.io/v1 and the model can be any id from the catalogue. This asks a small, cheap model to remember something:
The body is a standard OpenAI chat completion. The response also carries an X-Thread-Id header: the server started a thread for this conversation, and that is its id.
3. Continue on a different model
Send the id back with the next message, and name a different model:
The second model should tell you your name is Ada. It never saw the first request: the server rebuilt the conversation from the thread and sent it along with your new message.
Where to go next
- Threads and memory: how a thread is chosen, what the model sees, and how to read a thread back.
- Routing: let a cheap model try first, and escalate only when its answer fails a check.
- Billing: how prices work and where to check what you spent.