Skip to main content
POST https://api.naga.ac/v1/chat/completions takes the OpenAI Chat Completions format and serves every chat model in the catalog, whichever company made it. Point the OpenAI SDK, or any tool that asks for an OpenAI-compatible base URL, at https://api.naga.ac/v1.

Read the response

The response has the OpenAI shape. id starts with chatcmpl-, model is the catalog id even if you sent an alias, and choices always has one entry.

NagaAI additions

  • routing in the body and the x-naga-routing-strategy header, see Routing.
  • models, the fallback models to try when model can’t answer, see Fallback models.
  • message.reasoning_content and message.reasoning_details with the model’s reasoning, see Reasoning.
  • message.images with images from models that draw.
  • file.file_url and more input_audio formats, see Images and files.
  • max_tokens works as an alias of max_completion_tokens.

Ignored fields

NagaAI accepts and drops n, seed, logprobs, top_logprobs, logit_bias, user, store, metadata, prediction, audio, modalities and image_config. service_tier: "flex" keeps the request at the model’s base price, see Limit the price. functions and the function role fail with 400: use tools. More differences are in Differences from OpenAI and Anthropic.