Together AI
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
Use AI
Add the Docs MCP to your AI coding tool to get help building with Respan. No API key needed.
What is Together AI?
The Together AI SDK is the official Python client for Together’s inference platform, providing access to open-source models like Llama, Mistral, and more. Respan can auto-instrument all Together AI calls for tracing, route them through the Respan gateway, or both.
Setup
View your trace
Open the Traces page to see your auto-instrumented LLM spans.
This step applies to Tracing and Both setups. The Gateway-only setup does not produce traces.
Configuration
Attributes
Attach customer identifiers, thread IDs, and metadata to spans.
In Respan()
Set defaults at initialization — these apply to all spans.
With propagate_attributes
Override per-request using a context manager.
Decorators
Use @workflow and @task to create structured trace hierarchies.
Examples
Basic chat
Gateway features
The features below require the Gateway or Both setup from Step 3.
Switch models
Change the model parameter to use 250+ models from different providers through the same gateway.
See the full model list.
Respan parameters
Pass additional Respan parameters via extra_body for gateway features.
See Respan parameters for the full list.