Skip to main content
POST
openrouter_embeddings

Authorizations

X-API-Key
string
header
required

Your fetchbean API key (fb_…). Keys are not accepted through Authorization.

Headers

Idempotency-Key
string

A caller-generated key for safely retrying this execution after a network failure. Reusing the same key with the same operation and input returns the original result; reusing it for a different call is rejected.

Body

application/json
model
string
required

An id returned by openrouter.embedding_models.

input
any
required

Text, token, or multimodal input, or an array of inputs.

dimensions
integer
Required range: x >= 1
encoding_format
Allowed value: "float"
input_type
string

For models that distinguish search_query from search_document.

provider
object
user
string

Response

Success

The response is of type object.