---
title: "Gemini Generate Content"
method: POST
path: "/v1beta/models/{model_path}"
---

# Gemini Generate Content

`POST /v1beta/models/{model_path}`

## Request

- Base URL: `https://api.empiriolabs.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.empiriolabs.ai/v1beta/models/{model_path}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway/docs/v1beta/models/:model_path/post.ts> (a function with typed inputs; its response is checked against the schema)

Google Gemini-compatible generateContent / streamGenerateContent /
countTokens. `model_path` is `{model}:{method}` (model may contain a slash
for provider-prefixed aliases, hence :path). Split on the LAST colon.

## Path parameters

- `model_path` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway.md) - [All operations](https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/empiriolabs/apis/empiriolabs-gateway/revisions/94bb966b0560?raw)
