Guide
Multi-turn conversations
The API does not store history for you; send the required messages with every request.
On this page
Send history in order
cURL
curl https://code.verboo.ai/router/v1/chat/completions \
-H "Authorization: Bearer $VERBOO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "<MODEL_ID>",
"messages": [
{"role": "system", "content": "Answer concisely."},
{"role": "user", "content": "What is an API gateway?"},
{"role": "assistant", "content": "It is a single entry point for APIs."},
{"role": "user", "content": "Give me one benefit."}
]
}'Append the assistant response to history before the next user message.
Control context
- Keep the system instruction short and stable.
- Summarize older turns as history grows.
- Account for tools and images within the context window.
- Use context_window from /models as a planning limit, reserving room for output.