---
title: "Batch embed contents (Gemini-compatible)"
method: POST
path: "/v1beta/models/{model}:batchEmbedContents"
tags: ["Gemini"]
---

# Batch embed contents (Gemini-compatible)

`POST /v1beta/models/{model}:batchEmbedContents`

## Request

- Base URL: `https://api.tokenlab.sh`
- URL: `https://api.tokenlab.sh/v1beta/models/{model}:batchEmbedContents`
- Auth: HTTP bearer

Creates multiple embeddings using the native Gemini BatchEmbedContents contract.

## Path parameters

- `model` string, required

## Query parameters

- `key` string

## Headers

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

## Request body

- object
  - `requests` object[], required

## Response `200`

Gemini-native batch embedding response

- object

## Other responses

- `400`: Gemini-native error response
- `503`: The requested Delivery tier is temporarily unavailable.

---

[API](https://skmtc.dev/tokenlab/apis/tokenlab-ai-gateway.md) · [All operations](https://skmtc.dev/tokenlab/apis/tokenlab-ai-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/tokenlab/apis/tokenlab-ai-gateway/revisions/3208bfbcda22?raw)
