POST /v1/decisions, or use
streaming decisions to send audio over a WebSocket connection
and receive answers as it arrives.
Working with a coding agent? Install the Tazo agent skill
to set up the Python SDK, build an integration, and verify decisions from audio.
Quickstart
Create an API key and make your first decision in a few minutes.
Authentication
Sign-in tokens, API keys, and which one each endpoint accepts.
Decisions
Question types, request shape, and how to read answers.
API reference
Every endpoint, with an interactive playground.
How it works
In the API, the prompt isstate plus each question’s instructions, and the
options are the question’s criteria.
A request has three parts:
- Audio: one audio file, up to 16 MiB (16,777,216 bytes), or live PCM audio over a WebSocket.
- State: shared context for the decision, as a string, object, or list of strings.
- Questions: up to ten questions for Tazo Large, each with an ID you choose. Tazo returns one answer under each ID for the same audio. See Multiple questions for examples and rollout availability.
An example
Say you are building a voice assistant. A user says, “What’s the weather in Paris?” Your app sends Tazo that audio clip, a line of context, and one question: “Which action should be taken?” along with the options Tazo can pick from:- Get the weather
- Play music
- Set a timer
- Send a message
- None of the above
- Get the weather: 92%
- None of the above: 4%
- Set a timer: 2%
- Play music: 1%
- Send a message: 1%
Base URL
wss://api.tazolabs.com/v1/decisions/stream.
All endpoints are under /v1, except /healthz. Fields may be added within v1,
but existing fields and answer types are never renamed or removed. A breaking
change ships as a new versioned endpoint.