Routing Preview — ML Junction docs

POST /v1/routing/preview accepts the same canonical request and returns the planned candidates and routing decisions without executing an upstream model call. Use it for deployment validation, policy debugging, and explaining why a route is or is not eligible.

curl "$ASTRO_BASE_URL/v1/routing/preview" \
  -H "Authorization: Bearer $ASTRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.5",
    "messages": [
      { "role": "user", "content": "Preview only." }
    ],
    "requirements": {
      "vision": "required",
      "min_context_tokens": 200000
    },
    "routing": {
      "only_providers": ["openai", "vertex_ai"],
      "require_zdr": true,
      "strict_params": true
    }
  }'

Run previews in CI for production route policies.. Check that at least one eligible route remains after privacy and capability filters.. Inspect estimated pricing before raising a charge cap.. Use exact route IDs from the model-routes endpoint rather than constructing them yourself.

Canonical URL: https://mljunction.com/docs/routing-preview