Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your provider API key or Bifrost authentication token. Virtual keys (prefixed with sk-bf-) can also be passed here.

Body

application/json
model
string
required

Model in provider/model format

input
required

Text, pre-tokenized input, or multimodal content

fallbacks
string[]
encoding_format
enum<string>
Available options:
float,
base64
dimensions
integer
task_type
string

Intended downstream task (Gemini/Vertex text embeddings, e.g. RETRIEVAL_QUERY)

title
string

Optional document title used alongside task_type=RETRIEVAL_DOCUMENT

auto_truncate
boolean

Truncate inputs longer than the model's limit instead of erroring (Vertex text embeddings)

Response

Successful response

data
object[]
model
string
object
string
usage
object

Token usage information

extra_fields
object

Additional fields included in responses