BormintoDevelopers Documentation
docs.borminto.com

Create a chat completion

OpenAI Chat Completions through your groups. The response also names the group and the source that answered.

POST https://borminto.com/api/v1/chat/completions

Authentication

Send Authorization: Bearer $BORMINTO_ARMY_KEY, an application key or a group key.

Request

modelstring · required
A model ID from List models, such as openai/gpt-6.2-sol. Not needed when you send models.
messagesarray · required
Up to 256 messages. Roles: system, developer, user, assistant, tool. Content is text, or a list of text parts.
groupstring · optional
A group’s API name. Not needed with a group key.
modelsstring[] · optional
Up to 5 models, tried in order when every source of the previous one is busy or failing.
providerobject · optional
only, ignore, order, allow_fallbacks. See Groups and routing.
streamboolean · optional
Send the answer as Server-Sent Events. See Streaming.
toolsarray · optional
Function tools, with tool_choice and parallel_tool_calls. See Tool calling.
max_tokensinteger · optional
16 to 32,768. Or send max_completion_tokens, not both.
temperature, top_p, stop, seedvarious · optional
Also presence_penalty, frequency_penalty and response_format. Sources that support them use them; others ignore them.
service_tierstring · optional
default, auto or priority. Priority uses only sources that confirmed it.

Response fields

The OpenAI fields, plus group and provider: the group and source that answered. Keep id to look the request up with Request details.

Errors

StatusCodeWhat to do
400invalid_requestA field is missing or not valid. Read error.message.
400unsupported_contentImages and audio are not supported yet. Send text.
400tools_unsupportedNo source of this model can call tools. Use a model from an OpenAI-format source or a ChatGPT account.
400group_mismatchA group key was sent with the name of another group.
401invalid_api_keyThe key is missing, turned off or not an army_ key.
404model_not_foundThe model is not served for this key or group. List models first.
404group_not_foundNo group has this API name.
404no_providerprovider.only or provider.ignore left no source for the model.
429rate_limitedA request, parallel or monthly token limit was reached. Wait for Retry-After.
502provider_errorEvery eligible source failed. Try again.
503group_disabledThe application or group is paused, or no source is available now.

Search documentation

Documentation
Dashboard (opens in a new tab)