Documents

Getting started

From sign-up to your first request

  1. Sign up and sign in to your Astra-api account.
  2. Check your balance on the Console dashboard. Usage is charged from it, and every request is itemised in Usage Logs.
  3. Create a token under API Tokens. You can limit its quota, expiry, models and IPs.
  4. Pick a model on the Models page, copy its name, and set the base URL to https://17astra.com/v1.
curl https://17astra.com/v1/chat/completions \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "Hello"}]}'

If your balance runs low, contact the site administrator to top up.