Quick Start

Start making AI API calls billed in IDR in under 5 minutes.

1
Create an account

Sign up with your email and company name.

Sign up →
2
Copy your API key

Your key is shown once after sign-up. It starts with nusara_sk_. You can generate additional keys from your dashboard at any time.

3
Top up your balance

Go to your dashboard and click Top Up. Minimum deposit Rp 10.000, paid via Midtrans (transfer bank, QRIS, kartu kredit).

4
Make your first API call

The API is OpenAI-compatible — drop in your key and change the base URL.

curl https://api.nusara.ai/v1/chat/completions \
  -H "Authorization: Bearer nusara_sk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o",
    "messages": [{"role": "user", "content": "Halo!"}]
  }'

Streaming

Add "stream": true for server-sent events.

curl https://api.nusara.ai/v1/chat/completions \
  -H "Authorization: Bearer nusara_sk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-mini",
    "messages": [{"role": "user", "content": "Halo!"}],
    "stream": true
  }'

Available models

See the models page for full pricing. Pass the model ID exactly as shown.

openai/gpt-4o
openai/gpt-4o-mini
anthropic/claude-opus-4-7
anthropic/claude-sonnet-4-6
anthropic/claude-haiku-4-5-20251001

SDK integration

Works with any OpenAI-compatible SDK — just set the base URL.

# Python
from openai import OpenAI
client = OpenAI(
    api_key="nusara_sk_...",
    base_url="https://api.nusara.ai/v1"
)

# Node.js
import OpenAI from "openai";
const client = new OpenAI({
  apiKey: "nusara_sk_...",
  baseURL: "https://api.nusara.ai/v1",
});

Errors

Errors follow the OpenAI format. A 402 means your balance is depleted — top up your account to resume.