File size: 2,190 Bytes
7858a76 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | > ## Documentation Index
> Fetch the complete documentation index at: https://docs.wafer.ai/llms.txt
> Use this file to discover all available pages before exploring further.
# Serverless
> Pay-as-you-go access to Wafer models through OpenAI-compatible and Anthropic-compatible APIs.
Wafer Serverless gives you pay-as-you-go access to Wafer-hosted models through the same inference endpoint used across Wafer products. Load credits, mint an API key, and pay per token with no subscription window.
## Connection Details
| | |
| --------------------------------- | --------------------------------------------- |
| **OpenAI-compatible endpoint** | `https://pass.wafer.ai/v1` |
| **Anthropic-compatible endpoint** | `https://pass.wafer.ai/v1/messages` |
| **Send your API key as** | `Authorization: Bearer <key>` |
| **Request-scoped ZDR** | Add `Wafer-ZDR: required` on direct API calls |
## API Capabilities
Serverless supports request-scoped privacy and advanced completion controls:
* [API Reference](/serverless/api-reference)
* [Zero Data Retention](/serverless/zero-data-retention)
* [Tokenized Completions and Constrained Decoding](/serverless/tokenized-completions)
* [Metrics API](/serverless/metrics-api)
* [Usage API](/serverless/usage-api)
## Models
Call `GET https://pass.wafer.ai/v1/models` to see the currently public Serverless catalog. Each model card includes whether the model supports ZDR.
```bash theme={null}
curl -sS "https://pass.wafer.ai/v1/models" \
-H "Authorization: Bearer <YOUR_WAFER_API_KEY>"
```
The public catalog only lists models that are ready for general use. Some routed models may be available by allowlist before they appear in the public catalog.
## Agent Setup
For Claude Code, Codex, Cline, Roo Code, and other harnesses, see [Agent Setup](/serverless/setup).
## Router Setup
For Vercel AI Gateway, OpenRouter, and TrueFoundry AI Gateway, see [Router Setup](/serverless/router-setup).
For direct curl requests and request parameters, see [API Reference](/serverless/api-reference).
|