Gemini

Embed content (Gemini-compatible)

Creates an embedding using the native Gemini EmbedContent contract.

post/v1beta/models/{model}:embedContent

Request

  • Base URL: https://api.tokenlab.sh
  • URL: https://api.tokenlab.sh/v1beta/models/{model}:embedContent
  • Auth: HTTP bearer

Path parameters

modelstring required

Query parameters

keystring

Headers

X-TokenLab-Delivery-Policy'auto' | 'verified' | 'official'

Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Verified first and may switch once to Official only before output, request acceptance, or persistent resource creation.

Request body

contentobject required
taskTypestring
task_typestring
titlestring
outputDimensionalityinteger
output_dimensionalityinteger

Response

Gemini-native embedding response

object required

Changes

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