Skip to content

Coding agents

Point your coding agent at AMAI.

Works with OpenCode, Aider, and Continue. Change the base URL and key; everything else stays.

Quickstart

Set the base URL and go.

.env
# Point any OpenAI-compatible client at the gateway.
OPENAI_BASE_URL="https://api.advancedmind.ai/v1"
OPENAI_API_KEY="$AMAI_API_KEY"
OPENAI_MODEL="Klara-base-preview-v2"
bash
curl https://api.advancedmind.ai/v1/chat/completions \
  -H "Authorization: Bearer $AMAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Klara-base-preview-v2",
    "messages": [
      { "role": "user",
        "content": "Refactor this middleware." }
    ],
    "tools": [
      {
        "type": "function",
        "function": {
          "name": "apply_patch",
          "description": "Apply a diff.",
          "parameters": { "type": "object" }
        }
      }
    ],
    "stream": true
  }'

Use Klara-base-preview-v1 for the direct preview and Klara-base-preview-v2 for capability retention on harder work.

Tool calls and long context

Function calling and streaming, with the live context limit published before you run a large repo.

Cost on every response

Every response includes its cost, and per-key spend limits stop runaway loops.

Which model

Which model for which job.

Klara Base Preview v1

Answers directly

Commits to one clear answer on scoped professional work — no hedging, no maybes.

For Evidence review, validation notes, code review.

$2.50 in · $8.00 out /M · 203k context

Klara Base Preview v2

Retains capability

Holds its depth on harder reasoning, coding, and research — where most models thin out.

For Competing root causes, tradeoffs, open-ended questions.

$2.50 in · $8.00 out /M · 203k context

Pricing

Prepaid credits.

A loop stops at your balance instead of running past it.

  • Klara Base Preview v1

    Direct, fast research and technical work while the next generation of Klara models is being completed.

    $2.50 · $8.00 · set at launch

    203k

  • Klara Base Preview v2

    Harder reasoning, coding, and research work with capability retention prioritized.

    $2.50 · $8.00 · set at launch

    203k