← Sodura

Documentation

Get started in 5 minutes

Sodura is OpenAI-compatible. If you already use the OpenAI SDK, you need to change two lines: baseURL and model.

Quickstart

1

Sign in

Go to sodura.ai and sign in with Google. Create your organization.

2

Get your API key

In the dashboard, click "New API key". Copy it immediately — it won't be shown again.

3

Set your environment

Add your key to your environment:

export SODURA_API_KEY="sk-..."
4

Make your first call

Point the OpenAI SDK at the Sodura API:

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.SODURA_API_KEY,
  baseURL: "https://api.sodura.ai/v1",
});

const res = await client.chat.completions.create({
  model: "sodura-medium",
  messages: [{ role: "user", content: "Сайн уу?" }],
});

console.log(res.choices[0].message.content);

Available models

Use the model field in your request to choose a model.

Model IDSpecsBest for
sodura-smallGemma 12B · 8-bitFast, high-volume
sodura-mediumGemma 26B · 4-bitDefault · best balance
sodura-largeGemma 31B · 4-bitHighest quality

API endpoints

Base URL: https://api.sodura.ai/v1

POST/v1/chat/completionsChat completions — streaming and non-streaming
GET/v1/modelsList available models

Authentication

Pass your API key as a Bearer token in the Authorization header:

Authorization: Bearer sk-your-api-key

Or use the api_key constructor param in any OpenAI-compatible SDK — the SDK handles the header for you.

curl example

curl https://api.sodura.ai/v1/chat/completions \
  -H "Authorization: Bearer $SODURA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sodura-medium",
    "messages": [
      { "role": "user", "content": "Монгол хэлээр танилцуулна уу." }
    ]
  }'

Rate limits

20Requests per minute
40,000Tokens per minute
16,384Max context tokens

Limits apply per organization. Contact us for higher limits.

Next steps