---
title: "Generate Content"
method: POST
path: "/google/{region}/v1beta/models/{model}:generateContent"
tags: ["Google"]
---

# Generate Content

`POST /google/{region}/v1beta/models/{model}:generateContent`

## Request

- Base URL: `https://api.langdock.com`
- URL: `https://api.langdock.com/google/{region}/v1beta/models/{model}:generateContent`
- Auth: HTTP bearer

Generate content using Google Gemini models.
This endpoint mirrors the structure of the official Vertex AI generateContent API while adding API-key based authentication and region selection.

## Path parameters

- `region` 'eu' | 'us', required
- `model` string, required

## Request body

- object
  - `contents` object[], required: Conversation history. Parts may be text, functionCall, or functionResponse.
    - `role` 'user' | 'model'
    - `parts` object[]
      - `text` string
      - `thoughtSignature` string: Return unchanged on the follow-up turn (required for Gemini 3).
      - `functionCall` object
        - `name` string
        - `args` object
        - `id` string: Return unchanged on the follow-up turn (required for Gemini 3).
      - `functionResponse` object
        - `name` string
        - `response` object
        - `id` string: Return unchanged on the follow-up turn (required for Gemini 3).

## Response `200`

Successful Response

- object
  - `candidates` object[]
    - `content` object
    - `finishReason` string
  - `usageMetadata` object

## Other responses

- `4XX`: Error response

## Changes

- **2026-11-03** `c62bf90b4013`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langdock/apis/langdock-api/changes/google/:region/v1beta/models/:model:generateContent/post.md)

---

[API](https://skmtc.dev/langdock/apis/langdock-api.md) - [All operations](https://skmtc.dev/langdock/apis/langdock-api/llms.txt) - [OpenAPI document](https://skmtc.dev/langdock/apis/langdock-api/revisions/c62bf90b4013?raw)
