TokenFlux Docs

Chat Completions

Create OpenAI-compatible chat completions

Chat Completions

POST /v1/chat/completions
Authorization: Bearer YOUR_TOKENFLUX_KEY
Content-Type: application/json
curl https://tokenflux.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_TOKENFLUX_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "messages": [
      {"role": "user", "content": "Explain this API in one sentence."}
    ]
  }'

The endpoint accepts OpenAI-compatible chat-completion payloads. Select an available model ID from Models & pricing. Set stream to true when your client supports streamed responses.

On this page