Generate a dataset from scratch
Changed onCreates a dataset and starts generating it. Describe the data either by taxonomy — domains and/or subdomains — or in your own words with dataset_prompt: when neither taxonomy field is given, the domains and subdomains are inferred from the prompt. Explicit taxonomy is authoritative and disables that inference. If the prompt cannot be mapped onto the catalog (or inference is unavailable), the request is rejected with 400 asking for explicit domains/subdomains — it is never widened to every domain. Returns immediately — poll GET /datasets/{id} for the status and GET /datasets/{id}/download once it reports succeeded. Set estimate: true to price a request without generating anything.
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "Medical Q&A dataset",
"domains": [
"medical",
"personal_finance"
],
"subdomains": [
"medical.symptoms_diagnosis",
"medical.preventive_care"
],
"rows": 1000,
"translate": {
"languages": [
"es",
"fr"
],
"sample_rate": 0.25
},
"localize": {
"pairs": [
{
"country": "ES",
"language": "ca"
}
],
"sample_rate": 0.25
},
"language_expansion": {
"type": "translate",
"languages": [
"es",
"fr"
],
"pairs": [
{
"country": "ES",
"language": "ca"
}
],
"sample_rate": 0.25
},
"dataset_prompt": "Patient-facing answers to cardiology questions, plain language, no jargon"
}Response
Generation has started, or — with estimate: true — the price of running it.
Example response
{
"id": "3f1b9c62-6f3e-4a1e-9a5c-0b7d2f8e4a10",
"name": "Clinical Q&A",
"training_type": "instruction_dataset",
"domains": [
"medical"
],
"subdomains": [
"medical.symptoms_diagnosis"
],
"rows": 1000,
"status": "running",
"created_at": "2026-08-03T16:12:04.000Z",
"estimated_credits": 800,
"available_credits": 5000
}Changes
- info
added the new optional request property
//// - info
added the new optional request property
//// - info
request property
////deprecated
- info
- info
added the new optional request property
//// - info
added
subschema #3subschema #4to the request bodyanyOflist - info
request property
////deprecated
- info