---
title: "Gateway Chat"
method: POST
path: "/api/gateway/chat"
tags: ["gateway"]
---

# Gateway Chat

`POST /api/gateway/chat`

## Request

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

Metered model gateway. Enforces plan-based model access and records usage.

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Request body

- GatewayRequest
  - `stream` boolean
  - `model` string, required
  - `messages` object[], required
  - `max_tokens` integer, nullable
  - `temperature` number, nullable
  - `tools` object[], nullable

## Response `200`

Successful Response

- GatewayResponse
  - `id` string, required
  - `model` string, required
  - `content` string, required
  - `usage` object, required
  - `latency_ms` integer, required
  - `tool_calls` object[], nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry.md) · [All operations](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry/llms.txt) · [OpenAPI document](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry/revisions/a3c1ef17f171?raw)
