Examples
Apps you can deploy as they are, each one the shortest way to learn a thing the others do not teach.
Introduction
Every example here is a working app rather than an excerpt. The code on each page is read from the file that is deployed and tested, so what you copy is what runs.
Each one earns its place by teaching something the others do not.
They live in runware-serverless-examples, where each one has its own README with the deploy command and a call for every endpoint.

Your first app
Deploy an app that loads nothing, to test the platform end to end or tell whether a failure comes from your model.

Two endpoints in one app
Serve two endpoints with different request schemas from one app, each routed by its path.

Typed requests and responses
Type your handler parameters with Pydantic models and see the request schema the platform builds from them.

Taking an image as input
Accept an image and return one, letting the package's annotations decode the base64 before your handler runs.

Embeddings
Embed a list of texts in one request and get back one vector per text, in the order you sent them.

Running a model with weights
Run a text-to-image model on a GPU and keep its weights on a volume across restarts.

Compiling a model
Compile an image classifier with torch.compile and keep the compiler's cache on a volume for later workers.

Generating an image and removing its background
Generate a product shot and cut it out of its background in one call, with both models on one worker.

Running a language model
Serve chat completions from Qwen3 4B Instruct and decide the request shape yourself.

Folding a protein
Predict a protein's structure from its sequence with ESMFold and get it back as a PDB file.

Resuming a long job
Split a long job into short calls that resume from the checkpoint the previous call saved.

Running your own container
Deploy the vLLM image its maintainers publish, unchanged, and let the platform serve it with NVIDIA Dynamo.

Running an SGLang server
Deploy the SGLang image its maintainers publish, and let the endpoints you declare settle that it is serving a language model.

Rendering 3D frames
Render a Blender frame on a GPU from a container that installs Blender and the system libraries it needs.

Running a ComfyUI workflow
Run ComfyUI headless and call it with a prompt or with a whole workflow exported from your own ComfyUI.

Using more than one GPU
Run one worker across several GPUs, with one serving process per GPU calling your handler.

Secrets and environment variables
Pass configuration and credentials to a worker as environment variables, and check which ones arrived.