Skip to main content
Use these complete Python examples to generate records and save a JSONL dataset.

Set up

You need Python, a Project API key, and API credits.
Install SDK
Set your API key in the terminal:

Choose settings

Replace the values in your chosen Python example: Temperature changes sampling, not factual accuracy. Even low-temperature runs can produce different results. Choose model="abliterated-model" (Base) or model="abliterated-model-large-v2" (Large V2) in the examples below. Use reasoning_effort="low" to start. Try "high" for more reasoning; it can take longer and use more tokens.

Choose an example

Expand one example and copy the complete script into generate.py. Edit PROMPT to describe your dataset.
generate.py

Run it

Run generator
Open dataset.jsonl in a text editor. Each line is one record. Choose a new filename for another run to keep the previous dataset. Use python3 if that is your computer’s Python command. Review the records before using them. The web-search example saves response_sources for the whole response; check that the sources support each answer.

Output

A support-message record looks like this. Each JSONL record occupies one line in the file:
dataset.jsonl
For larger datasets, use batch generation.
Last modified on October 11, 2026