Katalock.AI
HelpOpen app

Katalock API

Add Indian-language AI to your own app or service. The Katalock API is OpenAI-compatible, so you use the official OpenAI SDKs — just point them at our base URL.

Developer preview — endpoints and keys roll out with launch.

1. Get an API key

Create a key from your dashboard (Settings → API keys). Keep it secret — treat it like a password.

2. Base URL & auth

Base URL: https://api.katalock.net/v1. Authenticate with a Bearer token (your API key).

3. Quickstart

Python

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_KATALOCK_API_KEY",
    base_url="https://api.katalock.net/v1",
)

resp = client.chat.completions.create(
    model="katalock-auto",
    messages=[
        {"role": "user", "content": "Write a Diwali offer for my shop, in Hindi."}
    ],
)
print(resp.choices[0].message.content)

JavaScript / TypeScript

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.KATALOCK_API_KEY,
  baseURL: "https://api.katalock.net/v1",
});

const resp = await client.chat.completions.create({
  model: "katalock-auto",
  messages: [{ role: "user", content: "Summarise this invoice in Tamil." }],
});
console.log(resp.choices[0].message.content);

cURL

curl https://api.katalock.net/v1/chat/completions \
  -H "Authorization: Bearer $KATALOCK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "katalock-auto",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

4. Models

Use a friendly model alias — we route it to the best underlying model for the job:

5. Streaming

Pass stream: true for token-by-token responses, exactly like the OpenAI SDK.

6. Pricing & limits

API usage is billed from your account's credits — chat by tokens, and agent or video calls by credits (see Pricing). Requests are rate-limited per key; you'll get a 429 when you exceed it. Errors follow the standard OpenAI shape (error.message, error.type).

Building something with Katalock?

Tell us at admin@katalock.net for early API access.