Skip to content

Switch fromOpenRouter.

Change the base URL, the API key and the model id. The rest of the code stays. The balance is in Rupiah, topped up with QRIS from Rp1,000.

import osfrom openai import OpenAI client = OpenAI(    base_url="https://openrouter.ai/api/v1",    base_url="https://kenari.id/v1",    api_key=os.environ["OPENROUTER_API_KEY"],    api_key=os.environ["KENARI_API_KEY"],) reply = client.chat.completions.create(    model="deepseek/deepseek-v4.1-flash",    model="deepseek-v4-1-flash",    messages=[{"role": "user", "content": "Hello"}],)

What changes

BalanceUS dollars, card or crypto

Rupiah, QRIS from Rp1,000

Base URLopenrouter.ai/api/v1

kenari.id/v1

The Anthropic SDK and Claude Code use https://kenari.id without /v1

API keyOPENROUTER_API_KEY

KENARI_API_KEY

One key for every model

Model iddeepseek/deepseek-v4.1-flash

deepseek-v4-1-flash

Lowercase with hyphens, no vendor prefix. The list is at /v1/models

Fallbackmodels and provider

Named routes

Set them up in Provider & Rute, then send the route name as model

Free models:free

:free

No balance needed, with a daily request limit

Own keysBYOK

Provider

Your key or subscription (ChatGPT, Claude, SuperGrok) is billed Rp0

HeadersHTTP-Referer and X-Title

Not needed

Prices in Rupiah

Balance
Prices in Rupiah
Free modelsUsable without a balance, with a daily request limit
Loading prices

One coding agent request: 136,000 prompt tokens (97% from cache) and 900 output tokens, at the price billed for a prompt that size.

Every model and price

Paste to your agent

For Claude Code, Cursor, OpenCode and other agents.

Read https://kenari.id/llms.txt first. This project calls OpenRouter through an OpenAI-compatible SDK. Move it to kenari: set the base URL to https://kenari.id/v1, read the API key from the KENARI_API_KEY environment variable, and replace each OpenRouter model id with the matching kenari id from https://kenari.id/v1/models. Keep the key out of the code and leave the rest of the request code as it is.

Questions

Integration guide

Updated 29 November 2026

Where is the list of kenari model ids?
In the catalog and at the /v1/models endpoint. The ids are lowercase with hyphens and no vendor prefix. Docs
Do streaming and tool calling still work?
Yes, on the models that support them, in the same format as the OpenAI API. Docs
Are prices in Rupiah?
Yes. Per-million-token prices are listed in Rupiah in the catalog and the balance is charged in Rupiah, so there is no exchange-rate gap when you pay.
Do the provider, models and route fields still work?
Those fields only reach your own API keys. For fallback on the kenari balance, set up a named route in Provider & Rute and send its name as the model.
What if a provider has trouble?
kenari moves the request to a backup route on its own. Docs

Start free.

Free models to start · no credit card

Start free