Skip to main content
POST
/
api
/
v1
/
embeddings
Create Embedding
curl --request POST \
  --url https://api.intelligence.io.solutions/api/v1/embeddings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "input": [
    123
  ],
  "encoding_format": "float",
  "dimensions": 123,
  "user": "<string>",
  "truncate_prompt_tokens": 2,
  "additional_data": null,
  "add_special_tokens": true,
  "priority": 0
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://io.net/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

token
string

JWT token

Authorization
string

io.net provided API Key

x-api-key
string

API key set by an SDK client

Body

application/json
model
string
required
input
required
encoding_format
enum<string>
default:float
Available options:
float,
base64
dimensions
integer | null
user
string | null
truncate_prompt_tokens
integer | null
Required range: x >= 1
additional_data
unknown
add_special_tokens
boolean
default:true

If true (the default), special tokens (e.g. BOS) will be added to the prompt.

priority
integer
default:0

The priority of the request (lower means earlier handling; default: 0). Any priority other than 0 will raise an error if the served model does not use priority scheduling.

Response

Successful Response