---
title: Examples | Runware Docs
url: https://runware.ai/docs/serverless/examples
description: Apps you can deploy as they are, each one the shortest way to learn a thing the others do not teach.
relatedDocuments:
  - https://runware.ai/docs/serverless/writing-a-model
  - https://runware.ai/docs/serverless/quickstart
---
## 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`](https://github.com/Runware/runware-serverless-examples), where **each one has its own README** with the deploy command and a call for every endpoint.

All

Getting started

Endpoints and routing

Requests and responses

Models and weights

Long-running work

Containers

Hardware and scale

Configuration and credentials

- [![](https://runware.ai/docs/assets/cover.epRCigc8_ZGKBQj.webp)
    
    ### 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.
    
    ](https://runware.ai/docs/serverless/examples/echo.md)
- [![](https://runware.ai/docs/assets/cover.CvM174oj_1gWEgR.webp)
    
    ### Two endpoints in one app
    
    Serve two endpoints with different request schemas from one app, each routed by its path.
    
    ](https://runware.ai/docs/serverless/examples/image-tools.md)
- [![](https://runware.ai/docs/assets/cover.DB8bbfGd_Z2f8RLF.webp)
    
    ### Typed requests and responses
    
    Type your handler parameters with Pydantic models and see the request schema the platform builds from them.
    
    ](https://runware.ai/docs/serverless/examples/typed-endpoints.md)
- [![](https://runware.ai/docs/assets/cover.ewMaqzQ-_1250au.webp)
    
    ### Taking an image as input
    
    Accept an image and return one, letting the package's annotations decode the base64 before your handler runs.
    
    ](https://runware.ai/docs/serverless/examples/watermark.md)
- [![](https://runware.ai/docs/assets/cover.DuI-Ro3o_2hfabI.webp)
    
    ### Embeddings
    
    Embed a list of texts in one request and get back one vector per text, in the order you sent them.
    
    ](https://runware.ai/docs/serverless/examples/embeddings.md)
- [![](https://runware.ai/docs/assets/cover.hTdvMRU4_Wzu.webp)
    
    ### Running a model with weights
    
    Run a text-to-image model on a GPU and keep its weights on a volume across restarts.
    
    ](https://runware.ai/docs/serverless/examples/loading-weights.md)
- [![](https://runware.ai/docs/assets/cover.B2cRPSCh_pMce9.webp)
    
    ### Compiling a model
    
    Compile an image classifier with torch.compile and keep the compiler's cache on a volume for later workers.
    
    ](https://runware.ai/docs/serverless/examples/compiled-model.md)
- [![](https://runware.ai/docs/assets/cover.nmHtpJjE_AMINM.webp)
    
    ### 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.
    
    ](https://runware.ai/docs/serverless/examples/chained-steps.md)
- [![](https://runware.ai/docs/assets/cover.Dfq2dOAU_ZywKav.webp)
    
    ### Running a language model
    
    Serve chat completions from Qwen3 4B Instruct and decide the request shape yourself.
    
    ](https://runware.ai/docs/serverless/examples/chat-endpoint.md)
- [![](https://runware.ai/docs/assets/cover.Bsf1PvIb_ZP5sGK.webp)
    
    ### Folding a protein
    
    Predict a protein's structure from its sequence with ESMFold and get it back as a PDB file.
    
    ](https://runware.ai/docs/serverless/examples/protein-folding.md)
- [![](https://runware.ai/docs/assets/cover.CsMq0kEx_1GnPgW.webp)
    
    ### Resuming a long job
    
    Split a long job into short calls that resume from the checkpoint the previous call saved.
    
    ](https://runware.ai/docs/serverless/examples/resumable-job.md)
- [![](https://runware.ai/docs/assets/cover.CyEZSZaQ_2fSIUk.webp)
    
    ### Running your own container
    
    Deploy the vLLM image its maintainers publish, unchanged, and let the platform serve it with NVIDIA Dynamo.
    
    ](https://runware.ai/docs/serverless/examples/container-server.md)
- [![](https://runware.ai/docs/assets/cover.ClnHe8F-_QOE04.webp)
    
    ### 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.
    
    ](https://runware.ai/docs/serverless/examples/sglang-server.md)
- [![](https://runware.ai/docs/assets/cover.B0KuyoXv_ZDeMa8.webp)
    
    ### Rendering 3D frames
    
    Render a Blender frame on a GPU from a container that installs Blender and the system libraries it needs.
    
    ](https://runware.ai/docs/serverless/examples/render-farm.md)
- [![](https://runware.ai/docs/assets/cover.Bl5jk8Z9_1qH31i.webp)
    
    ### Running a ComfyUI workflow
    
    Run ComfyUI headless and call it with a prompt or with a whole workflow exported from your own ComfyUI.
    
    ](https://runware.ai/docs/serverless/examples/comfyui-workflow.md)
- [![](https://runware.ai/docs/assets/cover.BJgGe0Y7_ZO11t9.webp)
    
    ### Using more than one GPU
    
    Run one worker across several GPUs, with one serving process per GPU calling your handler.
    
    ](https://runware.ai/docs/serverless/examples/multi-gpu.md)
- [![](https://runware.ai/docs/assets/cover.BDtPF6NH_Zml3AJ.webp)
    
    ### Secrets and environment variables
    
    Pass configuration and credentials to a worker as environment variables, and check which ones arrived.
    
    ](https://runware.ai/docs/serverless/examples/config-and-secrets.md)