Run span-01
Run inference with Span-01, Respan’s first-party classification model for agent traces. Provide an interaction in span and plain-language definitions in behaviors. Your application can use the model’s predictions for evaluations, guardrails, routing, and monitoring.
For each definition, the model returns the probabilities that it is present, absent, or not observable; the three probabilities sum to approximately 1. The example classifies a support interaction for user frustration and an assistant apology. Replace those definitions to apply the model to your own use case.
Authentication
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.
Request
The interaction to classify: preceding messages in input and the target turn in output.
The rubric: one ID and plain-language definition per behavior. There is no per-request behavior-count cap. Definitions count toward usage.input_tokens.
Use span-01-free or span-01-pro. Omit for span-01-free.