Volume Service

Create a model

POST
/projects/{projectId}/models

Registers a custom model resource in the project. Registration creates the model's metadata; upload or import model files separately before deploying it.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

projectId*string

Project identifier.

Request Body

application/json

Request for registering a custom model or adapter in a project.

name*string

Name for the custom model. May be bare or qualified as <project_slug>/<model_name>; a supplied project slug must match the project in the request path.

type*string

Volume type to create. Use model or adapter; plural models and adapters are also accepted.

description?string

Human-readable description of the model and its intended use.

baseModelId*string

ID of the supported base model from which this model was derived.

Response Body

application/json

application/json

curl -X POST "https://example.com/projects/string/models" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "type": "string",    "baseModelId": "string"  }'
{  "id": "string",  "projectId": "string",  "organizationId": "string",  "name": "string",  "description": "string",  "weights": {    "type": "WEIGHTS_TYPE_DEFAULT",    "speculatorMechanism": "SPECULATOR_MECHANISM_DRAFT",    "draftSpeculatorType": "DRAFT_SPECULATOR_TYPE_EAGLE",    "architecture": "string",    "contextLength": "string",    "parameters": {      "total": "string",      "byDtype": [        {          "dtype": "string",          "count": "string"        }      ]    }  },  "baseModelId": "string",  "baseModel": "string",  "visibility": "VISIBILITY_PRIVATE"}