Models

Download a model from HuggingFace

post/v1/models/download

Request

  • Base URL: http://localhost:9998
  • URL: http://localhost:9998/v1/models/download
  • Auth: HTTP bearer

Request body

repostring required

HuggingFace repo (e.g. "TheBloke/Llama-2-7B-GGUF")

filestring required

Filename to download

sizeinteger

Expected file size in bytes (optional)

pipelineTagstring

HuggingFace pipeline_tag (e.g. text-generation, image-to-text). Improves category inference when provided — takes priority over filename-based detection. Case-insensitive.

Response

Download started

oktrue required
idstring required

Download ID for tracking

repostring required
filestring required

Changes

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