> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Calculate Mortgage

> Calculate Mortgage

## Request contract

* **Method and path:** POST /apis/v1/api-ninjas/calculate-mortgage
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/api-ninjas/calculate-mortgage`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/api-ninjas.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "api-ninjas.calculate-mortgage",
  "method": "POST",
  "path": "/apis/v1/api-ninjas/calculate-mortgage",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "annual_home_insurance": {
              "description": "Annual homeowner's insurance bill",
              "examples": [
                1200
              ],
              "minimum": 0,
              "type": "number"
            },
            "annual_property_tax": {
              "description": "Annual property tax owed",
              "examples": [
                3000
              ],
              "minimum": 0,
              "type": "number"
            },
            "downpayment": {
              "description": "Downpayment on the home or asset. Cannot exceed home_value.",
              "examples": [
                50000
              ],
              "minimum": 0,
              "type": "number"
            },
            "duration_years": {
              "description": "Loan duration in years (1-10000). Defaults to 30.",
              "examples": [
                30
              ],
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            },
            "home_value": {
              "description": "Total value of the home or asset. Must be greater than downpayment.",
              "examples": [
                250000
              ],
              "minimum": 0,
              "type": "number"
            },
            "interest_rate": {
              "description": "Annual interest rate (in %). For example, a 3.5% interest rate would be 3.5",
              "examples": [
                3.5
              ],
              "minimum": 0,
              "type": "number"
            },
            "loan_amount": {
              "description": "Principal loan amount. Either this OR (home_value + downpayment) must be provided.",
              "examples": [
                200000
              ],
              "minimum": 0,
              "type": "number"
            },
            "monthly_hoa": {
              "description": "Monthly homeowner association fees",
              "examples": [
                100
              ],
              "minimum": 0,
              "type": "number"
            }
          },
          "required": [
            "interest_rate"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/api-ninjas.json POST /apis/v1/api-ninjas/calculate-mortgage
openapi: 3.1.0
info:
  description: ''
  title: API Ninjas
  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-catalogs:
    api-ninjas:
      description: ''
      title: API Ninjas
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: c53874b9873c34f8b75946805271eab819d6d2336f5199ae157e7fafd0da6653
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/api-ninjas/analyze-sentiment
    - /apis/v1/api-ninjas/barcode-generate
    - /apis/v1/api-ninjas/bitcoin
    - /apis/v1/api-ninjas/calculate-calories-burned
    - /apis/v1/api-ninjas/calculate-mortgage
    - /apis/v1/api-ninjas/calculate-sales-tax
    - /apis/v1/api-ninjas/check-domain
    - /apis/v1/api-ninjas/check-is-public-holiday
    - /apis/v1/api-ninjas/check-is-working-day
    - /apis/v1/api-ninjas/check-spelling
    - /apis/v1/api-ninjas/commodity-price
    - /apis/v1/api-ninjas/compute-text-similarity
    - /apis/v1/api-ninjas/convert-currency
    - /apis/v1/api-ninjas/convert-unit
    - /apis/v1/api-ninjas/crypto-price
    - /apis/v1/api-ninjas/detect-text-language
    - /apis/v1/api-ninjas/disposable-email-checker
    - /apis/v1/api-ninjas/dns-lookup
    - /apis/v1/api-ninjas/earnings-calendar
    - /apis/v1/api-ninjas/earnings-call-transcript
    - /apis/v1/api-ninjas/etf-info
    - /apis/v1/api-ninjas/extract-webpage-content
    - /apis/v1/api-ninjas/filter-profanity
    - /apis/v1/api-ninjas/find-ev-charging-stations
    - /apis/v1/api-ninjas/generate-lorem-ipsum
    - /apis/v1/api-ninjas/generate-password
    - /apis/v1/api-ninjas/generate-qr-code
    - /apis/v1/api-ninjas/generate-random-user
    - /apis/v1/api-ninjas/generate-sudoku
    - /apis/v1/api-ninjas/generate-text-embeddings
    - /apis/v1/api-ninjas/generate-user-agent
    - /apis/v1/api-ninjas/get-advice
    - /apis/v1/api-ninjas/get-air-quality
    - /apis/v1/api-ninjas/get-aircraft
    - /apis/v1/api-ninjas/get-airports
    - /apis/v1/api-ninjas/get-animals
    - /apis/v1/api-ninjas/get-baby-names
    - /apis/v1/api-ninjas/get-bucketlist
    - /apis/v1/api-ninjas/get-cats
    - /apis/v1/api-ninjas/get-celebrity
    - /apis/v1/api-ninjas/get-chuck-norris-joke
    - /apis/v1/api-ninjas/get-city
    - /apis/v1/api-ninjas/get-cocktail
    - /apis/v1/api-ninjas/get-company-logo
    - /apis/v1/api-ninjas/get-country-flag
    - /apis/v1/api-ninjas/get-country-info
    - /apis/v1/api-ninjas/get-county
    - /apis/v1/api-ninjas/get-dad-joke
    - /apis/v1/api-ninjas/get-day-in-history
    - /apis/v1/api-ninjas/get-dictionary-definition
    - /apis/v1/api-ninjas/get-dogs
    - /apis/v1/api-ninjas/get-earnings
    - /apis/v1/api-ninjas/get-electric-vehicle-info
    - /apis/v1/api-ninjas/get-emoji
    - /apis/v1/api-ninjas/get-exchange-rate
    - /apis/v1/api-ninjas/get-exercises
    - /apis/v1/api-ninjas/get-fact-of-the-day
    - /apis/v1/api-ninjas/get-facts
    - /apis/v1/api-ninjas/get-gdp
    - /apis/v1/api-ninjas/get-geocoding
    - /apis/v1/api-ninjas/get-helicopter
    - /apis/v1/api-ninjas/get-historical-events
    - /apis/v1/api-ninjas/get-historical-figures
    - /apis/v1/api-ninjas/get-hobbies
    - /apis/v1/api-ninjas/get-horoscope
    - /apis/v1/api-ninjas/get-hospitals
    - /apis/v1/api-ninjas/get-income-tax
    - /apis/v1/api-ninjas/get-insider-transactions
    - /apis/v1/api-ninjas/get-ip-lookup
    - /apis/v1/api-ninjas/get-joke-of-the-day
    - /apis/v1/api-ninjas/get-jokes
    - /apis/v1/api-ninjas/get-motorcycles
    - /apis/v1/api-ninjas/get-mutual-fund
    - /apis/v1/api-ninjas/get-mx-records
    - /apis/v1/api-ninjas/get-planets
    - /apis/v1/api-ninjas/get-population
    - /apis/v1/api-ninjas/get-postal-code
    - /apis/v1/api-ninjas/get-property-tax
    - /apis/v1/api-ninjas/get-public-holidays
    - /apis/v1/api-ninjas/get-quote-of-the-day
    - /apis/v1/api-ninjas/get-random-image
    - /apis/v1/api-ninjas/get-random-quotes
    - /apis/v1/api-ninjas/get-random-word
    - /apis/v1/api-ninjas/get-reverse-geocoding
    - /apis/v1/api-ninjas/get-rhymes
    - /apis/v1/api-ninjas/get-riddles
    - /apis/v1/api-ninjas/get-sales-tax
    - /apis/v1/api-ninjas/get-sec-filing
    - /apis/v1/api-ninjas/get-stars
    - /apis/v1/api-ninjas/get-stock-exchange
    - /apis/v1/api-ninjas/get-stock-price
    - /apis/v1/api-ninjas/get-swift-code
    - /apis/v1/api-ninjas/get-thesaurus
    - /apis/v1/api-ninjas/get-ticker
    - /apis/v1/api-ninjas/get-timezone
    - /apis/v1/api-ninjas/get-trivia
    - /apis/v1/api-ninjas/get-trivia-of-the-day
    - /apis/v1/api-ninjas/get-unemployment
    - /apis/v1/api-ninjas/get-university
    - /apis/v1/api-ninjas/get-url-lookup
    - /apis/v1/api-ninjas/get-weather
    - /apis/v1/api-ninjas/get-weather-forecast
    - /apis/v1/api-ninjas/get-whois
    - /apis/v1/api-ninjas/get-working-days
    - /apis/v1/api-ninjas/get-worldtime
    - /apis/v1/api-ninjas/get-zipcode
    - /apis/v1/api-ninjas/iban-lookup
    - /apis/v1/api-ninjas/income-tax-calculator
    - /apis/v1/api-ninjas/inflation
    - /apis/v1/api-ninjas/list-stock-tickers
    - /apis/v1/api-ninjas/lookup-vin
    - /apis/v1/api-ninjas/market-cap
    - /apis/v1/api-ninjas/nutrition
    - /apis/v1/api-ninjas/scrape-website
    - /apis/v1/api-ninjas/solve-sudoku
    - /apis/v1/api-ninjas/validate-email
    - /apis/v1/api-ninjas/validate-eu-vat
    - /apis/v1/api-ninjas/validate-phone
    - /apis/v1/api-ninjas/validate-routing-number
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:b75f8353d10e549220f9abe124ac796063a1832bc027831191f56e4f4ceab81a
    facts_hash: c53874b9873c34f8b75946805271eab819d6d2336f5199ae157e7fafd0da6653
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: api-ninjas
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/api-ninjas/calculate-mortgage:
    post:
      tags:
        - API Ninjas
      summary: Calculate Mortgage
      operationId: api-ninjas.calculate-mortgage
      requestBody:
        content:
          application/json:
            schema:
              properties:
                annual_home_insurance:
                  description: Annual homeowner's insurance bill
                  examples:
                    - 1200
                  minimum: 0
                  type: number
                annual_property_tax:
                  description: Annual property tax owed
                  examples:
                    - 3000
                  minimum: 0
                  type: number
                downpayment:
                  description: Downpayment on the home or asset. Cannot exceed home_value.
                  examples:
                    - 50000
                  minimum: 0
                  type: number
                duration_years:
                  description: Loan duration in years (1-10000). Defaults to 30.
                  examples:
                    - 30
                  maximum: 10000
                  minimum: 1
                  type: integer
                home_value:
                  description: >-
                    Total value of the home or asset. Must be greater than
                    downpayment.
                  examples:
                    - 250000
                  minimum: 0
                  type: number
                interest_rate:
                  description: >-
                    Annual interest rate (in %). For example, a 3.5% interest
                    rate would be 3.5
                  examples:
                    - 3.5
                  minimum: 0
                  type: number
                loan_amount:
                  description: >-
                    Principal loan amount. Either this OR (home_value +
                    downpayment) must be provided.
                  examples:
                    - 200000
                  minimum: 0
                  type: number
                monthly_hoa:
                  description: Monthly homeowner association fees
                  examples:
                    - 100
                  minimum: 0
                  type: number
              required:
                - interest_rate
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response576A0Ea506F3_connect_API_NINJAS_CALCULATE_MORTGAGE__output__public_data
          description: Tool result data
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
      x-codeSamples:
        - label: Reference example
          lang: text
          source: >-
            # Fixed reference example. Playground inputs do not update this
            sample.

            curl --request POST \
              --url https://api.aisa.one/apis/v1/api-ninjas/calculate-mortgage \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "interest_rate": 3.5
            }'
components:
  schemas:
    Response576A0Ea506F3_connect_API_NINJAS_CALCULATE_MORTGAGE__output__public_data:
      $ref: >-
        #/components/schemas/Response576A0Ea506F3_connect_API_NINJAS_CALCULATE_MORTGAGE__output__72ef89ff996cac8d
    Response576A0Ea506F3_connect_API_NINJAS_CALCULATE_MORTGAGE__output__72ef89ff996cac8d:
      properties:
        annual_payment:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_NINJAS_CALCULATE_MORTGAGE__output__9f8fbdd3c28aefa3
        monthly_payment:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_API_NINJAS_CALCULATE_MORTGAGE__output__753569947b85f206
        total_interest_paid:
          type: number
      required:
        - monthly_payment
        - annual_payment
      type: object
    Response576A0Ea506F3_connect_API_NINJAS_CALCULATE_MORTGAGE__output__9f8fbdd3c28aefa3:
      properties:
        hoa:
          type: number
        home_insurance:
          type: number
        mortgage:
          type: number
        property_tax:
          type: number
        total:
          type: number
      type: object
    Response576A0Ea506F3_connect_API_NINJAS_CALCULATE_MORTGAGE__output__753569947b85f206:
      properties:
        annual_home_ins:
          type: number
        hoa:
          type: number
        mortgage:
          type: number
        property_tax:
          type: number
        total:
          type: number
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.