{
  "x402Version": 2,
  "id": 72516,
  "slug": "saylorinnovations-api-finance-loan-comparison",
  "resource": "https://saylorinnovations.com/api/finance/loan-comparison",
  "description": "Compare two loan offers - payment, total interest, upfront fees, cheaper loan over the full term, break-even month and cost over your holding period",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "loan_a": {
        "type": "object",
        "description": "Loan a"
      },
      "loan_b": {
        "type": "object",
        "description": "Loan b"
      },
      "cheaper_over_full_term": {
        "type": "string",
        "description": "Cheaper over full term"
      },
      "full_term_cost_difference": {
        "type": "number",
        "description": "Full term cost difference"
      },
      "lower_monthly_payment": {
        "type": "string",
        "description": "Lower monthly payment"
      },
      "monthly_payment_difference": {
        "type": "number",
        "description": "Monthly payment difference"
      },
      "break_even_month": {
        "type": [
          "number",
          "null"
        ],
        "description": "Break even month"
      },
      "holding_period": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "cheaper": {
            "description": "Cheaper loan over the holding period",
            "type": [
              "string",
              "null"
            ]
          },
          "months": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number of months"
          },
          "cost_a": {
            "type": [
              "number",
              "null"
            ],
            "description": "Cost a"
          },
          "cost_b": {
            "type": [
              "number",
              "null"
            ],
            "description": "Cost b"
          }
        },
        "description": "Holding period"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "loan_a",
      "loan_b"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "a_apr": "6.5",
            "a_principal": "300000",
            "a_term_months": "360",
            "a_upfront_fees": "0",
            "b_apr": "6.0",
            "b_principal": "300000",
            "b_term_months": "360",
            "b_upfront_fees": "6000",
            "hold_months": "60"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "loan_a": {
              "principal": 300000,
              "apr_percent": 6.5,
              "term_months": 360,
              "monthly_payment": 1896.2,
              "upfront_fees": 0,
              "total_interest": 382633.47,
              "total_cost_of_borrowing": 382633.47,
              "total_paid": 682633.47
            },
            "loan_b": {
              "principal": 300000,
              "apr_percent": 6,
              "term_months": 360,
              "monthly_payment": 1798.65,
              "upfront_fees": 6000,
              "total_interest": 347514.57,
              "total_cost_of_borrowing": 353514.57,
              "total_paid": 653514.57
            },
            "cheaper_over_full_term": "B",
            "full_term_cost_difference": 29118.9,
            "lower_monthly_payment": "B",
            "monthly_payment_difference": 97.55,
            "break_even_month": 48,
            "holding_period": {
              "months": 60,
              "cost_a": 94605.18,
              "cost_b": 93082.16,
              "cheaper": "B"
            },
            "note": "Cost of borrowing is interest paid plus upfront fees, counted up to the month you sell or refinance; the break-even month is where the cheaper loan changes.",
            "source": "Standard fixed-rate amortization compared month by month"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "a_apr": {
                    "type": "string",
                    "description": "Loan A rate in percent"
                  },
                  "a_principal": {
                    "type": "string",
                    "description": "Loan A amount"
                  },
                  "a_term_months": {
                    "type": "string",
                    "description": "Loan A term in months"
                  },
                  "a_upfront_fees": {
                    "type": "string",
                    "description": "optional Loan A fees and points"
                  },
                  "b_apr": {
                    "type": "string",
                    "description": "Loan B rate in percent"
                  },
                  "b_principal": {
                    "type": "string",
                    "description": "Loan B amount"
                  },
                  "b_term_months": {
                    "type": "string",
                    "description": "Loan B term in months"
                  },
                  "b_upfront_fees": {
                    "type": "string",
                    "description": "optional Loan B fees and points"
                  },
                  "hold_months": {
                    "type": "string",
                    "description": "optional months you expect to keep the loan"
                  }
                },
                "required": [
                  "a_apr",
                  "a_principal",
                  "a_term_months",
                  "b_apr",
                  "b_principal",
                  "b_term_months"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "loan_a": {
                    "type": "object",
                    "description": "Loan a"
                  },
                  "loan_b": {
                    "type": "object",
                    "description": "Loan b"
                  },
                  "cheaper_over_full_term": {
                    "type": "string",
                    "description": "Cheaper over full term"
                  },
                  "full_term_cost_difference": {
                    "type": "number",
                    "description": "Full term cost difference"
                  },
                  "lower_monthly_payment": {
                    "type": "string",
                    "description": "Lower monthly payment"
                  },
                  "monthly_payment_difference": {
                    "type": "number",
                    "description": "Monthly payment difference"
                  },
                  "break_even_month": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Break even month"
                  },
                  "holding_period": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "cheaper": {
                        "description": "Cheaper loan over the holding period",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "months": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Number of months"
                      },
                      "cost_a": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Cost a"
                      },
                      "cost_b": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Cost b"
                      }
                    },
                    "description": "Holding period"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "loan_a",
                  "loan_b"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "compare two mortgage offers",
    "is paying points worth it",
    "break even month for a lower",
    "which loan costs less over 5",
    "refinance comparison calculator"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.955Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "a_apr": {
          "type": "string",
          "description": "Loan A rate in percent"
        },
        "a_principal": {
          "type": "string",
          "description": "Loan A amount"
        },
        "a_term_months": {
          "type": "string",
          "description": "Loan A term in months"
        },
        "a_upfront_fees": {
          "type": "string",
          "description": "optional Loan A fees and points"
        },
        "b_apr": {
          "type": "string",
          "description": "Loan B rate in percent"
        },
        "b_principal": {
          "type": "string",
          "description": "Loan B amount"
        },
        "b_term_months": {
          "type": "string",
          "description": "Loan B term in months"
        },
        "b_upfront_fees": {
          "type": "string",
          "description": "optional Loan B fees and points"
        },
        "hold_months": {
          "type": "string",
          "description": "optional months you expect to keep the loan"
        }
      },
      "required": [
        "a_apr",
        "a_principal",
        "a_term_months",
        "b_apr",
        "b_principal",
        "b_term_months"
      ]
    },
    "exampleResponse": {
      "loan_a": {
        "principal": 300000,
        "apr_percent": 6.5,
        "term_months": 360,
        "monthly_payment": 1896.2,
        "upfront_fees": 0,
        "total_interest": 382633.47,
        "total_cost_of_borrowing": 382633.47,
        "total_paid": 682633.47
      },
      "loan_b": {
        "principal": 300000,
        "apr_percent": 6,
        "term_months": 360,
        "monthly_payment": 1798.65,
        "upfront_fees": 6000,
        "total_interest": 347514.57,
        "total_cost_of_borrowing": 353514.57,
        "total_paid": 653514.57
      },
      "cheaper_over_full_term": "B",
      "full_term_cost_difference": 29118.9,
      "lower_monthly_payment": "B",
      "monthly_payment_difference": 97.55,
      "break_even_month": 48,
      "holding_period": {
        "months": 60,
        "cost_a": 94605.18,
        "cost_b": 93082.16,
        "cheaper": "B"
      },
      "note": "Cost of borrowing is interest paid plus upfront fees, counted up to the month you sell or refinance; the break-even month is where the cheaper loan changes.",
      "source": "Standard fixed-rate amortization compared month by month"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "a_apr": "6.5",
              "a_principal": "300000",
              "a_term_months": "360",
              "a_upfront_fees": "0",
              "b_apr": "6.0",
              "b_principal": "300000",
              "b_term_months": "360",
              "b_upfront_fees": "6000",
              "hold_months": "60"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "loan_a": {
                "principal": 300000,
                "apr_percent": 6.5,
                "term_months": 360,
                "monthly_payment": 1896.2,
                "upfront_fees": 0,
                "total_interest": 382633.47,
                "total_cost_of_borrowing": 382633.47,
                "total_paid": 682633.47
              },
              "loan_b": {
                "principal": 300000,
                "apr_percent": 6,
                "term_months": 360,
                "monthly_payment": 1798.65,
                "upfront_fees": 6000,
                "total_interest": 347514.57,
                "total_cost_of_borrowing": 353514.57,
                "total_paid": 653514.57
              },
              "cheaper_over_full_term": "B",
              "full_term_cost_difference": 29118.9,
              "lower_monthly_payment": "B",
              "monthly_payment_difference": 97.55,
              "break_even_month": 48,
              "holding_period": {
                "months": 60,
                "cost_a": 94605.18,
                "cost_b": 93082.16,
                "cheaper": "B"
              },
              "note": "Cost of borrowing is interest paid plus upfront fees, counted up to the month you sell or refinance; the break-even month is where the cheaper loan changes.",
              "source": "Standard fixed-rate amortization compared month by month"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "a_apr": {
                      "type": "string",
                      "description": "Loan A rate in percent"
                    },
                    "a_principal": {
                      "type": "string",
                      "description": "Loan A amount"
                    },
                    "a_term_months": {
                      "type": "string",
                      "description": "Loan A term in months"
                    },
                    "a_upfront_fees": {
                      "type": "string",
                      "description": "optional Loan A fees and points"
                    },
                    "b_apr": {
                      "type": "string",
                      "description": "Loan B rate in percent"
                    },
                    "b_principal": {
                      "type": "string",
                      "description": "Loan B amount"
                    },
                    "b_term_months": {
                      "type": "string",
                      "description": "Loan B term in months"
                    },
                    "b_upfront_fees": {
                      "type": "string",
                      "description": "optional Loan B fees and points"
                    },
                    "hold_months": {
                      "type": "string",
                      "description": "optional months you expect to keep the loan"
                    }
                  },
                  "required": [
                    "a_apr",
                    "a_principal",
                    "a_term_months",
                    "b_apr",
                    "b_principal",
                    "b_term_months"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "loan_a": {
                      "type": "object",
                      "description": "Loan a"
                    },
                    "loan_b": {
                      "type": "object",
                      "description": "Loan b"
                    },
                    "cheaper_over_full_term": {
                      "type": "string",
                      "description": "Cheaper over full term"
                    },
                    "full_term_cost_difference": {
                      "type": "number",
                      "description": "Full term cost difference"
                    },
                    "lower_monthly_payment": {
                      "type": "string",
                      "description": "Lower monthly payment"
                    },
                    "monthly_payment_difference": {
                      "type": "number",
                      "description": "Monthly payment difference"
                    },
                    "break_even_month": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Break even month"
                    },
                    "holding_period": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "cheaper": {
                          "description": "Cheaper loan over the holding period",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "months": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Number of months"
                        },
                        "cost_a": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Cost a"
                        },
                        "cost_b": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Cost b"
                        }
                      },
                      "description": "Holding period"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "loan_a",
                    "loan_b"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/finance/loan-comparison?a_principal=300000&a_apr=6.5&a_term_months=360&a_upfront_fees=0&b_principal=300000&b_apr=6.0&b_term_months=360&b_upfront_fees=6000&hold_months=60",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "loan_a": {},
    "loan_b": {},
    "cheaper_over_full_term": "string",
    "full_term_cost_difference": 0,
    "lower_monthly_payment": "string",
    "monthly_payment_difference": 0,
    "break_even_month": 0,
    "holding_period": {
      "cheaper": "string",
      "months": 0,
      "cost_a": 0,
      "cost_b": 0
    },
    "note": "string",
    "source": "string"
  }
}