---
title: "Test Ai Key"
method: POST
path: "/api/ai/test-key"
tags: ["ai"]
---

# Test Ai Key

`POST /api/ai/test-key`

## Request

- Base URL: `https://draw.noddle.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://draw.noddle.dev/api/ai/test-key`
- Auth: none declared

Fire the smallest possible chat at the caller's provider to prove the
key/model/base combination works. Always resolves ``{ok, message}`` — a
bad key is ``ok: false``, never a throw (only malformed headers are 400).
The key rides the X-AI-* headers like every other AI call; it is neither
stored nor logged.

## Response `200`

Successful Response

- object

---

[API](https://skmtc.dev/noddle/apis/noddle-board-2.md) · [All operations](https://skmtc.dev/noddle/apis/noddle-board-2/llms.txt) · [OpenAPI document](https://skmtc.dev/noddle/apis/noddle-board-2/revisions/619d69255d70?raw)
