Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

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
string
required

Model identifier

Example:

"gpt-4"

input
required

Input - can be a string or array of messages

stream
boolean
instructions
string

System instructions for the model

max_output_tokens
integer
metadata
object
parallel_tool_calls
boolean
previous_response_id
string
reasoning
object
store
boolean
temperature
number
Required range: 0 <= x <= 2
text
object
tool_choice
Available options:
none,
auto,
required
tools
object[]
top_p
number
truncation
enum<string>
Available options:
auto,
disabled
user
string
fallbacks
string[]

Response

Successful response

object
string
model
string
input_tokens
integer
input_tokens_details
object
tokens
integer[]
token_strings
string[]
output_tokens
integer
total_tokens
integer
extra_fields
object

Additional fields included in responses