INhillstribe docsDashboard →

Kura API

One API key for the leading AI models: DeepSeek today, with OpenAI, Anthropic, Google Gemini and Kimi coming soon. It speaks the OpenAI API (and the Anthropic Messages API). Every account gets a key and $1 of free usage; after that you pay only for what you use, from your Hillstribe balance.

New here? Follow the four steps below. Then see Models, the DeepSeek guide, or how to run DeepSeek in an agent harness (Hermes, Claude Code, OpenCode, Aider, Cline…).

1. Sign up and verify your email

There's nothing to enable and no approval to wait for: every Hillstribe account gets Kura automatically. When you verify your email address (Google sign-ins are verified already), you get $1 of free Kura usage. The free credit only works for Kura, and it's used before your balance.

2. Copy your API key

Open Products → Kura API. Your first key, named default, is waiting there. Copy it and press I've saved it. After that it's never shown again. Lost it? Revoke it and create a new one under API keys. Give each app its own key (for example laptop or n8n-prod) so you can revoke one without breaking the others. Keys start with sk-. Keep them in an environment variable rather than in code:

shell
export KURA_API_KEY="sk-..."

3. Make your first request

Base URL: https://kura.hillstribe.tech/v1. Send the key as Authorization: Bearer <key>.

curl
curl https://kura.hillstribe.tech/v1/chat/completions \
  -H "Authorization: Bearer $KURA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4-flash",
    "messages": [{"role": "user", "content": "Say hello in Nepali"}]
  }'
Python · pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://kura.hillstribe.tech/v1", api_key=os.environ["KURA_API_KEY"])

r = client.chat.completions.create(
    model="deepseek/deepseek-v4-flash",
    messages=[{"role": "user", "content": "Say hello in Nepali"}],
)
print(r.choices[0].message.content)
Node.js · npm i openai
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://kura.hillstribe.tech/v1", apiKey: process.env.KURA_API_KEY });

const r = await client.chat.completions.create({
  model: "deepseek/deepseek-v4-flash",
  messages: [{ role: "user", content: "Say hello in Nepali" }],
});
console.log(r.choices[0].message.content);

4. Choose a model

Every model name has the form provider/model, such as deepseek/deepseek-v4-pro, anthropic/claude-sonnet-5-5 or openai/gpt-5.4-mini. Put it in the model field of the request body. This works with every SDK and tool.

If a tool can't set the model field, put the model in the URL instead. Slashes are fine:

POST https://kura.hillstribe.tech/v1/deepseek/deepseek-v4-flash/chat/completions

Your dashboard lists the models your account can use, and GET /v1/models returns the gateway catalog. The full list and tips are on Models.

Streaming

Add "stream": true to get tokens as server-sent events, exactly like the OpenAI API.

Python
stream = client.chat.completions.create(
    model="deepseek/deepseek-v4-flash",
    messages=[{"role": "user", "content": "Write a haiku about the Himalayas"}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Endpoints

EndpointUse
POST /v1/chat/completionsChat (OpenAI format). Streaming, tools and JSON mode all work
POST /v1/<provider>/<model>/chat/completionsSame, with the model in the URL
POST /v1/messagesAnthropic Messages format, for any model (used by Claude Code). Also /v1/messages/count_tokens
POST /v1/responsesOpenAI Responses API
POST /v1/completionsLegacy text completions
POST /v1/embeddingsEmbeddings (when an embedding model is on your list)
GET /v1/modelsModel catalog
POST /v1/videosSeedance video (async): create, then GET /v1/videos/<id> and /content

For the Anthropic format, use the host without /v1 as the base URL (https://kura.hillstribe.tech). Send the key as Authorization: Bearer or x-api-key.

Pricing & billing

There's no monthly fee. Each request costs the provider's list price plus a small margin (shown on the Kura dashboard page). It's taken from your $1 free credit first, then from your Hillstribe balance. To add funds, top up under Billing (bank transfer or QR in NPR, credited in USD once we confirm it). The dashboard shows your free credit, your balance and usage per model for the current month. It updates about every 5 minutes.

We notify you when you're running low. When the free credit and your balance are both used up, requests stop with budget_exceededuntil your next top-up is confirmed, and then they work again automatically. Parameters a provider doesn't support are dropped quietly instead of causing an error.

Rate limits

Each account has a requests-per-minute and a tokens-per-minute limit. Over the limit you get 429, so retry with backoff (the OpenAI SDKs do this automatically). If you need higher limits, contact support.

Errors

StatusMeaningWhat to do
401Missing, invalid, revoked or paused keyCheck the Authorization header; create a new key if needed
403Model not enabled for your accountUse a model listed on your Kura dashboard page
404Wrong pathBase URL must end in /v1 exactly once (…/v1/chat/completions)
422 budget_exceededFree credit and balance used up (or email not verified yet)Verify your email / add funds under Billing
429Rate limitRetry with backoff
5xxUpstream provider error or timeoutRetry; try another model if it persists

Keep your keys safe

  • Use one key per app or machine, so you can revoke one without breaking the others.
  • Never put a key in browser or mobile code, or in a public repo. Call Kura from your server.
  • If a key leaks, revoke it on the dashboard. It stops working immediately.

Next

Guides