Adapt a dataset (or estimate cost)
Changed onValidates column mapping and recipe configuration, reserves credits, and starts the adaptation pipeline, which improves the rows already in the dataset without changing how many there are. To add rows instead, use POST /datasets/{dataset_id}/augment. Set estimate=true to validate and get a cost quote without starting a run. When the mapped image column is also in context_columns, output rows are billed at 10 credits per 100 rows (1–100 rows cost 10 credits; see multimodalPricingApplied and creditMultiplier on the response). Once the run succeeds, train on the result with POST /autoscientist.
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Request body
Example request
{
"column_mapping": {
"prompt": "instruction",
"completion": "response",
"chat": "messages",
"context": [
"context"
],
"universal_prompt": "Reframe the following passage as a clear, factual question.",
"image": "image_column"
},
"recipe_specification": {
"version": "2026-04",
"recipes": {
"prompt_rephrase": true,
"deduplication": true
}
},
"brand_controls": {
"length": "concise",
"safety_categories": [
"harassment",
"hate"
],
"hallucination_mitigation": true,
"blueprint": "All generated text must be written exclusively in Brazilian Portuguese (pt-BR)."
},
"training_type": "instruction_dataset",
"translate": {
"languages": [
"es",
"fr"
],
"sample_rate": 0.25
},
"localize": {
"pairs": [
{
"country": "ES",
"language": "ca"
}
],
"sample_rate": 0.25
},
"expand": {
"similar_rows": 500,
"domain_rows": 3000,
"general_rows": 1000
},
"language_expansion": {
"type": "translate",
"languages": [
"es",
"fr"
],
"pairs": [
{
"country": "ES",
"language": "ca"
}
],
"sample_rate": 0.25
}
}Response
Example response
{
"run_id": "dataset-550e8400-e29b-41d4-a716-446655440000-1712234567890"
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
request property
deprecated
- info
- info
endpoint added
- info