Skip to main content
Datasets contain examples for training and evaluating models. Upload them as JSONL files.

Upload a dataset

Dataset formats

Each line in your JSONL file must follow one of these schemas:Prompts and completions (most common):
Prompts only (for evaluation with generated completions):
With feedback metrics (for training on ratings):
With preferences (for RLHF/DPO training):
Add optional labels or metadata fields to any format for filtering or custom graders.

Multimodal content

In any of the formats above, content can be either a plain string or a list of content fragments to interleave text and images:
Each image must be a base64 data URI (JPEG, PNG, WebP, or GIF, up to 10 MB). External URLs are not supported.
Datasets and the chat completions API use different image fragment schemas:
See SDK Reference for all dataset methods.