Skip to main content
POST
Compute Text Similarity

Request contract

  • Method and path: POST /apis/v1/api-ninjas/compute-text-similarity
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/compute-text-similarity
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
text_1
string
required

First text to compare for similarity.

Examples:

"The quick brown fox jumps over the lazy dog"

"Machine learning is a subset of artificial intelligence"

text_2
string
required

Second text to compare for similarity.

Examples:

"A fast brown fox leaps over a sleepy dog"

"AI includes machine learning as one of its branches"

Response

Tool result data

similarity
number
required