OpenAI-compatible API providers are not interchangeable, even when every one of them says “drop-in”. The label tells you that an OpenAI SDK can reach the endpoint. It does not tell you which fields are honoured, which are rejected and which are silently ignored, and the answer is different at every vendor. This post gives you three things the top results for the keyword do not: a table built from each vendor’s own compatibility page, read on 28 November 2026; a 12-check probe script in plain Python that tests any endpoint over raw HTTP; and a scoring rubric that turns the result into a number for your use case. One AI API Key publishes this post. We score nobody else’s live API here, and we say how we would be scored below.
What does “OpenAI-compatible” actually promise?
Less than it sounds like. We looked for a conformance suite, a certification mark or a published specification that vendors sign up to, and found none in the fourteen pages we read for this post. What exists is OpenAI’s own API reference, which everyone copies, and a page at each vendor saying how closely they copy it.
Those pages use very different words. Groq calls its API mostly compatible and then lists what is not. Ollama says it supports a subset. Google says Gemini models are reachable by changing three lines: the key, the base URL and the model id. Together goes furthest and publishes a matrix with a status per OpenAI SDK method: supported, partial, dedicated only, not supported. vLLM lists the OpenAI endpoints it serves and a few notes per endpoint.
That variety is the first finding. A provider that publishes a matrix is telling you where the edges are. A provider that says “drop-in” and nothing else may be perfectly good, but you have to find the edges yourself, usually in production, usually at night. The rest of this post is about finding them first, cheaply, on purpose.
One caveat before we start. A page that lists only the unsupported items, like Groq’s, does not tell you what is supported, and a page that lists only supported items, like Ollama’s, does not tell you what is quietly different. We therefore only state in the tables below what a page actually says, and we write “not stated on the page” where it is silent.
Which parts of the OpenAI API does a provider copy?
Three layers, and a provider can be right in one and wrong in another.
Three layers of compatible
Wire shape is the easy layer: the path is /chat/completions, the reply has choices[0].message, a stream is a series of data: lines. A typical SDK smoke test exercises only this layer, and a call that prints a sentence proves nothing beyond it.
Parameter meaning is where vendors differ on purpose. A field can be accepted and used, accepted and ignored, rejected with a 400, or mapped to something else. Groq’s page, for example, says logprobs, logit_bias, top_logprobs and messages[].name are rejected with a 400, that n must equal 1, and that a temperature of 0 is converted to 1e-8. vLLM’s page says its user parameter is ignored and that suffix is not supported on completions. Google’s page shows reasoning_effort values mapped to Gemini thinking levels or budgets, so the same word means a different amount of thinking on a different model family.
Model behavior is the layer no compatibility page can describe, because it belongs to the model. Whether a model returns a well-formed tool call, whether it can honour a JSON schema, whether it stops when it should: these change with the model id. A gateway that routes to many providers inherits this variance. The point is not that it is bad. It is that “the endpoint passed” and “my model passes” are different statements, so test with the id you will ship.
What do the base URLs and endpoints look like?
Changing the base URL is the one step every vendor agrees on, but the URL itself is not uniform. Some end in /v1, one ends in /v1beta/openai/, one inserts /openai/, and the local one needs a placeholder key that it ignores. If you get a 404 after switching, the path is the first thing to check.
| Provider | Base URL as documented | Embeddings on the OpenAI route | Source |
|---|---|---|---|
| OpenAI | the OpenAI SDK default host | POST /embeddings; vector length depends on the model |
Embeddings reference |
| Groq | https://api.groq.com/openai/v1 |
not stated on its compatibility page | Groq compatibility |
| Google Gemini | https://generativelanguage.googleapis.com/v1beta/openai/ |
yes, with gemini-embedding-2 or gemini-embedding-001 |
Google compatibility |
| Ollama | http://localhost:11434/v1/ locally, https://ollama.com/v1 for cloud |
/v1/embeddings is listed |
Ollama compatibility |
| Together AI | https://api.together.ai/v1 |
dedicated endpoints only, no serverless embedding models | Together compatibility |
| vLLM | your own host, paths under /v1 |
served for embedding models only | vLLM online serving |
| OpenRouter | https://openrouter.ai/api/v1 |
has an Embeddings guide and API reference section | Errors and debugging |
| One AI API Key | {OPENAI_BASE} |
when an embedding model is enabled for your account; check GET /v1/models |
API reference |
Two details in this table matter more than they look. First, the embeddings column varies from “yes, name this model” to “not on the serverless plan”, so an app that needs vectors cannot assume the route exists just because chat works. Second, the Gemini row shows that the model id is part of the migration: you change the key, the URL and the name, and the Gemini API alternatives guide walks through what else shifts for Gemini users.
If you only need the two lines that change in your code, our OpenAI API alternatives guide covers them with a probe built on the official SDK, and the guide to switching an OpenAI SDK app to a different base URL covers environment variables and Node. This post goes the other way: it asks what the label actually promises and builds a test that does not trust the SDK.
What do the docs say they leave out?
This is the table we wanted when we started. Every row is a sentence on the vendor’s own page, paraphrased, with the page linked. We chose rows that change code: a rejected field, an ignored field, a missing endpoint.
| Provider | Difference the docs state | What it breaks |
|---|---|---|
| Groq | logprobs, logit_bias, top_logprobs, messages[].name return a 400; n must be 1; temperature 0 becomes 1e-8; text completions unsupported |
Code that always sends n or names participants in a roleplay history |
| vLLM | user is ignored; suffix unsupported on completions; parallel_tool_calls set to true allows several calls but does not promise them |
Per-user abuse tracking that relies on user; fill-in-the-middle code |
| Ollama | Responses API is stateless only: no previous_response_id or conversation |
Apps that chain responses by id |
| Together | Assistants, threads and runs, OpenAI-shape fine-tuning and batches, and moderations are listed as not supported; files are partial; embeddings are dedicated only | Anything built on those SDK namespaces |
| DeepSeek | json_object mode needs the word “json” in the prompt; text that is not valid JSON is replaced by spaces, so content can look empty while the finish reason says stop |
A parser that treats empty content as “no answer” |
| OpenRouter | After the stream has started, an error is sent as an event inside an HTTP 200, with a finish reason of error | Clients that check only the status code |
| One AI API Key | Files, fine-tuning, image variations and model deletion return 501; response_format is dropped, without an error, when a Claude model is called through chat completions |
Structured-output code pointed at a Claude model |
Sources, in row order: Groq, vLLM, Ollama, Together, DeepSeek JSON output, OpenRouter errors, and for ours the error reference and the structured output docs.
Read the table as a list of failure modes rather than a ranking. Each vendor deserves credit for writing the difference down, which is exactly what a trustworthy provider does. The expensive surprises come from the vendors that did not, and from the differences that live in model behavior, which no page covers. That is the reason for a probe.
What should you test, area by area?
Six areas cover what most applications use. For each, here is what OpenAI’s reference sets as the norm, what tends to differ, and the two checks the probe runs. We kept it to two per area so that a run stays small and the arithmetic of the score stays simple.
Chat: does the reply look like a chat completion?
The norm is a JSON body with choices, each holding a message and a finish_reason, plus a usage object with prompt, completion and total token counts and the model name echoed back. A client that logs usage or branches on finish_reason breaks if any piece is missing or wrongly typed.
Check 1 sends a one-word request and verifies all of that: a string content, a finish reason, three integer token counts, a non-empty model. Check 2 sets max_tokens to 5 and verifies that the reply stops with finish_reason: "length" and that completion_tokens is small. That second check catches providers that ignore max_tokens, and it matters for money, because max_tokens is the simplest cost cap you have. Our guide to auditing token billing shows what to do with the usage numbers once you trust their shape.
A reasoning model can spend its whole max_tokens budget thinking and return empty content with a length finish. That is a model behavior, not a protocol failure. If check 1 fails on empty content, raise max_tokens before blaming the endpoint.
Streaming: does the stream end the way the format says?
A streamed reply is server-sent events: lines starting with data:, separated by blank lines. OpenAI’s streaming guide describes the chunk flow, and the chat reference says the last chunk can have an empty choices list when you set stream_options to {"include_usage": true}. OpenAI-format streams end with data: [DONE].
Check 3 requests a stream and verifies the content type is text/event-stream, that text arrives in delta.content, and that the stream ends with the [DONE] line. Check 4 adds include_usage and verifies that the final chunk has an empty choices list and integer token counts. A provider can pass check 3 and fail check 4, and the consequence is concrete: a client that reads chunk.choices[0] on every chunk throws on the final one, and a billing check built on usage chunks has nothing to read. The streaming docs show the guard on our side, and the post on streaming versus non-streaming responses explains when to stream at all.
The harder streaming problem is not in the 12 checks, because you cannot trigger it on demand: an error after the stream has started. OpenRouter’s error page is explicit that once the provider accepts the request the HTTP 200 and headers are sent, so a later failure arrives as an event inside the stream with a finish reason of error. For a non-streaming request it likewise describes a 200 whose body holds only an error object. That follows from how HTTP works: a status line that has been sent cannot be taken back, so any server that streams has the same limit, ours included. The wire looks like this:
HTTP/1.1 200 OK
Content-Type: text/event-stream
data: {"choices":[{"index":0,"delta":{"content":"The answer is"}}]}
data: {"error":{"code":502,"message":"Provider disconnected"},"choices":[{"index":0,"delta":{"content":""},"finish_reason":"error"}]}If your client checks only the status code, it will treat that as success. The guard below is a few lines and worth having whichever provider you use. It also pairs with a fallback config for when a provider goes down mid-answer.
# Treat a stream as failed unless it ended the way the format says it should
saw_done, saw_error = False, False
for line in lines:
if line == "data: [DONE]":
saw_done = True
elif line.startswith("data:") and '"error"' in line:
saw_error = True # an error event can follow an HTTP 200
if saw_error or not saw_done:
retry_or_fail() # do not hand half an answer to the userTools: can the model call a function and use the answer?
OpenAI’s function calling guide describes the loop: you send tools, the model replies with tool_calls that carry an id and JSON-string arguments, you run the function and send back a message with the role tool and the matching tool_call_id. Two things go wrong in practice: models that cannot emit a well-formed call, and gateways that mishandle the id round trip.
Check 5 forces a call to a named function with tool_choice and verifies the reply has a call id, the right function name and arguments that parse as a JSON object. Check 6 sends the tool result back and verifies the model answers with text. A model that cannot do check 5 will not run a coding agent, whatever the endpoint is called. vLLM’s note on parallel_tool_calls is a good example of the gap between layers: the parameter is accepted, but whether you get more than one call is model-dependent. Our tool calling docs cover the loop and forced tools, and a coding-tool setup is in the guide to a coding agent key.
JSON: do you get valid JSON, and do you get your schema?
OpenAI’s structured outputs guide separates two things. JSON mode ensures valid JSON. Structured outputs, with a JSON schema, ensures the reply follows that schema as well. OpenAI recommends the second where it is available. Providers copy either one, both, or neither, and some copy the field name without the schema behaviour.
Check 7 asks for json_object and verifies the content parses as an object. Check 8 asks for a strict json_schema and verifies the reply parses and holds exactly the declared keys. DeepSeek’s JSON output page is a fair warning of how local the rules are: you must mention “json” in the prompt, set max_tokens high enough not to truncate, and handle content that comes back as blanks. On One AI API Key, the structured output docs have a per-model table, and Claude models take a forced tool instead because response_format has no counterpart in that translation. A forced tool call is the portable way to get JSON, which is why check 5 is worth passing even if you never run an agent.
Embeddings: does the vector route exist for you?
OpenAI’s embeddings reference says the vector is a list of floats by default, or a base64 string when encoding_format asks for it, and that the length depends on the model. As the base-URL table showed, the route may be missing, plan-limited or available only on a dedicated endpoint.
Check 9 embeds one string and verifies a non-empty list of floats. Check 10 embeds a list of two strings and verifies two vectors come back with index values 0 and 1 and an integer prompt_tokens. The second matters for RAG ingestion, where a batch that returns in the wrong order silently attaches vectors to the wrong chunks. Both checks are skipped unless you pass --embed-model, because a provider with no embedding model enabled has nothing to test.
Errors: can your client tell what went wrong?
OpenAI’s error codes guide lists 401 for authentication problems and a 429 that asks you to follow the Retry-After header when present. The convention most SDKs rely on is an HTTP status plus a JSON body with an error object holding a string message. A provider that returns an HTML page or a bare string for a bad key breaks the SDK’s error mapping and your logs.
Check 11 requests a model that does not exist and verifies a 400 or 404 with an error.message. Check 12 sends an invalid key and verifies a 401 or 403 with the same shape. These cost nothing, because neither request reaches a model, but they tell you what your on-call engineer will see at 3am. The errors docs show ours, and the guide to 429 errors goes through the status that costs people the most.
What does the probe script look like?
The script below is standard-library Python with no dependencies, about 245 lines. It speaks raw HTTP with urllib, reads the stream line by line, and prints one PASS, FAIL or SKIP per check, then the per-area counts and three scores. It never prints your key and it sends nothing except those requests.
#!/usr/bin/env python3
"""probe_compat.py: 12 raw-HTTP checks for any OpenAI-compatible endpoint. Standard library only.
BASE_URL=https://host/v1 API_KEY=... python3 probe_compat.py --model MODEL_ID [--embed-model EMBED_ID]
"""
import argparse, json, os, sys, urllib.request, urllib.error
ap = argparse.ArgumentParser()
ap.add_argument("--model", required=True)
ap.add_argument("--embed-model", default="")
ap.add_argument("--base", default=os.environ.get("BASE_URL", ""))
ap.add_argument("--timeout", type=int, default=60)
args = ap.parse_args()
KEY = os.environ.get("API_KEY", "")
BASE = args.base.rstrip("/")
if not BASE or not KEY:
sys.exit("set BASE_URL (ending in /v1 or the vendor's equivalent) and API_KEY")
def call(path, body=None, key=KEY, stream=False):
req = urllib.request.Request(
BASE + path,
data=None if body is None else json.dumps(body).encode(),
headers={"Authorization": "Bearer " + key, "Content-Type": "application/json"},
method="GET" if body is None else "POST",
)
try:
r = urllib.request.urlopen(req, timeout=args.timeout)
return r.status, r.headers, (r if stream else r.read().decode("utf-8", "replace"))
except urllib.error.HTTPError as e:
return e.code, e.headers, e.read().decode("utf-8", "replace")
def jload(text):
try:
return json.loads(text)
except Exception:
return None
M = args.model
USER = {"role": "user", "content": "Reply with the single word: ready"}
results = [] # (area, name, status, detail)
def check(area, name, fn):
try:
ok, detail = fn()
status = "PASS" if ok else "FAIL"
except SkipCheck as s:
status, detail = "SKIP", str(s)
except Exception as e: # network error, timeout, bad JSON
status, detail = "FAIL", type(e).__name__ + ": " + str(e)[:120]
results.append((area, name, status, detail))
print(f"{status:4} {area:10} {name:34} {detail}")
class SkipCheck(Exception):
pass
def c_plain():
st, _, txt = call("/chat/completions", {"model": M, "max_tokens": 200, "messages": [USER]})
j = jload(txt)
if st != 200 or not j:
return False, f"status {st}"
ch = (j.get("choices") or [{}])[0]
msg = ch.get("message") or {}
u = j.get("usage") or {}
ints = all(isinstance(u.get(k), int) for k in ("prompt_tokens", "completion_tokens", "total_tokens"))
ok = isinstance(msg.get("content"), str) and bool(ch.get("finish_reason")) and ints and bool(j.get("model"))
return ok, f"finish={ch.get('finish_reason')} model={j.get('model')} usage_ints={ints}"
def c_length():
st, _, txt = call("/chat/completions", {"model": M, "max_tokens": 5,
"messages": [{"role": "user", "content": "Count from 1 to 100, comma separated."}]})
j = jload(txt)
if st != 200 or not j:
return False, f"status {st}"
ch = j["choices"][0]
n = (j.get("usage") or {}).get("completion_tokens", 999)
return ch.get("finish_reason") == "length" and n <= 8, f"finish={ch.get('finish_reason')} completion_tokens={n}"
def stream_lines(include_usage):
body = {"model": M, "max_tokens": 60, "stream": True, "messages": [USER]}
if include_usage:
body["stream_options"] = {"include_usage": True}
st, h, r = call("/chat/completions", body, stream=True)
if st != 200:
return st, h, [], r
lines = []
for raw in r:
line = raw.decode("utf-8", "replace").rstrip("\r\n")
if line:
lines.append(line)
if line == "data: [DONE]":
break
return st, h, lines, ""
def c_sse():
st, h, lines, err = stream_lines(False)
if st != 200:
return False, f"status {st}"
ctype = (h.get("Content-Type") or "").split(";")[0]
data = [l for l in lines if l.startswith("data:")]
chunks = [jload(l[5:].strip()) for l in data if l[5:].strip() != "[DONE]"]
has_text = any(c and (c.get("choices") or [{}])[0].get("delta", {}).get("content") for c in chunks)
done = bool(lines) and lines[-1] == "data: [DONE]"
return ctype == "text/event-stream" and has_text and done, f"content-type={ctype} chunks={len(chunks)} done={done}"
def c_usage_chunk():
st, _, lines, _ = stream_lines(True)
if st != 200:
return False, f"status {st}"
chunks = [jload(l[5:].strip()) for l in lines if l.startswith("data:") and "[DONE]" not in l]
last = chunks[-1] if chunks else {}
ok = last.get("choices") == [] and isinstance((last.get("usage") or {}).get("total_tokens"), int)
return ok, f"last chunk choices={last.get('choices')} usage={'yes' if last.get('usage') else 'no'}"
TOOL = {"type": "function", "function": {"name": "get_weather", "description": "Weather for a city",
"parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}}
ASK = {"role": "user", "content": "What is the weather in Paris? Use the tool."}
state = {}
def c_tool_call():
st, _, txt = call("/chat/completions", {"model": M, "max_tokens": 300, "tools": [TOOL],
"tool_choice": {"type": "function", "function": {"name": "get_weather"}}, "messages": [ASK]})
j = jload(txt)
if st != 200 or not j:
return False, f"status {st}"
ch = j["choices"][0]
tc = (ch["message"].get("tool_calls") or [None])[0]
if not tc:
return False, f"no tool_calls, finish={ch.get('finish_reason')}"
args_ok = isinstance(jload(tc["function"]["arguments"]), dict)
state["assistant"], state["call"] = ch["message"], tc
return bool(tc.get("id")) and tc["function"]["name"] == "get_weather" and args_ok, \
f"id={'yes' if tc.get('id') else 'no'} arguments_json={args_ok} finish={ch.get('finish_reason')}"
def c_tool_result():
if "call" not in state:
raise SkipCheck("needs the tool call check to pass first")
msgs = [ASK, state["assistant"], {"role": "tool", "tool_call_id": state["call"]["id"], "content": "{\"temp_c\": 18}"}]
st, _, txt = call("/chat/completions", {"model": M, "max_tokens": 200, "tools": [TOOL], "messages": msgs})
j = jload(txt)
if st != 200 or not j:
return False, f"status {st}: {txt[:100]}"
content = j["choices"][0]["message"].get("content") or ""
return bool(content.strip()), f"final answer chars={len(content)}"
def c_json_object():
st, _, txt = call("/chat/completions", {"model": M, "max_tokens": 200, "response_format": {"type": "json_object"},
"messages": [{"role": "user", "content": "Return a JSON object with keys name and age for a fictional person."}]})
j = jload(txt)
if st != 200 or not j:
return False, f"status {st}: {txt[:100]}"
content = j["choices"][0]["message"].get("content") or ""
return isinstance(jload(content), dict), f"parses_as_object={isinstance(jload(content), dict)}"
def c_json_schema():
schema = {"type": "object", "properties": {"city": {"type": "string"}, "pop_m": {"type": "number"}},
"required": ["city", "pop_m"], "additionalProperties": False}
st, _, txt = call("/chat/completions", {"model": M, "max_tokens": 200,
"response_format": {"type": "json_schema", "json_schema": {"name": "city", "strict": True, "schema": schema}},
"messages": [{"role": "user", "content": "Give the city Paris and its population in millions."}]})
j = jload(txt)
if st != 200 or not j:
return False, f"status {st}: {txt[:100]}"
o = jload(j["choices"][0]["message"].get("content") or "")
ok = isinstance(o, dict) and isinstance(o.get("city"), str) and isinstance(o.get("pop_m"), (int, float)) and set(o) == {"city", "pop_m"}
return ok, f"keys={sorted(o) if isinstance(o, dict) else 'not an object'}"
def c_embed_one():
if not args.embed_model:
raise SkipCheck("no --embed-model given")
st, _, txt = call("/embeddings", {"model": args.embed_model, "input": "hello"})
j = jload(txt)
if st != 200 or not j:
return False, f"status {st}"
v = j["data"][0]["embedding"]
return isinstance(v, list) and len(v) > 0 and all(isinstance(x, float) for x in v[:5]), f"dims={len(v)}"
def c_embed_batch():
if not args.embed_model:
raise SkipCheck("no --embed-model given")
st, _, txt = call("/embeddings", {"model": args.embed_model, "input": ["alpha", "beta"]})
j = jload(txt)
if st != 200 or not j:
return False, f"status {st}"
idx = [d.get("index") for d in j["data"]]
return idx == [0, 1] and isinstance((j.get("usage") or {}).get("prompt_tokens"), int), f"indexes={idx}"
def err_ok(st, txt, want):
j = jload(txt)
e = (j or {}).get("error")
return st in want and isinstance(e, dict) and isinstance(e.get("message"), str) and bool(e["message"])
def c_unknown_model():
st, _, txt = call("/chat/completions", {"model": "no-such-model-xyz", "max_tokens": 5, "messages": [USER]})
return err_ok(st, txt, (400, 404)), f"status={st} body_is_error_object={err_ok(st, txt, (st,))}"
def c_bad_key():
st, _, txt = call("/chat/completions", {"model": M, "max_tokens": 5, "messages": [USER]}, key="invalid-key-123")
return err_ok(st, txt, (401, 403)), f"status={st} body_is_error_object={err_ok(st, txt, (st,))}"
check("chat", "plain reply shape", c_plain)
check("chat", "max_tokens gives finish=length", c_length)
check("streaming", "SSE lines end with [DONE]", c_sse)
check("streaming", "final usage chunk, empty choices", c_usage_chunk)
check("tools", "forced tool call", c_tool_call)
check("tools", "tool result round trip", c_tool_result)
check("json", "json_object parses", c_json_object)
check("json", "json_schema strict keys", c_json_schema)
check("embeddings", "one string", c_embed_one)
check("embeddings", "batch of two, index order", c_embed_batch)
check("errors", "unknown model: 4xx error object", c_unknown_model)
check("errors", "bad key: 401 error object", c_bad_key)
AREAS = ["chat", "streaming", "tools", "json", "embeddings", "errors"]
passed = {a: sum(1 for r in results if r[0] == a and r[2] == "PASS") for a in AREAS}
WEIGHTS = { # share of 100 points per area, per use case
"chat app": dict(chat=25, streaming=30, tools=10, json=10, embeddings=0, errors=25),
"coding agent": dict(chat=15, streaming=15, tools=35, json=15, embeddings=0, errors=20),
"RAG app": dict(chat=20, streaming=10, tools=5, json=15, embeddings=35, errors=15),
}
print("\npassed per area (of 2):", passed)
for name, w in WEIGHTS.items():
print(f"score for a {name}: {sum(w[a] * passed[a] / 2 for a in AREAS):.1f} / 100")
print("SKIP counts as 0 on purpose: a check you cannot run is a feature you cannot rely on.")
sys.exit(0)We ran it against a small local mock server that we wrote for this purpose, once in a correct mode and once in a mode with the usage chunk and JSON mode deliberately broken. The correct mock scored 100 on all three profiles. The broken one failed exactly checks 4 and 7 and skipped the embedding checks, and that run is the sample output below. This verifies the script’s own logic: it proves nothing about any real provider, and we have not published results for one, because the outcome depends on the model id behind the endpoint and changes over time.
# 1. Against this gateway, on a free id (10 requests, 8 of which reach a model; 12 with an embedding model)
export BASE_URL="https://api.oneaiapikey.com/v1"
export API_KEY="$ONEAIAPIKEY_API_KEY"
python3 probe_compat.py --model z-ai-glm-5.3:free
# 2. Against any other provider: its documented base URL, its key, a model id from its own list
BASE_URL="https://api.groq.com/openai/v1" API_KEY="$GROQ_API_KEY" \
python3 probe_compat.py --model MODEL_ID
# 3. Add an embedding model id to score the two embedding checks too
python3 probe_compat.py --model MODEL_ID --embed-model EMBEDDING_MODEL_ID
# 4. Keep the output, with the date, so next month's run can be diffed against it
python3 probe_compat.py --model MODEL_ID | tee "probe-$(date +%F).txt"PASS chat plain reply shape finish=stop model=m1 usage_ints=True
PASS chat max_tokens gives finish=length finish=length completion_tokens=5
PASS streaming SSE lines end with [DONE] content-type=text/event-stream chunks=3 done=True
FAIL streaming final usage chunk, empty choices last chunk choices=[{'index': 0, ...}] usage=no
PASS tools forced tool call id=yes arguments_json=True finish=tool_calls
PASS tools tool result round trip final answer chars=20
FAIL json json_object parses parses_as_object=False
PASS json json_schema strict keys keys=['city', 'pop_m']
SKIP embeddings one string no --embed-model given
SKIP embeddings batch of two, index order no --embed-model given
PASS errors unknown model: 4xx error object status=404 body_is_error_object=True
PASS errors bad key: 401 error object status=401 body_is_error_object=True
passed per area (of 2): {'chat': 2, 'streaming': 1, 'tools': 2, 'json': 1, 'embeddings': 0, 'errors': 2}
score for a chat app: 80.0 / 100
score for a coding agent: 85.0 / 100
score for a RAG app: 52.5 / 100Three design choices are worth explaining, because you may want to change them.
Why raw HTTP. SDKs hide the stream framing and tolerate sloppy chunks. If a provider passes the OpenAI Python SDK but fails check 3, a client in another language may still break. We would rather see the bytes.
Why SKIP scores zero. A check you cannot run is a feature you cannot rely on. If you do not need embeddings, give that area weight 0 in your profile and the skip costs nothing.
Why the checks are small. Every request has a low max_tokens cap, so a run is cheap. Here is the worst case from the script’s own caps:
Worst-case output tokens per model-reaching check
- Check 5, forced tool call300
- Checks 1, 6, 7, 8 (200 each)200 eachfour checks, 800 tokens
- Checks 3 and 4, streaming60 each
- Check 2, length stop5
Put your own prices in to see what a run costs. Input tokens are an assumption: the prompts are short, about 200 tokens each with the tool schema.
What one probe run costs, at worst
- Input tokens in a run (8 requests)
- 1,600
- Output tokens in a run, at the caps
- 1,225
- Worst-case cost of one run
- $0.0026
- Runs for one dollar
- 385
Example prices, not any provider's. Actual replies are usually shorter than the caps, so real runs cost less. On a free id the cost is $0 and the run uses 8 of the daily requests.
How do you turn 12 checks into a score?
Each area has two checks, so each area scores 0, 1 or 2. The score for a use case is the sum, over six areas, of the area’s weight times its passes divided by 2, out of 100. The weights are ours, a judgment about what each application needs, and we label them that way because they are not a standard. Change them freely.
| Area | Chat app | Coding agent | RAG app | Why the weights lean this way |
|---|---|---|---|---|
| Chat | 25 | 15 | 20 | Every app needs a correct reply shape |
| Streaming | 30 | 15 | 10 | A chat UI lives or dies on the stream |
| Tools | 10 | 35 | 5 | An agent without tool calls does nothing |
| JSON | 10 | 15 | 15 | Extraction and agents both parse output |
| Embeddings | 0 | 0 | 35 | Only retrieval needs vectors |
| Errors | 25 | 20 | 15 | Retry logic depends on readable errors |
| Total | 100 | 100 | 100 |
Enter the passes from your own run to get the three scores. The default values are the broken-mock run from the sample output above, so you can check the arithmetic against it.
Compatibility score for your use case
- Chat app, out of 100
- 80.00
- Coding agent, out of 100
- 85.00
- RAG app, out of 100
- 52.50
Weights are our own judgment for three typical applications, not a standard. A score below 100 is not a verdict: read which check failed and whether your code uses that feature.
How to read the number: a score is useful only next to the failed checks. A 52 for a RAG app with embeddings skipped says “untested”, not “bad”. A 100 says the plumbing works on those 12 requests. It does not say the model is the right one, that the price is fair or that the provider will still exist next quarter. For those, use the provider checklist, the status page checklist and the real-model checks.
What failure looks like also matters more than the count. Here is how we would respond to a failed check:
From a failed check to a decision
How do you decide before production?
The probe tells you what works today. The checklist below turns that into a go or no-go for a small share of traffic. It keeps state in your browser only.
Before you point production traffic at a compatible endpoint
0 of 8 done
Not ready
Run the probe and fix the red items first. Nothing here is expensive.
How does One AI API Key score itself?
We have not run the probe against our own live API for this post, so we print no number for ourselves. What we can do is say what our documentation promises per area and where we expect to lose points. You can check each claim for free.
| Area | What our docs say | Where we expect to lose points |
|---|---|---|
| Chat | POST /v1/chat/completions returns choices, finish_reason and a usage object; chat docs |
Reasoning models can spend max_tokens thinking |
| Streaming | stream: true sends SSE; include_usage adds a final chunk with empty choices; data: [DONE] ends it; streaming docs |
An error after the stream has started cannot change the HTTP status |
| Tools | tools, tool_choice and parallel_tool_calls are accepted; Claude calls are translated both ways; tool docs |
The free id used in our examples lists no capabilities on its model page |
| JSON | response_format works per model, with a table; dropped for Claude models; structured output |
Claude models need a forced tool |
| Embeddings | Standard request when an embedding model is enabled; reference | Not every account has one enabled: check GET /v1/models |
| Errors | An error object with message, type and code, plus X-Request-Id; 404 model_not_found for an unknown id; errors |
The gateway rewrites some error texts, so branch on the status and code, not the message |
Other OpenAI fields such as seed, n and logprobs are passed through to the provider as they are, so whether they do anything depends on the model, the same as calling that provider directly. Files, fine-tuning, image variations and model deletion return 501, which is the honest answer for an endpoint we do not offer, and the reason a Files-dependent app should not move.
Here is the free, no-trust way to see all of that. Sign in with Google, which is the only sign-in and has no card field, create a key, and run the script on a free id. The account also holds a $10 sign-up credit for priced models, and 48 free ids share 100 requests and 3,000,000 tokens a day, so the 8 model-reaching requests of a run are a small share of the day. Paid models are set up by hand, offline: pick one on the models page, check the pricing page, and email somdutt777@gmail.com to buy access. We do that on purpose, to stop abuse and card fraud, and the post on why paid access goes by email explains what it costs you.
Compatibility is plumbing. The things a probe cannot show are published elsewhere: the status page shows live probes, the rankings show measured usage per model, and the transparency page says what we monitor and what we cannot see. How prompts are handled is in the privacy policy and the data-handling questions guide.
Where does this fit among the other choices?
The probe answers one question: will my client work against this endpoint. It does not choose a provider for you. For that, the series has other tools, and some are more relevant than a compatibility score.
If you are weighing hosted gateways, the nine-option gateway comparison lays them out on stated criteria, the OpenRouter comparison is dated and sourced, and our Portkey alternatives guide is for readers who need routing and not a whole platform. If you would rather run the proxy yourself, LiteLLM alternatives goes through the options and the supply-chain checks. If you ask whether you need a gateway at all, gateway versus direct API says when direct wins, and what a unified API trades away names the costs of one key for many models. For readers who call Claude models, the Anthropic API alternatives guide covers the other compatible format, and the explainer on OpenAI-compatible versus Anthropic-compatible formats shows where the two shapes differ.
Compatibility is also the first line of defence against a bad reseller, but only the first. A relay can pass every check here and still serve a different model, which the reseller risks research, the free key scam patterns and the relay installer checks deal with. A cheap price does not replace testing, and our guide to testing a gateway for free puts this probe into a longer eight-test protocol. If you need to understand what a gateway does at all, start with what an LLM gateway is, and if cost is the issue, reducing LLM API costs and the free LLM API comparison put numbers on it. If you are on OpenRouter now, the migration guide covers the base URL, keys and model ids, and uptime and fallbacks explains what to do when a route fails. The rate limit documentation and the headers reference list what comes back on every response.
What would we run this week?
If we were choosing an endpoint for a new project, we would do five things in about an hour, and none needs a card.
- Pick two candidates and one model id each, the ones you would actually ship.
- Run the probe on both, save the outputs with the date, and note which areas you do not use.
- Read the vendor’s compatibility page next to the output. A fail that the page predicted is a known edge. A fail the page did not predict is a warning about the vendor.
- Run the real-model checks from the verification guide on the winner, because compatibility is not identity.
- Put the loser, or a third provider, in the config as a fallback, and schedule the probe monthly. Models change under the same id, and the monthly diff catches it first.
For a quick start, the quickstart has the first call, the model list has the ids, and the chat lets you try a model in a browser before you write any code.
Run the probe on a free id, then judge us by the output
$10 sign-up credit, 48 free models sharing 100 requests and 3,000,000 tokens a day, no card.
Frequently asked questions
What does OpenAI-compatible mean?
Is there an official OpenAI-compatible standard or certification?
Which features break most often when you change the base URL?
Does compatible mean the model behind it is the one I asked for?
Can I run the probe against ours for free?
z-ai-glm-5.3:free. A run sends 10 requests, 8 of which reach a model, and the free lane allows 100 requests a day. That id lists no capabilities on its model page, so expect the tool and JSON checks to tell you something: that is the point of running them.