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

prompt
string
required

The prompt to complete

max_tokens_to_sample
integer
required

Maximum tokens to generate

stream
boolean
temperature
number
Required range: 0 <= x <= 1
top_p
number
top_k
integer
stop_sequences
string[]
fallbacks
string[]

Response

200 - application/json

Successful response

type
string
default:completion
id
string
completion
string
stop_reason
enum<string>
Available options:
stop_sequence,
max_tokens,
null
model
string
usage
object