Create a key in the dashboard and make your first production request in a few minutes.
01
Create an account
Register with your invitation and sign in to the Dalama dashboard.
02
Generate a key
Create an API key and copy it immediately. The full key is displayed once.
03
Set the base URL
Use https://api.dalama.ai/v1 for OpenAI-compatible SDKs.
04
Call Dalama-Pro
Use the exact, case-sensitive model name Dalama-Pro in executable requests.
Dalama Models
A focused model family for general intelligence, advanced work, conversation, and retrieval.
Dalama-Pro
General Intelligence
Coding, reasoning, chat, tool use, managed search, and multimodal workflows.
LocAI-Pro
Professional Intelligence
The same flagship backend and price as Go today, with a separate identifier for professional workflows.
Dalama-Go
Fast Text Intelligence
Muse Glimmer 30B for text and tools. 128K context, no image input. A$0.50 input / A$3.00 output per million tokens, half Go's price.
LocAI-Talk
Language and Conversation
Natural dialogue, multilingual communication, assistants, and content workflows.
LocAI-Reader
Retrieval Intelligence
Embedding, semantic retrieval, document understanding, and reranking workflows.
The runnable examples below use Dalama-Pro. Model identifiers are case-sensitive; use the exact spelling returned by GET /v1/models in application code.
OpenAI-Compatible Setup
Install the official OpenAI SDK and change the base URL. No LocAI-specific client library is required.
Python
from openai import OpenAI
client = OpenAI(
api_key="LCCM_<your_key>",
base_url="https://api.dalama.ai/v1",
)
response = client.chat.completions.create(
model="Dalama-Pro",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain this repository structure."},
],
)
print(response.choices[0].message.content)
JavaScript / TypeScript
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.LOCAI_API_KEY,
baseURL: "https://api.dalama.ai/v1",
});
const response = await client.chat.completions.create({
model: "Dalama-Pro",
messages: [{ role: "user", content: "Write a TypeScript health check." }],
});
console.log(response.choices[0].message.content);
stream = client.chat.completions.create(
model="Dalama-Pro",
messages=[{"role": "user", "content": "Create a deployment checklist."}],
stream=True,
)
for event in stream:
text = event.choices[0].delta.content
if text:
print(text, end="", flush=True)
Anthropic-Compatible Setup
Existing Anthropic SDK applications can use Dalama by setting the Anthropic-compatible base URL.
Keep API keys on the server. Never embed a secret key in browser JavaScript, public repositories, screenshots, or support messages.
Bearer authentication
Authorization: Bearer LCCM_<your_key>
Create and revoke keys under Dashboard → API Keys. Store the key in an environment variable such as LOCAI_API_KEY.
Base URL versus full path
SDK configuration uses https://api.dalama.ai/v1 or https://api.dalama.ai/anthropic. Raw HTTP clients use the complete endpoint path. Do not append /chat/completions to an SDK base URL.
API Reference
These are the implemented public inference routes. Every route requires a valid Dalama API key.
OpenAI compatible
POST
/v1/chat/completions
Chat, streaming, tool calling, and multimodal input
GET
/v1/models
List model identifiers available to your key
Anthropic compatible
POST
/anthropic/v1/messages
Messages, streaming events, tools, and multimodal input
GET
/anthropic/v1/models
List models in Anthropic-compatible format
Multimodal Input
Dalama-Pro accepts image content through both compatibility protocols. Use a reachable HTTPS image URL or a supported data URL.