Quickstart

Quickstart

Four steps from zero to running.

1. Sign up

Create a free account at nexotao.com. Just an email and a password.

2. Top up your balance (QRIS)

Top up your Rupiah balance via QRIS, starting at Rp 10,000. The balance never expires and is deducted based on usage — no subscription.

3. Create an API key

In the dashboard, open API Keys and create a new key. It looks like sk-nexo-.... Keep it safe; the key is only shown in full once.

4. First request

Anthropic format (/v1/messages):

curl https://api.nexotao.com/v1/messages \
  -H "x-api-key: sk-nexo-..." \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "max_tokens": 256,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

OpenAI format (/v1/chat/completions):

from openai import OpenAI
 
client = OpenAI(base_url="https://api.nexotao.com/v1", api_key="sk-nexo-...")
 
resp = client.chat.completions.create(
    model="gpt-5-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
import OpenAI from "openai"
 
const client = new OpenAI({ baseURL: "https://api.nexotao.com/v1", apiKey: "sk-nexo-..." })
 
const resp = await client.chat.completions.create({
  model: "gpt-5-mini",
  messages: [{ role: "user", content: "Hello" }],
})
console.log(resp.choices[0].message.content)

Every response includes an X-Cost-Rp header (the actual cost in Rupiah) and X-Request-Id. See Billing & Pricing for details.

Next