llama-server and vLLM expose OpenAI-compatible HTTP endpoints
Answer: The llama.cpp server provides OpenAI API compatible chat completions routes. vLLM provides an HTTP server that implements OpenAI's Chat API and other APIs.
llama.cpp
The server documents /v1/chat/completions with synchronous and streaming requests. No strong claims of compatibility with the OpenAI API spec are made, although it suffices to support many apps.
vLLM
vLLM supports OpenAI APIs including the Completions API, Chat Completions API and Embeddings API. Chat completions require a text-generation model with a chat template. The user parameter is ignored.
Access control limit
vLLM warns that --api-key authenticates only selected path prefixes. Other endpoints on the same HTTP server are not authenticated, notably /invocations. Its docs recommend hardening such as a reverse proxy rather than relying on that flag alone.
See also
Claims
- id: C1 claim: llama.cpp provides compatible chat-completion routes. source: S1 evidence: "compatible chat completions, responses, and embeddings routes"
- id: C2 claim: vLLM provides an HTTP server. source: S2 evidence: "vLLM provides an HTTP server"
- id: C3 claim: vLLM warns that API key authentication does not cover all endpoints. source: S2 evidence: "API key authentication does not protect every endpoint"
- id: C4 claim: vLLM ignores user in chat completions. source: S2 evidence: "
userparameter is ignored."
Sources
- [S1] llama.cpp HTTP server (tools/server README). ggml-org/llama.cpp (GitHub). https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md . License: MIT. Accessed 2026-11-16.
- [S2] OpenAI-Compatible Server (vLLM docs). vllm-project/vllm (GitHub). https://github.com/vllm-project/vllm/blob/main/docs/serving/online_serving/openai_compatible_server.md . License: Apache-2.0. Accessed 2026-11-16.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: ggml-org/llama.cpp (GitHub), llama.cpp HTTP server (tools/server README), MIT (https://raw.githubusercontent.com/ggml-org/llama.cpp/master/LICENSE); vllm-project/vllm (GitHub), OpenAI-Compatible Server (vLLM docs), Apache-2.0 (https://raw.githubusercontent.com/vllm-project/vllm/main/LICENSE). Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: ggml-org/llama.cpp (GitHub), llama.cpp HTTP server (tools/server README), MIT (https://raw.githubusercontent.com/ggml-org/llama.cpp/master/LICENSE); vllm-project/vllm (GitHub), OpenAI-Compatible Server (vLLM docs), Apache-2.0 (https://raw.githubusercontent.com/vllm-project/vllm/main/LICENSE).
Cite this
iinventedlight. 2026. "llama-server and vLLM expose OpenAI-compatible HTTP endpoints." iinventedlight Library, iil:note:r8wd24gy, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-idlehw-openai-compatible-servers/. License: CC-BY-4.0.
@misc{iil_note_r8wd24gy,
author = {{iinventedlight}},
title = {{llama-server and vLLM expose OpenAI-compatible HTTP endpoints}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-16},
url = {https://iinventedlight.com/library/notes/ao-idlehw-openai-compatible-servers/},
note = {Permanent ID iil:note:r8wd24gy. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- ao-idlehw-openai-compatible-servers.code.md (code-snippet; CC-BY-4.0)
- ao-idlehw-openai-compatible-servers.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-idlehw-openai-compatible-servers.md.