Documentation

Text Generation (Chat)

Generate text with the OpenAI-compatible Chat Completions format

POSThttps://api.tokenbyte.ai/v1/chat/completions
curl https://api.tokenbyte.ai/v1/chat/completions \
  -H "Authorization: Bearer $TOKENBYTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"<model-id>","messages":[{"role":"user","content":"Hello"}]}'

Common fields include model, messages, stream, temperature, max_tokens, tools, and tool_choice.