curl --request POST \
--url https://api.example.com/v1/preview/models \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project": "<string>",
"name": "<string>",
"base_model": "<string>",
"entity": "my-team",
"return_existing": false
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entity": "<string>",
"project": "<string>",
"name": "<string>",
"base_model": "<string>"
}Create a new model.
curl --request POST \
--url https://api.example.com/v1/preview/models \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project": "<string>",
"name": "<string>",
"base_model": "<string>",
"entity": "my-team",
"return_existing": false
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entity": "<string>",
"project": "<string>",
"name": "<string>",
"base_model": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Schema for creating a new Model.
Project name in W&B where the model will be stored
"my-awesome-project"
Unique name for the model within the project
"my-awesome-model"
Base model identifier or HuggingFace model path to fine-tune from
"OpenPipe/Qwen3-14B-Instruct"
Team or username of the developer whose W&B API key is being used
"my-team"
If true, return existing model if one with the same name already exists instead of creating a new one
Was this page helpful?