Skip to content

LayerScale

LayerScale is an inference server for open-weight language models. It is one binary, shipped as a Docker image, that loads a Hugging Face checkpoint from a local directory and serves it over HTTP on NVIDIA datacenter Hopper, datacenter Blackwell and Vera Rubin GPUs.

What it serves

  • POST /v1/chat/completions, the OpenAI chat API, with SSE streaming and tool calling.
  • POST /v1/responses, the OpenAI Responses API, with typed items, semantic stream events, stored conversations and every tool kind an agent client runs: functions, custom tools, namespaces, shell, apply_patch and a client tool search.
  • POST /v1/messages, the Anthropic Messages API, with streaming and tool use.
  • Stateful sessions: a conversation whose KV cache stays on the GPU between requests, so a turn costs only the tokens it adds.
  • Background data ingestion into a session, flash queries the engine keeps answered as data arrives, and an event stream over SSE or WebSocket.
  • Prometheus metrics and health probes.
  • Video and image generation: the video command makes a clip with sound from a text prompt, and the image command a still picture.

Every request parameter is implemented or refused by name with a 400. The one exception is the Responses API, where agent clients send their own telemetry, caching and routing fields on every request: those are accepted without effect, as the reference servers accept them, and the API reference lists each.

What you need

  • A datacenter Hopper, datacenter Blackwell or Vera Rubin GPU (consumer Blackwell is not supported yet) and a driver that supports CUDA 13.5.
  • An x86-64 host with AVX2 (x86-64-v3) or an NVIDIA Grace host (GH200, GB200, GB300); the image is multi-arch.
  • Docker with the NVIDIA Container Toolkit.
  • A Hugging Face model: a repo id the engine downloads on first start (with HF_TOKEN for a gated one), or a local directory of safetensors.
  • For more than one GPU or the Dynamo worker, a Pro license key.

Contents

Page What it covers
Getting started docker run, first request
Configuration Every command line flag and its default
Models Directory layout, quantized checkpoints, KV cache precision, tensor parallelism
API reference Authentication, errors, every stateless route
Sessions The stateful API: turns, images, data push, questions with logprobs, flash queries, events, WebSocket
Video and image generation The video and image commands: clips with sound and still pictures from a prompt, or from a prompt and a picture; supported models, Docker examples
Deployment Image tags, GPU and host requirements, multi-GPU, probes, reverse proxies
Multi-node One model across several machines: NVL72 trays, InfiniBand, RoCE or Ethernet
NVIDIA Dynamo The optional Dynamo worker (Pro): KV-aware routing, disaggregated prefill and decode, Kubernetes
Troubleshooting Startup and request errors and what they mean
Pricing Free and Pro license tiers

Performance figures are published at layerscale.ai/benchmarks.

Client libraries

  • Python: pip install layerscale
  • TypeScript: npm install @layerscale/layerscale
  • OpenCode plugin: opencode-plugin-layerscale

Both clients cover every route above, sessions and the WebSocket included. The OpenAI and Anthropic SDKs work against the compatible routes: set the base URL to the server and, when it runs with --api-key <KEY>, the API key to KEY.