Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
A single embedding object

Example Usage

import { CreateEmbeddingsData } from "@openrouter/sdk/models/operations";

let value: CreateEmbeddingsData = {
  embedding: [
    0.0023064255,
    -0.009327292,
    0.015797347,
  ],
  object: "embedding",
};

Fields

FieldTypeRequiredDescriptionExample
embeddingoperations.Embedding:heavy_check_mark:Embedding vector as an array of floats or a base64 string[
0.0023064255,
-0.009327292,
0.015797347
]
indexnumber:heavy_minus_sign:Index of the embedding in the input list0
objectoperations.ObjectEmbedding:heavy_check_mark:N/A