Skip to main content
POST
/
cursor
/
v1
/
complete
Error
A valid request URL is required to generate request examples
{
  "type": "completion",
  "id": "<string>",
  "completion": "<string>",
  "model": "<string>",
  "usage": {
    "input_tokens": 123,
    "output_tokens": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.getbifrost.ai/llms.txt

Use this file to discover all available pages before exploring further.

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