---
title: "Chat Gemini"
method: POST
path: "/api/chat/gemini/message"
tags: ["chat_gemini"]
---

# Chat Gemini

`POST /api/chat/gemini/message`

## Request

- Base URL: `https://api.pcbgenerator.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pcbgenerator.com/api/chat/gemini/message`
- Auth: none declared

Send a message to Google Gemini with tool calling and knowledge context.

## Request body

- ChatRequest
  - `message` string, required
  - `history` ChatMessage[]
    - `role` 'user' | 'model', required
    - `content` string, required
  - `context` object, nullable

## Response `200`

Successful Response

- ChatResponse
  - `reply` string, required
  - `tool_calls` ToolCallResponse[], nullable
    - `tool_name` string, required
    - `tool_args` object, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api.md) · [All operations](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/revisions/b6084b3ace32?raw)
