Skip to main content
Send a name and baseModelId to create a model in the project. Returns its metadata; model versions are created separately.

Signature

Method signature on client.models:

Parameters

string
required
Project ID with prefix pp..
string
required
Name of the model, between 1 and 120 characters after trimming.
null | string
Description of the model; omit or send null to leave it unset.
"qwen3-4b" | "qwen3-8b" | "qwen3-32b" | "qwen3-235b"
required
The stable product identifier of a catalog base model.

Returns

Promise<Model> A project-owned logical Model containing immutable versions.
ModelId
required
Model ID with prefix mdl..
ProjectId
required
Project ID with prefix pp..
string
required
Name of the model.
string | null
required
Description of the model, or null when none was provided.
BaseModelId
required
The stable product identifier of a catalog base model.
string | null
required
Time the model was archived, as an ISO 8601 timestamp, or null while it is active.
string
required
Time the model was created, as an ISO 8601 timestamp.
string
required
Time the model was last updated, as an ISO 8601 timestamp.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: POST /projects/{projectId}/models.