{
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "",
    "title": "Mathpix",
    "version": "1",
    "x-aisa-capabilities": {
      "idempotency": "Idempotency-Key",
      "max_price": "X-AISA-Max-Price-USD",
      "quote": {
        "header": "X-AISA-Cost-Mode",
        "value": "quote"
      }
    },
    "x-aisa-configured-paths": [
      "/apis/v1/mathpix/ocr-image",
      "/apis/v1/mathpix/recognize-strokes"
    ],
    "x-aisa-document": {
      "facts_hash": "255c22aa99b3dd516aa60c2a994d5897094652f88f81239b84162deea1b32307",
      "generator_version": "3",
      "protocol_version": "1",
      "schema_version": "1",
      "composer_version": "27",
      "response_pending": [
        {
          "operation_id": "mathpix.ocr-image",
          "path": "/apis/v1/mathpix/ocr-image",
          "method": "POST",
          "statuses": [
            "200"
          ],
          "reason": "public success response has no authoritative payload declaration"
        },
        {
          "operation_id": "mathpix.recognize-strokes",
          "path": "/apis/v1/mathpix/recognize-strokes",
          "method": "POST",
          "statuses": [
            "200"
          ],
          "reason": "public success response has no authoritative payload declaration"
        }
      ],
      "document_hash": "sha256:91bbb9cd7e515e3f7d4465f4444e8773f0949fa131976631f12a155a366e8ad8"
    },
    "x-aisa-plans": {
      "builder": 1.0,
      "display_plan": "payg",
      "payg": 1.0,
      "similarweb_payg": 1.0,
      "team": 1.0,
      "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
    },
    "x-aisa-provider": "mathpix",
    "x-aisa-catalogs": {
      "mathpix": {
        "title": "Mathpix",
        "description": "",
        "x-aisa-document": {
          "facts_hash": "255c22aa99b3dd516aa60c2a994d5897094652f88f81239b84162deea1b32307",
          "generator_version": "3",
          "protocol_version": "1",
          "schema_version": "1"
        },
        "x-aisa-plans": {
          "builder": 1.0,
          "display_plan": "payg",
          "payg": 1.0,
          "similarweb_payg": 1.0,
          "team": 1.0,
          "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
        },
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          }
        }
      }
    }
  },
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "openapi": "3.1.0",
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "paths": {
    "/apis/v1/mathpix/ocr-image": {
      "post": {
        "description": "<!-- aisa-pricing:start -->\n按用量计费；默认请求预估费用：$0.0103 USD（不是固定价格）。 声明的单位费率：每 provider_credit $0.000001 USD。 最终费用以账户适用价格及实际结算为准。\n<!-- aisa-pricing:end -->",
        "operationId": "mathpix.ocr-image",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "default": {
                  "value": {
                    "image_source": "example"
                  }
                },
                "minimal": {
                  "value": {
                    "image_source": "example"
                  }
                }
              },
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "formats": {
                    "items": {},
                    "maxItems": 16,
                    "minItems": 1,
                    "type": "array"
                  },
                  "image_source": {
                    "maxLength": 4096,
                    "minLength": 1,
                    "type": "string"
                  },
                  "tags": {
                    "items": {},
                    "maxItems": 16,
                    "type": "array"
                  }
                },
                "required": [
                  "image_source"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "成功响应"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "OCR Image",
        "tags": [
          "Mathpix"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "mpp": false,
          "mpp_methods": [],
          "x402": false
        },
        "x-aisa-category": "data",
        "x-aisa-pricing": {
          "cost_contract": "response_units",
          "customer_multiplier": 1.0,
          "customer_pricing": "provider_cost_multiplier",
          "default_request_estimate_usd": 0.0103,
          "estimate_source": "profile_seed",
          "evidence_source": "response_body",
          "maximum_units": 10000000,
          "unit": "provider_credit",
          "unit_rate_usd": 1e-06
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": false
        },
        "x-aisa-response-passthrough": true,
        "x-aisa-response-upstream-origin-sha256": "1c29f9f43adcd28c24873d500346e963a557cb3819ba15ea46cbbe38c3c6f4cc",
        "x-aisa-response-upstream-path-sha256": "88fe637beab867e285c088d60d6cc3b3a3bd3823dcabb84f087145eed24b8944",
        "x-aisa-revision": {
          "customer_pricing_ref": "541c4271fcd0",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "f9f3ccfad45b"
        },
        "x-aisa-status": "enabled",
        "x-aisa-validation": "runtime",
        "x-aisa-catalog-id": "mathpix",
        "x-aisa-runtime-operation": {
          "operation_id": "mathpix.ocr-image",
          "method": "POST",
          "path": "/apis/v1/mathpix/ocr-image"
        },
        "x-aisa-response-pending": {
          "operation_id": "mathpix.ocr-image",
          "path": "/apis/v1/mathpix/ocr-image",
          "method": "POST",
          "statuses": [
            "200"
          ],
          "reason": "public success response has no authoritative payload declaration"
        },
        "x-codeSamples": [
          {
            "lang": "text",
            "label": "Reference example",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/mathpix/ocr-image \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"image_source\": \"example\"\n}'"
          }
        ],
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/mathpix/mathpix-ocr-image"
      }
    },
    "/apis/v1/mathpix/recognize-strokes": {
      "post": {
        "description": "<!-- aisa-pricing:start -->\n当前未提供请求参考价格；请使用接口支持的报价功能确认费用。 声明的单位费率：每 provider_credit $0.000001 USD。 最终费用以账户适用价格及实际结算为准。\n<!-- aisa-pricing:end -->",
        "operationId": "mathpix.recognize-strokes",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "formats": {
                    "items": {},
                    "maxItems": 16,
                    "minItems": 1,
                    "type": "array"
                  },
                  "x_coordinates": {
                    "items": {},
                    "maxItems": 16,
                    "type": "array"
                  },
                  "y_coordinates": {
                    "items": {},
                    "maxItems": 16,
                    "type": "array"
                  }
                },
                "required": [
                  "x_coordinates",
                  "y_coordinates"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "成功响应"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Recognize Strokes",
        "tags": [
          "Mathpix"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "mpp": false,
          "mpp_methods": [],
          "x402": false
        },
        "x-aisa-category": "data",
        "x-aisa-pricing": {
          "cost_contract": "response_units",
          "customer_multiplier": 1.0,
          "customer_pricing": "provider_cost_multiplier",
          "estimate_source": "unavailable",
          "estimate_unavailable_reason": "reference_request_unavailable",
          "evidence_source": "response_body",
          "maximum_units": 10000000,
          "unit": "provider_credit",
          "unit_rate_usd": 1e-06
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": false
        },
        "x-aisa-response-passthrough": true,
        "x-aisa-response-upstream-origin-sha256": "1c29f9f43adcd28c24873d500346e963a557cb3819ba15ea46cbbe38c3c6f4cc",
        "x-aisa-response-upstream-path-sha256": "88fe637beab867e285c088d60d6cc3b3a3bd3823dcabb84f087145eed24b8944",
        "x-aisa-revision": {
          "customer_pricing_ref": "541c4271fcd0",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "838e5fe4ffd6"
        },
        "x-aisa-status": "enabled",
        "x-aisa-validation": "runtime",
        "x-aisa-catalog-id": "mathpix",
        "x-aisa-runtime-operation": {
          "operation_id": "mathpix.recognize-strokes",
          "method": "POST",
          "path": "/apis/v1/mathpix/recognize-strokes"
        },
        "x-aisa-response-pending": {
          "operation_id": "mathpix.recognize-strokes",
          "path": "/apis/v1/mathpix/recognize-strokes",
          "method": "POST",
          "statuses": [
            "200"
          ],
          "reason": "public success response has no authoritative payload declaration"
        },
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/mathpix/mathpix-recognize-strokes"
      }
    }
  }
}
