{
  "ok": true,
  "service": "zevrouter",
  "storage": "firestore",
  "stored_key_policy": {
    "status": "ready",
    "started_at": "2026-11-25T04:56:43.955Z",
    "completed_at": "2026-11-25T04:56:44.447Z",
    "active_keys": 47,
    "last_error_type": ""
  },
  "upstream": "zevrouter",
  "fallback_upstream": "openrouter",
  "billing": {
    "version": "microcent-v2",
    "precision": "microcent",
    "cost_basis": "catalog_estimate",
    "payment_fee_basis": "policy_estimate",
    "margin_basis": "before_overhead_and_reconciliation"
  },
  "settlement_recovery": {
    "last_run_at": "2026-11-25T04:56:44.447Z",
    "total_prepared": 0,
    "scanned_prepared": 0,
    "scan_has_more": false,
    "lease_acquired": true,
    "lease_contended": false,
    "backoff_active": false,
    "lease_renewals": 1,
    "lease_renewed_at": "2026-11-25T04:56:44.646Z",
    "contention_count": 0,
    "failure_count": 0,
    "next_attempt_at": null,
    "pending_read_since": null,
    "pending_read_age_ms": 0,
    "pending_read_drain_deadline": null,
    "pending_read_abandoned": 0,
    "orphaned_pending_reads": 0,
    "orphaned_pending_read_limit": 2,
    "last_error": null,
    "attempted": 0,
    "recovered": 0,
    "failed": 0,
    "deferred": 0,
    "oldest_prepared_at": null,
    "healthy": true
  },
  "stripe": {
    "mode": "test",
    "checkout_configured": true,
    "webhook_configured": true,
    "payment_methods": [
      "card"
    ],
    "reconciliation_enabled": true,
    "checkout_limits": {
      "minimum_cents": 100,
      "maximum_cents": 10000,
      "daily_cents": 20000,
      "sessions_per_hour": 5,
      "pending_sessions": 3
    }
  },
  "payment_reconciliation": {
    "enabled": true,
    "running": false,
    "healthy": true,
    "last_run_at": "2026-11-25T04:56:58.863Z",
    "last_success_at": "2026-11-25T04:56:58.863Z",
    "checked": 19,
    "repaired": 10,
    "refunds": 0,
    "pending": 0,
    "stale_pending_count": 0,
    "alert_count": 0,
    "last_error_type": ""
  },
  "providers": [
    {
      "id": "google-vertex",
      "configured": true,
      "status": "degraded",
      "timeout_ms": 60000,
      "failure_threshold": 3,
      "cooldown_ms": 30000,
      "failover_priority": 10,
      "price_policy": "model-catalog",
      "request_count": 2,
      "success_count": 1,
      "failure_count": 1,
      "consecutive_failures": 1,
      "circuit_open_until": null,
      "last_status": 0,
      "last_latency_ms": 60002,
      "last_checked_at": "2026-11-25T04:57:58.333Z",
      "last_error": "provider_timeout",
      "half_open_probe_in_flight": false
    },
    {
      "id": "openrouter",
      "configured": true,
      "status": "unknown",
      "timeout_ms": 60000,
      "failure_threshold": 3,
      "cooldown_ms": 30000,
      "failover_priority": 90,
      "price_policy": "model-catalog-plus-gateway",
      "request_count": 0,
      "success_count": 0,
      "failure_count": 0,
      "consecutive_failures": 0,
      "circuit_open_until": null,
      "last_status": null,
      "last_latency_ms": null,
      "last_checked_at": null,
      "last_error": null,
      "half_open_probe_in_flight": false
    },
    {
      "id": "openai",
      "configured": true,
      "status": "healthy",
      "timeout_ms": 60000,
      "failure_threshold": 3,
      "cooldown_ms": 30000,
      "failover_priority": 20,
      "price_policy": "model-catalog",
      "request_count": 1,
      "success_count": 1,
      "failure_count": 0,
      "consecutive_failures": 0,
      "circuit_open_until": null,
      "last_status": 200,
      "last_latency_ms": 1504,
      "last_checked_at": "2026-11-25T04:56:57.381Z",
      "last_error": null,
      "half_open_probe_in_flight": false
    },
    {
      "id": "anthropic",
      "configured": true,
      "status": "unknown",
      "timeout_ms": 60000,
      "failure_threshold": 3,
      "cooldown_ms": 30000,
      "failover_priority": 30,
      "price_policy": "model-catalog",
      "request_count": 0,
      "success_count": 0,
      "failure_count": 0,
      "consecutive_failures": 0,
      "circuit_open_until": null,
      "last_status": null,
      "last_latency_ms": null,
      "last_checked_at": null,
      "last_error": null,
      "half_open_probe_in_flight": false
    },
    {
      "id": "deepseek",
      "configured": false,
      "status": "unknown",
      "timeout_ms": 60000,
      "failure_threshold": 3,
      "cooldown_ms": 30000,
      "failover_priority": 40,
      "price_policy": "model-catalog",
      "request_count": 0,
      "success_count": 0,
      "failure_count": 0,
      "consecutive_failures": 0,
      "circuit_open_until": null,
      "last_status": null,
      "last_latency_ms": null,
      "last_checked_at": null,
      "last_error": null,
      "half_open_probe_in_flight": false
    },
    {
      "id": "zhipu",
      "configured": false,
      "status": "unknown",
      "timeout_ms": 60000,
      "failure_threshold": 3,
      "cooldown_ms": 30000,
      "failover_priority": 50,
      "price_policy": "model-catalog",
      "request_count": 0,
      "success_count": 0,
      "failure_count": 0,
      "consecutive_failures": 0,
      "circuit_open_until": null,
      "last_status": null,
      "last_latency_ms": null,
      "last_checked_at": null,
      "last_error": null,
      "half_open_probe_in_flight": false
    },
    {
      "id": "fireworks",
      "configured": true,
      "status": "unknown",
      "timeout_ms": 60000,
      "failure_threshold": 3,
      "cooldown_ms": 30000,
      "failover_priority": 60,
      "price_policy": "model-catalog",
      "request_count": 0,
      "success_count": 0,
      "failure_count": 0,
      "consecutive_failures": 0,
      "circuit_open_until": null,
      "last_status": null,
      "last_latency_ms": null,
      "last_checked_at": null,
      "last_error": null,
      "half_open_probe_in_flight": false
    },
    {
      "id": "dashscope",
      "configured": true,
      "status": "unknown",
      "timeout_ms": 60000,
      "failure_threshold": 3,
      "cooldown_ms": 30000,
      "failover_priority": 70,
      "price_policy": "model-catalog",
      "request_count": 0,
      "success_count": 0,
      "failure_count": 0,
      "consecutive_failures": 0,
      "circuit_open_until": null,
      "last_status": null,
      "last_latency_ms": null,
      "last_checked_at": null,
      "last_error": null,
      "half_open_probe_in_flight": false
    }
  ],
  "green_routing": {
    "enabled": true,
    "modes": [
      "default",
      "greenest",
      "balanced",
      "fastest",
      "cheapest",
      "manual"
    ],
    "task_modes": [
      "auto",
      "fast",
      "best",
      "private",
      "low-cost"
    ],
    "estimates_are_speculative": true
  },
  "model_routes": [
    {
      "id": "google/gemini-3.8-flash",
      "route": "gemini-3.8-flash",
      "provider_servers": [
        "google-vertex/global"
      ]
    },
    {
      "id": "google/gemini-3.7-flash",
      "route": "gemini-3.7-flash",
      "provider_servers": [
        "google-vertex/global"
      ]
    },
    {
      "id": "google/gemini-3.6-flash",
      "route": "gemini-3.6-flash",
      "provider_servers": [
        "google-vertex/global"
      ]
    },
    {
      "id": "google/gemini-3.5-flash",
      "route": "gemini-3.5-flash",
      "provider_servers": [
        "google-vertex/global"
      ]
    },
    {
      "id": "google/gemini-3-flash-preview",
      "route": "gemini-3-flash-preview",
      "provider_servers": [
        "google-vertex/global"
      ]
    },
    {
      "id": "google/gemini-2.5-flash-lite",
      "route": "gemini-2.5-flash-lite",
      "provider_servers": [
        "google-vertex/us-west1",
        "google-vertex/us-west4",
        "google-vertex/us-central1",
        "google-vertex/us-east1",
        "google-vertex/us-east4",
        "google-vertex/us-east5",
        "google-vertex/us-south1",
        "google-vertex/europe-west1",
        "google-vertex/europe-west4",
        "google-vertex/europe-north1",
        "google-vertex/europe-central2",
        "google-vertex/europe-west8",
        "google-vertex/europe-southwest1",
        "google-vertex/europe-west9"
      ]
    },
    {
      "id": "google/gemini-3.1-flash-lite",
      "route": "gemini-3.1-flash-lite",
      "provider_servers": [
        "google-vertex/global"
      ]
    },
    {
      "id": "google/gemini-2.5-flash",
      "route": "gemini-2.5-flash",
      "provider_servers": [
        "google-vertex/us-west1",
        "google-vertex/us-west4",
        "google-vertex/us-central1",
        "google-vertex/us-east1",
        "google-vertex/us-east4",
        "google-vertex/us-east5",
        "google-vertex/us-south1",
        "google-vertex/europe-west1",
        "google-vertex/europe-west4",
        "google-vertex/europe-north1",
        "google-vertex/europe-central2",
        "google-vertex/europe-west8",
        "google-vertex/europe-southwest1",
        "google-vertex/europe-west9"
      ]
    },
    {
      "id": "google/gemini-2.5-pro",
      "route": "gemini-2.5-pro",
      "provider_servers": [
        "google-vertex/us-west1",
        "google-vertex/us-west4",
        "google-vertex/us-central1",
        "google-vertex/us-east1",
        "google-vertex/us-east4",
        "google-vertex/us-east5",
        "google-vertex/us-south1",
        "google-vertex/europe-west1",
        "google-vertex/europe-west4",
        "google-vertex/europe-north1",
        "google-vertex/europe-central2",
        "google-vertex/europe-west8",
        "google-vertex/europe-southwest1",
        "google-vertex/europe-west9"
      ]
    },
    {
      "id": "google/gemini-3.1-flash-image",
      "route": "gemini-3.1-flash-image",
      "provider_servers": [
        "google-vertex/us-west1",
        "google-vertex/us-west4",
        "google-vertex/us-central1",
        "google-vertex/us-east1",
        "google-vertex/us-east4",
        "google-vertex/us-east5",
        "google-vertex/us-south1",
        "google-vertex/europe-west1",
        "google-vertex/europe-west4",
        "google-vertex/europe-north1",
        "google-vertex/europe-central2",
        "google-vertex/europe-west8",
        "google-vertex/europe-southwest1",
        "google-vertex/europe-west9"
      ]
    },
    {
      "id": "google/gemini-3.5-flash-lite",
      "route": "gemini-3.5-flash-lite",
      "provider_servers": [
        "google-vertex/global"
      ]
    },
    {
      "id": "google/gemini-4-neon",
      "route": "gemini-4-neon",
      "provider_servers": [
        "google-vertex/global"
      ]
    },
    {
      "id": "google/gemini-4-hydrogen",
      "route": "gemini-4-hydrogen",
      "provider_servers": [
        "google-vertex/global"
      ]
    },
    {
      "id": "google/gemini-4-carbon",
      "route": "gemini-4-carbon",
      "provider_servers": [
        "google-vertex/global"
      ]
    },
    {
      "id": "anthropic/claude-haiku-5-5",
      "route": "claude-haiku-5-5",
      "provider_servers": [
        "anthropic/line-haiku"
      ]
    },
    {
      "id": "anthropic/claude-opus-5-5",
      "route": "claude-opus-5-5",
      "provider_servers": [
        "anthropic/line-opus"
      ]
    },
    {
      "id": "openai/gpt-6-luna-decisions",
      "route": "gpt-6-luna-decisions",
      "provider_servers": [
        "openai/line-luna-decisions"
      ]
    },
    {
      "id": "openai/gpt-6-luna",
      "route": "gpt-6-luna",
      "provider_servers": [
        "openai/line-luna-evaluation"
      ]
    },
    {
      "id": "openai/gpt-6.1-sol",
      "route": "gpt-6.1-sol",
      "provider_servers": [
        "openai/line-sol"
      ]
    },
    {
      "id": "openai/gpt-6.2-sol",
      "route": "gpt-6.2-sol",
      "provider_servers": [
        "openai/line-sol62"
      ]
    },
    {
      "id": "openai/gpt-6.1-terra",
      "route": "gpt-6.1-terra",
      "provider_servers": [
        "openai/line-terra"
      ]
    },
    {
      "id": "z-ai/glm-5.3-flash",
      "route": "accounts/fireworks/models/glm-5p3-flash",
      "provider_servers": [
        "fireworks/line-evaluation"
      ]
    },
    {
      "id": "z-ai/glm-5.3",
      "route": "accounts/fireworks/models/glm-5p3",
      "provider_servers": [
        "fireworks/line-evaluation"
      ]
    },
    {
      "id": "deepseek/deepseek-v4.1-flash",
      "route": "accounts/fireworks/models/deepseek-v4p1-flash",
      "provider_servers": [
        "fireworks/line-evaluation"
      ]
    },
    {
      "id": "qwen/qwen3.8-max-0902",
      "route": "qwen3.8-max-0902",
      "provider_servers": [
        "dashscope/line-evaluation"
      ]
    }
  ]
}