Skip to content

model_restore

Managementcatalog

Restore Deleted Model

Not in the default tool list

This tool lives in the tool catalog. Discover it with scenario_tools_search (or enumerate everything with scenario_tools_list) and run it via scenario_tool_execute_write. To list every tool directly, connect with ?toolsets=full.

Restore (undelete) one model deleted in the last 30 days (bin, trash), back to the status it had (an interrupted training comes back as training-canceled). Find deleted models with models_list and filters.status="deleted". Tags and collections are not restored. Restoring is part of the Max plan and above (Max, Team, legacy Premium, Enterprise); on other plans the API refuses it. Returns: { restored, model }: the model id and the restored model, heavy fields stripped. The API refuses a model that is not deleted, or that was deleted more than 30 days ago. Example: "Restore the LoRA I deleted last week" -> models_list with filters.status="deleted", then model_restore with its model_id. Don't use when: deleted assets are to come back: use asset_restore.
idempotentopen-world

Parameters

NameTypeRequiredDescription
model_idstring✓Id of a deleted model, from models_list with filters.status="deleted".
team_idstring—Team ID. Required with project_id for OAuth callers; an API key is scoped by the key.
project_idstring—Project ID. Required with team_id for OAuth callers; an API key is scoped by the key.
response_formatenum(json | markdown)jsonOutput format: 'json' for structured data, 'markdown' for human-readable text.