Skip to main content
POST
Generate Text Embeddings

Request contract

  • Method and path: POST /apis/v1/api-ninjas/generate-text-embeddings
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/generate-text-embeddings
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
string
required

Text to generate embeddings for. Maximum 5,000 characters.

Maximum string length: 5000
Examples:

"This is an example sentence."

"Hello world"

Response

Tool result data

embeddings
number[]
required