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.

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.
  • 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.
  • A license key from layerscale.ai/get-license. The free key runs one GPU, one session and a 32,768-token context, as evaluation mode does without a key; tensor parallelism needs a Pro license.

Contents

Page What it covers
Getting started Key, 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, data push, flash queries, events, WebSocket
Deployment Image tags, GPU requirements, multi-GPU, probes, reverse proxies
NVIDIA Dynamo The optional Dynamo worker: 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.