Skip to main content
POST
/
v0
/
models
Create a custom model
curl --request POST \
  --url https://api.studio.nebius.com/v0/models \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "my-custom-model",
  "base_model": "meta-llama/Meta-Llama-3.1-8B-Instruct-fast",
  "source": "ftjob-1234567890:ftckpt_1234567890",
  "description": "<string>"
}'
{
  "name": "meta-llama/Meta-Llama-3.1-8B-Instruct-LoRa:my-custom-model-udpd",
  "base_model": "meta-llama/Meta-Llama-3.1-8B-Instruct-fast",
  "source": "ftjob-1234567890:ftckpt_1234567890",
  "description": "<string>",
  "created_at": 123,
  "status": "validating"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

ai_project_id
string | null

Project ID to list models from.

Body

application/json
name
string
required

The new model name.

Examples:

"my-custom-model"

base_model
string
required

The base model identifier the new model belongs to

Examples:

"meta-llama/Meta-Llama-3.1-8B-Instruct-fast"

source
string
required

Checkpoint id from Fine-Tunes API, file id from Files API, or HuggingFace repo url

Examples:

"ftjob-1234567890:ftckpt_1234567890"

"file-1234567890"

"huggingface.co/sofrony/Llama-3.1-8B-Instruct-sofrony"

description
string | null

Response

Successful Response

name
string
required

The new model name.

Examples:

"meta-llama/Meta-Llama-3.1-8B-Instruct-LoRa:my-custom-model-udpd"

base_model
string
required

The base model identifier the new model belongs to

Examples:

"meta-llama/Meta-Llama-3.1-8B-Instruct-fast"

source
string
required

Checkpoint id from Fine-Tunes API, file id from Files API, or HuggingFace repo url

Examples:

"ftjob-1234567890:ftckpt_1234567890"

"file-1234567890"

"huggingface.co/sofrony/Llama-3.1-8B-Instruct-sofrony"

created_at
integer
required
status
enum<string>
required

The status of the model Enum representing the possible statuses of a model.

Available options:
validating,
active,
error,
deleted
Examples:

"validating"

description
string | null