Merkium

Search Merkium

Merkium API

API documentation

The Merkium API gives programmatic access to Ganymede 1.1 and the Pluto and Ceres models. Existing OpenAI clients work by changing the base URL and the API key.

Base URL

All endpoints live under one base URL. Pass it verbatim as base_url (Python) or baseURL (JavaScript) in your client.

Base URL
https://chat.merkium.nl/api/v1

The API has two endpoints:

  • GET /models lists the available models. See Models.
  • POST /chat/completions creates a chat completion, with optional streaming, tool calling and reasoning output. See Chat completions.

Quickstart

  1. Create an API keySign in at chat.merkium.nl, open the Console and create a key on the API tab. Keys are free and no credit card is needed. See Authentication.
  2. Store the key in an environment variableThe examples in these docs read it from MERKIUM_API_KEY.
    Shell
    export MERKIUM_API_KEY="your-api-key"
  3. Send your first requestUse curl, or the official OpenAI SDK for Python or JavaScript with the Merkium base URL.
    curl https://chat.merkium.nl/api/v1/chat/completions \
      -H "Authorization: Bearer $MERKIUM_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "ganymede-1.1",
        "messages": [
          { "role": "user", "content": "Say hello in five words." }
        ]
      }'

A successful request returns a standard chat.completion object:

Response
{
  "id": "chatcmpl-7feedf221ba1",
  "object": "chat.completion",
  "created": 1792542491,
  "model": "ganymede-1.1",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello there, how are you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 2799,
    "completion_tokens": 10,
    "total_tokens": 2809
  }
}

Compatibility

The API follows the OpenAI Chat Completions format for requests, responses, streaming chunks and tool calls. It has been tested with:

  • The OpenAI SDKs for Python (openai) and JavaScript (openai), with the base URL set to the Merkium endpoint.
  • The Vercel AI SDK through @ai-sdk/openai-compatible.
  • opencode, as a custom provider.

Setup for each is on opencode and SDKs.

Pricing

The current models are free permanently, both in Merkium Chat and through the API, with no credit card required. Every model in GET /models reports "is_free": true. The free tier allows 30 requests per minute per API key; see Rate limits. Models released later may be paid. Details are on Pricing.

In these docs

Questions or problems with the API: mail@merkium.nl. Last verified against the live API on October 20, 2026.