generateText, streamText, embed, and tool calls.
Setup
opper('anthropic/claude-sonnet-4-6'), opper('gemini/gemini-3.5-flash'), opper('default'), and so on.
Session tracing
Wrap your model withopperSpan to group every call in a conversation under one trace in Opper. Traces are stored once you turn tracing on; without it, each call still appears in Logs with its token usage and cost.
Related
Traces
Grouped spans, per session.
Drop-in SDKs
The OpenAI, Anthropic, and Google AI SDKs against Opper.