Request Parameters

Share

KiteRouter accepts the OpenAI-compatible chat completion payload and forwards it to the selected upstream OpenAI-compatible provider route.

Parameters

ParameterTypeRequiredDescription
modelstring✅KiteRouter model ID, for example gpt-4o-mini. This can map to one or more provider models.
messagesarray✅Ordered chat messages with role and content.
streamboolean—If true, returns Server-Sent Events. Default: false.
temperaturenumber—Sampling temperature. Forwarded as-is to the upstream provider.
max_tokensinteger—Maximum output tokens when supported by the upstream provider.
top_pnumber—Nucleus sampling threshold. Forwarded as-is.
stopstring | array—Stop sequence(s). Forwarded as-is.
toolsarray—OpenAI-compatible tool definitions for models that support tool calling.
tool_choicestring | object—Tool selection behavior. Forwarded as-is.
response_formatobject—JSON mode / structured output options when supported by the model.

Message Format

json
1{
2  "role": "user",
3  "content": "Your message here"
4}

Roles

RoleDescription
systemSets assistant behavior. KiteRouter may inject an admin-configured system prompt before forwarding.
userUser input.
assistantPrevious assistant response for conversation context.
toolTool result messages when using OpenAI-compatible tool calling.

Info: KiteRouter does not convert request formats. Use OpenAI-compatible payloads for /api/v1/chat/completions.

Ready to start building?

Get your API key and make your first request in under a minute.