Skip to main content
POST
Export to Hugging Face

Authorizations

Authorization
string
header
required

Your Nugen API key, sent as a Bearer token

Path Parameters

model_id
string
required

ID of the model, as listed by GET /models/aligned or GET /models/base

Body

application/json

Export an aligned model to a Hugging Face repository.

token
string
required

Hugging Face access token. Used only to perform the export; never logged or stored.

hf_repo
string | null

Target repository, e.g. org/model-name. Defaults to the token's own namespace plus the model id.

Pattern: ^([A-Za-z0-9][A-Za-z0-9._-]{0,95}/)?[A-Za-z0-9][A-Za-z0-9._-]{0,95}$
visibility
enum<string>
default:private

private or public

Available options:
private,
public

Response

Acknowledges the export request for the aligned model.

Acknowledgement of a Hugging Face export request.

export_id
string
required

Identifier of the export request. Poll status with it.

model_id
string
required

Aligned model the export was requested for.

status
enum<string>
required

Export request status.

Available options:
QUEUED,
PROCESSING,
READY,
FAILED,
STOPPED
message
string | null

Why the export was refused, when the status is FAILED.