Recipes

ModelPickleScan

Changed on

Runs picklescan against a model file to detect dangerous pickle imports.

post/v2/consumer/recipes/modelPickleScan

Request

  • The document declares no server URL.
  • Auth: none required

Query parameters

experimentalboolean
allowMatureContentboolean
whatifboolean
ephemeralboolean
tier'paid' | 'free'

How a workflow is paid for.

Request body

modelstring required

Response

OK

exitCodeinteger nullable
outputstring nullable
globalImportsstring[] nullable
dangerousImportsstring[] nullable
status'clean' | 'dangerousImportsFound' | 'skippedSafetensors' | 'skippedGguf' | 'skipped' | 'parseError' | 'error'
dangerousImportsFoundboolean nullable
skippedboolean nullable

True when picklescan was skipped (e.g. file is safetensors and cannot contain pickled code).

skipReasonstring nullable

Reason picklescan was skipped, if applicable. Examples: "safetensors", "safetensors-extension".

scannedFileCountinteger nullable
infectedFileCountinteger nullable
dangerousGlobalCountinteger nullable

Changes