Inference

Create text embeddings via Voyage AI

Returns 1024-dimensional embedding vectors by default. Supported models: embedding-v1 (general purpose, backed by voyage-3.5) and embedding-code-v1 (code-tuned, backed by voyage-code-3). Billed per input token at the user's subscription-tier margin on top of the Voyage base cost.

post/openai/v1/embeddings

Request

  • Base URL: https://api.tinyhumans.ai
  • URL: https://api.tinyhumans.ai/openai/v1/embeddings
  • Auth: HTTP bearer

Request body

model'embedding-v1' | 'embedding-code-v1' required
dimensions256 | 512 | 1024 | 2048
input_type'query' | 'document'

Optional retrieval-quality hint for Voyage.

Example request

{
  "model": "embedding-v1"
}

Response

Embeddings response in OpenAI format

Changes

No recorded changes to this operation across all 1 revision of this API.