Cut.ProDocs
Generate with AI: chat and embeddings

Turn text into embeddings

OpenAI's embeddings request, for every model with endpoint: embeddings in GET /models. Billed by the tokens read; usage.credits reports what it cost.

Authorization

apiKey
X-Api-Key<token>

In: header

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

POST
/embeddings
curl -X POST "https://example.com/embeddings" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "input": "string",    "property1": null,    "property2": null  }'
{  "code": "REQUEST_INVALID"}