API for buyers

The API speaks the OpenAI format. Create a key in the app, Developers: one wallet signature, the key is shown once and spends that wallet's credits.

curl https://<this site>/api/v1/chat/completions \
  -H "Authorization: Bearer hr_..." \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen2.5-0.5b-instruct","messages":[{"role":"user","content":"Hello"}],"max_tokens":96}'
curl https://<this site>/api/v1/embeddings \
  -H "Authorization: Bearer hr_..." \
  -H "Content-Type: application/json" \
  -d '{"model":"all-minilm-l6-v2","input":["first text","second text"]}'

Behaviour

  • No streaming: the answer returns once two rigs agree. Calls wait up to about four and a half minutes.
  • If the job is still waiting, the response is HTTP 202 with the job id; poll GET /api/jobs/:id.
  • HTTP 402 means the wallet has too few credits. HTTP 502 means the rigs disagreed and the credits were refunded.
  • max_tokens is capped at 256. A saved model id from Tune works as model.
  • Every response carries a helirig object with the job id, the credits spent and the number of agreeing rigs.
Helirig is an independent product. It is not made or endorsed by Helius.