---
title: "Read one machine's AI gateway models and the key names they can use"
method: GET
path: "/api/nodes/{node_id}/ai-gateway"
tags: ["nodes"]
---

# Read one machine's AI gateway models and the key names they can use

`GET /api/nodes/{node_id}/ai-gateway`

## Request

- Base URL: `https://app.nerdit.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.nerdit.ai/api/nodes/{node_id}/ai-gateway`
- Auth: none declared

Ask the node for its gateway state, its aliases and its shared key names.

## Path parameters

- `node_id` string, uuid, required

## Response `200`

Successful Response

- NodeAiGatewayView: One machine's AI gateway: its state, its models and the keys they can use.
  - `online` boolean, required
  - `available` boolean, required
  - `enabled` boolean, required
  - `listening` boolean, required
  - `models` NodeAiModelView[], required
    - `alias` string, required
    - `provider` string, required
    - `model` string, required
    - `base_url` string, nullable, required
    - `key` string, nullable, required
  - `keys` string[], required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Content
- `502`: Bad Gateway

---

[API](https://skmtc.dev/nerdit/apis/nerdit-cloud-web.md) · [All operations](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/llms.txt) · [OpenAPI document](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/revisions/06e3b44b58be?raw)
