Skip to main content
PUT
File Upload

Purpose values and file formats

Each purpose value requires a specific JSONL schema. Each line of the file must be a valid JSON object matching the format for the chosen purpose.

fine-tune and alignment

Each line requires a messages array of {"role", "content"} objects. Valid roles are system, user, and assistant.

preference-fine-tune

Each line requires three fields — messages, chosen, and rejected — each an array of {"role", "content"} objects.

pre-train

Each line requires a single text field containing raw training text.

Authorizations

Authorization
string
header
required

Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.

Body

multipart/form-data
purpose
enum<string>
required
Available options:
reinforcement-fine-tune,
fine-tune,
preference-fine-tune,
pre-train,
alignment
files
file
required
vector_database_id
string | null

Response

Success

Files API response type

id
string
required
object
string
required
Allowed value: "file"
created_at
string<date-time> | null
type
Available options:
jsonl,
parquet,
pt
purpose
enum<string> | null
Available options:
reinforcement-fine-tune,
fine-tune,
preference-fine-tune,
pre-train,
alignment
filename
string | null
bytes
integer | null
created_by
string | null
original_file_id
string | null
deleted
boolean | null
Last modified on July 31, 2026