VCodeX
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/json

Body

FieldTypeNotes
modelstringConcrete id (openai/gpt-5) or alias (vcodex/auto)
messagesarrayOpenAI message objects
streambooleanSSE 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.

On this page