Skip to main content
1

Create an API key

Open API Keys in the dashboard and select Create API Key. The dashboard shows the key once, so copy it before you close the window.Paid models need a balance of at least 0.05 credits. Top up on the Credits page, or start with a model whose id ends in :free.
2

Install an SDK

If your code already uses the Anthropic SDK, keep it. The last step shows the Messages call.
3

Send a request

Point the SDK at https://api.naga.ac/v1 and pass your key.
The answer is in choices[0].message.content.
4

Or use the Anthropic SDK

The Anthropic SDK takes the host without /v1.

If the request fails

Other statuses are covered in Errors.