Docs ChatGPT Chat /v1/embeddings
API reference

Text embedding (OpenAI compatible)

Generate text vector embeddings. Select upstream via model (such as OpenAI text-embedding-3-small or Gemini embedding model). OpenAI official documentation: https://platform.openai.com/docs/api-reference/embeddings

POST/v1/embeddings

Body Parametersapplication/json

dimensions integer

Vector dimensions

input* string

Input content

model* string

Model name / model ID

Responses

200 OK application/json
response-200 object
properties
data array

Data payload (often Base64 or a structured object)

model string

Model name / model ID

object string

Object type identifier, e.g. chat.completion

usage object

Token usage statistics

400 Bad request or validation failed application/json
response-400 object
properties
error* object
401 Missing or invalid API Key application/json
response-401 object
Request Body Example
1{
2"input": "The food was delicious and the waiter was friendly.",
3"model": "text-embedding-3-small"
4}
Code Sample cURL
1curl -X POST "https://api.digislash.com/v1/embeddings" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"input": "The food was delicious and the waiter was friendly.",
6"model": "text-embedding-3-small"
7}'
Response
1▼{
2▼"data": [
3{}
4],
5"model": "string",
6"object": "string",
7"usage": {}
8}