Skip to main content

Adapt model

POST /adaptations

Request managed next-item adaptation. The base model must be an enabled adaptation source. A successful job returns a candidate model and evaluation summary; activation follows review. It does not replace the base deployment.

Use the variables supplied at onboarding.

curl --fail-with-body -X POST "$JEAN_BASE_URL/adaptations" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Idempotency-Key: YOUR_UNIQUE_REQUEST_KEY" \
-H "Content-Type: application/json" \
-d '{"base_model_id":"mdl_base_beta","dataset_id":"ds_catalog_v1","tokenizer_id":"tok_demo_v1","objective":"next_item"}'

Body

FieldTypeRequiredNotes
base_model_idstringyesA model enabled as an adaptation source.
dataset_idstringyes
tokenizer_idstringnoRequired if adapting a Semantic ID model.
objectivenext_itemnoDefault: "next_item".

Response · 202

{
"id": "job_demo",
"kind": "adaptation",
"status": "queued",
"request_id": "req_demo"
}

Poll Get job with the returned id. Errors and retries · Complete schemas