---
title: "Openai Chat Completions"
method: POST
path: "/v1/chat/completions"
---

# Openai Chat Completions

`POST /v1/chat/completions`

## Request

- Base URL: `https://api.nkq.vn` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nkq.vn/v1/chat/completions`
- Auth: none declared
- TypeScript: <https://skmtc.dev/nkq/apis/antigravity-ai-proxy/docs/v1/chat/completions/post.ts> (a function with typed inputs; its response is checked against the schema)

OpenAI Chat Completions API — used by Cursor.
Thin dispatcher: wraps non-stream requests in keepalive streaming to bypass
Cloudflare's 100s edge timeout (524) for slow MiniMax compression calls.
Pre-validates the API key so request.state.api_plan is populated BEFORE
the keepalive wrapper returns (fixes admin status-matrix UNKNOWN bucket).

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/nkq/apis/antigravity-ai-proxy.md) - [All operations](https://skmtc.dev/nkq/apis/antigravity-ai-proxy/llms.txt) - [OpenAPI document](https://skmtc.dev/nkq/apis/antigravity-ai-proxy/revisions/58a38b92d2d5?raw)
