{
  "openapi": "3.1.0",
  "info": {
    "title": "AI Coding Agent Cost Comparison API",
    "version": "1.0.0",
    "description": "What a team pays a month for GitHub Copilot, Claude, ChatGPT with Codex and Cursor for the same coding usage, at list prices. No account or key. Uses the same engine and parameters as the page, and stores nothing. An unknown parameter or a value out of range is an error, never a default. Inputs left out keep their default, and inputs_used in the answer lists every value used. A plan with monthly_high_usd is a range, because the vendor does not publish what a seat includes in dollars, or, for GitHub Copilot Pro, Pro+ and Max, because GitHub says its flex credits may change. priced_on names the closest model when a plan cannot run the one chosen. The site allows 600 requests a minute from one address, then answers 429 per request."
  },
  "servers": [
    {
      "url": "https://tools.finitizer.com"
    }
  ],
  "paths": {
    "/ai-coding-assistant-cost/api": {
      "get": {
        "operationId": "estimateAiCodingAssistantCost",
        "summary": "Compare what a team pays for GitHub Copilot, Claude, ChatGPT with Codex and Cursor",
        "parameters": [
          {
            "name": "usage_level",
            "in": "query",
            "required": false,
            "description": "How much each developer uses it. Link parameter: use. light: Light: questions and small edits, about $6 a day. average: Average: a few agent tasks a day, about $13 a day. p90: Heavy: agents on most tasks, about $30 a day. power: Very heavy: several agents at once, about $60 a day. dollars: send usd_per_active_day. custom: send token counts.",
            "schema": {
              "type": "string",
              "enum": [
                "light",
                "average",
                "p90",
                "power",
                "dollars",
                "custom"
              ],
              "default": "average"
            }
          },
          {
            "name": "model",
            "in": "query",
            "required": false,
            "description": "The model id. catalog=options lists them. Link parameter: model.",
            "schema": {
              "type": "string",
              "default": "claude-sonnet-5-5"
            }
          },
          {
            "name": "annual_billing",
            "in": "query",
            "required": false,
            "description": "1 for annual seat billing on Claude Team and ChatGPT Business. Link parameter: annual.",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "default": 0
            }
          },
          {
            "name": "developers",
            "in": "query",
            "required": false,
            "description": "Developers: one seat each. Link parameter: dev.",
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "active_days",
            "in": "query",
            "required": false,
            "description": "Days each developer uses it a month. Link parameter: days.",
            "schema": {
              "type": "integer",
              "default": 15,
              "minimum": 1,
              "maximum": 31
            }
          },
          {
            "name": "usd_per_active_day",
            "in": "query",
            "required": false,
            "description": "What a developer spends a day they use it, at list rates. Sets usage_level=dollars when sent alone. Link parameter: usd.",
            "schema": {
              "type": "number",
              "default": 13,
              "minimum": 0,
              "maximum": 100000
            }
          },
          {
            "name": "input_tokens_per_day",
            "in": "query",
            "required": false,
            "description": "Input tokens per developer a day. Sets usage_level=custom when sent alone. Link parameter: in.",
            "schema": {
              "type": "number",
              "default": 60000,
              "minimum": 0,
              "maximum": 10000000000
            }
          },
          {
            "name": "output_tokens_per_day",
            "in": "query",
            "required": false,
            "description": "Output tokens a day. Link parameter: out.",
            "schema": {
              "type": "number",
              "default": 250000,
              "minimum": 0,
              "maximum": 10000000000
            }
          },
          {
            "name": "cache_read_tokens_per_day",
            "in": "query",
            "required": false,
            "description": "Cache-read tokens a day. Link parameter: cr.",
            "schema": {
              "type": "number",
              "default": 44500000,
              "minimum": 0,
              "maximum": 100000000000
            }
          },
          {
            "name": "cache_write_tokens_per_day",
            "in": "query",
            "required": false,
            "description": "Cache-write tokens a day. Link parameter: cw.",
            "schema": {
              "type": "number",
              "default": 2372000,
              "minimum": 0,
              "maximum": 10000000000
            }
          },
          {
            "name": "light_users",
            "in": "query",
            "required": false,
            "description": "Occasional users: extra seats on top. Link parameter: light.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0,
              "maximum": 100000
            }
          },
          {
            "name": "light_user_share",
            "in": "query",
            "required": false,
            "description": "An occasional user's month as a percentage of a developer's. Link parameter: lshare.",
            "schema": {
              "type": "number",
              "default": 20,
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "json or markdown.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "markdown"
              ],
              "default": "json"
            }
          },
          {
            "name": "catalog",
            "in": "query",
            "required": false,
            "description": "options lists every usage level, model and plan instead of an estimate.",
            "schema": {
              "type": "string",
              "enum": [
                "options"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The estimate, or the catalog asked for.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "summary": {
                      "type": "string"
                    },
                    "prices_read": {
                      "type": "string",
                      "description": "The oldest day any price was last checked."
                    },
                    "inputs_used": {
                      "type": "object",
                      "description": "Every value used, including defaults."
                    },
                    "seats": {
                      "type": "integer"
                    },
                    "regular_user_month_usd": {
                      "type": "number",
                      "description": "One developer's usage at list rates, on the model chosen."
                    },
                    "lowest_exact_plan": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "The lowest plan with one exact figure. For one seat, the plan one person can buy whose high end is lowest, which may be a range (monthly_high_usd)."
                    },
                    "could_cost_less": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "Plans priced as a range whose low end is below that figure."
                    },
                    "direct_api_baseline_usd": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "assistants": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "One row per coding agent: its lowest plan for this team, and the API baseline."
                    },
                    "all_plans": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "Every plan, those that cannot run this usage last."
                    },
                    "what_drives_the_cost": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "notices": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Warnings about the model chosen: dated prices, long prompts."
                    },
                    "not_included": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "page": {
                      "type": "string",
                      "description": "The same estimate on the page."
                    }
                  }
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "An unknown parameter, or a value that could not be used. Details lists them."
          },
          "429": {
            "description": "Too many requests a minute from one address. Slow down and try again."
          }
        }
      }
    }
  }
}
