Skip to content
Get started

Download

client.models.download(stringmodelID, ModelDownloadParams { modelEpoch } body, RequestOptionsoptions?): ModelDownloadResponse { jobId }
POST/models/{modelId}/download

Request a link to download the given modelId

ParametersExpand Collapse
modelID: string
body: ModelDownloadParams { modelEpoch }
modelEpoch?: string

The epoch hash of the model to download Only available for Flux Lora Trained models with epochs Will only apply to the main model in the download request If not set, the default (latest or setup at model level) epoch will be used

ReturnsExpand Collapse
ModelDownloadResponse { jobId }
jobId: string

The job id associated with the download request

Download

import Scenario from '@scenario-labs/sdk';

const client = new Scenario({
  apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
  apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});

const response = await client.models.download('modelId');

console.log(response.jobId);
{
  "jobId": "jobId"
}
Returns Examples
{
  "jobId": "jobId"
}