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.

Path Parameters

model
string
required

Model name with action (e.g., gemini-pro:streamGenerateContent)

Body

application/json
model
string

Model field for explicit model specification

contents
object[]

Content for the model to process

systemInstruction
object

System instruction for the model

generationConfig
object
safetySettings
object[]
tools
object[]
toolConfig
object
cachedContent
string

Cached content resource name

labels
object

Labels for the request

requests
object[]

Batch embedding requests

fallbacks
string[]

Response

Successful streaming response

candidates
object[]
promptFeedback
object
usageMetadata
object
modelVersion
string

The model version used to generate the response

responseId
string

Response ID for identifying each response (encoding of event_id)

createTime
string<date-time>

Timestamp when the request was made to the server