Authorization
The Authorization
header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE
.
1
Generate completions for a given prompt and rows.
Authorization
The Authorization
header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE
.
rows
The existing values used as context for the newly generated values. The returned values will be of same length and in the same order as the provided list of values. Max 100 rows per request are allowed.
prompt
The prompt for generating the returned values.
model
The model used for generating new values. Check available models with the models.list endpoint. The default model is the first model in that list.
data_description
Additional information regarding the context of the provided values.
dtype
The dtype of the returned values. One of string
, category
, integer
, float
, boolean
, date
or datetime
.
string
category
integer
float
boolean
date
datetime
regex
A regex used to limit the generated values.
categories
The allowed values to be sampled from. If provided, then the dtype is set to category
.
max_tokens
The maximum number of tokens to generate. Only applicable for string dtype.
temperature
The temperature used for sampling.
top_p
The top_p used for nucleus sampling.
1
{
"prompt": "esse nisi",
"model": "veniam adipisicing",
"max_tokens": 14,
"temperature": 0.7
}