Skip to main content
POST
Import from Hugging Face

Authorizations

Authorization
string
header
required

Your Nugen API key, sent as a Bearer token

Body

application/json

Import a base model from Hugging Face or a cloud storage bucket.

source_type
enum<string>
required

huggingface, s3, gs, oci or abfss

Available options:
huggingface,
s3,
gs,
oci,
abfss
source_uri
string
required

Hugging Face repo id, e.g. org/model-name, or a cloud storage URI such as s3://bucket/path

base_model_name
string | null

Ignored for Hugging Face imports, the repo id is the model id

token
string | null

Access token or credential for the source. Used only to perform the import; never logged or stored.

Response

Acknowledges the import request for the base model.

Acknowledgement of a base model import request.

import_id
string
required

Identifier of the import request.

status
enum<string>
required

Import request status.

Available options:
QUEUED,
PROCESSING,
READY,
FAILED,
STOPPED
message
string
required

Human-readable outcome of the request.