Responses API.
1
Create an API key
- Open the NagaAI Dashboard.
- Go to API Keys.
- Create a new key.
- Copy it and store it securely.
2
Install the SDK
NagaAI acts as a drop-in replacement for OpenAI. You can use their official libraries.
3
Send your first request
Initialize the client with the NagaAI
base_url and your new API key.For new LLM apps, start with Responses API. It works well for simple text generation now and gives you a clean path to streaming, tools, structured outputs, and multimodal input later.4
Confirm the output
If the request succeeds, the response object will contain a text output item. You should see:
The capital of France is Paris.If you get 401 Unauthorized, make sure you used a standard API key and set the base URL to https://api.naga.ac/v1.Next Steps
Authentication
Learn which key to use for inference requests and account endpoints.
Choose an API
Decide when to use Responses, Images, Audio, Embeddings, Moderations, or a compatibility API.
Responses API
Keep building on the same API with streaming, tools, structured outputs, and multimodal input.
Models
Choose a model based on what you are building and what access your account has.