Skip to main content
POST
Create embeddings

Authorizations

Authorization
string
header
required

Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.

Body

application/json
input
required
model
string | null
user
string | null
truncate_prompt_tokens
integer | null
Required range: x >= -1
truncation_side
enum<string> | null

Which side to truncate from when truncate_prompt_tokens is active. 'right' keeps the first N tokens. 'left' keeps the last N tokens.

Available options:
left,
right
request_id
string | null

The request_id related to this request. If the caller does not set it, a random uuid will be generated.

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.

mm_processor_kwargs
Mm Processor Kwargs · object | null

Additional kwargs to pass to the HF processor.

cache_salt
string | null

If specified, the prefix cache will be salted with the provided string to prevent an attacker from guessing prompts in multi-user environments.

add_special_tokens
boolean
default:true

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

encoding_format
enum<string>
default:float
Available options:
float,
base64,
bytes,
bytes_only
embed_dtype
enum<string>
default:float32

What dtype to use for encoding. Defaults to float32 for base64 encoding to match the OpenAI python client behavior. Affects base64 and binary responses only.

Available options:
float32,
float16,
bfloat16,
fp8_e4m3,
fp8_e5m2
endianness
enum<string>
default:native

What endianness to use for encoding. Defaults to native to match the OpenAI python client behavior. Affects base64 and binary responses only.

Available options:
native,
big,
little
dimensions
integer | null
use_activation
boolean | null

Whether to use activation for the pooler outputs. null uses the pooler's default, which is true in most cases.

Response

Successful response.

id
string
required
created
integer
required
data
EmbeddingResponseData · object[]
required
usage
UsageInfo · object
required
object
string
default:list
model
string | null
Last modified on July 31, 2026