Skip to main content

One key, three request formats

NagaAI accepts the three chat formats that most SDKs and tools already speak. Every chat model in the catalog works on all three endpoints. Pick the format your code uses, not the one the model’s vendor uses. Images, audio, embeddings and moderation have their own endpoints in the OpenAI format. See Choose an API.

Models

GET /v1/models lists every model with its id, price, context window and input types. A request names a model by its id or by one of its aliases. Model ids that end in :free cost nothing and share one rate limit per account. See Models.

Providers and routing

Most models are served by more than one provider. For each request NagaAI chooses a provider, and if that provider fails it moves the request to another one. You never see which provider answered. You can ask NagaAI to prefer speed, time to first token or cache hits with a routing strategy. See Routing.

Credits

NagaAI bills in credits, and one credit costs one US dollar. NagaAI charges each request for the tokens it used, at the model’s published price. A request that fails before the answer reaches you costs nothing. See Billing.

Keys

An API key calls models. A provisioning key manages the account through the /v1/account/* endpoints and cannot call models. See Authentication.