---
name: igneos-validate-text-diff-similarity
description: "Unified line or word diff plus Levenshtein distance, Jaro-Winkler, Jaccard bigram and word, cosine term-frequency and SequenceMatcher similarity for two strings up to 1000 characters. Costs 0.002 USDC per call via x402."
---

# Igneos Validate Text Diff Similarity

Unified line or word diff plus Levenshtein distance, Jaro-Winkler, Jaccard bigram and word, cosine term-frequency and SequenceMatcher similarity for two strings up to 1000 characters. Costs 0.002 USDC per call via x402.

## Data source and freshness

Computed from the supplied input; the response schema describes the returned values.

## Request

GET https://igneos.systems/api/v1/validate/text-diff-similarity.php

MCP tool: validate_text_diff_similarity

Price: 0.002 USDC (2000 atomic units).

Example quote request:

```bash
curl -si "https://igneos.systems/api/v1/validate/text-diff-similarity.php?a=kitten&b=sitting"
```

Input schema:

```json
{"type":"object","required":["a","b"],"properties":{"a":{"type":"string","maxLength":1000},"b":{"type":"string","maxLength":1000},"mode":{"type":"string","enum":["line","word"]}},"additionalProperties":false}
```

Output schema:

```json
{"type":"object","required":["equal","mode","unifiedDiff","levenshtein","levenshteinSimilarity","jaroWinkler","jaccardBigram","jaccardWords","cosineTermFrequency","ratio","methodVersion","warnings"],"properties":{"equal":{"type":"boolean"},"mode":{"type":"string"},"unifiedDiff":{"type":"array","items":{"type":"string"}},"levenshtein":{"type":"integer"},"levenshteinSimilarity":{"type":"number"},"jaroWinkler":{"type":"number"},"jaccardBigram":{"type":"number"},"jaccardWords":{"type":"number"},"cosineTermFrequency":{"type":"number"},"ratio":{"type":"number"},"methodVersion":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}
```

Illustrative example output (not a live observation):

```json
{"equal":false,"mode":"line","unifiedDiff":["--- a","+++ b","@@ -1 +1 @@","-kitten","+sitting"],"levenshtein":3,"levenshteinSimilarity":0.571429,"jaroWinkler":0.746032,"jaccardBigram":0.222222,"jaccardWords":0,"cosineTermFrequency":0,"ratio":0.615385,"methodVersion":"igneos-pure/1","warnings":[]}
```

## x402 onboarding

If you have not used x402 before:

1. Connect an x402 V2-capable client to a wallet authorized by your operator. See https://www.x402.org/ and https://docs.cdp.coinbase.com/x402/welcome.
2. Fund the wallet with native USDC on a network offered in the current PAYMENT-REQUIRED header, and configure spending limits. A Base wallet is a supported starting point. Keep wallet signing credentials in your wallet.
3. Make the documented request without payment to obtain HTTP 402. Decode PAYMENT-REQUIRED and check the resource, network, asset, recipient, exact amount, expiry and operator-approved budget.
4. Use the payment client to construct and sign the authorization; repeat the same request with PAYMENT-SIGNATURE. A successful answer is HTTP 200 with PAYMENT-RESPONSE. Save the receipt. Do not make a new payment when a prior outcome is uncertain.
5. Alternatively connect the Streamable HTTP MCP server at https://igneos.systems/mcp. On a payment-required tool result, use an x402-aware MCP client to pay the structured terms and retry with params._meta["x402/payment"]. Save result._meta["x402/payment-response"].

### AWS Bedrock AgentCore

For agents using Amazon Bedrock AgentCore Payments, configure an approved Coinbase wallet/payment instrument and spending limits; discover the API through Coinbase Bazaar or use the documented HTTP endpoint. Follow https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/payments-getting-started.html. Direct AWS Billing for AWS Marketplace sellers is a separate payment integration; this API offers native USDC through x402, not an AWS Billing offer.

### Solana and Polygon

Use the matching native USDC token and a wallet/client that supports the exact network in the live quote. Check the live terms before paying; the data network of a tool is independent of its payment network.

Reference: https://igneos.systems/openapi.json
