Reference
Chat completions
POST /v1/chat/completions — the OpenAI-compatible endpoint.
POST https://app.vcodex.ai/v1/chat/completions
Authorization: Bearer $VCODEX_KEY
Content-Type: application/jsonBody
| Field | Type | Notes |
|---|---|---|
model | string | Concrete id (openai/gpt-5) or alias (vcodex/auto) |
messages | array | OpenAI message objects |
stream | boolean | SSE streaming when true |
temperature, max_tokens, … | — | Standard OpenAI parameters |
Example
curl https://app.vcodex.ai/v1/chat/completions \
-H "Authorization: Bearer $VCODEX_KEY" \
-d '{
"model": "vcodex/auto",
"messages": [{ "role": "user", "content": "ship it" }],
"stream": false
}'The response is the standard OpenAI ChatCompletion object (or a stream of
ChatCompletionChunks). The response carries an X-Correlation-ID header — a
ULID for tracing.