{
 "schema_version": 1,
 "generated": "2026-10-23",
 "id": "vllm-project-vllm--serve-open-llm-openai-compatible-api",
 "repo": "vllm-project/vllm",
 "repo_url": "https://github.com/vllm-project/vllm",
 "repo_slug": "vllm-project-vllm",
 "title": "Serve an open LLM behind an OpenAI-compatible API",
 "page_title": "How to serve an open LLM behind an OpenAI-compatible API with vLLM",
 "summary": "Turn a Hugging Face model into a local chat endpoint that existing OpenAI client code can call.",
 "who": "A developer or platform engineer who wants apps to call a self-hosted open-weight model instead of a hosted API.",
 "problem": "Existing app code is written against an OpenAI-style API, but the team wants the model to run on its own hardware.",
 "outcome": "A running server at a local URL that answers chat requests from standard OpenAI-style clients.",
 "steps": [
  "Install vLLM with `uv pip install vllm`.",
  "Run `vllm download-kernels` to fetch precompiled kernels for faster startup.",
  "Start the server with `vllm serve <model-id>`; the README mentions an OpenAI-compatible API server but does not show this exact command, so check the Quickstart. (inferred, check the README)",
  "Send one chat request to the server from your app using an OpenAI-style client.",
  "Confirm the reply is returned and note the server's throughput and latency for your model."
 ],
 "agent_prompt": "Using the vllm-project/vllm repo, install vLLM, start an OpenAI-compatible server for <model-id>, and send one chat request. Report the server URL and the model's reply. Verify that the model name appears in the server's models list before you finish.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README does not show the serve command, so the exact invocation must be confirmed in the official Quickstart before relying on it.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python with uv or pip installed",
  "A supported NVIDIA, AMD or Intel GPU, or an x86, ARM or PowerPC CPU",
  "A Hugging Face model you are allowed to download and use"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/vllm-project-vllm/serve-open-llm-openai-compatible-api/",
 "md": "https://dedupedai.com/use-cases/vllm-project-vllm/serve-open-llm-openai-compatible-api/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/vllm-project-vllm--serve-open-llm-openai-compatible-api.json",
 "api_version": "v1"
}
