{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-cost-estimate-response-schema.json",
  "title": "CostEstimateResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-cost-management-api-openapi.yml#/components/schemas/CostEstimateResponse",
  "type": "object",
  "properties": {
    "plan_id": {
      "type": "string",
      "description": "Present only on GET /api/v1/plans/{id}/cost. The estimate endpoint\nhas no plan to name and omits it.\n"
    },
    "estimated_cost_usd": {
      "type": "number",
      "format": "double"
    },
    "currency": {
      "type": "string"
    },
    "breakdown": {
      "type": "array",
      "description": "Per-step breakdown. Populated for Evaluation tier and above; omitted\non Community, where only the total is returned.\n",
      "items": {
        "$ref": "#/$defs/StepCostEstimate"
      }
    }
  },
  "required": [
    "estimated_cost_usd",
    "currency"
  ],
  "$defs": {
    "StepCostEstimate": {
      "type": "object",
      "properties": {
        "step_name": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "estimated_tokens_in": {
          "type": "integer"
        },
        "estimated_tokens_out": {
          "type": "integer"
        },
        "estimated_cost_usd": {
          "type": "number",
          "format": "double"
        }
      }
    }
  }
}