メインコンテンツへスキップ
POST
/
v1
/
preview
/
models
Create 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>"
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

ボディ

application/json

Schema for creating a new Model.

project
string
必須

Project name in W&B where the model will be stored

:

"my-awesome-project"

name
string
必須

Unique name for the model within the project

:

"my-awesome-model"

base_model
string
必須

Base model identifier or HuggingFace model path to fine-tune from

:

"OpenPipe/Qwen3-14B-Instruct"

entity
string | null

Team or username of the developer whose W&B API key is being used

:

"my-team"

return_existing
boolean
デフォルト:false

If true, return existing model if one with the same name already exists instead of creating a new one

レスポンス

Successful Response

Schema for Model response.

id
string<uuid>
必須
entity
string
必須
project
string
必須
name
string
必須
base_model
string
必須