API Reference›Chat›Chat Completions
https://api.routing.run/v1/chat/completionsCreate a chat completion using the OpenAI-compatible format. routing.run routes your request to the best available provider with automatic fallback.
modelstringrequiredModel ID from the routing.run catalog (e.g. kimi-k2.6).
messagesarrayrequiredA list of messages comprising the conversation so far.
max_tokensintegerMaximum number of tokens to generate in the completion.
temperaturenumberSampling temperature between 0 and 2.
streambooleanIf true, partial message deltas are sent as server-sent events.