Operations
Rate limits
On the free tier, the API allows 30 requests per minute per API key, enforced as one request every two seconds. The limit is per key, so separate keys are limited independently.
The limit
- Tier
- Free tier
- Rate
- 30 requests per minute (RPM)
- Spacing
- 1 request every 2 seconds. A request sent less than two seconds after the previous one with the same key gets a 429, even if fewer than 30 requests were sent that minute.
- Scope
- Per API key
- Daily limit
- None published
- Applies to
- Requests made with the key, including each step of a tool calling round trip
When you exceed the limit
A request sent too soon after the previous one is rejected with HTTP 429 Too Many Requests and a Retry-After header giving the number of seconds to wait.
HTTP/1.1 429 Too Many Requests
Retry-After: 2
Content-Type: application/json
{"error":"Rate limit exceeded: one request every two seconds per API key. Retry in 2s.","type":"rate_limit_error"}The number of seconds in the message reflects the time left in the window, so it can differ from one response to the next.
Retrying
Wait for the number of seconds in Retry-After, then send the request again. When sending requests in sequence, space them at least two seconds apart.
import os
import time
from openai import OpenAI, RateLimitError
client = OpenAI(
base_url="https://chat.merkium.nl/api/v1",
api_key=os.environ["MERKIUM_API_KEY"],
max_retries=0, # handle retries yourself
)
def create_with_retry(**kwargs):
for attempt in range(5):
try:
return client.chat.completions.create(**kwargs)
except RateLimitError as error:
wait = float(error.response.headers.get("retry-after", 2))
time.sleep(wait)
raise RuntimeError("Still rate limited after 5 attempts")The OpenAI SDKs also retry 429 responses automatically a small number of times by default. See Errors for other status codes.
Questions or problems with the API: mail@merkium.nl. Last verified against the live API on October 20, 2026.