DOCUMENTATION

Use Desktop or CLI.
Build with the API.

Learn how MaxLabs works in your codebase, or connect an application through the OpenAI-compatible API.

⌘ K

MODELS

API

API quickstart

Create an API key and send your first MaxLabs request.

Read guide

API Authentication

Protect API keys and charge requests to the intended personal or company account.

Read guide

API Models

List available models and choose one that supports your request.

Read guide

Chat completions

Send messages and process an OpenAI-compatible completion response.

Read guide

Streaming responses

Render output as it arrives and handle stream errors safely.

Read guide

Session Affinity

Send conversation history and keep related turns in one logical session.

Read guide

Prompt Caching

Understand how MaxLabs prompt caching reduces repeated input processing and effective usage.

Read guide

Tool calling

Let a model request functions while your application controls execution.

Read guide

Structured JSON

Request machine-readable JSON and validate it before use.

Read guide

Web Search and Fetching

Use built-in web search and understand how URL fetching differs across Desktop, CLI, and API.

Read guide

Images and Web Search

Use image input or current web information only when the selected model supports it.

Read guide

API Usage Limits

Monitor allowance windows and distinguish quota exhaustion from request throttling.

Read guide

Retries and Idempotency

Retry temporary failures without creating duplicate paid requests.

Read guide

API Troubleshooting

Handle API errors consistently and collect useful support information.

Read guide

API endpoints

Understand the stable endpoints available to direct API users.

Read guide

Python example

Use the OpenAI Python SDK with the MaxLabs API.

Read guide

JavaScript and TypeScript

Use the OpenAI JavaScript SDK from a trusted server process.

Read guide

PHP example

Call the MaxLabs API with PHP and cURL.

Read guide

Production Checklist

Prepare a direct API integration for reliable production use.

Read guide

ACCOUNTS

USAGE

BILLING

TEAMS

SECURITY

TROUBLESHOOTING