We manage the conversation.
Twigg is a stateful API for interacting with LLMs. Simply create a chat, send events to it, and receive responses. The context is all managed and stored internally so you don't have to worry about it.
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.
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:
- https://twigg.ai/llms.txt: index of the docs
- https://twigg.ai/llms-full.txt: every docs page in one file
- https://twigg.ai/docs/quickstart.md: quickstart
- https://twigg.ai/docs/api.md: API reference
- https://api.twigg.ai/v1/catalogue/models.md: model catalogue with prices
API base URL: https://api.twigg.ai/api/v1, authenticated with an API key as a bearer token. OpenAPI spec: https://api.twigg.ai/openapi.json