Start an adaptation run (or estimate cost)
datasets.run(strdataset_id, DatasetRunParams**kwargs) -> DatasetRunResponse
POST/api/v1/datasets/{dataset_id}/run
Validates 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).
Start an adaptation run (or estimate cost)
import os
from adaption import Adaption
client = Adaption(
api_key=os.environ.get("ADAPTION_API_KEY"), # This is the default and can be omitted
)
response = client.datasets.run(
dataset_id="dataset_id",
)
print(response.run_id){
"run_id": "dataset-550e8400-e29b-41d4-a716-446655440000-1712234567890",
"estimatedMinutes": 0,
"estimatedCreditsConsumed": 0,
"estimate": true,
"multimodalPricingApplied": true,
"creditMultiplier": 0
}Returns Examples
{
"run_id": "dataset-550e8400-e29b-41d4-a716-446655440000-1712234567890",
"estimatedMinutes": 0,
"estimatedCreditsConsumed": 0,
"estimate": true,
"multimodalPricingApplied": true,
"creditMultiplier": 0
}