Embeddings

Embeddings Generation

POST

Get a vector representation of a given input.

That vector representation can be easily consumed by machine learning models and algorithms.

Request

This endpoint expects an object.
input
unionRequired

Response

This endpoint returns an object
object
any
model
any
data
list of objects
POST
1curl -X POST /v1/embeddings \
2 -H "Content-Type: application/json" \
3 -d '{
4 "input": "input"
5}'
200
Successful
1{
2 "object": {
3 "key": "value"
4 },
5 "model": {
6 "key": "value"
7 },
8 "data": [
9 {
10 "index": 1,
11 "object": {
12 "key": "value"
13 },
14 "embedding": [
15 1.1
16 ]
17 }
18 ]
19}