Serving vision-language models on vLLM

Serving image and video input models on vLLM takes deliberate choices about media limits, vision encoder parallelism, caching and memory. This page explains what to decide and what to confirm before you build.

On this page

Serving vision-language models on vLLM: when your teams need it

Your teams need a self-hosted vision-language model when applications must read images or video inside infrastructure you control and still call a standard OpenAI-style API. vLLM can serve that workload. It is an Apache-2.0 licensed, open-source inference engine, and a server started with vllm serve exposes /v1/chat/completions, so applications written against the OpenAI chat format can send image input to it without a proprietary gateway. The decision is less about whether vLLM can do it and more about whether your team will own the extra controls that multimodal serving adds.

Multimodal serving adds several layers on top of text serving. You set per-prompt media limits with --limit-mm-per-prompt, decide where the vision encoder runs, choose whether to keep a processor cache with --mm-processor-cache-gb, and size GPU memory for image tokens, which can be far larger than the text prompt for the same request. The vLLM Qwen3-VL recipe is the reference point for these flags, and it shows that an image-only server can set the video limit to zero and run the vision encoder data-parallel with --mm-encoder-tp-mode data. Confirm the exact flag names and defaults against the recipe for your vLLM release, because the release cadence is about every two weeks.

Before committing, have your platform and security owners agree on three things: which media types and sizes users may submit, which hosts the server may fetch images from, and who reviews the memory plan under peak load. Those answers determine whether the deployment needs a reverse proxy in front of the server, and they feed directly into the endpoint and media controls your auditors will ask about. Review the vLLM Qwen3-VL recipe with your model owners before you size hardware.

Which vision serving options fit which workload

This table compares the three Qwen3-VL recipe flags against the workloads they suit, the trade-offs they bring and what to measure after turning each one on. Read each row as a starting point for testing on your own media mix, since the recipe defaults are not a substitute for measurement. The main takeaway is that the right settings depend on whether your server handles video, how often images repeat and whether the vision encoder is the bottleneck.

SettingWhen it fitsTrade-offWhat to measure
--limit-mm-per-prompt.video 0Image-only servers where no request should carry video, so video input is refused at the serverVideo requests fail outright, so clients that send video need a separate deployment or a planned changeRejected request counts at the API layer and whether any client still sends video frames
--mm-encoder-tp-mode dataMulti-GPU servers where the vision encoder, not the language model, limits time to first token for image-heavy promptsEach GPU holds a full copy of the vision encoder, so memory use rises and the setting may not help small imagesTime to first token and GPU memory per device with the flag on and off, using a sample of real images
--mm-processor-cache-gb 0Workloads where most images or videos are unique, so cached processor outputs are rarely reusedDisabling the cache removes reuse for repeated images, such as shared documents or logos, and may increase repeat-request latencyProcessor cache hit rate, if exposed in your vLLM version, and latency for repeated versus unique inputs
Other media limits (image count, size, allowlisted URL domains)Any server that accepts user-supplied media and needs per-prompt caps or source restrictionsLower caps reject legitimate multi-image requests, and loose URL rules widen the server's outbound request surfaceConfirm the exact option names and defaults against your vLLM version before setting them, then test rejected and accepted requests

How to stand up a vision-language server on vLLM

This sequence takes a vision-language model from a chosen checkpoint to a running vLLM server that accepts one-image and multi-image requests within configured media limits. It ends with evidence that memory, chat templating and metrics behave as the team expects before any application traffic arrives.

  1. Confirm the model and its chat template

    The platform or model owner confirms the exact checkpoint, its license terms and the image and video inputs it is meant to accept. Check that the checkpoint ships a chat template that vLLM can load, or plan to supply one with the --chat-template option, because the chat completions API depends on it. Record the checkpoint revision so every later step tests the same files. This step is done when the team can name the checkpoint, its revision and the template source in one written record.

  2. Choose hardware and precision from the recipe

    The engineering lead compares the target model's entry in the vLLM recipes with the accelerators the team already owns or plans to buy. Use the recipe's stated hardware layout and precision as the starting point, and confirm that the accelerator family is supported by the vLLM installation for that platform. Ask the infrastructure team to confirm that the chosen nodes have the memory the recipe assumes, since the vision encoder and language model share that budget. This step is done when a hardware and precision choice is written down with a link to the recipe section it came from.

  3. Set media limits and encoder mode

    The engineer sets the per-prompt media limits so the server accepts only the input types the application needs. For an image-only service, the Qwen3-VL recipe recommends setting the video limit to 0 with --limit-mm-per-prompt. Set --mm-encoder-tp-mode data if the recipe's data-parallel vision encoder fits the layout, and decide on --mm-processor-cache-gb 0 when inputs are mostly unique. Write each flag into the launch configuration with the reason beside it. This step is done when the launch configuration lists every media flag and a reviewer has signed off on the values.

  4. Start the server with vllm serve

    The platform engineer starts the server with vllm serve using the reviewed model path, hardware layout and media flags. Keep the API key and the reverse proxy in front of the server in the same change, because the --api-key option does not cover every endpoint. Watch the startup log for the model load, the chat template load and any warnings about memory or unsupported media options. This step is done when the server reports ready and the log contains no unresolved errors about the model, template or media configuration.

  5. Measure memory headroom with real image sizes

    The engineer sends requests built from images at the largest resolutions and the largest image counts the application will accept, then watches accelerator memory on each device while the requests run. Confirm that memory stays below the level the team set for headroom under concurrent load, not only under a single request. Record the image sizes used so the test can be repeated after an upgrade or a change to the flags. This step is done when the team has a memory reading for the worst-case inputs and has decided whether the limits or the hardware need to change.

  6. Send one image request

    The application or test engineer sends a single chat completion request that includes one image and a short text question, using the same endpoint and API key the application will use. Check that the response is a normal chat completion and that the answer refers to the image content, not only to the text. Keep the request and response as the baseline for regression tests. This step is done when one image request returns a valid completion through the proxy and the stored baseline matches what the team expects.

  7. Send one multi-image request

    The tester sends a chat completion request with several images in one message, at or near the per-prompt limit the team configured. Confirm that the server accepts the request within the limit and that a request above the limit is rejected rather than silently accepted. Compare the answer with what a person would expect from the same set of images. This step is done when the in-limit multi-image request succeeds, the over-limit request fails as configured and both results are stored.

  8. Confirm metrics and template behavior before go-live

    The operations engineer checks that the /metrics endpoint returns Prometheus-format data, including request counts, latency histograms and KV cache use, and that the metrics are scraped by the monitoring system the team uses. Confirm that the chat template loads on every restart and that the server does not expose /metrics to users through the reverse proxy. Record the scrape target and the alert owner. This step is done when the monitoring system shows the vision server as healthy and the proxy allowlist excludes /metrics from user traffic.

How an image request moves through the vLLM server

The walk-through starts at the client, which sends a chat request with an image reference through a reverse proxy that allowlists only the user-facing endpoints. The vLLM API server then applies per-prompt media limits and URL controls before the processor cache and the vision encoder prepare the image for the language model. Check the trust boundary at the edge: /metrics and /health sit outside the --api-key protection, so the proxy must keep them off the user path.

Image request path through the reverse proxy, vLLM API server, vision encoder and language model.

Why image inputs change memory planning

Text-only sizing will undercount the memory a vision-language model needs on vLLM. Each image adds work beyond the language model's weights and KV cache: the vision encoder produces activations while it processes the media, the processor cache holds preprocessed media when caching is enabled, and every image becomes extra prompt tokens that occupy KV cache blocks for the life of the request. These costs compete with the same GPU memory that holds the weights and the KV cache, so a sizing exercise built only on chat text will look fine in a test and then run short of headroom when users send screenshots, scanned pages or multi-image prompts.

Size the deployment against the largest realistic input your users will send, not the average. Ask the product owners for the maximum number of images per request, the largest resolution they expect, and whether video is in scope at all. Then turn those answers into the server settings: --limit-mm-per-prompt caps how many items each prompt may carry, and the Qwen3-VL recipe recommends --limit-mm-per-prompt.video 0 on image-only servers. Set --mm-processor-cache-gb deliberately, since the recipe suggests 0 when inputs are mostly unique, and confirm the vision encoder tensor mode against the current recipe for your model. Test the worst case you defined, not a single sample image.

Read headroom from the server while the load test runs. The /metrics endpoint exposes KV cache usage alongside request counts, token throughput and latency histograms, so watch the cache usage gauge under peak image traffic and check whether requests queue or latency climbs as it approaches full. If usage stays high at your planned concurrency, reduce the image limit, lower the resolution cap in your client or add capacity before go-live. Confirm the exact metric names in your vLLM version's metrics documentation, because they can change between the releases that ship about every two weeks.

Securing media URLs and exposed endpoints

A vision-language server accepts images and videos from callers and, depending on configuration, fetches them from URLs. That combination widens the attack surface beyond a text-only chat server. The controls below are design decisions to make and verify in your environment, not guarantees that vLLM provides on its own.

Restrict which hosts media is fetched from

When callers pass image or video URLs, the server itself makes outbound requests to those addresses, which can reach internal services or cloud metadata endpoints if nothing limits them. Define an allowlist of hosts the server may fetch from, and check the media URL options in your vLLM version before relying on them. Test with URLs pointing at private address ranges to confirm the egress path is blocked, not just documented.

vLLM security docs

Scope the API key correctly

The --api-key option protects the endpoints under /v1, /v2, /inference and /cohere, but not /invocations, /pause, /resume, /abort_requests, /metrics or /health. Treat it as one layer. Confirm which routes answer without a key on your build, and do not expose the unprotected routes to users or untrusted networks.

Put a reverse proxy in front

The vLLM documentation recommends a reverse proxy that allowlists only the endpoints meant for users. For a vision-language server, that usually means the chat completions and responses paths, with media size limits and timeouts set at the proxy. Block administrative routes entirely at this layer, and test each blocked path from outside the cluster after every change.

Security guidance

Isolate multi-node traffic

In a multi-node deployment, communication between nodes is insecure by default, without authorization or encryption. Image tensors and model state can move across that link, so place the nodes on an isolated network segment with no user-facing access. Verify that only the cluster nodes can reach the inter-node ports, and document the segment as part of the deployment design.

Parallelism and scaling docs

Log requests without keeping images

Request logs help investigate abuse and failures, but storing every uploaded image can create a sensitive data store you did not plan for. Decide which fields to log, such as request ID, client, model, size and status, and keep image payloads out of logs by default. Set a retention period with your privacy team and confirm that metrics labels never carry user content.

vLLM metrics docs

Questions teams ask before serving vision models on vLLM

What drives the cost of a multimodal vLLM deployment?

The main cost is accelerator capacity, because vision-language models need GPU memory for the language model, the vision encoder and the cache of processed media. vLLM itself has no license fee, since the project is licensed under Apache-2.0, so the spend goes to GPUs or other accelerators, the surrounding infrastructure, implementation work and the staff who operate the server. Costs that recur include hardware or cloud capacity, storage, monitoring and patching time. Costs that are mostly one-time include scoping, model and parameter testing and the first deployment. Ask any partner for a quote that separates these components and states which hardware and assumptions it depends on.

How long does a vision model pilot on vLLM take to scope?

The scoping phase depends on how many models you want to test, which hardware you have, and how many input types you must support. Scope grows when you add video input, when images come from many sources, or when the network must block media URLs from unapproved hosts. Plan for time to confirm the model's recipe, check the vLLM release you will pin, and load test with your own images at realistic sizes. No duration is fixed here, so ask any implementation partner to tie the timeline to a written scope with named deliverables.

What must our internal team provide before a vision model pilot starts?

Your team should provide the following before work begins:

  • The model choices you want to test, with licenses that your legal team has approved.
  • The accelerator hardware or cloud accounts where the server will run, including GPU generation and memory.
  • The network rules for inbound requests, outbound media fetches and communication between nodes.
  • A representative set of test images, including sizes, formats and any sensitive content handling rules.
  • Identity, logging and monitoring requirements that the serving layer must meet.

Having these ready shortens the scoping phase and makes the pilot results easier for your security and compliance reviewers to accept.

Can our own engineers deploy vision models on vLLM without a partner?

Yes, a capable platform team can deploy vLLM with vision models, because the project is open source and its documentation covers the serving flags and recipes. The work that usually takes longer for in-house teams is memory planning, tuning the vision encoder, locking down media URL handling, and producing evidence for security and compliance reviews. Ask whether your team has run GPU inference in production, has an upgrade process for a fast-moving project, and can own on-call for the server. A partner can take on part of this as a fixed-scope engagement, and the choice depends on those skills and your staffing.

Does limiting media to images only reduce risk and memory use?

Limiting media to images reduces both risk and memory use in most cases, because video inputs add frames, processing work and cache pressure that image-only servers never need. The Qwen3-VL recipe in the vLLM documentation sets the video limit to zero for image-only servers using the --limit-mm-per-prompt option. It does not remove every risk, so you still need to control which URLs the server may fetch, set per-prompt limits for images and confirm the endpoint exposure rules. Confirm the setting in your chosen vLLM release, since flags and defaults change between releases.

What should we check about media URL access before going live?

Check whether the server can fetch images from URLs that users supply, and if so, which hosts it may reach. Media URL fetching can expose internal services to requests that a user controls, so the server should only reach approved destinations. Also confirm that the API key does not cover every endpoint, since the vLLM security guidance says the key does not protect some routes, and recommends a reverse proxy that allows only the endpoints users should reach. Test these rules with your own network before you open the service to applications.

What evidence will our security and compliance reviewers expect from a vision model server?

Reviewers usually want to see which models and vLLM release are deployed, how requests reach the server, which endpoints are exposed, how media is limited and fetched, how access is logged and how metrics are collected. vLLM exposes Prometheus-format metrics at /metrics, but that route is not covered by the API key, so it also needs network controls. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications. Independent auditors and certification bodies make those determinations, so confirm the evidence list with them before the build starts.

What a scoped vision serving engagement covers

A scoped engagement for serving vision-language models on vLLM covers the planning, deployment and documentation of a self-hosted vLLM server inside infrastructure you control, including your cloud accounts, data centers or air-gapped networks. DeployOpen does not run the model on its own servers. The work is agreed in writing before it starts: which models are in scope (for example, an image-only Qwen3-VL deployment or a Gemma 4 deployment that also accepts video), which accelerators and nodes are used, which API endpoints users reach, and what the finished system must demonstrate. Scope, deliverables and timelines are set in that document, so the quote follows from the stated work rather than from a generic package.

The deliverables are the operating record your teams will rely on after handover. They normally include the chosen vllm serve launch configuration, with each flag and limit explained, such as --limit-mm-per-prompt for the number of images or videos per request, --mm-encoder-tp-mode for how the vision encoder is parallelized, and --mm-processor-cache-gb for the processor cache size. They also include the test results behind those choices, the network and endpoint exposure design, and the monitoring setup using the metrics vLLM exposes at /metrics. Confirm with DeployOpen during scoping which of these items are included, how many test rounds are planned, and who signs off the acceptance tests. Ask whether the record will be kept in your own repository so your security and compliance teams can review it without a dependency on the partner.

Two cost components should be separated in any quote. The first is the one-time implementation and testing work. The second is the recurring cost of running the server, which comes from accelerator capacity and the people who operate it, because vLLM itself has no paid edition. Ongoing upgrades to new vLLM releases, which arrive about every two weeks according to the vLLM GitHub releases, are a recurring item, and retainers for that support are offered separately. Ask for the quote to list each item, state which parts depend on your hardware and model choices, and name the assumptions that would change the effort, such as adding video input or moving from a single node to a multi-node setup.

How DeployOpen scopes and supports vision model serving

DeployOpen plans, implements, documents and supports self-hosted vLLM inside your own infrastructure, including cloud accounts, data centers or air-gapped networks. For vision-language models, the work starts with the image and video workload, then sets media limits, encoder parallelism and memory against the accelerators you already have or plan to buy.

How we scope

  • Written scope lists the vision-language models, input types, accelerators and serving endpoints covered.
  • Scope records per-prompt image and video limits and which media sources clients may reference.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Quotes follow from the written scope, so ask which accelerator and model assumptions the quote depends on.

How we build

  • Build tests the chosen model's recommended vLLM flags against your real image and video samples.
  • Media URL controls are configured and tested against internal, metadata and unapproved addresses.
  • Memory plans are checked by loading the model and measuring behavior under representative concurrent requests.
  • Vision encoder parallelism and processor cache settings are tuned, then the results are recorded for review.

How we hand over

  • Handover includes configuration files, the deployment record and the flag set with the reason for each flag.
  • Runbooks cover model loading, capacity limits, metrics at /metrics and rollback steps for the serving team.
  • Documentation explains which endpoints are exposed to users and how the reverse proxy allowlist is set.
  • Test evidence shows the media limits and URL controls behaved as specified before the system moves to production.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover vLLM release changes, since minor releases arrive about every two weeks.
  • Retesting follows each model change, new media source or upgrade so vision behavior stays verified.
  • Ask in your quote which release, model and accelerator changes the retainer covers and how they are reviewed.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.