Twigg is the AI piece of your stack.

Stripe handles payments. Clerk handles auth. Twigg handles AI.

You send the next message. Twigg does everything else.

A hosted context store, assembler and model router. Create a chat once, send only the next event, switch models mid-conversation. Conversations live outside the LLM providers.

Get started or read the docs.

Twigg is one API for LLM use. It stores the conversation, fits it to each model's context window, routes it to Anthropic, OpenAI, Google, xAI, Fireworks or OpenRouter, and reports what every request cost.

This website is a JavaScript app, so a plain fetch of any page returns only this text. All documentation is published as markdown:

API base URL: https://api.twigg.ai (every endpoint is under /api/v1, e.g. POST https://api.twigg.ai/api/v1/chats), authenticated with an API key as a bearer token. OpenAPI spec: https://api.twigg.ai/openapi.json