---
title: "Generate Content"
method: POST
path: "/gemini/v1beta/models/{model}:generateContent"
tags: ["Google Vertex AI Compatible"]
---

# Generate Content

`POST /gemini/v1beta/models/{model}:generateContent`

Native Gemini protocol entry point. Mirrors the request and response
shapes of `https://generativelanguage.googleapis.com` — clients may
point the google-genai SDK at this gateway directly.

## Request body

- GeminiGenerateContentRequest — Native Gemini `generateContent` request body. Field definitions here are illustrative — refer to https://ai.google.dev/api/rest/v1beta/models/generateContent as the authoritative reference.
  - `contents` object[]
  - `generationConfig` object
  - `safetySettings` object[]
  - `systemInstruction` object
  - `tools` object[]

## Response `200`

ok

- GeminiGenerateContentResponse — Native Gemini response body. Refer to Google's official documentation for the authoritative field reference.

## Other responses

- `400` — Invalid request
- `401` — Authentication failed
- `403` — Permission denied
- `404` — Not found
- `429` — Rate limited
- `5XX` — Server / upstream error

---

[API](https://skmtc.net/aihubmix/apis/aihubmix-gateway-api.md) · [All operations](https://skmtc.net/aihubmix/apis/aihubmix-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aihubmix/aihubmix-gateway-api/revisions/e7e1a5d99ac2/schema)
