Skip to main content
POST
Add a single pair to a dataset (creates new dataset if the system_prompt_template that's provided doesn't correspond to an existing dataset)

Authorizations

Authorization
string
header
required

Body

application/json
input
string
required
output
string
required
system_prompt_template
string
required

If this prompt already exists, the pair will be added to the existing dataset. If not, a new dataset will be created.

id
string

Optional ID for the pair, will be generated if not provided

labels
string[]
input_media
string<byte>

Optional base64 encoded media data

Response

Pair successfully added to dataset (existing or newly created)

dataset_id
string
pair_id
string