Skip to content

Make your first API request

One base URL, one key and one set of rules for every NeuronAI product: speech, transcription, language models, embeddings and reranking.

How it works

  1. 01

    Create an API key on the API keys page of the dashboard. It is shown only once, so store it right away.

  2. 02

    Send every request to https://my.neuronai.uz/api/v1 with your key in the Authorization: Bearer header.

  3. 03

    Read the answer from data, and keep request_id for support. An error carries a stable error.code to decide by.

Authentication

Every endpoint takes the same key, sent as Authorization: Bearer nai_…. A key has full access or only the products you choose, as the API keys page explains. Reading voices is the one thing that also works without a key.

Example

A JSON answer holds data and request_id, and a list adds next_cursor. Audio comes back as WAV bytes, with the price and your balance in headers. The OpenAI- and Cohere-compatible endpoints keep their own bodies.

cURL
# Your balance, in credits
curl "https://my.neuronai.uz/api/v1/balance" \
  -H "Authorization: Bearer <your-api-key>"

# Spend and request counts over the last 30 days
curl "https://my.neuronai.uz/api/v1/usage?days=30" \
  -H "Authorization: Bearer <your-api-key>"

Prefer a library? Install an SDK for TypeScript, Python or PHP.

Rather work in an AI assistant? Use NeuronAI from Claude, ChatGPT or your CLI.