Skip to main content
POST
Create a completion

Authorizations

Authorization
string
header
required

A key from https://fastrun.si/dashboard/keys (starts with fr_).

Body

application/json
model
string
required
Example:

"google/gemma-4-31b-it"

prompt
required

The text to continue.

stream
boolean
default:false
stream_options
object
max_tokens
integer
default:16

Maximum number of tokens to generate.

Required range: 1 <= x <= 16384
temperature
number
Required range: 0 <= x <= 2
top_p
number
Required range: 0 <= x <= 1
top_k
integer
Required range: 0 <= x <= 1000
stop
seed
integer
logprobs
integer

Return the log probabilities of this many most likely tokens at each position.

Required range: 0 <= x <= 20

Response

The completion. With stream: true the body is a text/event-stream of completion events ending with data: [DONE].

id
string
object
enum<string>
Available options:
text_completion
created
integer
model
string
choices
object[]
usage
object