← All notes

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

Sources

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

Permanent ID: iil:note:r8wd24gy

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.},
}

Markdown

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.

All artifact files (JSON index)

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.