Description
Twigg is a hosted, stateful API for working with large language models. You create a chat once, then send only the next event, and Twigg stores the conversation, fits it to the context window of the model you choose, and routes the request to one of several providers. The providers listed are Anthropic, OpenAI, Google, xAI, Fireworks and OpenRouter, and you can switch models in the middle of a conversation. Twigg reports what each request cost. The product is aimed at developers building agents, chatbots, support bots and other LLM apps, who would otherwise manage message history and context length themselves. The conversation is kept outside the model providers, in Twigg's context store. The website explains that it is a JavaScript app, so the documentation is published as markdown files that can be read directly: an index at llms.txt, a complete file at llms-full.txt, a quickstart, an API reference and a model catalogue with prices. Every endpoint is under the /api/v1 path on the API host, and requests are authenticated with an API key sent as a bearer token. An OpenAPI specification is also published for the API.…
Highlights
- Hosted chat context store
- Send only the next message
- Switch models mid-conversation
- Routes to several LLM providers
- Reports the cost of each request
Ratings & Reviews
No ratings yet
Be the first to rate Twigg.
People also visit
OmniKey-AI-Unified-Key-Manager
A self-hosted LLM proxy and failover gateway supporting OpenAI & Gemini…
Twigg FAQ
What is Twigg?
A stateful API for large language models, which stores the conversation and routes requests to a model you choose.
Which providers does it support?
Anthropic, OpenAI, Google, xAI, Fireworks and OpenRouter, according to the site.
Can I switch models during a conversation?
Yes. The site says you can switch models mid-conversation.
How does authentication work?
With an API key sent as a bearer token.
Where is the documentation?
As markdown files, including a quickstart, an API reference, a model catalogue with prices and an OpenAPI specification.
Does it report costs?
Yes. The site says it reports what every request cost.
What are the best Twigg alternatives?
Popular alternatives to Twigg include GoModel, Routerly.ai and SillyTavern. See all Twigg alternatives

