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

id
string
background
boolean
conversation
object
created_at
integer
error
object
include
string[]
incomplete_details
object
instructions
object
max_output_tokens
integer
max_tool_calls
integer
metadata
object
model
string
output
object[]
parallel_tool_calls
boolean
previous_response_id
string
prompt
object
prompt_cache_key
string
reasoning
object
safety_identifier
string
service_tier
string
status
enum<string>
Available options:
completed,
failed,
in_progress,
canceled,
queued,
incomplete
stop_reason
string
store
boolean
temperature
number
text
object
top_logprobs
integer
top_p
number
tool_choice
Available options:
none,
auto,
required
tools
object[]
truncation
string
usage
object
extra_fields
object

Additional fields included in responses

search_results
object[]
videos
object[]
citations
string[]