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.
https://chat.merkium.nl/api/v1The API has two endpoints:
GET /modelslists the available models. See Models.POST /chat/completionscreates a chat completion, with optional streaming, tool calling and reasoning output. See Chat completions.
Quickstart
- 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.
- Store the key in an environment variableThe examples in these docs read it from
MERKIUM_API_KEY.export MERKIUM_API_KEY="your-api-key" - 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:
{
"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
- AuthenticationAPI keys and the Authorization header.
- ModelsEvery model the API serves, with limits and parameters.
- PricingFree tier, permanently free models, no credit card.
- Chat completionsThe request and response format.
- StreamingServer-sent events, chunk by chunk.
- Tool callingFunction tools and the full round trip.
- ReasoningHow reasoning text is returned.
- Rate limits30 requests per minute per key on the free tier.
- ErrorsStatus codes and error bodies.
- opencode and SDKsopencode, OpenAI SDKs and the Vercel AI SDK.
Questions or problems with the API: mail@merkium.nl. Last verified against the live API on October 20, 2026.