Models

Import from Hugging Face

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

Request Body:

  • source_type: huggingface, s3, gs, oci or abfss
  • source_uri: Hugging Face repo id or a cloud storage URI
  • base_model_name: Name to register the imported model under
  • token: Access token or credential for the source
post/api/v3/models/base/import

Request

  • Base URL
    https://api.nugen.in
  • Auth
    HTTP bearer

Request body

source_type'huggingface' | 's3' | 'gs' | 'oci' | 'abfss' required

huggingface, s3, gs, oci or abfss

source_uristring required

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

base_model_namestring nullable

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

tokenstring nullable

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.

import_idstring required

Identifier of the import request.

status'QUEUED' | 'PROCESSING' | 'READY' | 'FAILED' | 'STOPPED' required

Lifecycle status of a resource that runs asynchronously. Stored as is and returned as is, with no translation in between.

  • QUEUED: accepted and waiting for its workflow to start
  • PROCESSING: running
  • READY: finished successfully
  • FAILED: failed at any stage
  • STOPPED: stopped by the user before completion
messagestring required

Human-readable outcome of the request.

Changes

No recorded changes to this operation across all 1 revision of this API.