Skip to main content
Returns the model the auto-router would pick for a given prompt, along with the full per-candidate scores. No provider call is made and no trace is written — this is a pure routing decision. Useful for:
  • Pre-flight A/B experiments (see what would be picked before sending it)
  • Analytics dashboards (“what percentage of my traffic lands in cluster 47?”)
  • Custom client logic that wants to make the final routing call itself

Request body

Response body

Curl

Using a pre-computed embedding

If you already have the embedding (e.g. from another pipeline stage), pass it to skip the embedder:
usage.embedding_ms will be 0 when the embedding is supplied.

Errors