Error
A valid request URL is required to generate request examples{
"id": "<string>",
"message": {
"role": "<string>",
"content": [
{
"text": "<string>",
"image_url": {
"url": "<string>"
},
"thinking": "<string>",
"document": {
"data": {},
"id": "<string>"
}
}
],
"tool_calls": [
{
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"tool_plan": "<string>"
},
"usage": {
"billed_units": {
"input_tokens": 123,
"output_tokens": 123,
"search_units": 123,
"classifications": 123
},
"tokens": {
"input_tokens": 123,
"output_tokens": 123
},
"cached_tokens": 123
},
"logprobs": [
{
"token_ids": [
123
],
"text": "<string>",
"logprobs": [
123
]
}
]
}Cohere Integration
Chat with model (Cohere v2 format)
Sends a chat request using Cohere v2 API format.
POST
/
cohere
/
v2
/
chat
Error
A valid request URL is required to generate request examples{
"id": "<string>",
"message": {
"role": "<string>",
"content": [
{
"text": "<string>",
"image_url": {
"url": "<string>"
},
"thinking": "<string>",
"document": {
"data": {},
"id": "<string>"
}
}
],
"tool_calls": [
{
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"tool_plan": "<string>"
},
"usage": {
"billed_units": {
"input_tokens": 123,
"output_tokens": 123,
"search_units": 123,
"classifications": 123
},
"tokens": {
"input_tokens": 123,
"output_tokens": 123
},
"cached_tokens": 123
},
"logprobs": [
{
"token_ids": [
123
],
"text": "<string>",
"logprobs": [
123
]
}
]
}Authorizations
BearerAuthBasicAuthVirtualKeyAuthApiKeyAuth
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Body
application/json
Model to use for chat completion
Example:
"command-r-plus"
Array of message objects
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Tool choice mode - AUTO lets the model decide, NONE disables tools, REQUIRED forces tool use
Available options:
AUTO, NONE, REQUIRED Required range:
0 <= x <= 1Top-p sampling
Top-k sampling
Available options:
CONTEXTUAL, STRICT, NONE Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I

