---
title: "Test Ai Connection"
method: POST
path: "/api/v1/master/ai/test-connection"
tags: ["master-ai"]
---

# Test Ai Connection

`POST /api/v1/master/ai/test-connection`

## Request

- Base URL: `https://teraads.co` (the document declares no server; this is the origin it was published from)
- URL: `https://teraads.co/api/v1/master/ai/test-connection`
- Auth: none declared

Test the PRIMARY direct-LLM provider connection (OpenAI or Anthropic,
per LLM_PRIMARY_PROVIDER / configured keys) with a minimal request.

Returns latency, model info, and whether the key is valid.
Costs a fraction of a cent per test (~10 tokens).

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/teraads/apis/tera-ads-api.md) · [All operations](https://skmtc.dev/teraads/apis/tera-ads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/teraads/apis/tera-ads-api/revisions/fb2526b5cf3c?raw)
