Developer Platform

Build with the world's underserved languages

Simple REST APIs, Python & Node SDKs. Drop-in replacement for Voyage, Cohere, or OpenAI embeddings — no NLP expertise required.

Quick Start

1. Get your API key

Sign up for a free account and generate your API key from the dashboard. Every account starts with free credits.

Get API Key

2. Install the SDK (optional)

Terminal
pip install bhala
# or
npm install @bhala/sdk

3. Make your first API call

embed.py
from bhala import Bhala

client = Bhala(api_key="bh_sk_...")

# Generate embeddings for any supported language
response = client.embed(
    input="Sawubona, ngingakusiza kanjani?",
    model="bantu-embed-v1",
    dimensions=1024
)

print(response.data[0].embedding[:5])
# [0.0234, -0.0891, 0.1456, 0.0312, -0.0678]
POST /v1/embed
curl -X POST https://api.bhala.ai/v1/embed \
  -H "Authorization: Bearer bh_sk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "input": "Sawubona, ngingakusiza kanjani?",
    "model": "bantu-embed-v1",
    "dimensions": 1024
  }'
Response
{
  "object": "embedding",
  "data": [{
    "embedding": [0.0234, -0.0891, 0.1456, ...],
    "dimensions": 1024
  }],
  "usage": { "total_tokens": 8 }
}
bhala_demo.py
from bhala import Bhala

client = Bhala(api_key="bh_sk_...")

# Generate embeddings for any supported language
embeddings = client.embed(
    input="Sawubona, ngingakusiza kanjani?",
    model="bantu-embed-v1"
)
print(len(embeddings.data[0].embedding))
# → 1024

# Translate English → IsiZulu
result = client.translate(
    text="Your payment was successful.",
    source="en",
    target="zu"
)
print(result.translation)
# → "Inkokhelo yakho iphumelele."

Why developers choose Bhala

Drop-in replacement

Same REST interface you already know from OpenAI, Cohere, or Voyage. Switch your base URL and you're done.

No NLP expertise needed

Our models handle noun classes, agglutination, and tonal patterns — you just send text and get results.

Start free, scale to millions

2M embedding tokens and 200K translation characters included free. Pay-as-you-go from $0.08/1M tokens.

Start building with Bhala

Get free API access and start integrating low-resource language understanding into your applications today.