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
routingin the body and thex-naga-routing-strategyheader, see Routing.models, the fallback models to try whenmodelcan’t answer, see Fallback models.message.reasoning_contentandmessage.reasoning_detailswith the model’s reasoning, see Reasoning.message.imageswith images from models that draw.file.file_urland moreinput_audioformats, see Images and files.max_tokensworks as an alias ofmax_completion_tokens.
Ignored fields
NagaAI accepts and dropsn, 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.