{"openapi":"3.1.0","info":{"title":"Unsloth UI Backend","description":"Backend API for Unsloth UI - Training and Model Management","version":"2026.11.12"},"paths":{"/api/auth/identity":{"get":{"tags":["auth"],"summary":"Identity","description":"Challenge-response proof this is the real local Unsloth: caller sends a nonce,\ngets HMAC(install identity secret, nonce, connection address + port).\nUnauthenticated and side-effect free; a process that can't read the same-user\nsecret can't forge a proof, and binding to the address/port the connection\nlanded on stops a squatter relaying a proof from the real Unsloth elsewhere.","operationId":"identity_api_auth_identity_get","parameters":[{"name":"nonce","in":"query","required":true,"schema":{"type":"string","title":"Nonce"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Identity Api Auth Identity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/status":{"get":{"tags":["auth"],"summary":"Auth Status","description":"Auth initialization state; ``default_username`` is exposed for first-boot UI prefill only.","operationId":"auth_status_api_auth_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthStatusResponse"}}}}}}},"/api/auth/login":{"post":{"tags":["auth"],"summary":"Login","description":"Login with username/password. Per-account + per-IP rate-limited.","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Revoke refresh tokens for the subject; the access token is stateless and expires on its own.","operationId":"logout_api_auth_logout_post","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/api/auth/desktop-login":{"post":{"tags":["auth"],"summary":"Desktop Login","description":"Exchange a local desktop secret for desktop-marked owner tokens.\n\nMulti-user installations return ``login_required`` instead of tokens.\nFailed attempts are rate-limited per IP independently of /login.","operationId":"desktop_login_api_auth_desktop_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesktopLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","description":"Exchange a refresh token for a new access+refresh pair (single-use).","operationId":"refresh_api_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/desktop-initial-password":{"post":{"tags":["auth"],"summary":"Set Desktop Initial Password","description":"Set the first real password from the desktop app, which never sees the seeded one.\n\nDesktop auth is passwordless, so the desktop user cannot complete the normal\nflow: it needs the generated bootstrap password that only the terminal ever\nprinted. Remote browser logins do need a real password, so an\nalready-authenticated desktop session may set it while the seeded credential\nis still in place. Once set, change-password owns every later change.","operationId":"set_desktop_initial_password_api_auth_desktop_initial_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesktopInitialPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/change-password":{"post":{"tags":["auth"],"summary":"Change Password","description":"Allow the authenticated user to replace the default password.","operationId":"change_password_api_auth_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/api-keys":{"get":{"tags":["auth"],"summary":"List Api Keys","description":"List all API keys for the authenticated user (raw keys are never exposed).","operationId":"list_api_keys_api_auth_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["auth"],"summary":"Create Api Key","description":"Create a new API key. The raw key is returned once and cannot be retrieved later.","operationId":"create_api_key_api_auth_api_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/api-keys/{key_id}":{"patch":{"tags":["auth"],"summary":"Update Api Key","description":"Change a key's access (full or inference only); takes effect on its next request.","operationId":"update_api_key_api_auth_api_keys__key_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApiKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["auth"],"summary":"Revoke Api Key","description":"Revoke (soft-delete) an API key.","operationId":"revoke_api_key_api_auth_api_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Api Key Api Auth Api Keys  Key Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts":{"get":{"tags":["accounts"],"summary":"List Accounts","operationId":"list_accounts_api_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["accounts"],"summary":"Create Account","operationId":"create_account_api_accounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/accounts/owner/login-alias":{"put":{"tags":["accounts"],"summary":"Set Owner Login Alias","operationId":"set_owner_login_alias_api_accounts_owner_login_alias_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerLoginAliasRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerLoginAliasRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/accounts/{account_id}/setup-code":{"post":{"tags":["accounts"],"summary":"Regenerate Setup Code","operationId":"regenerate_setup_code_api_accounts__account_id__setup_code_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}":{"patch":{"tags":["accounts"],"summary":"Set Account Active","operationId":"set_account_active_api_accounts__account_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountActiveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["accounts"],"summary":"Delete Account","operationId":"delete_account_api_accounts__account_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/username":{"put":{"tags":["accounts"],"summary":"Rename Account","operationId":"rename_account_api_accounts__account_id__username_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/model-access":{"put":{"tags":["accounts"],"summary":"Set Account Model Access","operationId":"set_account_model_access_api_accounts__account_id__model_access_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountModelAccessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/hardware":{"get":{"tags":["training"],"summary":"Get Hardware Utilization","description":"Live snapshot of GPU hardware utilization for the active backend.\n\nPolled by the frontend during training.","operationId":"get_hardware_utilization_api_train_hardware_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/offload":{"get":{"tags":["training"],"summary":"Get Offload State","description":"Offload layers state from the last logged step: which decoder layers sit on the GPU or in\nhost RAM, prefetch depth, copy / stall / compute time, VRAM. ``{\"active\": false}`` when the run\ndoes not offload. Polled by the live training view.","operationId":"get_offload_state_api_train_offload_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/drafter-capability":{"get":{"tags":["training"],"summary":"Get Drafter Capability","description":"Which speculative-decoding drafter the Train tab can train for `model_name`: the native MTP head\nwhen the checkpoint ships one, else an EAGLE-3 drafter where vLLM or llama.cpp can run it.","operationId":"get_drafter_capability_api_train_drafter_capability_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_name","in":"query","required":true,"schema":{"type":"string","title":"Model Name"}},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/parallel/capabilities":{"get":{"tags":["training"],"summary":"Get Parallel Capabilities","operationId":"get_parallel_capabilities_api_train_parallel_capabilities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/parallel/plan":{"post":{"tags":["training"],"summary":"Plan Parallel Training","description":"A refused mode comes back in `error`, not as a 400, so the Train page can show it inline.","operationId":"plan_parallel_training_api_train_parallel_plan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParallelPlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/hardware/visible":{"get":{"tags":["training"],"summary":"Get Visible Hardware Utilization","operationId":"get_visible_hardware_utilization_api_train_hardware_visible_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/token-preview":{"post":{"tags":["training"],"summary":"Token Preview","description":"Tokens and completion mask for a few rows of the selected dataset, or for ``text``, as\ntraining would produce them. Loads the tokenizer only, in a GPU-free subprocess.","operationId":"token_preview_api_train_token_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/start-requests/{start_request_id}":{"get":{"tags":["training"],"summary":"Get Training Start Request","operationId":"get_training_start_request_api_train_start_requests__start_request_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_request_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$","title":"Start Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingStartRequestStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/start-requests/{start_request_id}/acknowledge":{"post":{"tags":["training"],"summary":"Acknowledge Training Start Request","operationId":"acknowledge_training_start_request_api_train_start_requests__start_request_id__acknowledge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_request_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$","title":"Start Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/start-requests/{start_request_id}/cancel":{"post":{"tags":["training"],"summary":"Cancel Training Start Request","operationId":"cancel_training_start_request_api_train_start_requests__start_request_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_request_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$","title":"Start Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingStartRequestStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/start":{"post":{"tags":["training"],"summary":"Start Training","description":"Start a training job.\n\nInitiates training in the background and returns immediately. Use /status\nto check progress.","operationId":"start_training_api_train_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"The requested training configuration or resource is not trainable"},"409":{"description":"The requested start conflicts with offline, resume, or runtime state"},"429":{"description":"Remote resource verification was rate-limited"},"503":{"description":"Remote resource metadata is temporarily unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/stop":{"post":{"tags":["training"],"summary":"Stop Training","description":"Stop the currently running training job.\n\nBody:\n    save (bool): If True (default), save the model at the current checkpoint.\n    expected_job_id (str): Identifier of the job the caller intends to stop.","operationId":"stop_training_api_train_stop_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingStopRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingStopResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/reset":{"post":{"tags":["training"],"summary":"Reset Training","description":"Reset training state so the user can return to configuration.","operationId":"reset_training_api_train_reset_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TrainingResetRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/status":{"get":{"tags":["training"],"summary":"Get Training Status","description":"Get the current training status.\n\nRedacted for an API-key caller like every other route that can name a host path: the\nworker's own progress line quotes the model it is loading, and for a local model that is\nan absolute path, which would hand back what the inventory took the trouble to hide.","operationId":"get_training_status_api_train_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/metrics":{"get":{"tags":["training"],"summary":"Get Training Metrics","description":"Get training metrics (loss, learning rate, steps).","operationId":"get_training_metrics_api_train_metrics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"expected_job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingMetricsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/progress":{"post":{"tags":["training"],"summary":"Stream Training Progress","description":"Stream training progress via Server-Sent Events (SSE).\n\nReal-time progress with reconnection support per the SSE spec:\n  - `id:` per event so the browser tracks position.\n  - `retry:` to control reconnection interval.\n  - Named `event:` types (progress, heartbeat, complete, error).\n  - Reads `Last-Event-ID` on reconnect to replay missed steps.","operationId":"stream_training_progress_api_train_progress_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"expected_job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/diffusion/start":{"post":{"tags":["training"],"summary":"Start Diffusion Training","description":"Start an SDXL LoRA training job from an image + caption dataset.","operationId":"start_diffusion_training_api_train_diffusion_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionTrainingStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionTrainingStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/diffusion/stop":{"post":{"tags":["training"],"summary":"Stop Diffusion Training","description":"Request a clean stop of the running diffusion training job. The optional body's\n``save`` mirrors the LLM /stop: true (default, also for an empty POST) exports the\npartial adapter, false cancels without saving one.","operationId":"stop_diffusion_training_api_train_diffusion_stop_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DiffusionTrainingStopRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/diffusion/status":{"get":{"tags":["training"],"summary":"Diffusion Training Status","description":"Poll the current diffusion training job's status/progress (JSON).","operationId":"diffusion_training_status_api_train_diffusion_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionTrainingStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/diffusion/runs":{"get":{"tags":["training"],"summary":"List Diffusion Training Runs","description":"Previous diffusion training runs (terminal), newest first, from the persisted\nper-run records. Summaries only; fetch one run for its config + metric logs.","operationId":"list_diffusion_training_runs_api_train_diffusion_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionTrainingRunsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/diffusion/runs/{job_id}":{"get":{"tags":["training"],"summary":"Get Diffusion Training Run","description":"One persisted diffusion run's full record: summary + scrubbed start config + the\nstep/loss/grad-norm logs (for re-plotting a past run's charts).","operationId":"get_diffusion_training_run_api_train_diffusion_runs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionTrainingRunDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/diffusion/runs/{job_id}/sample":{"get":{"tags":["training"],"summary":"Get Diffusion Training Sample","description":"Serve one preview image a run reported (``samples[].path``). Only a path the run itself\nlisted is served, from inside that run's output_dir under this account's outputs root: the\nlive job answers through the service's owner check, a finished one through its run record.","operationId":"get_diffusion_training_sample_api_train_diffusion_runs__job_id__sample_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/diffusion/info":{"get":{"tags":["training"],"summary":"Diffusion Training Info","description":"Describe where diffusion training reads/writes, and list usable dataset folders.\n\nA dataset folder is any direct child of the datasets root that contains at least one\ntrainable item: an image, or a clip for the families that train from video. The UI uses\nthis to offer a picker instead of a blind free-text path.\n\nThe family list is the trainable set NARROWED to what these datasets can feed: see\n``_ui_trainable_families``. Only the advertisement narrows -- ``/diffusion/start`` still\naccepts every family that has a trainer.","operationId":"diffusion_training_info_api_train_diffusion_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionTrainingInfoResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/diffusion/dataset":{"post":{"tags":["training"],"summary":"Upload Diffusion Dataset","description":"repeat uploads accumulate in one Unsloth dataset folder; pass its name as ``data_dir`` to /diffusion/start.","operationId":"upload_diffusion_dataset_api_train_diffusion_dataset_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_diffusion_dataset_api_train_diffusion_dataset_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionDatasetUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/diffusion/dataset/{name}/images":{"get":{"tags":["training"],"summary":"List Diffusion Dataset Images","description":"List every item in a dataset folder with its resolved caption (including\nuncaptioned ones), for the labeling grid.\n\nClips are listed with ``kind: \"clip\"`` and 0x0 dimensions. The grid renders images only,\nbut the upload's pre-flight needs every name that holds a ``<stem>.txt`` sidecar open, and\na clip does that just as an image does.","operationId":"list_diffusion_dataset_images_api_train_diffusion_dataset__name__images_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionDatasetImagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/diffusion/dataset/{name}/image/{filename}":{"get":{"tags":["training"],"summary":"Get Diffusion Dataset Image","description":"Serve a dataset image. ``?thumb=<px>`` returns a cached downscaled JPEG (regenerated\nwhen the source is newer), used by the labeling grid to stay light.","operationId":"get_diffusion_dataset_image_api_train_diffusion_dataset__name__image__filename__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"thumb","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thumb"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["training"],"summary":"Delete Diffusion Dataset Image","description":"Remove an image, its caption sidecars, and any cached thumbnails.","operationId":"delete_diffusion_dataset_image_api_train_diffusion_dataset__name__image__filename__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/diffusion/dataset/{name}/caption/{filename}":{"put":{"tags":["training"],"summary":"Set Diffusion Dataset Caption","description":"Write (or, when blank, clear) an image's ``.txt`` caption sidecar. Returns the\nupdated image record.","operationId":"set_diffusion_dataset_caption_api_train_diffusion_dataset__name__caption__filename__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionCaptionUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionDatasetImageRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/diffusion/dataset-examples":{"get":{"tags":["training"],"summary":"List Diffusion Dataset Examples","description":"List the curated example datasets available for one-click import.","operationId":"list_diffusion_dataset_examples_api_train_diffusion_dataset_examples_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionDatasetExamplesResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/train/diffusion/dataset/import-example":{"post":{"tags":["training"],"summary":"Import Diffusion Dataset Example","description":"Materialize a curated example dataset into an Unsloth dataset folder (images + .txt\ncaptions), ready to train. Idempotent: a folder that already holds images is returned\nas-is rather than re-downloaded.","operationId":"import_diffusion_dataset_example_api_train_diffusion_dataset_import_example_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionDatasetImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionDatasetImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/models/local":{"get":{"tags":["models"],"summary":"List Local Models","description":"List local model candidates from the models dir, HF caches, LM Studio, Hermes, Ollama.\n\nRedacted as ``/api/hub/local`` is: this router mirrors it over the same scan roots, so\nleaving it alone recovers the layout that route hides.","operationId":"list_local_models_api_models_local_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"models_dir","in":"query","required":false,"schema":{"type":"string","description":"Directory to scan for local model folders","default":"./models","title":"Models Dir"},"description":"Directory to scan for local model folders"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/models__models__LocalModelListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/scan-folders":{"get":{"tags":["models"],"summary":"Get Scan Folders","description":"List all registered custom model scan folders. Redacted like ``/api/hub/scan-folders``.","operationId":"get_scan_folders_api_models_scan_folders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["models"],"summary":"Add Scan Folder Endpoint","description":"Register a new directory to scan for local models. Redacted like the GET above.\n\nThe listings hide the normalized absolute path; submitting ``.`` here and reading the answer\nrecovered the server's working directory.","operationId":"add_scan_folder_endpoint_api_models_scan_folders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/models__models__AddScanFolderRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/models__models__ScanFolderInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/models/scan-folders/{folder_id}":{"delete":{"tags":["models"],"summary":"Remove Scan Folder Endpoint","description":"Remove a registered custom scan folder.","operationId":"remove_scan_folder_endpoint_api_models_scan_folders__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/recommended-folders":{"get":{"tags":["models"],"summary":"Get Recommended Folders","description":"Return well-known model directories that hold a downloaded model.\n\nLightweight alternative to ``browse-folders`` for the frontend's\none-click \"Recommended\" chips. Only paths that actually contain\nweights are returned, so an empty LM Studio/Ollama scaffold no longer\nshows up as a suggestion.","operationId":"get_recommended_folders_api_models_recommended_folders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/models/browse-folders":{"get":{"tags":["models"],"summary":"Browse Folders","description":"List immediate subdirectories of *path* for the Custom Folders picker.\n\nLets the frontend render a modal folder browser without a native OS\ndialog. Read-only: enumerates visible subdirectories so the user can\nclick to a folder and hand the string to POST /api/models/scan-folders.\n\nSandbox: bounded to :func:`_build_browse_allowlist`; paths outside it\nreturn 403, and symlinks are resolved via ``os.path.realpath`` first\nso traversal can't escape. Sorting: model-bearing dirs, then plain,\nthen hidden (if ``show_hidden=true``).","operationId":"browse_folders_api_models_browse_folders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Directory to list. If omitted, defaults to the current user's home directory. Tilde (`~`) and relative paths are expanded. Must resolve inside the allowlist of browseable roots (HOME, HF cache, Unsloth dirs, registered scan folders, well-known model dirs).","title":"Path"},"description":"Directory to list. If omitted, defaults to the current user's home directory. Tilde (`~`) and relative paths are expanded. Must resolve inside the allowlist of browseable roots (HOME, HF cache, Unsloth dirs, registered scan folders, well-known model dirs)."},{"name":"show_hidden","in":"query","required":false,"schema":{"type":"boolean","description":"Include entries whose name starts with a dot","default":false,"title":"Show Hidden"},"description":"Include entries whose name starts with a dot"},{"name":"model_hints","in":"query","required":false,"schema":{"type":"boolean","description":"Probe each folder for model files. Pickers that do not show the hint turn it off.","default":true,"title":"Model Hints"},"description":"Probe each folder for model files. Pickers that do not show the hint turn it off."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowseFoldersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["models"],"summary":"Create Browse Folder","description":"Create one empty folder inside a browseable directory, for the picker's New folder button.","operationId":"create_browse_folder_api_models_browse_folders_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowseFolderCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowseFoldersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/list":{"get":{"tags":["models"],"summary":"List Models","description":"List available models: default plus currently loaded.","operationId":"list_models_api_models_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/models/config/{model_name}":{"get":{"tags":["models"],"summary":"Get Model Config","description":"Get configuration for a specific model (wraps load_model_defaults).\n\n``as_decision`` asks for a text or vision LLM as a decision model: a fresh Clef head on it.","operationId":"get_model_config_api_models_config__model_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_name","in":"path","required":true,"schema":{"type":"string","title":"Model Name"}},{"name":"hf_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token"}},{"name":"prefer_local_cache","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Prefer Local Cache"}},{"name":"local_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Path"}},{"name":"as_decision","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"As Decision"}},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/remote-code-scan":{"post":{"tags":["models"],"summary":"Scan Model Remote Code","description":"Scan a model's ``auto_map`` custom code so the UI can show findings before\nthe user enables ``trust_remote_code``. Code-free: reads ``config.json`` and\nstatically scans the repo ``.py`` (never loads the model). Returns\n``has_remote_code`` plus the severity-tagged findings + a pinning fingerprint.\n\nPOST (not GET) so the ``hf_token`` for gated repos travels in the body and\nnever lands in a URL, browser history, or access log.","operationId":"scan_model_remote_code_api_models_remote_code_scan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_scan_model_remote_code_api_models_remote_code_scan_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/models/discard-remote-code":{"post":{"tags":["models"],"summary":"Discard Remote Code Download","description":"Purge a repo the consent scan downloaded after the user DECLINED its custom\ncode, so untrusted code is not left on disk.\n\nSafety: only ever deletes a metadata-only cache entry the scan created. It\nrefuses a local path (never touches user files), a currently-loaded model, and\nany repo that has weight files cached (``*.safetensors`` / ``*.bin`` /\n``*.gguf``) -- i.e. a model the user actually downloaded. The frontend only\ncalls this when the scan reported ``created_by_scan``.","operationId":"discard_remote_code_download_api_models_discard_remote_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_discard_remote_code_download_api_models_discard_remote_code_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/models/loras":{"get":{"tags":["models"],"summary":"Scan Loras","description":"Scan for trained LoRA adapters and exported models.\n\nReturns training outputs (outputs_dir) and exported models\n(exports_dir) in one list, distinguished by the source field.","operationId":"scan_loras_api_models_loras_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"outputs_dir","in":"query","required":false,"schema":{"type":"string","description":"Directory to scan for LoRA adapters","default":"/home/espinosa/.unsloth/studio/outputs","title":"Outputs Dir"},"description":"Directory to scan for LoRA adapters"},{"name":"exports_dir","in":"query","required":false,"schema":{"type":"string","description":"Directory to scan for exported models","default":"/home/espinosa/.unsloth/studio/exports","title":"Exports Dir"},"description":"Directory to scan for exported models"},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/diffusion-loras":{"get":{"tags":["models"],"summary":"Scan Diffusion Loras","description":"List diffusion image LoRA adapters for the Images workflow.\n\nMerges the curated catalog with local files in ``<studio_home>/loras/diffusion``,\noptionally filtered to the loaded model's family. Cheap: one directory scan, no network\n(a hub adapter is only downloaded when actually selected for a generation). Distinct from\n``/loras`` above, which lists trained/exported TEXT adapters.","operationId":"scan_diffusion_loras_api_models_diffusion_loras_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to LoRAs compatible with this diffusion family","title":"Family"},"description":"Filter to LoRAs compatible with this diffusion family"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/diffusion-embeddings":{"get":{"tags":["models"],"summary":"Scan Diffusion Embeddings","description":"List textual-inversion embeddings in ``<studio_home>/embeddings/diffusion`` for the Images page.\n\nThe filename stem is the trigger word: naming it in a prompt or negative prompt uses the embedding.\n``family`` keeps only files of that family's format (an unknown family, or one without embeddings,\nlists none). One directory scan reading safetensors headers only; no network.","operationId":"scan_diffusion_embeddings_api_models_diffusion_embeddings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to embeddings this diffusion family can use","title":"Family"},"description":"Filter to embeddings this diffusion family can use"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/diffusion-controlnets":{"get":{"tags":["models"],"summary":"Scan Diffusion Controlnets","description":"List diffusion ControlNet models for the Images workflow.\n\nMerges the curated, family-tagged catalog with local model folders in\n``<studio_home>/controlnets/diffusion``, optionally filtered to the loaded model's family.\nCheap: one directory scan, no network (a hub model is only downloaded when selected).","operationId":"scan_diffusion_controlnets_api_models_diffusion_controlnets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to ControlNets compatible with this diffusion family","title":"Family"},"description":"Filter to ControlNets compatible with this diffusion family"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/delete-finetuned":{"delete":{"tags":["models"],"summary":"Delete Finetuned Model","description":"delete an Unsloth output, or one quant from an exported GGUF, within approved roots.","operationId":"delete_finetuned_model_api_models_delete_finetuned_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_delete_finetuned_model_api_models_delete_finetuned_delete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/models/loras/{lora_path}/base-model":{"get":{"tags":["models"],"summary":"Get Lora Base Model","description":"Get the base model for a LoRA adapter.\n\nThis endpoint wraps the backend get_base_model_from_lora function.","operationId":"get_lora_base_model_api_models_loras__lora_path__base_model_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lora_path","in":"path","required":true,"schema":{"type":"string","title":"Lora Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoRABaseModelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/check-vision/{model_name}":{"get":{"tags":["models"],"summary":"Check Vision Model","description":"Check if a model is a vision model.\n\nThis endpoint wraps the backend is_vision_model function.","operationId":"check_vision_model_api_models_check_vision__model_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_name","in":"path","required":true,"schema":{"type":"string","title":"Model Name"}},{"name":"hf_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token"}},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisionCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/check-embedding/{model_name}":{"get":{"tags":["models"],"summary":"Check Embedding Model","description":"Check if a model is an embedding model.\n\nThis endpoint wraps the backend is_embedding_model function.","operationId":"check_embedding_model_api_models_check_embedding__model_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_name","in":"path","required":true,"schema":{"type":"string","title":"Model Name"}},{"name":"hf_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token"}},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/kv-cache-estimate":{"get":{"tags":["models"],"summary":"Get Kv Cache Estimate","description":"KV cache, weight and speculative-decoding bytes for a downloaded GGUF.\n\nBacks the load dialog's \"exceeds memory\" warning and the picker's memory\nbar, using the same architecture-aware estimator as load. Best-effort: on\nmissing metadata it returns nulls and the UI simply shows nothing.\n\n``spec_bytes`` is what an MTP draft mode costs on top of ``kv_bytes``. It is\nnull for ngram, which drafts from the generated text and costs no VRAM, and\nfor models with no drafter -- the caller draws no segment either way.","operationId":"get_kv_cache_estimate_api_models_kv_cache_estimate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HF repo ID or local path","title":"Repo Id"},"description":"HF repo ID or local path"},{"name":"quant","in":"query","required":true,"schema":{"type":"string","description":"Quantization label (e.g. Q4_K_M)","title":"Quant"},"description":"Quantization label (e.g. Q4_K_M)"},{"name":"n_ctx","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Context length to size the KV cache for; omit for the model's native length","title":"N Ctx"},"description":"Context length to size the KV cache for; omit for the model's native length"},{"name":"cache_type_kv","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"KV cache dtype (e.g. q8_0, q4_0, q5_0, iq4_nl, f32)","title":"Cache Type Kv"},"description":"KV cache dtype (e.g. q8_0, q4_0, q5_0, iq4_nl, f32)"},{"name":"n_parallel","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"--parallel slots; scales the per-slot KV stream padding. Omit to use the server's own slot count, which is what a default load gets.","title":"N Parallel"},"description":"--parallel slots; scales the per-slot KV stream padding. Omit to use the server's own slot count, which is what a default load gets."},{"name":"speculative_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Speculative decoding mode (mtp, ngram, mtp+ngram, dspark, dflash, auto)","title":"Speculative Type"},"description":"Speculative decoding mode (mtp, ngram, mtp+ngram, dspark, dflash, auto)"},{"name":"spec_draft_n_max","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"--spec-draft-n-max. A Hybrid Mamba target keeps one recurrent rollback state per drafted token, so this is the dominant speculative cost there.","title":"Spec Draft N Max"},"description":"--spec-draft-n-max. A Hybrid Mamba target keeps one recurrent rollback state per drafted token, so this is the dominant speculative cost there."},{"name":"spec_draft_cache_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Draft KV cache dtype (--spec-draft-type-k/-v), independent of the main cache","title":"Spec Draft Cache Type"},"description":"Draft KV cache dtype (--spec-draft-type-k/-v), independent of the main cache"},{"name":"ctx_checkpoints","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"--ctx-checkpoints; each one adds an SWA snapshot per slot","title":"Ctx Checkpoints"},"description":"--ctx-checkpoints; each one adds an SWA snapshot per slot"},{"name":"n_batch","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"--batch-size; the compute buffers scale with it","title":"N Batch"},"description":"--batch-size; the compute buffers scale with it"},{"name":"n_ubatch","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"--ubatch-size; the dominant term in the flat compute buffer","title":"N Ubatch"},"description":"--ubatch-size; the dominant term in the flat compute buffer"},{"name":"tensor_parallel","in":"query","required":false,"schema":{"type":"boolean","description":"Tensor mode replicates compute buffers on every device in the pool","default":false,"title":"Tensor Parallel"},"description":"Tensor mode replicates compute buffers on every device in the pool"},{"name":"disable_vision","in":"query","required":false,"schema":{"type":"boolean","description":"Load a vision GGUF without its mmproj, freeing the projector's VRAM","default":false,"title":"Disable Vision"},"description":"Load a vision GGUF without its mmproj, freeing the projector's VRAM"},{"name":"flash_attn","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Flash attention state to price. Omit to resolve it the way the launch does (the build's capability, LLAMA_ARG_FLASH_ATTN, a last-wins -fa in the extra arguments, and a quantized V cache which forces it on). It is not a detail: with flash attention off llama.cpp floors the V axis at f16 and pads variable-width V tensors, which is a 1.44x KV cache at q8_0 and 2.28x at q4_0","title":"Flash Attn"},"description":"Flash attention state to price. Omit to resolve it the way the launch does (the build's capability, LLAMA_ARG_FLASH_ATTN, a last-wins -fa in the extra arguments, and a quantized V cache which forces it on). It is not a detail: with flash attention off llama.cpp floors the V axis at f16 and pads variable-width V tensors, which is a 1.44x KV cache at q8_0 and 2.28x at q4_0"},{"name":"kv_unified","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"--kv-unified state to price; omit to resolve it as the launch does. Changes the sliding-window allowance on an SWA model, which is per slot when unified","title":"Kv Unified"},"description":"--kv-unified state to price; omit to resolve it as the launch does. Changes the sliding-window allowance on an SWA model, which is per slot when unified"},{"name":"swa_full","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"--swa-full state to price; omit to resolve it as the launch does. Collapses an SWA model's two cache sizes into one full-context cache","title":"Swa Full"},"description":"--swa-full state to price; omit to resolve it as the launch does. Collapses an SWA model's two cache sizes into one full-context cache"},{"name":"no_mmproj_offload","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"--no-mmproj-offload state to price; omit to resolve it as the launch does. A projector on the host is not VRAM, so pricing the wrong side moves the total by the whole mmproj","title":"No Mmproj Offload"},"description":"--no-mmproj-offload state to price; omit to resolve it as the launch does. A projector on the host is not VRAM, so pricing the wrong side moves the total by the whole mmproj"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/gguf-variants":{"get":{"tags":["models"],"summary":"Get Gguf Variants","description":"List GGUF quantization variants for a HF repo or local directory.","operationId":"get_gguf_variants_api_models_gguf_variants_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace repo ID (e.g. 'unsloth/gemma-3-4b-it-GGUF')","title":"Repo Id"},"description":"HuggingFace repo ID (e.g. 'unsloth/gemma-3-4b-it-GGUF')"},{"name":"prefer_local_cache","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Prefer Local Cache"}},{"name":"offline","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Offline"}},{"name":"local_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Path"}},{"name":"hf_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"HuggingFace token for private repos","title":"Hf Token"},"description":"HuggingFace token for private repos"},{"name":"include_cache_locations","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Cache Locations"}},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/models__models__GgufVariantsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/gguf-download-progress":{"get":{"tags":["models"],"summary":"Get Gguf Download Progress","description":"Compatibility route backed by the shared multi-cache progress service.","operationId":"get_gguf_download_progress_api_models_gguf_download_progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace repo ID","title":"Repo Id"},"description":"HuggingFace repo ID"},{"name":"variant","in":"query","required":false,"schema":{"type":"string","description":"Quantization variant (e.g. UD-TQ1_0)","default":"","title":"Variant"},"description":"Quantization variant (e.g. UD-TQ1_0)"},{"name":"expected_bytes","in":"query","required":false,"schema":{"type":"integer","description":"Expected total download size in bytes","default":0,"title":"Expected Bytes"},"description":"Expected total download size in bytes"},{"name":"engram_precision","in":"query","required":false,"schema":{"type":"string","maxLength":32,"description":"Standalone Engram table the load fetches, if any","default":"","title":"Engram Precision"},"description":"Standalone Engram table the load fetches, if any"},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/download-progress":{"get":{"tags":["models"],"summary":"Get Download Progress","description":"Compatibility route backed by the shared multi-cache progress service. The payload names\nthe cache directory it measured, so it takes the caller class like its ``/api/hub`` twin.","operationId":"get_download_progress_api_models_download_progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace repo ID","title":"Repo Id"},"description":"HuggingFace repo ID"},{"name":"mlx_load","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mlx Load"}},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/cached-gguf":{"get":{"tags":["models"],"summary":"List Cached Gguf","description":"List GGUF repos downloaded to HF cache, legacy Unsloth cache, and HF default cache.","operationId":"list_cached_gguf_api_models_cached_gguf_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/models/cached-models":{"get":{"tags":["models"],"summary":"List Cached Models","description":"List non-GGUF model repos downloaded to HF cache, legacy Unsloth cache, and HF default cache.","operationId":"list_cached_models_api_models_cached_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/routes__models__CachedModelsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/delete-cached":{"delete":{"tags":["models"],"summary":"Delete Cached Model","description":"Compatibility route backed by the shared multi-cache deletion service.","operationId":"delete_cached_model_api_models_delete_cached_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_delete_cached_model_api_models_delete_cached_delete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/cached-model-path":{"get":{"tags":["models"],"summary":"Get Cached Model Path","description":"Absolute on-disk path of a cached repo or one of its GGUF variants.","operationId":"get_cached_model_path_api_models_cached_model_path_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace repo ID","title":"Repo Id"},"description":"HuggingFace repo ID"},{"name":"variant","in":"query","required":false,"schema":{"type":"string","description":"Quantization variant (empty for whole repo)","default":"","title":"Variant"},"description":"Quantization variant (empty for whole repo)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachedModelPathResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/reveal-cached-model":{"post":{"tags":["models"],"summary":"Reveal Cached Model","description":"Reveal a cached repo (or one GGUF variant's file) in the OS file manager.","operationId":"reveal_cached_model_api_models_reveal_cached_model_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_reveal_cached_model_api_models_reveal_cached_model_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/models/checkpoints":{"get":{"tags":["models"],"summary":"List Checkpoints","description":"List checkpoints in the outputs directory.\n\nScans the outputs folder for training runs and their checkpoints.","operationId":"list_checkpoints_api_models_checkpoints_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"outputs_dir","in":"query","required":false,"schema":{"type":"string","description":"Directory to scan for checkpoints","default":"/home/espinosa/.unsloth/studio/outputs","title":"Outputs Dir"},"description":"Directory to scan for checkpoints"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckpointListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/export-size":{"get":{"tags":["models"],"summary":"Get Export Size","description":"Estimate a model's fp16/bf16-equivalent size for the Export page.\n\nReturns nulls with HTTP 200 when the size can't be determined. The HF token\n(for gated repos) comes from the X-HF-Token header so it never hits URLs/logs.","operationId":"get_export_size_api_models_export_size_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string","description":"Base model id or local model path to size","title":"Model"},"description":"Base model id or local model path to size"},{"name":"X-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportSizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/threads":{"get":{"tags":["chat"],"summary":"List Threads","operationId":"list_threads_api_chat_threads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Type"}},{"name":"pair_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pair Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatThreadListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chat"],"summary":"Save Thread","operationId":"save_thread_api_chat_threads_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatThread-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatThread-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chat"],"summary":"Delete Threads","operationId":"delete_threads_api_chat_threads_delete","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/sidebar/rows":{"post":{"tags":["chat"],"summary":"List Sidebar Rows","description":"One page of sidebar rows, compare pairs grouped before the limit.","operationId":"list_sidebar_rows_api_chat_sidebar_rows_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSidebarRowsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSidebarRowsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/sidebar/thread-rows":{"get":{"tags":["chat"],"summary":"Sidebar Thread Rows","operationId":"sidebar_thread_rows_api_chat_sidebar_thread_rows_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Thread Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSidebarThreadRowsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/revision":{"get":{"tags":["chat"],"summary":"Chat History Revision","description":"Change counters other devices poll, so a chat open elsewhere picks up writes made here.","operationId":"chat_history_revision_api_chat_revision_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"threadId","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Threadid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatHistoryRevisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/threads/{thread_id}":{"get":{"tags":["chat"],"summary":"Get Thread","operationId":"get_thread_api_chat_threads__thread_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatThread-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["chat"],"summary":"Patch Thread","operationId":"patch_thread_api_chat_threads__thread_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatThreadPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatThread-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/attachments":{"get":{"tags":["chat"],"summary":"List Attachments","description":"One bounded page of chat uploads for the settings Data tab.","operationId":"list_attachments_api_chat_attachments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Attachments Api Chat Attachments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/attachment-originals":{"post":{"tags":["chat"],"summary":"Upload Attachment Original","description":"Store an attachment's original file; the message records the returned hash. Any name is\ntaken, since the python tool reads every text and code format. Sync, so disk writes run in\nthe threadpool.","operationId":"upload_attachment_original_api_chat_attachment_originals_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_attachment_original_api_chat_attachment_originals_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Upload Attachment Original Api Chat Attachment Originals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/attachments/{message_id}/{attachment_id}/file":{"get":{"tags":["chat"],"summary":"Get Attachment File","description":"Serve one attachment's stored content: a document's original file, image, audio or video\nbytes, or extracted text.","operationId":"get_attachment_file_api_chat_attachments__message_id___attachment_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/attachments/{message_id}/{attachment_id}":{"delete":{"tags":["chat"],"summary":"Delete Attachment","description":"Remove one attachment from its chat message.","operationId":"delete_attachment_api_chat_attachments__message_id___attachment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Attachment Api Chat Attachments  Message Id   Attachment Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/projects":{"get":{"tags":["chat"],"summary":"List Projects","operationId":"list_projects_api_chat_projects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProjectListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chat"],"summary":"Save Project","operationId":"save_project_api_chat_projects_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProjectCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/projects/{project_id}":{"get":{"tags":["chat"],"summary":"Get Project","operationId":"get_project_api_chat_projects__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["chat"],"summary":"Patch Project","operationId":"patch_project_api_chat_projects__project_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProjectPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chat"],"summary":"Delete Project","operationId":"delete_project_api_chat_projects__project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"delete_files","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Delete Files"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProjectDeleted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/agents-md":{"get":{"tags":["chat"],"summary":"Get Agents Md","operationId":"get_agents_md_api_chat_agents_md_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatAgentsMd"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/project-folder-access":{"get":{"tags":["chat"],"summary":"Get Project Folder Access","operationId":"get_project_folder_access_api_chat_project_folder_access_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProjectFolderAccess"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/projects/{project_id}/working-folder":{"put":{"tags":["chat"],"summary":"Set Project Working Folder","operationId":"set_project_working_folder_api_chat_projects__project_id__working_folder_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProjectWorkingFolder"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chat"],"summary":"Clear Project Working Folder","operationId":"clear_project_working_folder_api_chat_projects__project_id__working_folder_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/projects/{project_id}/files":{"get":{"tags":["chat"],"summary":"List Project Files","description":"One directory level of the folder the project's tools run in. Paths outside it are 404.","operationId":"list_project_files_api_chat_projects__project_id__files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","maxLength":4096,"default":"","title":"Path"}},{"name":"show_hidden","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Show Hidden"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectFileListing"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/projects/{project_id}/files/search":{"get":{"tags":["chat"],"summary":"Search Project Files","description":"Files in the project's folder whose relative path matches q, best match first.","operationId":"search_project_files_api_chat_projects__project_id__files_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":512,"default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectFileSearch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/projects/{project_id}/changes":{"get":{"tags":["chat"],"summary":"Get Project Changes","description":"Changed files when the project's folder is the root of a git repository.","operationId":"get_project_changes_api_chat_projects__project_id__changes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectChanges"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/threads/{thread_id}/messages":{"get":{"tags":["chat"],"summary":"Get Thread Messages","operationId":"get_thread_messages_api_chat_threads__thread_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessageListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["chat"],"summary":"Replace Thread Messages","operationId":"replace_thread_messages_api_chat_threads__thread_id__messages_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"echoMessages","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Echomessages"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessageSyncRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessageListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/messages:batch":{"post":{"tags":["chat"],"summary":"Batch Thread Messages","description":"One round-trip per sidebar/search rebuild instead of N. Unknown thread ids return empty lists.","operationId":"batch_thread_messages_api_chat_messages_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessagesBatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessagesBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/messages:counts":{"post":{"tags":["chat"],"summary":"Count Thread Messages","description":"Per-thread message counts, without message bodies.","operationId":"count_thread_messages_api_chat_messages_counts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessagesBatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessageCountsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/threads/{thread_id}/messages/{message_id}":{"get":{"tags":["chat"],"summary":"Get Thread Message","operationId":"get_thread_message_api_chat_threads__thread_id__messages__message_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessage-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["chat"],"summary":"Save Thread Message","operationId":"save_thread_message_api_chat_threads__thread_id__messages__message_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"allowGenerationEdit","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Allowgenerationedit"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/routes__chat_history__ChatMessage"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessage-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/count":{"get":{"tags":["chat"],"summary":"Count Threads","operationId":"count_threads_api_chat_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCountResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/import-ledger":{"get":{"tags":["chat"],"summary":"Get Import Ledger","description":"Legacy-Dexie import ledger: legacy thread ids already copied into chat tables.\n\nThe frontend checks this on tab open to decide whether to re-run the Dexie -> studio.db import.","operationId":"get_import_ledger_api_chat_import_ledger_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatImportLedgerResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["chat"],"summary":"Record Import Ledger","description":"Mark each legacy thread id as imported. Idempotent.","operationId":"record_import_ledger_api_chat_import_ledger_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatImportLedgerRecordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatImportLedgerRecordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat":{"delete":{"tags":["chat"],"summary":"Clear History","operationId":"clear_history_api_chat_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delete_files","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Delete Files"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ChatClearRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/pins":{"get":{"tags":["chat"],"summary":"Get Pins","operationId":"get_pins_api_chat_pins_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPinsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/pins/migrate":{"post":{"tags":["chat"],"summary":"Migrate Pins","operationId":"migrate_pins_api_chat_pins_migrate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPinsMigrationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPinsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/settings":{"get":{"tags":["chat"],"summary":"Get Settings","operationId":"get_settings_api_chat_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSettingsResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["chat"],"summary":"Put Settings","operationId":"put_settings_api_chat_settings_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/settings/compare-and-set":{"post":{"tags":["chat"],"summary":"Compare And Set Settings","operationId":"compare_and_set_settings_api_chat_settings_compare_and_set_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConditionalChatSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/threads/{thread_id}/rewind":{"post":{"tags":["chat"],"summary":"Rewind Thread Files","description":"Put back the files this chat's tool calls changed during ``turn_ids``. Moving the\nconversation itself is the client's: it edits the chosen message, which keeps the old branch.","operationId":"rewind_thread_files_api_chat_threads__thread_id__rewind_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRewindRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/threads/{thread_id}/fork":{"post":{"tags":["chat"],"summary":"Fork Thread","description":"Fork a thread at `messageId` -- creates a new thread with\nancestor msgs [root..messageId] copied with fresh ids. Both\ncode-exec container ids reset on the fork. OpenAI snapshot is a\nbest-effort enhancement; failure surfaces as\n`containerSnapshotWarning` and the fork still succeeds with a\nclean sandbox.","operationId":"fork_thread_api_chat_threads__thread_id__fork_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatForkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatForkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/threads/{thread_id}/messages/{message_id}/forks":{"get":{"tags":["chat"],"summary":"Get Fork Count","operationId":"get_fork_count_api_chat_threads__thread_id__messages__message_id__forks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatForkCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/threads/{thread_id}/forks":{"get":{"tags":["chat"],"summary":"Get Thread Fork Counts","description":"Every fork count of a thread in one read, so a rendered thread costs one request.","operationId":"get_thread_fork_counts_api_chat_threads__thread_id__forks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatThreadForkCountsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/export":{"get":{"tags":["chat"],"summary":"Export History","operationId":"export_history_api_chat_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatExportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/memory-context":{"get":{"tags":["chat"],"summary":"Get Memory Context","operationId":"get_memory_context_api_chat_memory_context_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"query","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"context_length","in":"query","required":false,"schema":{"type":"integer","maximum":10000000,"minimum":1,"default":4096,"title":"Context Length"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat-export/pdf":{"post":{"tags":["chat"],"summary":"Export Chat Pdf","operationId":"export_chat_pdf_api_chat_export_pdf_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPdfRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/research-runs":{"post":{"tags":["research-runs"],"summary":"Create Research Run","operationId":"create_research_run_api_chat_research_runs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResearchRun"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/research-runs/active":{"get":{"tags":["research-runs"],"summary":"Active Research Runs","operationId":"active_research_runs_api_chat_research_runs_active_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"threadId","in":"query","required":true,"schema":{"type":"string","title":"Threadid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/research-runs/{run_id}":{"get":{"tags":["research-runs"],"summary":"Get Research Run","operationId":"get_research_run_api_chat_research_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/research-runs/{run_id}/plan":{"put":{"tags":["research-runs"],"summary":"Update Research Plan","operationId":"update_research_plan_api_chat_research_runs__run_id__plan_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePlan"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/research-runs/{run_id}/approve":{"post":{"tags":["research-runs"],"summary":"Approve Research Plan","operationId":"approve_research_plan_api_chat_research_runs__run_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovePlan"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/research-runs/{run_id}/cancel":{"post":{"tags":["research-runs"],"summary":"Cancel Research Run","operationId":"cancel_research_run_api_chat_research_runs__run_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/research-runs/{run_id}/retry":{"post":{"tags":["research-runs"],"summary":"Retry Research Run","operationId":"retry_research_run_api_chat_research_runs__run_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RetryResearchRun"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/research-runs/{run_id}/events":{"post":{"tags":["research-runs"],"summary":"Research Events","operationId":"research_events_api_chat_research_runs__run_id__events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"After"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/chat-runs":{"post":{"tags":["inference"],"summary":"Create Chat Generation Run","operationId":"create_chat_generation_run_api_inference_chat_runs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChatGenerationRun"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/chat-runs/active":{"get":{"tags":["inference"],"summary":"Active Chat Generation Runs","operationId":"active_chat_generation_runs_api_inference_chat_runs_active_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"threadId","in":"query","required":true,"schema":{"type":"string","title":"Threadid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/chat-runs/{run_id}":{"get":{"tags":["inference"],"summary":"Get Chat Generation Run","operationId":"get_chat_generation_run_api_inference_chat_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/chat-runs/{run_id}/cancel":{"post":{"tags":["inference"],"summary":"Cancel Chat Generation Run","operationId":"cancel_chat_generation_run_api_inference_chat_runs__run_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/chat-runs/{run_id}/events":{"post":{"tags":["inference"],"summary":"Chat Generation Events","operationId":"chat_generation_events_api_inference_chat_runs__run_id__events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":9223372036854775807,"minimum":0},{"type":"null"}],"title":"After"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/load":{"post":{"tags":["inference"],"summary":"Load Model","description":"Load a model for inference.\n\nmodel_path is a clean identifier from GET /models/list. Returns inference\nconfig (temperature, top_p, top_k, min_p) from the model's YAML, falling\nback to default.yaml for missing values.\n\nGGUF models load via llama-server (llama.cpp) instead of Unsloth.","operationId":"load_model_api_inference_load_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/validate":{"post":{"tags":["inference"],"summary":"Validate Model","description":"Lightweight validation endpoint for model identifiers.\n\nChecks that ModelConfig.from_identifier() can resolve model_path, but does\nNOT load model weights into GPU memory.","operationId":"validate_model_api_inference_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateModelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateModelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/int8-prefill-availability":{"post":{"tags":["inference"],"summary":"Int8 Prefill Availability","description":"Whether MLX int8 prefill would apply to this model, judged from its downloaded checkpoint\nwithout loading it. The first answer on a new macOS or MLX version builds the kernels once.","operationId":"int8_prefill_availability_api_inference_int8_prefill_availability_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Int8PrefillAvailabilityRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Int8PrefillAvailabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/ane-prefill-availability":{"post":{"tags":["inference"],"summary":"Ane Prefill Availability","description":"Whether MLX Neural Engine prefill could apply to this model, judged from its downloaded\ncheckpoint without loading it; calibration and free memory still decide at load.","operationId":"ane_prefill_availability_api_inference_ane_prefill_availability_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnePrefillAvailabilityRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnePrefillAvailabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/fast-verify-availability":{"post":{"tags":["inference"],"summary":"Fast Verify Availability","description":"Whether MLX Fast Verify could apply to this model, judged from its downloaded checkpoint\nwithout loading it; whether a drafter attaches still decides at load.","operationId":"fast_verify_availability_api_inference_fast_verify_availability_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FastVerifyAvailabilityRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FastVerifyAvailabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/estimate-memory":{"post":{"tags":["inference"],"summary":"Estimate Memory","description":"Price a prospective load from its metadata, before the load allocates anything.\n\nReads GGUF metadata and file sizes -- or, for an MLX repo, safetensors headers and the\nshapes of an architecture built and never evaluated -- so it is safe to call on every\nsettings change: no model is loaded, no tensor data is read, nothing is downloaded.\n\nThe arithmetic is the loader's own KV, compute-buffer and companion sizing. Weights\ntimes a constant is fine until the KV cache stops being a rounding error: at 262k\ntokens the cache can outweigh the weights. Where the metadata cannot supply the dims\nthis answers ``kv_estimable = false`` rather than quoting an assumed total.","operationId":"estimate_memory_api_inference_estimate_memory_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateMemoryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateMemoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/mlx-drafters":{"post":{"tags":["inference"],"summary":"Mlx Drafters","description":"Cached drafters an MLX load of this model could name. Reads only local config files.","operationId":"mlx_drafters_api_inference_mlx_drafters_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MlxDraftersRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MlxDraftersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/unload":{"post":{"tags":["inference"],"summary":"Unload Model","description":"Unload a model from memory.\n\nPadded like /load: a 600 GB GGUF teardown measures 160s, past the proxy timer.\nSee ``_tunnel_safe_json``. No in-process caller today; a future one must await\n``_unload_model_impl`` (as preview awaits ``load_model_gated``), since the padded\npath returns a StreamingResponse, not the payload.","operationId":"unload_model_api_inference_unload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnloadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/generate/stream":{"post":{"tags":["inference"],"summary":"Generate Stream","description":"Generate a chat response with Server-Sent Events (SSE) streaming.\n\nFor vision models, provide image_base64 (base64-encoded image).","operationId":"generate_stream_api_inference_generate_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/llama-flags":{"get":{"tags":["inference"],"summary":"Get Llama Flags","description":"Flags the installed llama-server accepts, for the extra-arguments editor.\n\nCheap to call: ``probe_server_capabilities`` caches on the binary's revision, so\nonly the first call after an install or an update runs the 10s ``--help`` probe.\nA failed probe answers ``probe_ok = false`` with no flags rather than erroring, so\nthe editor degrades to \"cannot verify\" instead of blocking every argument.\n\n``managed_only`` skips the probe entirely. The denylist is Unsloth's own and needs\nno binary to read, while the caller that needs it most is the panel sanitizing a\nstored list before it becomes an explicit request: making that wait on a cold\n``--help`` would leave a legacy flag in the request for as long as the probe runs.","operationId":"get_llama_flags_api_inference_llama_flags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"managed_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Managed Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlamaFlagCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/status":{"get":{"tags":["inference"],"summary":"Inference Status","description":"`GET /api/inference/status`, redacted the way the image and video status routes are.\n\nA chat or GGUF row loaded from an inventory reference RETAINS the resolved absolute path\nas the resident model identity, and it comes back out here through `active_model`,\n`model_identifier` and `loaded`. This route answers long after the request that resolved\nthe reference has ended, so there is no handle in the request context to put back and\n`restore_inventory_handles` cannot help: the redactor hands out the same opaque reference\nthe caller sent instead. Without it, an API-key caller recovered the path the inventory\nredaction exists to hide by loading the row and then polling status.","operationId":"inference_status_api_inference_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/load-progress":{"get":{"tags":["inference"],"summary":"Get Load Progress","description":"Return the active GGUF load's mmap/upload progress.\n\nDuring the warmup window after a GGUF download -- when llama-server pages\n~tens-to-hundreds of GB of shards into the page cache before pushing layers\nto VRAM -- ``/api/inference/status`` only shows a generic spinner. This\nexposes sampled progress so the UI can render a real bar plus rate/ETA.\n\nReturns an empty payload (``phase=null, bytes=0``) when no load is in\nflight. The frontend should stop polling once ``phase`` becomes ``ready``.","operationId":"get_load_progress_api_inference_load_progress_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadProgressResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/generate":{"post":{"tags":["inference"],"summary":"Generate Audio","description":"Generate audio (TTS) from the latest user message, as base64 WAV.\nWorks with both GGUF (llama-server) and Unsloth/transformers backends.","operationId":"generate_audio_api_inference_audio_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioGenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/run":{"post":{"tags":["inference"],"summary":"Run Audio Workflow","description":"Run one Audio page workflow (Clone, Speak in a saved voice, Edit, Convert, Music or\nSeparate); clips go to history. Audio is named by id and resolved here in the caller's account;\nthe worker gets a prepared copy's path, never bytes.","operationId":"run_audio_workflow_api_inference_audio_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/speech":{"post":{"tags":["inference"],"summary":"Openai Audio Speech","description":"OpenAI-compatible text-to-speech (POST /v1/audio/speech).\n\nWith ``provider_id`` the request is proxied. Otherwise an omitted ``model`` serves the\nresident model. A named downloaded local model is loaded when auto-switch is on; when\nit is off, the shared switch guard rejects a different recognized local model.\nA saved voice (``voice``) or ``reference`` clones; history keeps the clip as WAV.","operationId":"openai_audio_speech_api_inference_audio_speech_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioSpeechRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/transcriptions":{"post":{"tags":["inference"],"summary":"Openai Audio Transcriptions","description":"OpenAI-compatible speech-to-text (POST /v1/audio/transcriptions).\n\nWith ``provider_id`` set, the request is proxied to that saved connection.\nOtherwise ``model`` maps to a sidecar model id, with ``whisper-1`` or nothing\nselecting the default. ``response_format`` supports ``json``, ``text`` and\n``verbose_json``; an audio.cpp model also gives segments, words (``timestamp_granularities``)\nand ``diarized_json``. Optional ``device`` (``auto``/``cpu``/``gpu``) places a cold\nload; when omitted, Voice Settings \"Load into\" / ``UNSLOTH_AUDIO_DEVICE`` apply (#15280).","operationId":"openai_audio_transcriptions_api_inference_audio_transcriptions_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_openai_audio_transcriptions_api_inference_audio_transcriptions_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/translations":{"post":{"tags":["inference"],"summary":"Openai Audio Translations","description":"OpenAI-compatible speech translation to English (POST /v1/audio/translations).\n\nRuns on the local Whisper sidecar; ``whisper-1`` or nothing selects the default model.\n``response_format`` supports ``json``, ``text`` and ``verbose_json``. ``prompt`` and\n``temperature`` are accepted and ignored. Optional ``device`` (``auto``/``cpu``/``gpu``)\nmatches Voice Settings \"Load into\" on a cold load (#15280).","operationId":"openai_audio_translations_api_inference_audio_translations_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_openai_audio_translations_api_inference_audio_translations_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/cancel":{"post":{"tags":["inference"],"summary":"Cancel Audio Run","description":"Stop the /audio/run sent with this cancel_id, as a disconnect would: it answers 499 and saves\nnothing. A cancel that arrives first is kept for 30 s. Returns {\"cancelled\": N}.","operationId":"cancel_audio_run_api_inference_audio_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioCancelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/analyze":{"post":{"tags":["inference"],"summary":"Analyze Audio","description":"Measure an upload, history clip or saved voice: duration, loudness (LUFS), true peak,\nclipping and the span that holds sound. With expected_text, also the transcript and how well\nit matches. Nothing is saved.","operationId":"analyze_audio_api_inference_audio_analyze_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioAnalyzeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioAnalyzeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/external/openai/containers/list":{"post":{"tags":["inference"],"summary":"List Openai Containers","description":"List the user's OpenAI shell-tool containers.","operationId":"list_openai_containers_api_inference_external_openai_containers_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIContainerRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOpenAIContainersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/external/openai/containers/create":{"post":{"tags":["inference"],"summary":"Create Openai Container","description":"Create a named container with the user-chosen idle TTL.","operationId":"create_openai_container_api_inference_external_openai_containers_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOpenAIContainerBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIContainerSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/external/openai/containers/delete":{"post":{"tags":["inference"],"summary":"Delete Openai Container","description":"Delete a named container by id.","operationId":"delete_openai_container_api_inference_external_openai_containers_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteOpenAIContainerBody"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/chat/completions":{"post":{"tags":["inference"],"summary":"Openai Chat Completions","operationId":"openai_chat_completions_api_inference_chat_completions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/sandbox/{session_id}":{"get":{"tags":["inference"],"summary":"List Sandbox Files","description":"Where this chat's files are, and what is in there.\n\nThe path answers \"where did my file go\"; before this the only way to find\none was to search the filesystem by hand.","operationId":"list_sandbox_files_api_inference_sandbox__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/sandbox/{session_id}/open":{"post":{"tags":["inference"],"summary":"Open Sandbox File","description":"Open one of this chat's sandbox files with the OS default app.\n\nLike reveal, this is the backend host's desktop, so it only means anything in\nthe desktop app. Only document and media types open: the files are\nmodel-written, and a script or app would run rather than be viewed.","operationId":"open_sandbox_file_api_inference_sandbox__session_id__open_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"file","in":"query","required":true,"schema":{"type":"string","title":"File"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/sandbox/{session_id}/reveal":{"post":{"tags":["inference"],"summary":"Reveal Sandbox Dir","description":"Open this chat's sandbox directory in the OS file manager.\n\nWith ``file``, that file is selected in its folder instead.\n\nThe file manager is the backend host's, so this only means anything when the\nbackend runs on the user's own machine, which is the desktop app.","operationId":"reveal_sandbox_dir_api_inference_sandbox__session_id__reveal_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}},{"name":"file","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/sandbox/{session_id}/upload":{"post":{"tags":["inference"],"summary":"Upload Sandbox File","description":"Put one file into this chat's sandbox folder, where its tools read and write.\n\nSaved at the folder's root under the file's own name. A taken name is a 409 unless\n``overwrite``, so a second upload never silently replaces what a tool wrote.","operationId":"upload_sandbox_file_api_inference_sandbox__session_id__upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_sandbox_file_api_inference_sandbox__session_id__upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/sandbox/{session_id}/{filename}":{"head":{"tags":["inference"],"summary":"Serve Sandbox File","description":"Serve a file a tool call created in this chat's sandbox.\n\nImages keep their real media type and render inline. Everything else is an\nopaque attachment: the model picks these filenames, so an inline text/html\nor image/svg+xml would be same-origin script execution. nosniff plus a\nContent-Disposition filename is what makes serving them safe.\n\nAccepts auth via an Authorization header or a query token. Unsloth uses an\nauthenticated fetch and object URL; query auth remains for older clients.","operationId":"serve_sandbox_file_api_inference_sandbox__session_id___filename__head","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["inference"],"summary":"Serve Sandbox File","description":"Serve a file a tool call created in this chat's sandbox.\n\nImages keep their real media type and render inline. Everything else is an\nopaque attachment: the model picks these filenames, so an inline text/html\nor image/svg+xml would be same-origin script execution. nosniff plus a\nContent-Disposition filename is what makes serving them safe.\n\nAccepts auth via an Authorization header or a query token. Unsloth uses an\nauthenticated fetch and object URL; query auth remains for older clients.","operationId":"serve_sandbox_file_api_inference_sandbox__session_id___filename__head","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/models":{"get":{"tags":["inference"],"summary":"Openai List Models","description":"OpenAI-compatible model listing endpoint (``GET /v1/models``).\n\nLists every model available on this server -- the loaded model(s) plus\nlocally available (downloaded/cached) models -- not only what is resident in\nmemory. Each entry carries a clean public id and a ``loaded`` flag.","operationId":"openai_list_models_api_inference_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"output_modalities","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Modalities"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/models/{model_id}":{"get":{"tags":["inference"],"summary":"Openai Retrieve Model","description":"OpenAI-compatible single-model retrieval endpoint (``GET /v1/models/{id}``).\n\nReturns the bare model object when ``model_id`` matches a known model\n(loaded or locally available), or 404 model_not_found otherwise. Defined\nafter the LIST route so it does not shadow it; ``{model_id:path}`` keeps ids\nwith slashes intact.","operationId":"openai_retrieve_model_api_inference_models__model_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/completions":{"post":{"tags":["inference"],"summary":"Openai Completions","description":"OpenAI-compatible text completions endpoint (non-chat).\n\nProxies to the running llama-server's ``/v1/completions`` when a GGUF model is\nloaded or to a managed vLLM/SGLang engine's, and serves an MLX model in process.","operationId":"openai_completions_api_inference_completions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/embeddings":{"post":{"tags":["inference"],"summary":"Openai Embeddings","description":"OpenAI-compatible embeddings: the resident embedding GGUF when one is loaded,\nelse Unsloth's configured embedding model.","operationId":"openai_embeddings_api_inference_embeddings_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/responses":{"post":{"tags":["inference"],"summary":"Openai Responses","description":"OpenAI Responses API endpoint.\n\nAccepts a Responses-format request, converts it to a ChatCompletionRequest\ninternally, and returns a response matching the Responses API schema\n(output array, input_tokens/output_tokens, named SSE events for streaming).","operationId":"openai_responses_api_inference_responses_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/chat/count_tokens":{"post":{"tags":["inference"],"summary":"Chat Count Tokens","description":"Count prompt tokens for OpenAI-form chat messages using the loaded tokenizer.\n\nUnlike the /v1 count endpoints this never auto-switches: ``model`` is informational. The\ncaller is a background recount with no abort signal, so switching could drag the backend back\nto the model loaded when the count started, a reload the client's guards cannot undo.","operationId":"chat_count_tokens_api_inference_chat_count_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCountTokensRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/messages/count_tokens":{"post":{"tags":["inference"],"summary":"Anthropic Count Tokens","description":"Anthropic-compatible token-counting endpoint (POST /v1/messages/count_tokens).\n\nTranslates the Anthropic request to OpenAI form (the same translation the\n/messages handler uses), counts prompt tokens with the loaded GGUF model's\ntokenizer, or a resident MLX model's through the chat count route, and returns\n``{\"input_tokens\": int}`` only. Unlike /messages, max_tokens is NOT required here.","operationId":"anthropic_count_tokens_api_inference_messages_count_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessagesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/messages":{"post":{"tags":["inference"],"summary":"Anthropic Messages","description":"Anthropic-compatible Messages API endpoint.\n\nTranslates Anthropic message format to internal OpenAI format, runs through\nthe existing agentic tool loop when tools are provided, and returns\nresponses in Anthropic Messages API format (streaming SSE or non-streaming\nJSON).","operationId":"anthropic_messages_api_inference_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessagesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/gallery/{audio_id}/file":{"get":{"tags":["inference"],"summary":"Get Gallery Audio File","operationId":"get_gallery_audio_file_api_inference_audio_gallery__audio_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audio_id","in":"path","required":true,"schema":{"type":"string","title":"Audio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/gallery/{audio_id}/signed-url":{"get":{"tags":["inference"],"summary":"Get Gallery Audio Signed Url","description":"A key-free link to one clip (bearer-gated to mint, HMAC to use), on the mount called.","operationId":"get_gallery_audio_signed_url_api_inference_audio_gallery__audio_id__signed_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audio_id","in":"path","required":true,"schema":{"type":"string","title":"Audio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/gallery/{audio_id}/file-signed":{"get":{"tags":["inference"],"summary":"Get Gallery Audio File Signed","description":"Serve one clip gated by the HMAC token instead of the bearer. No auth dependency, so the\ntoken's account is bound with run_as: without it the owner's gallery would resolve.","operationId":"get_gallery_audio_file_signed_api_inference_audio_gallery__audio_id__file_signed_get","parameters":[{"name":"audio_id","in":"path","required":true,"schema":{"type":"string","title":"Audio Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/inputs":{"post":{"tags":["inference"],"summary":"Upload Audio Input","description":"Store a raw audio body (any container), decoded once to WAV; a re-upload of the same audio\nreturns the existing record with 200.","operationId":"upload_audio_input_api_inference_audio_inputs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string","maxLength":255,"default":"audio","title":"Name"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioInputRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/inputs/{input_id}/file":{"get":{"tags":["inference"],"summary":"Get Audio Input File","operationId":"get_audio_input_file_api_inference_audio_inputs__input_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"input_id","in":"path","required":true,"schema":{"type":"string","title":"Input Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/inputs/{input_id}":{"delete":{"tags":["inference"],"summary":"Delete Audio Input","operationId":"delete_audio_input_api_inference_audio_inputs__input_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"input_id","in":"path","required":true,"schema":{"type":"string","title":"Input Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/voices":{"get":{"tags":["inference"],"summary":"List Audio Voices","operationId":"list_audio_voices_api_inference_audio_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioVoiceListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["inference"],"summary":"Create Audio Voice","operationId":"create_audio_voice_api_inference_audio_voices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioVoiceCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioVoice"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/voices/{voice_id}":{"patch":{"tags":["inference"],"summary":"Update Audio Voice","operationId":"update_audio_voice_api_inference_audio_voices__voice_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioVoicePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioVoice"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inference"],"summary":"Delete Audio Voice","operationId":"delete_audio_voice_api_inference_audio_voices__voice_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/voices/{voice_id}/file":{"get":{"tags":["inference"],"summary":"Get Audio Voice File","operationId":"get_audio_voice_file_api_inference_audio_voices__voice_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/generations":{"post":{"tags":["inference"],"summary":"Openai Image Generations","description":"OpenAI-compatible text-to-image (POST /v1/images/generations).\n\nGenerates ``n`` images from ``prompt`` on the loaded diffusion model and\nreturns them as URLs (default) or base64 PNGs per ``response_format``. Steps\nand guidance have no OpenAI knob: the x-unsloth fields set them (and width, height,\nseed, negative_prompt), else they default per loaded model.\n\nWith media auto-switch on, ``model`` names the image model to serve on and is loaded\nwhen it is not the resident one; with it off ``model`` stays informational.","operationId":"openai_image_generations_api_inference_images_generations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/active-generations":{"get":{"tags":["inference"],"summary":"Get Active Generations","description":"return interruptible local generations and the effective decode capacity.","operationId":"get_active_generations_api_inference_active_generations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/transformers-upgrade-check":{"post":{"tags":["inference"],"summary":"Check Transformers Upgrade Route","description":"Does loading this model need a newer transformers than any installed overlay?\n\n/validate answers this for a chat load, but only as one field of a check that also\nresolves a ModelConfig, picks a GPU placement and runs the coexistence guard, none of\nwhich apply to a training start and several of which refuse while a run is active. So\ntraining asks on its own here, before spawning a worker that would otherwise die at\nmodel load with an unrecognized-architecture error the user cannot act on.\n\nAnswers the same way /validate does: check_upgrade_for_model across [adapter, base],\ninside the same forced-offline window, on a worker thread. Also reports whether the\nrun would load 16-bit instead of bnb 4-bit, which is what the latest sidecar means\nfor training. Never raises: an unreadable model reports \"no upgrade needed\" and the\ncaller proceeds exactly as it did before.","operationId":"check_transformers_upgrade_route_api_inference_transformers_upgrade_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransformersUpgradeCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransformersUpgradeCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/install-latest-transformers":{"post":{"tags":["inference"],"summary":"Install Latest Transformers Route","description":"Install of the latest transformers release into the persistent .venv_t5_latest sidecar.\n\nPyPI releases are package-scanned first (utils.security.package_scan) and installed\nwith their sha256 digests pinned; a flagged release is refused. With ``auto`` (no\ndialog shown) only a clean scan installs, otherwise this answers requires_consent\nbefore reserving anything. transformers main always needs the user's confirmation.\n\nCalled after the user confirms the transformers-upgrade dialog raised by /validate\n(requires_transformers_upgrade). The requested version must match the current latest\nPyPI release, or transformers main when only main ships the architecture (both\nre-verified server-side); the sidecar then participates in routing on\nthis and every future start. A pip install runs off-loop, so this can take a minute.","operationId":"install_latest_transformers_route_api_inference_install_latest_transformers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallLatestTransformersRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallLatestTransformersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/cancel":{"post":{"tags":["inference"],"summary":"Cancel Inference","description":"Cancel in-flight inference requests.\n\nBody (JSON, at least one key required):\n  cancel_id    - preferred: per-run UUID, matched exclusively.\n  session_id   - fallback when cancel_id is absent.\n  completion_id - fallback when cancel_id is absent.\n\nA cancel_id arriving before its stream registers is stashed briefly and\nreplayed on registration. Returns {\"cancelled\": N}.","operationId":"cancel_inference_api_inference_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/tool-confirm":{"post":{"tags":["inference"],"summary":"Confirm Tool Call","operationId":"confirm_tool_call_api_inference_tool_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolConfirmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/browser-action-result":{"post":{"tags":["inference"],"summary":"Browser Action Result","operationId":"browser_action_result_api_inference_browser_action_result_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserActionResultRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/tool-approval-status":{"post":{"tags":["inference"],"summary":"Tool Approval Status","description":"Whether a parked approval is still waiting on a human.\n\nA reopened tab restores Approve/Deny from a saved card that has no result and an approval id.\nThat shape is identical whether the call is still parked or the user already answered it and\nthe tool is mid-flight, since the result only arrives with tool_end. Without this the tab\nre-arms the answered one and every press 404s.\n\nPOST rather than GET so the id travels in the body instead of a URL that lands in logs.","operationId":"tool_approval_status_api_inference_tool_approval_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolApprovalStatusRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/monitor":{"get":{"tags":["inference"],"summary":"Get Api Monitor","description":"Return recent OpenAI-compatible API activity for Unsloth.","operationId":"get_api_monitor_api_inference_monitor_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["inference"],"summary":"Clear Api Monitor","description":"Drop this caller's recorded API history so a debugging session starts clean.\n\nScoped to the current subject, like every read on the monitor: an unscoped\nwipe would erase another user's history and zero their active-request count\nwhile their generation is still streaming.\n\nThe caller's own in-flight requests are dropped from the log too; they keep\nstreaming to their client, they just stop being reported here (a later append\nre-adds nothing, since the entry id no longer resolves).","operationId":"clear_api_monitor_api_inference_monitor_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/sampling-defaults":{"get":{"tags":["inference"],"summary":"Get Sampling Defaults","description":"The sampling a /v1 request naming ``model`` gets for every field it leaves out.\n\nThe same resolution the request path applies (operator ``UNSLOTH_SAMPLING_*`` pins, then the\nmodel's recommendation, then the schema default), so the API page's example request shows the\nvalues a client would actually get. Off-loop: the first read of a model loads its YAML.","operationId":"get_sampling_defaults_api_inference_sampling_defaults_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string","title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/monitor/{entry_id}":{"get":{"tags":["inference"],"summary":"Get Api Monitor Entry","description":"Return full prompt/reply details for one OpenAI-compatible API request.","operationId":"get_api_monitor_entry_api_inference_monitor__entry_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"include_prompt","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Prompt"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/download-plan":{"post":{"tags":["inference"],"summary":"Audio Download Plan","description":"Stage native-audio checkpoints and companion codecs through Download Manager.","operationId":"audio_download_plan_api_inference_audio_download_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionDownloadPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/stt/status":{"get":{"tags":["inference"],"summary":"Stt Status","description":"Report STT availability and which model, if any, is resident.\n\n``model`` extends the Transformers ``downloaded_models`` check to a\ncustom Hugging Face repository beyond the curated defaults.","operationId":"stt_status_api_inference_audio_stt_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/stt/download":{"post":{"tags":["inference"],"summary":"Stt Download","description":"Start a background download of a dictation model.\n\nBoth engines download directly (a GGML checkpoint is a single file the Model\nHub's GGUF variant planner cannot express; a Transformers checkpoint is a\nwhole snapshot). Progress is reported by /audio/stt/status.","operationId":"stt_download_api_inference_audio_stt_download_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttLoadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/stt/download/cancel":{"post":{"tags":["inference"],"summary":"Stt Download Cancel","description":"Stop an in-flight dictation model download.\n\nPartial files stay cached, so the same download resumes. Cancelling when\nnothing is downloading is a no-op, so a double click cannot fail.","operationId":"stt_download_cancel_api_inference_audio_stt_download_cancel_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SttLoadRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/stt/load":{"post":{"tags":["inference"],"summary":"Stt Load","description":"Load the selected STT model after the user starts local dictation.","operationId":"stt_load_api_inference_audio_stt_load_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttLoadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/stt/validate":{"post":{"tags":["inference"],"summary":"Stt Validate","description":"Verify a Hub repository is a Whisper checkpoint before downloading it.","operationId":"stt_validate_api_inference_audio_stt_validate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttLoadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/stt/unload":{"post":{"tags":["inference"],"summary":"Stt Unload","description":"Release the local STT model when dictation is idle.\n\nWithout an engine, both sidecars unload so an engine switch in Voice\nsettings always frees whichever backend was resident. ``model`` scopes the\nrelease to the model the caller claims: a surface owns one model, and another\ncan switch the same engine between that ownership check and this request\narriving, so the sidecar re-checks under its own lock rather than releasing\nwhatever happens to be resident by then. ``wait=false`` skips a sidecar that\nis mid-transcription instead of draining it: a caller freeing memory as a\nconvenience must not cost the user a recording that is still being decoded.","operationId":"stt_unload_api_inference_audio_stt_unload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"engine","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"wait","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Wait"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/transcribe":{"post":{"tags":["inference"],"summary":"Transcribe Audio","description":"Transcribe dictation audio to text via the STT sidecar.\n\nRuns alongside the chat model without evicting it, so any model (including\ntext-only ones) can be driven by voice.","operationId":"transcribe_audio_api_inference_audio_transcribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscribeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/transcribe/raw":{"post":{"tags":["inference"],"summary":"Transcribe Audio Raw","description":"Transcribe a raw audio body without base64 or JSON conversion overhead; ``timestamps``\nadds whisper.cpp's segments (audio.cpp models that always time their text return them anyway).","operationId":"transcribe_audio_raw_api_inference_audio_transcribe_raw_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},{"name":"fast","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Fast"}},{"name":"engine","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine"}},{"name":"device","in":"query","required":false,"schema":{"anyOf":[{"enum":["auto","cpu","gpu"],"type":"string"},{"type":"null"}],"title":"Device"}},{"name":"stream","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Stream"}},{"name":"title","in":"query","required":false,"schema":{"type":"string","maxLength":255,"default":"Recording","title":"Title"}},{"name":"context_length","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Context Length"}},{"name":"timestamps","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Timestamps"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/transcribe/source":{"post":{"tags":["inference"],"summary":"Transcribe Audio Source","description":"Transcribe Audio page audio named by id, streamed as NDJSON and saved to history.","operationId":"transcribe_audio_source_api_inference_audio_transcribe_source_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscribeSourceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/stt/capabilities":{"get":{"tags":["inference"],"summary":"Stt Model Capabilities","description":"What ``model`` can add to a transcript (timestamps, speakers) and where it runs. Offline.","operationId":"stt_model_capabilities_api_inference_audio_stt_capabilities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Model"}},{"name":"engine","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Engine"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/loaded-models":{"get":{"tags":["inference"],"summary":"Loaded Inference Models","description":"Loaded llama.cpp/orchestrator models for agent startup, without a disk catalog scan.\n\nKeep the public ids and context fields shared with /v1/models. The full catalog\nalso discovers unloaded and media models, which an attaching coding agent does\nnot need and which can take longer than its HTTP deadline on slow scan folders.","operationId":"loaded_inference_models_api_inference_loaded_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/download-plan":{"post":{"tags":["inference"],"summary":"Diffusion Download Plan","description":"The repos + files this pick needs, so the frontend can stage them through the Hub\ndownload manager (one mechanism, one panel) instead of the loader downloading inline.\n\nValidates the same way /images/load does, so an unloadable pick fails here rather than\nafter a multi-GB download.","operationId":"diffusion_download_plan_api_inference_images_download_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionLoadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionDownloadPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/load":{"post":{"tags":["inference"],"summary":"Load Diffusion Model","operationId":"load_diffusion_model_api_inference_images_load_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionLoadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/generate":{"post":{"tags":["inference"],"summary":"Generate Diffusion Image","operationId":"generate_diffusion_image_api_inference_images_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionGenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionGenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/gallery":{"get":{"tags":["inference"],"summary":"List Gallery Images","operationId":"list_gallery_images_api_inference_images_gallery_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inference"],"summary":"Clear Gallery Images","operationId":"clear_gallery_images_api_inference_images_gallery_delete","security":[{"HTTPBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/inference/images/gallery/{image_id}/file":{"get":{"tags":["inference"],"summary":"Get Gallery Image File","description":"Serve the original PNG or a WebP thumbnail when ``thumb`` is set.","operationId":"get_gallery_image_file_api_inference_images_gallery__image_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}},{"name":"thumb","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thumb"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/search-images/lookup":{"post":{"tags":["inference"],"summary":"Lookup Search Images","operationId":"lookup_search_images_api_inference_search_images_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchImagesLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/search-images/{image_id}":{"get":{"tags":["inference"],"summary":"Get Search Image Thumbnail","operationId":"get_search_image_thumbnail_api_inference_search_images__image_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/gallery/{image_id}/move":{"post":{"tags":["inference"],"summary":"Move Gallery Image","description":"Move one image to just after ``after_id``. Dropping among pins pins it, elsewhere unpins it.","operationId":"move_gallery_image_api_inference_images_gallery__image_id__move_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryMoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryImage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/gallery/{image_id}/project":{"post":{"tags":["inference"],"summary":"Add Gallery Image To Project","description":"Copy one image into a chat project's folder.","operationId":"add_gallery_image_to_project_api_inference_images_gallery__image_id__project_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryProjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/gallery/{image_id}":{"patch":{"tags":["inference"],"summary":"Update Gallery Image Flags","description":"Pin/unpin or archive/restore one image. Omitted fields are left alone.","operationId":"update_gallery_image_flags_api_inference_images_gallery__image_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryFlagsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryImage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inference"],"summary":"Delete Gallery Image","operationId":"delete_gallery_image_api_inference_images_gallery__image_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/gallery":{"get":{"tags":["inference"],"summary":"List Gallery Audio","operationId":"list_gallery_audio_api_inference_audio_gallery_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"before_mtime","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Before Mtime"}},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before Id"}},{"name":"before_pin","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Before Pin"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioGalleryListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inference"],"summary":"Clear Gallery Audio","operationId":"clear_gallery_audio_api_inference_audio_gallery_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow","in":"query","required":false,"schema":{"anyOf":[{"enum":["speak","clone","edit","convert","music","separate"],"type":"string"},{"type":"null"}],"title":"Workflow"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/gallery/{audio_id}/source/file":{"get":{"tags":["inference"],"summary":"Get Gallery Audio Source File","description":"The upload a conversion clip converted, when it kept a copy.","operationId":"get_gallery_audio_source_file_api_inference_audio_gallery__audio_id__source_file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audio_id","in":"path","required":true,"schema":{"type":"string","title":"Audio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/gallery/{audio_id}":{"patch":{"tags":["inference"],"summary":"Update Gallery Audio Flags","operationId":"update_gallery_audio_flags_api_inference_audio_gallery__audio_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audio_id","in":"path","required":true,"schema":{"type":"string","title":"Audio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioGalleryFlagsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioGalleryItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inference"],"summary":"Delete Gallery Audio","operationId":"delete_gallery_audio_api_inference_audio_gallery__audio_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audio_id","in":"path","required":true,"schema":{"type":"string","title":"Audio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/gallery/{audio_id}/move":{"post":{"tags":["inference"],"summary":"Move Gallery Audio","description":"Move one clip to just after ``after_id``. Dropping among pins pins it, elsewhere unpins it.","operationId":"move_gallery_audio_api_inference_audio_gallery__audio_id__move_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audio_id","in":"path","required":true,"schema":{"type":"string","title":"Audio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryMoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioGalleryItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/gallery/{audio_id}/project":{"post":{"tags":["inference"],"summary":"Add Gallery Audio To Project","description":"Copy one clip into a chat project's folder.","operationId":"add_gallery_audio_to_project_api_inference_audio_gallery__audio_id__project_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audio_id","in":"path","required":true,"schema":{"type":"string","title":"Audio Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryProjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/gallery/group/{group_id}":{"delete":{"tags":["inference"],"summary":"Delete Gallery Audio Group","description":"A run's clips in one call, so the page drops them together instead of stem by stem.","operationId":"delete_gallery_audio_group_api_inference_audio_gallery_group__group_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/inputs/{input_id}/transcribe":{"post":{"tags":["inference"],"summary":"Transcribe Audio Input","description":"What is said in an input (or, with the path id ``source``, a history clip or saved voice),\nover the first 30 s a clone uses. Saves nothing to the transcript history.","operationId":"transcribe_audio_input_api_inference_audio_inputs__input_id__transcribe_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"input_id","in":"path","required":true,"schema":{"type":"string","title":"Input Id"}},{"name":"clip_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Clip Id"}},{"name":"voice_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Voice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioInputTranscribeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioInputTranscript"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/audio/catalog":{"get":{"tags":["inference"],"summary":"Audio Catalog","description":"The audio.cpp models Unsloth Studio can offer, filtered to what this account may see.","operationId":"audio_catalog_api_inference_audio_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioCatalogResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/media/catalog":{"get":{"tags":["inference"],"summary":"Media Catalog","description":"The image and video models Unsloth Studio can offer, filtered to what this account may see.","operationId":"media_catalog_api_inference_media_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/audio/transcripts":{"get":{"tags":["inference"],"summary":"List Gallery Transcripts","operationId":"list_gallery_transcripts_api_inference_audio_transcripts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Before"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inference"],"summary":"Clear Gallery Transcripts","operationId":"clear_gallery_transcripts_api_inference_audio_transcripts_delete","security":[{"HTTPBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/inference/audio/transcripts/{transcript_id}":{"get":{"tags":["inference"],"summary":"Get Gallery Transcript","description":"One transcript in full: its segments, words and speakers included.","operationId":"get_gallery_transcript_api_inference_audio_transcripts__transcript_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"transcript_id","in":"path","required":true,"schema":{"type":"string","title":"Transcript Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["inference"],"summary":"Archive Gallery Transcript","description":"Archive or restore a transcript, and name its speakers; returns its list row.","operationId":"archive_gallery_transcript_api_inference_audio_transcripts__transcript_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"transcript_id","in":"path","required":true,"schema":{"type":"string","title":"Transcript Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inference"],"summary":"Delete Gallery Transcript","operationId":"delete_gallery_transcript_api_inference_audio_transcripts__transcript_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"transcript_id","in":"path","required":true,"schema":{"type":"string","title":"Transcript Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/unload":{"post":{"tags":["inference"],"summary":"Unload Diffusion Model","operationId":"unload_diffusion_model_api_inference_images_unload_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MediaUnloadRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DiffusionLoadUnloadedResponse"},{"$ref":"#/components/schemas/MediaUnloadOutcome"},{"$ref":"#/components/schemas/DiffusionStatusResponse"}],"title":"Response Unload Diffusion Model Api Inference Images Unload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/status":{"get":{"tags":["inference"],"summary":"Diffusion Status","operationId":"diffusion_status_api_inference_images_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/info":{"get":{"tags":["inference"],"summary":"Diffusion Inference Info","description":"Static per-family footprint summary for the Advanced Dtype tradeoff.\n\nHardware-independent (served from the pure auto-policy tables, no GPU probing), so it\nis cheap and safe to fetch before anything is loaded.","operationId":"diffusion_inference_info_api_inference_images_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionInferenceInfoResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/load-progress":{"get":{"tags":["inference"],"summary":"Diffusion Load Progress","operationId":"diffusion_load_progress_api_inference_images_load_progress_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionLoadProgressResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/generate-progress":{"get":{"tags":["inference"],"summary":"Diffusion Generate Progress","operationId":"diffusion_generate_progress_api_inference_images_generate_progress_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionGenerateProgressResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/generate/cancel":{"post":{"tags":["inference"],"summary":"Cancel Diffusion Generation","description":"Stop the in-flight image generation, mirroring POST /video/generate/cancel.\n\nResolved through the engine router, so it stops a diffusers denoise (at its next step\nboundary) and a native sd.cpp run (which kills the sd-cli process tree) alike. The\ngeneration's OWN request is what reports the outcome: it unwinds with the cancelled\nsentinel, which this module already maps to a 409. ``cancelled`` is False when nothing was\nrunning, so the page can settle its button back to Generate rather than wait for a\ngeneration that already finished. ``target=connection`` stops this account's runs on a\nsaved image connection instead.","operationId":"cancel_diffusion_generation_api_inference_images_generate_cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"target","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/queue":{"get":{"tags":["inference"],"summary":"List Diffusion Queue","operationId":"list_diffusion_queue_api_inference_images_queue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageQueueResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["inference"],"summary":"Enqueue Diffusion Image","description":"Add a generate request to the queue. Jobs run one at a time, in queue order, through the same path as\nPOST /images/generate, and their images land in the gallery. A job runs only on the model loaded when it was\nqueued: nothing loaded is a 409 here, and a model swapped in meanwhile fails the job instead of reloading.","operationId":"enqueue_diffusion_image_api_inference_images_queue_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionGenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageQueueJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["inference"],"summary":"Clear Diffusion Queue","description":"Drop your queued and finished jobs. A running job finishes; Stop it to end it early.","operationId":"clear_diffusion_queue_api_inference_images_queue_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageQueueResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/queue/{job_id}/cancel":{"post":{"tags":["inference"],"summary":"Cancel Diffusion Queue Job","description":"Cancel one job. A queued job never runs; the running one stops its own render, and the queue moves on.","operationId":"cancel_diffusion_queue_job_api_inference_images_queue__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageQueueJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/queue/{job_id}/move":{"post":{"tags":["inference"],"summary":"Move Diffusion Queue Job","operationId":"move_diffusion_queue_job_api_inference_images_queue__job_id__move_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageQueueMoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageQueueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/prompt-upsampler/status":{"get":{"tags":["inference"],"summary":"Prompt Upsampler Status","description":"Whether the prompt upsampler of ``family`` (the loaded family's; FLUX.3's by default) can run (llama-server\npresent), is downloaded, is loaded, and the download progress (the dictation download's shape).","operationId":"prompt_upsampler_status_api_inference_images_prompt_upsampler_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Family"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/prompt-upsampler/download":{"post":{"tags":["inference"],"summary":"Prompt Upsampler Download","description":"Start the background download of the upsampler GGUF and its vision projector; progress on /status.","operationId":"prompt_upsampler_download_api_inference_images_prompt_upsampler_download_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Family"}},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PromptUpsamplerDownloadRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/prompt-upsampler/cancel":{"post":{"tags":["inference"],"summary":"Prompt Upsampler Cancel","description":"Stop the upsampler download; partial files stay cached, so the next download resumes.","operationId":"prompt_upsampler_cancel_api_inference_images_prompt_upsampler_cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Family"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/prompt-upsampler/release":{"post":{"tags":["inference"],"summary":"Prompt Upsampler Release","description":"Enhance prompt was turned off: cancel a warm start still launching and stop an idle server instead of holding it\nfor the keep-alive. A request using it is left alone. Never an error.","operationId":"prompt_upsampler_release_api_inference_images_prompt_upsampler_release_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/prompt-upsampler/warm":{"post":{"tags":["inference"],"summary":"Prompt Upsampler Warm","description":"Start the upsampler's llama-server in the background for the resident FLUX.3 model while Enhance prompt is on,\nso the first enhanced run does not pay the start. Best effort: ``{\"warm\": <outcome>}``, never an error. Single-user\ninstallations only (``shared`` with managed accounts).","operationId":"prompt_upsampler_warm_api_inference_images_prompt_upsampler_warm_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/prompt-upsampler/preview":{"post":{"tags":["inference"],"summary":"Prompt Upsampler Preview","description":"The caption the upsampler writes for ``prompt`` (and references), so the page can show or edit it before\ngenerating. 409 when not downloaded, 501 without llama-server.","operationId":"prompt_upsampler_preview_api_inference_images_prompt_upsampler_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptUpsamplerPreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptUpsamplerPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/segment/status":{"get":{"tags":["inference"],"summary":"Mask Segmenter Status","description":"Whether SAM 3 can run here, which variant is active (repo, size, gated or not), whether it is downloaded and\nloaded (and where), and the download progress (the dictation download's shape).","operationId":"mask_segmenter_status_api_inference_images_segment_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/segment/download":{"post":{"tags":["inference"],"summary":"Mask Segmenter Download","description":"Start the background download of the active segmenter variant's transformers weights; progress on /status.","operationId":"mask_segmenter_download_api_inference_images_segment_download_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MaskSegmenterDownloadRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/segment/cancel":{"post":{"tags":["inference"],"summary":"Mask Segmenter Cancel","description":"Stop the segmenter download; partial files stay cached, so the next download resumes.","operationId":"mask_segmenter_cancel_api_inference_images_segment_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/segment/release":{"post":{"tags":["inference"],"summary":"Mask Segmenter Release","description":"The mask painter closed: drop the segmenter now instead of holding it for the keep-alive. A call in flight\nunloads when it ends. Never an error.","operationId":"mask_segmenter_release_api_inference_images_segment_release_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/segment":{"post":{"tags":["inference"],"summary":"Mask Segment","description":"A white-on-black mask (PNG data URL, source size) of what ``prompt`` names in ``image``, plus each kept\ninstance's box and score. 409 when not downloaded or the image model is busy, 501 without SAM 3 support.","operationId":"mask_segment_api_inference_images_segment_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaskSegmentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/images/gallery/{image_id}/file-signed":{"get":{"tags":["inference"],"summary":"Get Gallery Image File Signed","description":"Serve one gallery PNG gated by the HMAC token instead of the bearer, for the\nresponse_format=url links a plain image client downloads. Same ownership gate as the\nauthenticated route, and the token names the single image it may serve.","operationId":"get_gallery_image_file_signed_api_inference_images_gallery__image_id__file_signed_get","parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/images/gallery/{image_id}/signed-url":{"get":{"tags":["inference"],"summary":"Get Gallery Image Signed Url","description":"A key-free link to one gallery PNG (bearer-gated to mint, HMAC to use), relative like the\nvideo one so it works behind any proxy.","operationId":"get_gallery_image_signed_url_api_inference_images_gallery__image_id__signed_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/download-plan":{"post":{"tags":["inference"],"summary":"Video Download Plan","description":"The repos + files this pick needs, so the frontend stages them through the Hub\ndownload manager instead of the load downloading inline. Mirrors /images/download-plan.","operationId":"video_download_plan_api_inference_video_download_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoLoadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionDownloadPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/load":{"post":{"tags":["inference"],"summary":"Load Video Model","operationId":"load_video_model_api_inference_video_load_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoLoadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/load-progress":{"get":{"tags":["inference"],"summary":"Video Load Progress","operationId":"video_load_progress_api_inference_video_load_progress_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoLoadProgressResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/generate":{"post":{"tags":["inference"],"summary":"Generate Video","description":"Start a generation job and return at once (the begin_load pattern): a clip\ntakes minutes, and secure mode's tunnel caps the origin response window near\n100 seconds, so the response must not span the generation. The worker runs the\ngenerate + gallery-persist pipeline; the terminal outcome (completed with the\nsaved record / failed with a client-safe error) arrives via generate-progress.\n\nWith media auto-switch on, ``model`` names the video model to generate on and is loaded\nwhen it is not the resident one.","operationId":"generate_video_api_inference_video_generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/generate-progress":{"get":{"tags":["inference"],"summary":"Video Generate Progress","operationId":"video_generate_progress_api_inference_video_generate_progress_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerateProgressResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/generate/cancel":{"post":{"tags":["inference"],"summary":"Cancel Video Generation","operationId":"cancel_video_generation_api_inference_video_generate_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/status":{"get":{"tags":["inference"],"summary":"Video Status","operationId":"video_status_api_inference_video_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/unload":{"post":{"tags":["inference"],"summary":"Unload Video Model","operationId":"unload_video_model_api_inference_video_unload_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MediaUnloadRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VideoLoadUnloadedResponse"},{"$ref":"#/components/schemas/MediaUnloadOutcome"},{"$ref":"#/components/schemas/VideoStatusResponse"}],"title":"Response Unload Video Model Api Inference Video Unload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/gallery":{"get":{"tags":["inference"],"summary":"List Gallery Videos","operationId":"list_gallery_videos_api_inference_video_gallery_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGalleryListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inference"],"summary":"Clear Gallery Videos","operationId":"clear_gallery_videos_api_inference_video_gallery_delete","security":[{"HTTPBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/inference/video/gallery/{video_id}/file":{"get":{"tags":["inference"],"summary":"Get Gallery Video File","operationId":"get_gallery_video_file_api_inference_video_gallery__video_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/gallery/{video_id}/signed-url":{"get":{"tags":["inference"],"summary":"Get Gallery Video Signed Url","description":"A directly playable, range-capable link for one clip (bearer-gated to mint, HMAC to use).\n\nReturned as a relative URL so it works behind any proxy the page itself is served through.\n``ttl_s`` shortens the life (MCP asks for 1 h); omitted, the UI's 12 h applies.","operationId":"get_gallery_video_signed_url_api_inference_video_gallery__video_id__signed_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}},{"name":"ttl_s","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":43200,"minimum":60},{"type":"null"}],"title":"Ttl S"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/gallery/{video_id}/file-signed":{"get":{"tags":["inference"],"summary":"Get Gallery Video File Signed","description":"Stream one gallery MP4 gated by the HMAC token instead of the bearer, so it can be a plain\n<video src> and the browser can range-request it. Same ownership gate as the bearer route, and\nthe token names the single clip it may serve.","operationId":"get_gallery_video_file_signed_api_inference_video_gallery__video_id__file_signed_get","parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/gallery/{video_id}/frame":{"get":{"tags":["inference"],"summary":"Get Gallery Video Frame","description":"One frame of an owned clip as PNG: ``at`` is ``first``, ``last`` or a time in seconds.\nNothing is saved to the Images gallery.","operationId":"get_gallery_video_frame_api_inference_video_gallery__video_id__frame_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}},{"name":"at","in":"query","required":false,"schema":{"type":"string","maxLength":32,"default":"first","title":"At"}},{"name":"max_px","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":4096,"minimum":32},{"type":"null"}],"title":"Max Px"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/gallery/{video_id}/audio-input":{"post":{"tags":["inference"],"summary":"Extract Gallery Video Audio","description":"Register an owned clip's audio track (optionally trimmed) as an audio input; the same\nextract again returns the existing record with 200.","operationId":"extract_gallery_video_audio_api_inference_video_gallery__video_id__audio_input_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_VideoAudioInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioInputRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/gallery/{video_id}/export":{"get":{"tags":["inference"],"summary":"Export Gallery Video","description":"Download-menu transcodes: WebM (VP9) or GIF, re-encoded on demand from the\nstored MP4 (which the /file route serves verbatim). 501 with a clear message\nwhen the codec/deps for the requested format are missing.","operationId":"export_gallery_video_api_inference_video_gallery__video_id__export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"webm","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/gallery/{video_id}/move":{"post":{"tags":["inference"],"summary":"Move Gallery Video","description":"Move one video to just after ``after_id``. Dropping among pins pins it, elsewhere unpins it.","operationId":"move_gallery_video_api_inference_video_gallery__video_id__move_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryMoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryVideo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/gallery/{video_id}/project":{"post":{"tags":["inference"],"summary":"Add Gallery Video To Project","description":"Copy one video into a chat project's folder.","operationId":"add_gallery_video_to_project_api_inference_video_gallery__video_id__project_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryProjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/gallery/{video_id}":{"patch":{"tags":["inference"],"summary":"Update Gallery Video Flags","description":"Pin/unpin or archive/restore one clip. Omitted fields are left alone.","operationId":"update_gallery_video_flags_api_inference_video_gallery__video_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryFlagsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryVideo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inference"],"summary":"Delete Gallery Video","operationId":"delete_gallery_video_api_inference_video_gallery__video_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/cosmos-guardrail":{"get":{"tags":["inference"],"summary":"Cosmos Guardrail Status","operationId":"cosmos_guardrail_status_api_inference_video_cosmos_guardrail_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/cosmos-guardrail/install":{"post":{"tags":["inference"],"summary":"Cosmos Guardrail Install Start","operationId":"cosmos_guardrail_install_start_api_inference_video_cosmos_guardrail_install_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/videos":{"post":{"tags":["inference"],"summary":"Openai Create Video","operationId":"openai_create_video_api_inference_videos_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["inference"],"summary":"Openai List Videos","operationId":"openai_list_videos_api_inference_videos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},{"name":"order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoJobListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/videos/{video_id}":{"get":{"tags":["inference"],"summary":"Openai Retrieve Video","operationId":"openai_retrieve_video_api_inference_videos__video_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inference"],"summary":"Openai Delete Video","operationId":"openai_delete_video_api_inference_videos__video_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoJobDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/videos/{video_id}/content":{"get":{"tags":["inference"],"summary":"Openai Download Video Content","operationId":"openai_download_video_content_api_inference_videos__video_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}},{"name":"variant","in":"query","required":false,"schema":{"type":"string","default":"video","title":"Variant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inference/video/restyle/status":{"get":{"tags":["inference"],"summary":"Restyle Status","operationId":"restyle_status_api_inference_video_restyle_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/restyle/setup":{"post":{"tags":["inference"],"summary":"Setup Restyle","description":"Install the sd.cpp server and fetch the weights, whichever is missing; poll /video/restyle/status.","operationId":"setup_restyle_api_inference_video_restyle_setup_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RestyleSetupRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/restyle/setup/cancel":{"post":{"tags":["inference"],"summary":"Cancel Restyle Setup","operationId":"cancel_restyle_setup_api_inference_video_restyle_setup_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/restyle/preview":{"post":{"tags":["inference"],"summary":"Preview Restyle","operationId":"preview_restyle_api_inference_video_restyle_preview_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/restyle":{"post":{"tags":["inference"],"summary":"Start Restyle","operationId":"start_restyle_api_inference_video_restyle_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/restyle/progress":{"get":{"tags":["inference"],"summary":"Restyle Progress","operationId":"restyle_progress_api_inference_video_restyle_progress_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/restyle/cancel":{"post":{"tags":["inference"],"summary":"Cancel Restyle","operationId":"cancel_restyle_api_inference_video_restyle_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/restyle/unload":{"post":{"tags":["inference"],"summary":"Unload Restyle","operationId":"unload_restyle_api_inference_video_restyle_unload_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/inference/video/restyle/{job_id}/{kind}.mp4":{"get":{"tags":["inference"],"summary":"Restyle Media","operationId":"restyle_media_api_inference_video_restyle__job_id___kind__mp4_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/videos":{"post":{"tags":["openai-compat"],"summary":"Openai Create Video","operationId":"openai_create_video_v1_videos_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["openai-compat"],"summary":"Openai List Videos","operationId":"openai_list_videos_v1_videos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},{"name":"order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoJobListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/videos/{video_id}":{"get":{"tags":["openai-compat"],"summary":"Openai Retrieve Video","operationId":"openai_retrieve_video_v1_videos__video_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["openai-compat"],"summary":"Openai Delete Video","operationId":"openai_delete_video_v1_videos__video_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoJobDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/videos/{video_id}/content":{"get":{"tags":["openai-compat"],"summary":"Openai Download Video Content","operationId":"openai_download_video_content_v1_videos__video_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}},{"name":"variant","in":"query","required":false,"schema":{"type":"string","default":"video","title":"Variant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/load":{"post":{"tags":["openai-compat"],"summary":"Load Model","description":"Load a model for inference.\n\nmodel_path is a clean identifier from GET /models/list. Returns inference\nconfig (temperature, top_p, top_k, min_p) from the model's YAML, falling\nback to default.yaml for missing values.\n\nGGUF models load via llama-server (llama.cpp) instead of Unsloth.","operationId":"load_model_v1_load_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/validate":{"post":{"tags":["openai-compat"],"summary":"Validate Model","description":"Lightweight validation endpoint for model identifiers.\n\nChecks that ModelConfig.from_identifier() can resolve model_path, but does\nNOT load model weights into GPU memory.","operationId":"validate_model_v1_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateModelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateModelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/int8-prefill-availability":{"post":{"tags":["openai-compat"],"summary":"Int8 Prefill Availability","description":"Whether MLX int8 prefill would apply to this model, judged from its downloaded checkpoint\nwithout loading it. The first answer on a new macOS or MLX version builds the kernels once.","operationId":"int8_prefill_availability_v1_int8_prefill_availability_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Int8PrefillAvailabilityRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Int8PrefillAvailabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/ane-prefill-availability":{"post":{"tags":["openai-compat"],"summary":"Ane Prefill Availability","description":"Whether MLX Neural Engine prefill could apply to this model, judged from its downloaded\ncheckpoint without loading it; calibration and free memory still decide at load.","operationId":"ane_prefill_availability_v1_ane_prefill_availability_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnePrefillAvailabilityRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnePrefillAvailabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/fast-verify-availability":{"post":{"tags":["openai-compat"],"summary":"Fast Verify Availability","description":"Whether MLX Fast Verify could apply to this model, judged from its downloaded checkpoint\nwithout loading it; whether a drafter attaches still decides at load.","operationId":"fast_verify_availability_v1_fast_verify_availability_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FastVerifyAvailabilityRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FastVerifyAvailabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/estimate-memory":{"post":{"tags":["openai-compat"],"summary":"Estimate Memory","description":"Price a prospective load from its metadata, before the load allocates anything.\n\nReads GGUF metadata and file sizes -- or, for an MLX repo, safetensors headers and the\nshapes of an architecture built and never evaluated -- so it is safe to call on every\nsettings change: no model is loaded, no tensor data is read, nothing is downloaded.\n\nThe arithmetic is the loader's own KV, compute-buffer and companion sizing. Weights\ntimes a constant is fine until the KV cache stops being a rounding error: at 262k\ntokens the cache can outweigh the weights. Where the metadata cannot supply the dims\nthis answers ``kv_estimable = false`` rather than quoting an assumed total.","operationId":"estimate_memory_v1_estimate_memory_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateMemoryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateMemoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/mlx-drafters":{"post":{"tags":["openai-compat"],"summary":"Mlx Drafters","description":"Cached drafters an MLX load of this model could name. Reads only local config files.","operationId":"mlx_drafters_v1_mlx_drafters_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MlxDraftersRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MlxDraftersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/unload":{"post":{"tags":["openai-compat"],"summary":"Unload Model","description":"Unload a model from memory.\n\nPadded like /load: a 600 GB GGUF teardown measures 160s, past the proxy timer.\nSee ``_tunnel_safe_json``. No in-process caller today; a future one must await\n``_unload_model_impl`` (as preview awaits ``load_model_gated``), since the padded\npath returns a StreamingResponse, not the payload.","operationId":"unload_model_v1_unload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnloadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/generate/stream":{"post":{"tags":["openai-compat"],"summary":"Generate Stream","description":"Generate a chat response with Server-Sent Events (SSE) streaming.\n\nFor vision models, provide image_base64 (base64-encoded image).","operationId":"generate_stream_v1_generate_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/llama-flags":{"get":{"tags":["openai-compat"],"summary":"Get Llama Flags","description":"Flags the installed llama-server accepts, for the extra-arguments editor.\n\nCheap to call: ``probe_server_capabilities`` caches on the binary's revision, so\nonly the first call after an install or an update runs the 10s ``--help`` probe.\nA failed probe answers ``probe_ok = false`` with no flags rather than erroring, so\nthe editor degrades to \"cannot verify\" instead of blocking every argument.\n\n``managed_only`` skips the probe entirely. The denylist is Unsloth's own and needs\nno binary to read, while the caller that needs it most is the panel sanitizing a\nstored list before it becomes an explicit request: making that wait on a cold\n``--help`` would leave a legacy flag in the request for as long as the probe runs.","operationId":"get_llama_flags_v1_llama_flags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"managed_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Managed Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlamaFlagCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/status":{"get":{"tags":["openai-compat"],"summary":"Inference Status","description":"`GET /api/inference/status`, redacted the way the image and video status routes are.\n\nA chat or GGUF row loaded from an inventory reference RETAINS the resolved absolute path\nas the resident model identity, and it comes back out here through `active_model`,\n`model_identifier` and `loaded`. This route answers long after the request that resolved\nthe reference has ended, so there is no handle in the request context to put back and\n`restore_inventory_handles` cannot help: the redactor hands out the same opaque reference\nthe caller sent instead. Without it, an API-key caller recovered the path the inventory\nredaction exists to hide by loading the row and then polling status.","operationId":"inference_status_v1_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/load-progress":{"get":{"tags":["openai-compat"],"summary":"Get Load Progress","description":"Return the active GGUF load's mmap/upload progress.\n\nDuring the warmup window after a GGUF download -- when llama-server pages\n~tens-to-hundreds of GB of shards into the page cache before pushing layers\nto VRAM -- ``/api/inference/status`` only shows a generic spinner. This\nexposes sampled progress so the UI can render a real bar plus rate/ETA.\n\nReturns an empty payload (``phase=null, bytes=0``) when no load is in\nflight. The frontend should stop polling once ``phase`` becomes ``ready``.","operationId":"get_load_progress_v1_load_progress_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadProgressResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/audio/generate":{"post":{"tags":["openai-compat"],"summary":"Generate Audio","description":"Generate audio (TTS) from the latest user message, as base64 WAV.\nWorks with both GGUF (llama-server) and Unsloth/transformers backends.","operationId":"generate_audio_v1_audio_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioGenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/audio/run":{"post":{"tags":["openai-compat"],"summary":"Run Audio Workflow","description":"Run one Audio page workflow (Clone, Speak in a saved voice, Edit, Convert, Music or\nSeparate); clips go to history. Audio is named by id and resolved here in the caller's account;\nthe worker gets a prepared copy's path, never bytes.","operationId":"run_audio_workflow_v1_audio_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/audio/speech":{"post":{"tags":["openai-compat"],"summary":"Openai Audio Speech","description":"OpenAI-compatible text-to-speech (POST /v1/audio/speech).\n\nWith ``provider_id`` the request is proxied. Otherwise an omitted ``model`` serves the\nresident model. A named downloaded local model is loaded when auto-switch is on; when\nit is off, the shared switch guard rejects a different recognized local model.\nA saved voice (``voice``) or ``reference`` clones; history keeps the clip as WAV.","operationId":"openai_audio_speech_v1_audio_speech_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioSpeechRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/audio/transcriptions":{"post":{"tags":["openai-compat"],"summary":"Openai Audio Transcriptions","description":"OpenAI-compatible speech-to-text (POST /v1/audio/transcriptions).\n\nWith ``provider_id`` set, the request is proxied to that saved connection.\nOtherwise ``model`` maps to a sidecar model id, with ``whisper-1`` or nothing\nselecting the default. ``response_format`` supports ``json``, ``text`` and\n``verbose_json``; an audio.cpp model also gives segments, words (``timestamp_granularities``)\nand ``diarized_json``. Optional ``device`` (``auto``/``cpu``/``gpu``) places a cold\nload; when omitted, Voice Settings \"Load into\" / ``UNSLOTH_AUDIO_DEVICE`` apply (#15280).","operationId":"openai_audio_transcriptions_v1_audio_transcriptions_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_openai_audio_transcriptions_v1_audio_transcriptions_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/audio/translations":{"post":{"tags":["openai-compat"],"summary":"Openai Audio Translations","description":"OpenAI-compatible speech translation to English (POST /v1/audio/translations).\n\nRuns on the local Whisper sidecar; ``whisper-1`` or nothing selects the default model.\n``response_format`` supports ``json``, ``text`` and ``verbose_json``. ``prompt`` and\n``temperature`` are accepted and ignored. Optional ``device`` (``auto``/``cpu``/``gpu``)\nmatches Voice Settings \"Load into\" on a cold load (#15280).","operationId":"openai_audio_translations_v1_audio_translations_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_openai_audio_translations_v1_audio_translations_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/audio/cancel":{"post":{"tags":["openai-compat"],"summary":"Cancel Audio Run","description":"Stop the /audio/run sent with this cancel_id, as a disconnect would: it answers 499 and saves\nnothing. A cancel that arrives first is kept for 30 s. Returns {\"cancelled\": N}.","operationId":"cancel_audio_run_v1_audio_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioCancelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/audio/analyze":{"post":{"tags":["openai-compat"],"summary":"Analyze Audio","description":"Measure an upload, history clip or saved voice: duration, loudness (LUFS), true peak,\nclipping and the span that holds sound. With expected_text, also the transcript and how well\nit matches. Nothing is saved.","operationId":"analyze_audio_v1_audio_analyze_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioAnalyzeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioAnalyzeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/external/openai/containers/list":{"post":{"tags":["openai-compat"],"summary":"List Openai Containers","description":"List the user's OpenAI shell-tool containers.","operationId":"list_openai_containers_v1_external_openai_containers_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIContainerRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOpenAIContainersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/external/openai/containers/create":{"post":{"tags":["openai-compat"],"summary":"Create Openai Container","description":"Create a named container with the user-chosen idle TTL.","operationId":"create_openai_container_v1_external_openai_containers_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOpenAIContainerBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIContainerSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/external/openai/containers/delete":{"post":{"tags":["openai-compat"],"summary":"Delete Openai Container","description":"Delete a named container by id.","operationId":"delete_openai_container_v1_external_openai_containers_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteOpenAIContainerBody"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/chat/completions":{"post":{"tags":["openai-compat"],"summary":"Openai Chat Completions","operationId":"openai_chat_completions_v1_chat_completions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/sandbox/{session_id}":{"get":{"tags":["openai-compat"],"summary":"List Sandbox Files","description":"Where this chat's files are, and what is in there.\n\nThe path answers \"where did my file go\"; before this the only way to find\none was to search the filesystem by hand.","operationId":"list_sandbox_files_v1_sandbox__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sandbox/{session_id}/open":{"post":{"tags":["openai-compat"],"summary":"Open Sandbox File","description":"Open one of this chat's sandbox files with the OS default app.\n\nLike reveal, this is the backend host's desktop, so it only means anything in\nthe desktop app. Only document and media types open: the files are\nmodel-written, and a script or app would run rather than be viewed.","operationId":"open_sandbox_file_v1_sandbox__session_id__open_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"file","in":"query","required":true,"schema":{"type":"string","title":"File"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sandbox/{session_id}/reveal":{"post":{"tags":["openai-compat"],"summary":"Reveal Sandbox Dir","description":"Open this chat's sandbox directory in the OS file manager.\n\nWith ``file``, that file is selected in its folder instead.\n\nThe file manager is the backend host's, so this only means anything when the\nbackend runs on the user's own machine, which is the desktop app.","operationId":"reveal_sandbox_dir_v1_sandbox__session_id__reveal_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}},{"name":"file","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sandbox/{session_id}/upload":{"post":{"tags":["openai-compat"],"summary":"Upload Sandbox File","description":"Put one file into this chat's sandbox folder, where its tools read and write.\n\nSaved at the folder's root under the file's own name. A taken name is a 409 unless\n``overwrite``, so a second upload never silently replaces what a tool wrote.","operationId":"upload_sandbox_file_v1_sandbox__session_id__upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_sandbox_file_v1_sandbox__session_id__upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sandbox/{session_id}/{filename}":{"head":{"tags":["openai-compat"],"summary":"Serve Sandbox File","description":"Serve a file a tool call created in this chat's sandbox.\n\nImages keep their real media type and render inline. Everything else is an\nopaque attachment: the model picks these filenames, so an inline text/html\nor image/svg+xml would be same-origin script execution. nosniff plus a\nContent-Disposition filename is what makes serving them safe.\n\nAccepts auth via an Authorization header or a query token. Unsloth uses an\nauthenticated fetch and object URL; query auth remains for older clients.","operationId":"serve_sandbox_file_v1_sandbox__session_id___filename__head","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["openai-compat"],"summary":"Serve Sandbox File","description":"Serve a file a tool call created in this chat's sandbox.\n\nImages keep their real media type and render inline. Everything else is an\nopaque attachment: the model picks these filenames, so an inline text/html\nor image/svg+xml would be same-origin script execution. nosniff plus a\nContent-Disposition filename is what makes serving them safe.\n\nAccepts auth via an Authorization header or a query token. Unsloth uses an\nauthenticated fetch and object URL; query auth remains for older clients.","operationId":"serve_sandbox_file_v1_sandbox__session_id___filename__head","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"session","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/models":{"get":{"tags":["openai-compat"],"summary":"Openai List Models","description":"OpenAI-compatible model listing endpoint (``GET /v1/models``).\n\nLists every model available on this server -- the loaded model(s) plus\nlocally available (downloaded/cached) models -- not only what is resident in\nmemory. Each entry carries a clean public id and a ``loaded`` flag.","operationId":"openai_list_models_v1_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"output_modalities","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Modalities"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/models/{model_id}":{"get":{"tags":["openai-compat"],"summary":"Openai Retrieve Model","description":"OpenAI-compatible single-model retrieval endpoint (``GET /v1/models/{id}``).\n\nReturns the bare model object when ``model_id`` matches a known model\n(loaded or locally available), or 404 model_not_found otherwise. Defined\nafter the LIST route so it does not shadow it; ``{model_id:path}`` keeps ids\nwith slashes intact.","operationId":"openai_retrieve_model_v1_models__model_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/completions":{"post":{"tags":["openai-compat"],"summary":"Openai Completions","description":"OpenAI-compatible text completions endpoint (non-chat).\n\nProxies to the running llama-server's ``/v1/completions`` when a GGUF model is\nloaded or to a managed vLLM/SGLang engine's, and serves an MLX model in process.","operationId":"openai_completions_v1_completions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/embeddings":{"post":{"tags":["openai-compat"],"summary":"Openai Embeddings","description":"OpenAI-compatible embeddings: the resident embedding GGUF when one is loaded,\nelse Unsloth's configured embedding model.","operationId":"openai_embeddings_v1_embeddings_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/responses":{"post":{"tags":["openai-compat"],"summary":"Openai Responses","description":"OpenAI Responses API endpoint.\n\nAccepts a Responses-format request, converts it to a ChatCompletionRequest\ninternally, and returns a response matching the Responses API schema\n(output array, input_tokens/output_tokens, named SSE events for streaming).","operationId":"openai_responses_v1_responses_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/chat/count_tokens":{"post":{"tags":["openai-compat"],"summary":"Chat Count Tokens","description":"Count prompt tokens for OpenAI-form chat messages using the loaded tokenizer.\n\nUnlike the /v1 count endpoints this never auto-switches: ``model`` is informational. The\ncaller is a background recount with no abort signal, so switching could drag the backend back\nto the model loaded when the count started, a reload the client's guards cannot undo.","operationId":"chat_count_tokens_v1_chat_count_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCountTokensRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/messages/count_tokens":{"post":{"tags":["openai-compat"],"summary":"Anthropic Count Tokens","description":"Anthropic-compatible token-counting endpoint (POST /v1/messages/count_tokens).\n\nTranslates the Anthropic request to OpenAI form (the same translation the\n/messages handler uses), counts prompt tokens with the loaded GGUF model's\ntokenizer, or a resident MLX model's through the chat count route, and returns\n``{\"input_tokens\": int}`` only. Unlike /messages, max_tokens is NOT required here.","operationId":"anthropic_count_tokens_v1_messages_count_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessagesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/messages":{"post":{"tags":["openai-compat"],"summary":"Anthropic Messages","description":"Anthropic-compatible Messages API endpoint.\n\nTranslates Anthropic message format to internal OpenAI format, runs through\nthe existing agentic tool loop when tools are provided, and returns\nresponses in Anthropic Messages API format (streaming SSE or non-streaming\nJSON).","operationId":"anthropic_messages_v1_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessagesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/audio/gallery/{audio_id}/file":{"get":{"tags":["openai-compat"],"summary":"Get Gallery Audio File","operationId":"get_gallery_audio_file_v1_audio_gallery__audio_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audio_id","in":"path","required":true,"schema":{"type":"string","title":"Audio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/gallery/{audio_id}/signed-url":{"get":{"tags":["openai-compat"],"summary":"Get Gallery Audio Signed Url","description":"A key-free link to one clip (bearer-gated to mint, HMAC to use), on the mount called.","operationId":"get_gallery_audio_signed_url_v1_audio_gallery__audio_id__signed_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audio_id","in":"path","required":true,"schema":{"type":"string","title":"Audio Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/gallery/{audio_id}/file-signed":{"get":{"tags":["openai-compat"],"summary":"Get Gallery Audio File Signed","description":"Serve one clip gated by the HMAC token instead of the bearer. No auth dependency, so the\ntoken's account is bound with run_as: without it the owner's gallery would resolve.","operationId":"get_gallery_audio_file_signed_v1_audio_gallery__audio_id__file_signed_get","parameters":[{"name":"audio_id","in":"path","required":true,"schema":{"type":"string","title":"Audio Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/inputs":{"post":{"tags":["openai-compat"],"summary":"Upload Audio Input","description":"Store a raw audio body (any container), decoded once to WAV; a re-upload of the same audio\nreturns the existing record with 200.","operationId":"upload_audio_input_v1_audio_inputs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string","maxLength":255,"default":"audio","title":"Name"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioInputRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/inputs/{input_id}/file":{"get":{"tags":["openai-compat"],"summary":"Get Audio Input File","operationId":"get_audio_input_file_v1_audio_inputs__input_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"input_id","in":"path","required":true,"schema":{"type":"string","title":"Input Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/inputs/{input_id}":{"delete":{"tags":["openai-compat"],"summary":"Delete Audio Input","operationId":"delete_audio_input_v1_audio_inputs__input_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"input_id","in":"path","required":true,"schema":{"type":"string","title":"Input Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/voices":{"get":{"tags":["openai-compat"],"summary":"List Audio Voices","operationId":"list_audio_voices_v1_audio_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioVoiceListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["openai-compat"],"summary":"Create Audio Voice","operationId":"create_audio_voice_v1_audio_voices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioVoiceCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioVoice"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/audio/voices/{voice_id}":{"patch":{"tags":["openai-compat"],"summary":"Update Audio Voice","operationId":"update_audio_voice_v1_audio_voices__voice_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioVoicePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioVoice"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["openai-compat"],"summary":"Delete Audio Voice","operationId":"delete_audio_voice_v1_audio_voices__voice_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/voices/{voice_id}/file":{"get":{"tags":["openai-compat"],"summary":"Get Audio Voice File","operationId":"get_audio_voice_file_v1_audio_voices__voice_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/images/generations":{"post":{"tags":["openai-compat"],"summary":"Openai Image Generations","description":"OpenAI-compatible text-to-image (POST /v1/images/generations).\n\nGenerates ``n`` images from ``prompt`` on the loaded diffusion model and\nreturns them as URLs (default) or base64 PNGs per ``response_format``. Steps\nand guidance have no OpenAI knob: the x-unsloth fields set them (and width, height,\nseed, negative_prompt), else they default per loaded model.\n\nWith media auto-switch on, ``model`` names the image model to serve on and is loaded\nwhen it is not the resident one; with it off ``model`` stays informational.","operationId":"openai_image_generations_v1_images_generations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/files":{"post":{"tags":["openai-compat"],"summary":"Create File","operationId":"create_file_v1_files_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_file_v1_files_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["openai-compat"],"summary":"List Files","operationId":"list_files_v1_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":10000,"title":"Limit"}},{"name":"order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/files/{file_id}":{"get":{"tags":["openai-compat"],"summary":"Retrieve File","operationId":"retrieve_file_v1_files__file_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs":{"post":{"tags":["openai-compat"],"summary":"Create Fine Tuning Job","operationId":"create_fine_tuning_job_v1_fine_tuning_jobs_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FineTuningJobCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["openai-compat"],"summary":"List Fine Tuning Jobs","operationId":"list_fine_tuning_jobs_v1_fine_tuning_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs/{job_id}":{"get":{"tags":["openai-compat"],"summary":"Retrieve Fine Tuning Job","operationId":"retrieve_fine_tuning_job_v1_fine_tuning_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs/{job_id}/events":{"get":{"tags":["openai-compat"],"summary":"List Fine Tuning Events","operationId":"list_fine_tuning_events_v1_fine_tuning_jobs__job_id__events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs/{job_id}/checkpoints":{"get":{"tags":["openai-compat"],"summary":"List Fine Tuning Checkpoints","operationId":"list_fine_tuning_checkpoints_v1_fine_tuning_jobs__job_id__checkpoints_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs/{job_id}/cancel":{"post":{"tags":["openai-compat"],"summary":"Cancel Fine Tuning Job","operationId":"cancel_fine_tuning_job_v1_fine_tuning_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs/{job_id}/resume":{"post":{"tags":["openai-compat"],"summary":"Pause Or Resume Fine Tuning Job","operationId":"pause_or_resume_fine_tuning_job_v1_fine_tuning_jobs__job_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs/{job_id}/pause":{"post":{"tags":["openai-compat"],"summary":"Pause Or Resume Fine Tuning Job","operationId":"pause_or_resume_fine_tuning_job_v1_fine_tuning_jobs__job_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/systemone":{"post":{"tags":["systemone"],"summary":"System One","operationId":"system_one_v1_systemone_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemOneRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/p":{"get":{"tags":["preview"],"summary":"List Previews","operationId":"list_previews_p_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/p/{run}/v1/chat/completions":{"post":{"tags":["preview"],"summary":"Preview Chat Latest","operationId":"preview_chat_latest_p__run__v1_chat_completions_post","parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","title":"Run"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/p/{run}/{checkpoint}/v1/chat/completions":{"post":{"tags":["preview"],"summary":"Preview Chat Checkpoint","operationId":"preview_chat_checkpoint_p__run___checkpoint__v1_chat_completions_post","parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","title":"Run"}},{"name":"checkpoint","in":"path","required":true,"schema":{"type":"string","title":"Checkpoint"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/p/{run}/v1/models":{"get":{"tags":["preview"],"summary":"Preview Models Latest","operationId":"preview_models_latest_p__run__v1_models_get","parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","title":"Run"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/p/{run}/{checkpoint}/v1/models":{"get":{"tags":["preview"],"summary":"Preview Models Checkpoint","operationId":"preview_models_checkpoint_p__run___checkpoint__v1_models_get","parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","title":"Run"}},{"name":"checkpoint","in":"path","required":true,"schema":{"type":"string","title":"Checkpoint"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/p/_assets/{asset_path}":{"get":{"tags":["preview"],"summary":"Preview Asset","operationId":"preview_asset_p__assets__asset_path__get","parameters":[{"name":"asset_path","in":"path","required":true,"schema":{"type":"string","title":"Asset Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/p/{run}":{"get":{"tags":["preview"],"summary":"Preview Page Latest","operationId":"preview_page_latest_p__run__get","parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","title":"Run"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/p/{run}/{checkpoint}":{"get":{"tags":["preview"],"summary":"Preview Page Checkpoint","operationId":"preview_page_checkpoint_p__run___checkpoint__get","parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","title":"Run"}},{"name":"checkpoint","in":"path","required":true,"schema":{"type":"string","title":"Checkpoint"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/public-key":{"get":{"tags":["providers"],"summary":"Get Public Key","description":"Return the RSA public key PEM for client-side API key encryption.\n\n``fingerprint`` is a short SHA256 of the PEM; a mismatch with what the\nfrontend captured at encrypt time signals the keypair rotated mid-flight.","operationId":"get_public_key_api_providers_public_key_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/providers/registry":{"get":{"tags":["providers"],"summary":"List Registry","description":"List all supported provider types with their default configurations.\n\n``include_hidden=true`` also returns the backend-only entries (the\nself-hosted presets), which carry the studio-tools capability the composer\nneeds. It is opt-in so that a browser still running a pre-capability bundle,\nwhich does not know to filter on ``hidden``, keeps seeing exactly the list\nit saw before and cannot render them as duplicate dropdown options.\nOAuth rows need ``include_hidden`` or ``include_oauth``.","operationId":"list_registry_api_providers_registry_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_hidden","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Hidden"}},{"name":"include_oauth","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Oauth"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderRegistryEntry"},"title":"Response List Registry Api Providers Registry Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/pricing":{"get":{"tags":["providers"],"summary":"Get Pricing Snapshot","description":"Static per-MTok pricing table the frontend uses to convert upstream\nusage into per-turn USD cost. See ``core/inference/pricing.py`` for sourcing.","operationId":"get_pricing_snapshot_api_providers_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/providers/":{"get":{"tags":["providers"],"summary":"List Provider Configs","description":"List all saved provider configurations.","operationId":"list_provider_configs_api_providers__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProviderResponse"},"type":"array","title":"Response List Provider Configs Api Providers  Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["providers"],"summary":"Create Provider Config","description":"Create a saved provider configuration and optional encrypted API key.","operationId":"create_provider_config_api_providers__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/providers/{provider_id}":{"put":{"tags":["providers"],"summary":"Update Provider Config","description":"Update a saved provider configuration.","operationId":"update_provider_config_api_providers__provider_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["providers"],"summary":"Delete Provider Config","description":"Idempotently delete a saved provider and its installation credential.","operationId":"delete_provider_config_api_providers__provider_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/{provider_id}/api-key/migrate":{"put":{"tags":["providers"],"summary":"Migrate Provider Api Key","description":"Insert a browser legacy key only when this provider has no saved key.","operationId":"migrate_provider_api_key_api_providers__provider_id__api_key_migrate_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCredentialMigration"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/test":{"post":{"tags":["providers"],"summary":"Test Provider","description":"Test connectivity to an external provider.\n\nMakes a lightweight GET /models call to verify the API key works. Custom\nendpoints try /models first, then /audio/speech or /chat/completions when a\nmodel ID is available. An explicit encrypted key takes precedence over the\nsaved provider key.","operationId":"test_provider_api_providers_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderTestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderTestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/providers/model-catalog":{"get":{"tags":["providers"],"summary":"Get Model Catalog","operationId":"get_model_catalog_api_providers_model_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCatalogResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/providers/model-capabilities":{"post":{"tags":["providers"],"summary":"List Provider Model Capabilities","operationId":"list_provider_model_capabilities_api_providers_model_capabilities_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderModelsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProviderModelCapabilityInfo"},"type":"array","title":"Response List Provider Model Capabilities Api Providers Model Capabilities Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/providers/{provider_id}/served-window":{"post":{"tags":["providers"],"summary":"Load Served Window","operationId":"load_served_window_api_providers__provider_id__served_window_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"model","in":"query","required":true,"schema":{"type":"string","title":"Model"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/models":{"post":{"tags":["providers"],"summary":"List Provider Models","description":"List models available from an external provider.\n\nAn explicit encrypted key takes precedence over the saved provider key.","operationId":"list_provider_models_api_providers_models_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderModelsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProviderModelInfo"},"type":"array","title":"Response List Provider Models Api Providers Models Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/providers/{provider_id}/oauth/start":{"post":{"tags":["providers"],"summary":"Start Oauth","operationId":"start_oauth_api_providers__provider_id__oauth_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/{provider_id}/oauth/flows/{flow_id}":{"get":{"tags":["providers"],"summary":"Oauth Status","operationId":"oauth_status_api_providers__provider_id__oauth_flows__flow_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["providers"],"summary":"Cancel Oauth","operationId":"cancel_oauth_api_providers__provider_id__oauth_flows__flow_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/{provider_id}/oauth/flows/{flow_id}/complete":{"post":{"tags":["providers"],"summary":"Complete Oauth","operationId":"complete_oauth_api_providers__provider_id__oauth_flows__flow_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/{provider_id}/codex/models":{"get":{"tags":["providers"],"summary":"List Subscription Models","description":"Models this plan can reach; the list last read for this account when upstream cannot be asked.","operationId":"list_subscription_models_api_providers__provider_id__codex_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/{provider_id}/oauth":{"delete":{"tags":["providers"],"summary":"Delete Oauth","operationId":"delete_oauth_api_providers__provider_id__oauth_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/generation-presets/image":{"get":{"tags":["settings"],"summary":"Get Image Generation Preset Settings","operationId":"get_image_generation_preset_settings_api_settings_generation_presets_image_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationPresetSettings"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Image Generation Preset Settings","operationId":"update_image_generation_preset_settings_api_settings_generation_presets_image_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationPresetState"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Update Image Generation Preset Settings Api Settings Generation Presets Image Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/generation-presets/video":{"get":{"tags":["settings"],"summary":"Get Video Generation Preset Settings","operationId":"get_video_generation_preset_settings_api_settings_generation_presets_video_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerationPresetSettings"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Video Generation Preset Settings","operationId":"update_video_generation_preset_settings_api_settings_generation_presets_video_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerationPresetState"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Update Video Generation Preset Settings Api Settings Generation Presets Video Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/generation-presets/training":{"get":{"tags":["settings"],"summary":"Get Training Preset Settings","operationId":"get_training_preset_settings_api_settings_generation_presets_training_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingPresetSettings"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Training Preset Settings","operationId":"update_training_preset_settings_api_settings_generation_presets_training_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingPresetState"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Update Training Preset Settings Api Settings Generation Presets Training Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/generation-presets/image/custom":{"put":{"tags":["settings"],"summary":"Upsert Custom Image Generation Preset","operationId":"upsert_custom_image_generation_preset_api_settings_generation_presets_image_custom_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationPreset"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Upsert Custom Image Generation Preset Api Settings Generation Presets Image Custom Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/generation-presets/video/custom":{"put":{"tags":["settings"],"summary":"Upsert Custom Video Generation Preset","operationId":"upsert_custom_video_generation_preset_api_settings_generation_presets_video_custom_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerationPreset"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Upsert Custom Video Generation Preset Api Settings Generation Presets Video Custom Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/generation-presets/training/custom":{"put":{"tags":["settings"],"summary":"Upsert Custom Training Preset","operationId":"upsert_custom_training_preset_api_settings_generation_presets_training_custom_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingPreset"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Upsert Custom Training Preset Api Settings Generation Presets Training Custom Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/generation-presets/{kind}/custom":{"delete":{"tags":["settings"],"summary":"Delete Custom Generation Preset","operationId":"delete_custom_generation_preset_api_settings_generation_presets__kind__custom_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["image","video","training"],"type":"string","title":"Kind"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Delete Custom Generation Preset Api Settings Generation Presets  Kind  Custom Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/hugging-face-token":{"get":{"tags":["settings"],"summary":"Get Hugging Face Token","operationId":"get_hugging_face_token_api_settings_hugging_face_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuggingFaceTokenResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Hugging Face Token","operationId":"update_hugging_face_token_api_settings_hugging_face_token_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuggingFaceTokenPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuggingFaceTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["settings"],"summary":"Clear Hugging Face Token","operationId":"clear_hugging_face_token_api_settings_hugging_face_token_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuggingFaceTokenResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/hugging-face-token/migrate":{"put":{"tags":["settings"],"summary":"Migrate Hugging Face Token","description":"Insert a browser legacy token only when the installation has none.","operationId":"migrate_hugging_face_token_api_settings_hugging_face_token_migrate_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuggingFaceTokenPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuggingFaceTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/systemone":{"get":{"tags":["settings"],"summary":"Get Systemone Settings","operationId":"get_systemone_settings_api_settings_systemone_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemOneSettingsResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Systemone Settings","operationId":"update_systemone_settings_api_settings_systemone_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemOneSettingsPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemOneSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/igpu-carveout-notice/dismiss":{"post":{"tags":["settings"],"summary":"Post Igpu Carveout Notice Dismiss","description":"Stop offering the integrated-GPU memory advice at this allocation.\n\nStored server-side rather than in the browser: an Unsloth origin is not stable,\nso a per-origin store hands out a fresh notice every time the port moves.","operationId":"post_igpu_carveout_notice_dismiss_api_settings_igpu_carveout_notice_dismiss_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgpuCarveoutNoticeDismissPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgpuCarveoutNoticeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/chat-preferences":{"get":{"tags":["settings"],"summary":"Get Chat Preferences","operationId":"get_chat_preferences_api_settings_chat_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPreferencesResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Chat Preferences","operationId":"update_chat_preferences_api_settings_chat_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPreferencesPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPreferencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/chat-preferences/migrate":{"post":{"tags":["settings"],"summary":"Migrate Chat Preferences","operationId":"migrate_chat_preferences_api_settings_chat_preferences_migrate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPreferencesMigrationPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatPreferencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/last-local-model":{"get":{"tags":["settings"],"summary":"Get Last Local Model","operationId":"get_last_local_model_api_settings_last_local_model_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LastLocalModelResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Last Local Model","operationId":"update_last_local_model_api_settings_last_local_model_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LastLocalModelPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LastLocalModelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/pinned-models":{"get":{"tags":["settings"],"summary":"Get Pinned Models","description":"Per-account picker pins: an account switch clears the browser copy.","operationId":"get_pinned_models_api_settings_pinned_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinnedModelsResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Pinned Models","operationId":"update_pinned_models_api_settings_pinned_models_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinnedModelsPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinnedModelsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/openai-auto-switch/overrides":{"get":{"tags":["settings"],"summary":"Get Openai Auto Switch Overrides","description":"Every stored override, and optionally the one a named model's load would use.\n\nThe resolution is the loader's own (``resolve_override_for_load``), so what a\npanel shows and what a load applies cannot disagree.","operationId":"get_openai_auto_switch_overrides_api_settings_openai_auto_switch_overrides_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id"}},{"name":"alias_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias Id"}},{"name":"gguf_variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelOverridesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["settings"],"summary":"Update Openai Auto Switch Override","operationId":"update_openai_auto_switch_override_api_settings_openai_auto_switch_overrides_put","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelOverridePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelOverridesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/model-sampling-defaults":{"get":{"tags":["settings"],"summary":"Get Model Sampling Defaults Route","operationId":"get_model_sampling_defaults_route_api_settings_model_sampling_defaults_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelSamplingDefaultsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["settings"],"summary":"Update Model Sampling Defaults Route","operationId":"update_model_sampling_defaults_route_api_settings_model_sampling_defaults_put","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelSamplingDefaultsPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelSamplingDefaultsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/current-date-prompt":{"get":{"tags":["settings"],"summary":"Get Current Date Prompt","operationId":"get_current_date_prompt_api_settings_current_date_prompt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentDatePromptResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Current Date Prompt","description":"Enable/disable telling the model today's date in chat and Deep Research prompts.","operationId":"update_current_date_prompt_api_settings_current_date_prompt_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentDatePromptPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentDatePromptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/chat-memory":{"get":{"tags":["settings"],"summary":"Get Chat Memory","operationId":"get_chat_memory_api_settings_chat_memory_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMemoryResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Chat Memory","description":"Edit the notes every chat reads (the account's global AGENTS.md) and whether chats read them.","operationId":"update_chat_memory_api_settings_chat_memory_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMemoryPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMemoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/personalization":{"get":{"tags":["settings"],"summary":"Get Personalization Settings","operationId":"get_personalization_settings_api_settings_personalization_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalizationResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Personalization Settings","operationId":"update_personalization_settings_api_settings_personalization_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalizationPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalizationPayload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/client-preferences":{"get":{"tags":["settings"],"summary":"Get Client Preferences Settings","operationId":"get_client_preferences_settings_api_settings_client_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientPreferencesResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Client Preferences Settings","operationId":"update_client_preferences_settings_api_settings_client_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientPreferencesPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientPreferencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/onboarding":{"get":{"tags":["settings"],"summary":"Get Onboarding Settings","operationId":"get_onboarding_settings_api_settings_onboarding_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Onboarding Settings","operationId":"update_onboarding_settings_api_settings_onboarding_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/chat-background":{"get":{"tags":["settings"],"summary":"Get Chat Background Settings","operationId":"get_chat_background_settings_api_settings_chat_background_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatBackgroundResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Chat Background Settings","operationId":"update_chat_background_settings_api_settings_chat_background_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatBackgroundAdjustmentsPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatBackgroundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["settings"],"summary":"Delete Chat Background Settings","operationId":"delete_chat_background_settings_api_settings_chat_background_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatBackgroundResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/chat-background/image":{"get":{"tags":["settings"],"summary":"Get Chat Background Image","operationId":"get_chat_background_image_api_settings_chat_background_image_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Chat Background Image","operationId":"update_chat_background_image_api_settings_chat_background_image_put","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatBackgroundResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/learned-memory":{"get":{"tags":["settings"],"summary":"Get Learned Memory","operationId":"get_learned_memory_api_settings_learned_memory_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"thread_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["settings"],"summary":"Put Learned Memory","operationId":"put_learned_memory_api_settings_learned_memory_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"thread_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearnedMemoryPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/multi-model":{"get":{"tags":["settings"],"summary":"Get Multi Model","operationId":"get_multi_model_api_settings_multi_model_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiModelResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Multi Model","description":"Off, When they fit or Always. Takes effect on the next load; Off also unloads the idle kept models.","operationId":"update_multi_model_api_settings_multi_model_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiModelPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiModelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/upload-limit":{"get":{"tags":["settings"],"summary":"Get Upload Limit","operationId":"get_upload_limit_api_settings_upload_limit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadLimitResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Upload Limit","operationId":"update_upload_limit_api_settings_upload_limit_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadLimitPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadLimitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/first-token-timeout":{"get":{"tags":["settings"],"summary":"Get First Token Timeout","operationId":"get_first_token_timeout_api_settings_first_token_timeout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstTokenTimeoutResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update First Token Timeout","operationId":"update_first_token_timeout_api_settings_first_token_timeout_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstTokenTimeoutPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstTokenTimeoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/tool-result-limit":{"get":{"tags":["settings"],"summary":"Get Tool Result Limit","operationId":"get_tool_result_limit_api_settings_tool_result_limit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResultLimitResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Tool Result Limit","description":"Save how many characters of one tool result the model reads. Applies from the next tool call.","operationId":"update_tool_result_limit_api_settings_tool_result_limit_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResultLimitPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResultLimitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/ml-warmup":{"get":{"tags":["settings"],"summary":"Get Ml Warmup","operationId":"get_ml_warmup_api_settings_ml_warmup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MlWarmupResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Ml Warmup","description":"Save the selected ML warmup features for the next Unsloth startup.","operationId":"update_ml_warmup_api_settings_ml_warmup_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MlWarmupPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MlWarmupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/helper-precache":{"get":{"tags":["settings"],"summary":"Get Helper Precache","operationId":"get_helper_precache_api_settings_helper_precache_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelperPrecacheResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Helper Precache","operationId":"update_helper_precache_api_settings_helper_precache_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelperPrecachePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelperPrecacheResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/developer-mode":{"get":{"tags":["settings"],"summary":"Get Developer Mode","operationId":"get_developer_mode_api_settings_developer_mode_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperModeResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Developer Mode","operationId":"update_developer_mode_api_settings_developer_mode_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperModePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperModeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/download-transport":{"get":{"tags":["settings"],"summary":"Get Download Transport","operationId":"get_download_transport_api_settings_download_transport_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadTransportResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Download Transport","operationId":"update_download_transport_api_settings_download_transport_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadTransportPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadTransportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/download-speed-limit":{"get":{"tags":["settings"],"summary":"Get Download Speed Limit","operationId":"get_download_speed_limit_api_settings_download_speed_limit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadSpeedLimitResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Download Speed Limit","operationId":"update_download_speed_limit_api_settings_download_speed_limit_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadSpeedLimitPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadSpeedLimitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/managed-provider-urls":{"get":{"tags":["settings"],"summary":"Get Managed Provider Urls","description":"Readable by any account: a managed one has to be able to tell a refusal the owner can lift\nfrom one nobody on this installation can, and it learns the same bit by trying to save a URL.","operationId":"get_managed_provider_urls_api_settings_managed_provider_urls_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedProviderUrlsResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Managed Provider Urls","description":"Allow or refuse private and LAN provider base URLs for the installation's managed accounts.\n\nOff by default. The preference is stored either way, so removing\n``UNSLOTH_STUDIO_BLOCK_PRIVATE_PROVIDER_URLS`` later restores what the owner chose here rather\nthan a default.","operationId":"update_managed_provider_urls_api_settings_managed_provider_urls_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedProviderUrlsPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedProviderUrlsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/hugging-face-cache":{"get":{"tags":["settings"],"summary":"Get Hugging Face Cache","operationId":"get_hugging_face_cache_api_settings_hugging_face_cache_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuggingFaceCacheResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Hugging Face Cache","operationId":"update_hugging_face_cache_api_settings_hugging_face_cache_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuggingFaceCachePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HuggingFaceCacheResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/caches":{"get":{"tags":["settings"],"summary":"Get Caches","description":"Size every cache this install writes to, plus the free space around them.\n\n``refresh`` re-walks every cache instead of reusing a size measured in the\nlast minute, for the Recheck the UI offers after something big was written.\nIt is the interactive button, and a walk of a large hub or triton cache is\nseconds of stat calls in the shared executor with no memo in front of it, so\nonly a UI session may ask for one. A plain read stays open to an API key.","operationId":"get_caches_api_settings_caches_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheInventoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/caches/{key}/breakdown":{"get":{"tags":["settings"],"summary":"Get Cache Breakdown","operationId":"get_cache_breakdown_api_settings_caches__key__breakdown_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/caches/purge":{"post":{"tags":["settings"],"summary":"Purge Caches Endpoint","description":"Empty the named caches. Only the interactive UI may delete anything.","operationId":"purge_caches_endpoint_api_settings_caches_purge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachePurgePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachePurgeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/offline-docs":{"get":{"tags":["settings"],"summary":"Get Offline Docs","operationId":"get_offline_docs_api_settings_offline_docs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfflineDocsResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Offline Docs","operationId":"update_offline_docs_api_settings_offline_docs_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfflineDocsPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfflineDocsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/offline-docs/refresh":{"post":{"tags":["settings"],"summary":"Refresh Offline Docs Now","operationId":"refresh_offline_docs_now_api_settings_offline_docs_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfflineDocsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/llama-cpp-path":{"get":{"tags":["settings"],"summary":"Get Llama Cpp Path","operationId":"get_llama_cpp_path_api_settings_llama_cpp_path_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlamaCppPathResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Llama Cpp Path","operationId":"update_llama_cpp_path_api_settings_llama_cpp_path_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlamaCppPathPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlamaCppPathResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/systemone/validate":{"post":{"tags":["settings"],"summary":"Validate Systemone Settings","operationId":"validate_systemone_settings_api_settings_systemone_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemOneSettingsPayload"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/systemone/connections":{"get":{"tags":["settings"],"summary":"List Systemone Connections","operationId":"list_systemone_connections_api_settings_systemone_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SystemOneConnectionOption"},"type":"array","title":"Response List Systemone Connections Api Settings Systemone Connections Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/systemone/resolve":{"get":{"tags":["settings"],"summary":"Resolve Systemone Download","operationId":"resolve_systemone_download_api_settings_systemone_resolve_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"backend","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backend"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemOneDownloadPlan"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/systemone/unload":{"post":{"tags":["settings"],"summary":"Unload Systemone Model","operationId":"unload_systemone_model_api_settings_systemone_unload_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemOneSettingsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/hub":{"get":{"tags":["settings"],"summary":"Get Hub","operationId":"get_hub_api_settings_hub_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSettingsResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Hub","operationId":"update_hub_api_settings_hub_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSettingsPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/hub/source":{"put":{"tags":["settings"],"summary":"Update Hub Source","operationId":"update_hub_source_api_settings_hub_source_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSourcePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/hub/source-notice":{"post":{"tags":["settings"],"summary":"Claim Hub Source Notice","description":"Keep the automatic ModelScope default; granted once, to the UI that tells the owner.","operationId":"claim_hub_source_notice_api_settings_hub_source_notice_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSourceNoticeResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/xet-notice/reserve":{"post":{"tags":["settings"],"summary":"Post Xet Notice Reserve","description":"Take one of the remaining notices. POST because it mutates the count.","operationId":"post_xet_notice_reserve_api_settings_xet_notice_reserve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/XetNoticeReservePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XetNoticeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/model-memory":{"get":{"tags":["settings"],"summary":"Get Model Memory","operationId":"get_model_memory_api_settings_model_memory_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelMemoryResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Model Memory","operationId":"update_model_memory_api_settings_model_memory_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelMemoryPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelMemoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/diffusion-accelerator-fallback":{"get":{"tags":["settings"],"summary":"Get Diffusion Accelerator Fallback","description":"Which native diffusion accelerators this host has been recorded as unable to run.\n\nUpstream publishes one generic ROCm stable-diffusion.cpp build, not one per gfx arch, so a card\nit carries no kernels for cannot start it and the host moves to Vulkan (#9278, #8814).","operationId":"get_diffusion_accelerator_fallback_api_settings_diffusion_accelerator_fallback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionAcceleratorFallbackResponse"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["settings"],"summary":"Clear Diffusion Accelerator Fallback","description":"Forget the records, so the next load tries this host's own accelerator again.\n\nA driver upgrade or a new card retires them through the fingerprint; this is the way back for a\nfix it cannot see. Reinstalling does not clear them: the record lives in settings, not the tree.","operationId":"clear_diffusion_accelerator_fallback_api_settings_diffusion_accelerator_fallback_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiffusionAcceleratorFallbackResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/vram-budget":{"get":{"tags":["settings"],"summary":"Get Vram Budget","operationId":"get_vram_budget_api_settings_vram_budget_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VramBudgetResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Vram Budget","operationId":"update_vram_budget_api_settings_vram_budget_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VramBudgetPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VramBudgetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/coding-agents":{"get":{"tags":["settings"],"summary":"Get Coding Agents","operationId":"get_coding_agents_api_settings_coding_agents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodingAgentsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/openai-auto-switch":{"get":{"tags":["settings"],"summary":"Get Openai Auto Switch","operationId":"get_openai_auto_switch_api_settings_openai_auto_switch_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIAutoSwitchResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Openai Auto Switch","operationId":"update_openai_auto_switch_api_settings_openai_auto_switch_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIAutoSwitchPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIAutoSwitchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/model-aliases":{"get":{"tags":["settings"],"summary":"Get Model Aliases Setting","operationId":"get_model_aliases_setting_api_settings_model_aliases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelAliasesResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Model Aliases Setting","operationId":"update_model_aliases_setting_api_settings_model_aliases_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelAliasesPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelAliasesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/embedding-model":{"get":{"tags":["settings"],"summary":"Get Embedding Model","operationId":"get_embedding_model_api_settings_embedding_model_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingModelResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Embedding Model","description":"Set the RAG embedding model. Unless ``force`` is set, the repo is verified\nto be an embedding model via HF metadata; an unverifiable model (wrong type,\ntypo, gated repo, or no network) returns 409 so the UI can offer \"save anyway\".\nA repo flagged unsafe by HF's security scan returns 403 instead: a hard block\nthat ``force`` cannot bypass, so the UI must not offer \"save anyway\".\nDocuments indexed under the previous model must be re-uploaded.","operationId":"update_embedding_model_api_settings_embedding_model_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingModelPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingModelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["settings"],"summary":"Reset Embedding Model","description":"Clear the override, returning to the env/default model.","operationId":"reset_embedding_model_api_settings_embedding_model_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingModelResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/embedding-model/resolve":{"get":{"tags":["settings"],"summary":"Resolve Embedding Model","description":"What saving ``model`` would need fetched, and whether it is already here.\n\nThe picker calls this so it can offer the download up front instead of letting\nit happen invisibly at first index. ``error`` is the detail the PUT would\nrefuse with, so the two cannot disagree about what is usable.","operationId":"resolve_embedding_model_api_settings_embedding_model_resolve_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string","title":"Model"}},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingModelResolveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/embedding-model/unload":{"post":{"tags":["settings"],"summary":"Unload Embedding Model","description":"Drop the embedder and stop its llama-server. Indexing rebuilds it on demand.","operationId":"unload_embedding_model_api_settings_embedding_model_unload_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingModelResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/embedding-model/device":{"put":{"tags":["settings"],"summary":"Update Embedding Device","description":"Run the embedder on the CPU, the GPU, or the hardware default, for every embedding model. The vectors\nkeep their embedding space, so indexed documents stay searchable. A failed GPU start falls back to CPU.","operationId":"update_embedding_device_api_settings_embedding_model_device_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingDevicePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingModelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/stt-device":{"get":{"tags":["settings"],"summary":"Get Stt Device Setting","description":"Voice Settings \"Load into\": where a cold STT API load places the model (#15280).","operationId":"get_stt_device_setting_api_settings_stt_device_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttDeviceResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Stt Device Setting","description":"Persist Voice Settings \"Load into\" so ``/v1/audio/transcriptions`` honours it on a cold load.\n\n``UNSLOTH_AUDIO_DEVICE`` still wins when set. An already-resident model is not moved;\nthe next cold load (or an explicit ``device`` on ``/audio/stt/load``) applies the choice.","operationId":"update_stt_device_setting_api_settings_stt_device_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttDevicePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttDeviceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/preview-links/rotate":{"post":{"tags":["settings"],"summary":"Rotate Preview Links","description":"Rotate the preview-link signing secret, revoking every previously shared `/p` link.","operationId":"rotate_preview_links_api_settings_preview_links_rotate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewLinkRotateResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/remote-access":{"get":{"tags":["settings"],"summary":"Get Remote Access","operationId":"get_remote_access_api_settings_remote_access_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoteAccessResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/remote-access/start":{"post":{"tags":["settings"],"summary":"Start Remote Access Route","operationId":"start_remote_access_route_api_settings_remote_access_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoteAccessResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/remote-access/stop":{"post":{"tags":["settings"],"summary":"Stop Remote Access Route","operationId":"stop_remote_access_route_api_settings_remote_access_stop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoteAccessResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/remote-access/auto-start":{"put":{"tags":["settings"],"summary":"Update Remote Access Auto Start","operationId":"update_remote_access_auto_start_api_settings_remote_access_auto_start_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoteAccessAutoStartPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoteAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/lan-access":{"get":{"tags":["settings"],"summary":"Get Lan Access","operationId":"get_lan_access_api_settings_lan_access_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanAccessResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/lan-access/start":{"post":{"tags":["settings"],"summary":"Start Lan Access Route","operationId":"start_lan_access_route_api_settings_lan_access_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanAccessResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/lan-access/stop":{"post":{"tags":["settings"],"summary":"Stop Lan Access Route","operationId":"stop_lan_access_route_api_settings_lan_access_stop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanAccessResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/lan-access/auto-start":{"put":{"tags":["settings"],"summary":"Update Lan Access Auto Start","operationId":"update_lan_access_auto_start_api_settings_lan_access_auto_start_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanAccessAutoStartPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/lan-access/port":{"put":{"tags":["settings"],"summary":"Update Lan Access Port","operationId":"update_lan_access_port_api_settings_lan_access_port_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanAccessPortPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/lan-access/addresses":{"put":{"tags":["settings"],"summary":"Update Lan Access Addresses","operationId":"update_lan_access_addresses_api_settings_lan_access_addresses_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanAccessAddressesPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/preview-sharing":{"get":{"tags":["settings"],"summary":"Get Preview Sharing","operationId":"get_preview_sharing_api_settings_preview_sharing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewSharingResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Preview Sharing","description":"Enable/disable the public `/p` preview surface. When off, links 404 even with a token.","operationId":"update_preview_sharing_api_settings_preview_sharing_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewSharingPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewSharingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/trusted-tool-folders":{"get":{"tags":["settings"],"summary":"Get Trusted Tool Folders Setting","operationId":"get_trusted_tool_folders_setting_api_settings_trusted_tool_folders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustedToolFoldersResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Trusted Tool Folders Setting","description":"Folders whose files the owner's Python and Terminal calls may read and run without a prompt.","operationId":"update_trusted_tool_folders_setting_api_settings_trusted_tool_folders_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustedToolFoldersPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustedToolFoldersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/keyless-api-access":{"get":{"tags":["settings"],"summary":"Get Keyless Api Access","operationId":"get_keyless_api_access_api_settings_keyless_api_access_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeylessApiAccessResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Keyless Api Access","description":"Choose which routes are served without an API key, and whether tools come too.","operationId":"update_keyless_api_access_api_settings_keyless_api_access_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeylessApiAccessPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeylessApiAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/mcp-access":{"get":{"tags":["settings"],"summary":"Get Mcp Access","operationId":"get_mcp_access_api_settings_mcp_access_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpAccessResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["settings"],"summary":"Update Mcp Access","description":"Turn agent access over MCP on or off for the whole installation, and choose which tools agents get.","operationId":"update_mcp_access_api_settings_mcp_access_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpAccessPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/debug/logs/sources":{"get":{"tags":["settings"],"summary":"Get Debug Log Sources","description":"Every log file the viewer may read, newest first within each family.\n\nIndividual files, not one entry per family: the llama runner writes one file\nper load ATTEMPT, so after a retry the useful one is often not the newest.","operationId":"get_debug_log_sources_api_settings_debug_logs_sources_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"diagnostic_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diagnostic Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebugLogSourcesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/debug/logs":{"get":{"tags":["settings"],"summary":"Get Debug Log","description":"The tail of one log, then only what was appended after `cursor`.\n\nEvery content state answers 200. This is polled once a second in Live mode,\nand a 404 or a 500 on \"the file is not there yet\" would make the viewer\nflash an error on every tick; the caller reads `status` instead.","operationId":"get_debug_log_api_settings_debug_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"lines","in":"query","required":false,"schema":{"type":"integer","default":1000,"title":"Lines"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebugLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/debug/logs/export":{"get":{"tags":["settings"],"summary":"Export Debug Logs","description":"Every log the picker lists, redacted, as one ZIP.\n\nSame two dependencies as the routes above: a bundle of logs and the paths\nthey came from is UI-operator material, so an API-key or keyless caller is\nrefused. On `_owner_settings_router` for the same reason they are, since\nthat router carries `_require_installation_owner`: on the bare `router` the\nBUNDLE would be reachable by an account refused each log individually.\n\nBuilt before the response exists rather than inside the generator, so a\nfailure is a 500 instead of a truncated download.","operationId":"export_debug_logs_api_settings_debug_logs_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/sandbox":{"get":{"tags":["settings"],"summary":"Get Sandbox Status","description":"What Python and the Terminal get from the OS sandbox on this machine, plus the Windows opt-in.","operationId":"get_sandbox_status_api_settings_sandbox_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["settings"],"summary":"Update Sandbox Settings","description":"Save the Windows MXC opt-in, the persistent read grant choice, or the memory limit. Applies to the next\nlaunch.","operationId":"update_sandbox_settings_api_settings_sandbox_put","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxSettingsPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/sandbox/prepare":{"get":{"tags":["settings"],"summary":"Get Sandbox Prepare","operationId":"get_sandbox_prepare_api_settings_sandbox_prepare_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxPrepareJob"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["settings"],"summary":"Start Sandbox Prepare","description":"Run MXC's elevated host preparation; Windows shows its administrator prompt on this computer.","operationId":"start_sandbox_prepare_api_settings_sandbox_prepare_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxPrepareJob"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings/sandbox/setup":{"get":{"tags":["settings"],"summary":"Get Sandbox Setup","operationId":"get_sandbox_setup_api_settings_sandbox_setup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxSetupJob"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["settings"],"summary":"Start Sandbox Setup","description":"Install or prepare the OS sandbox here; the password or administrator prompt appears on this computer.\n\nSteps that need no prompt (the Windows runtime-only install, a Linux install as root or with\npasswordless sudo) also work from a remote browser.","operationId":"start_sandbox_setup_api_settings_sandbox_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxSetupPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxSetupJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/sandbox/capability":{"get":{"tags":["sandbox"],"summary":"Sandbox Capability","description":"Probe when the cached answer is missing, so \"not isolated\" is never a guess. Force: owner only.","operationId":"sandbox_capability_api_sandbox_capability_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxCapabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/builtins":{"get":{"tags":["mcp"],"summary":"List Builtins","operationId":"list_builtins_api_mcp_servers_builtins_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"detect","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detect"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/McpBuiltinResponse"},"title":"Response List Builtins Api Mcp Servers Builtins Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/builtins/blender/test":{"post":{"tags":["mcp"],"summary":"Test Blender","operationId":"test_blender_api_mcp_servers_builtins_blender_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlenderTest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerProbeResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mcp/servers/builtins/blender":{"put":{"tags":["mcp"],"summary":"Setup Blender","operationId":"setup_blender_api_mcp_servers_builtins_blender_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlenderSetup"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpBuiltinResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mcp/servers/builtins/{editor}/test":{"post":{"tags":["mcp"],"summary":"Test Editor","operationId":"test_editor_api_mcp_servers_builtins__editor__test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"editor","in":"path","required":true,"schema":{"type":"string","title":"Editor"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorTest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerProbeResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/builtins/unreal/install-tools":{"post":{"tags":["mcp"],"summary":"Install Unreal Tools","operationId":"install_unreal_tools_api_mcp_servers_builtins_unreal_install_tools_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnrealToolsInstall"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnrealToolsInstallResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mcp/servers/builtins/{editor}":{"put":{"tags":["mcp"],"summary":"Setup Editor","operationId":"setup_editor_api_mcp_servers_builtins__editor__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"editor","in":"path","required":true,"schema":{"type":"string","title":"Editor"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorSetup"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpBuiltinResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/stdio/decode":{"post":{"tags":["mcp"],"summary":"Decode Stdio Command","operationId":"decode_stdio_command_api_mcp_servers_stdio_decode_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpStdioDecodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpStdioCommand"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mcp/servers/stdio/encode":{"post":{"tags":["mcp"],"summary":"Encode Stdio Command","operationId":"encode_stdio_command_api_mcp_servers_stdio_encode_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpStdioCommand"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpStdioEncodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mcp/servers/":{"get":{"tags":["mcp"],"summary":"List Mcp Servers","operationId":"list_mcp_servers_api_mcp_servers__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/McpServerResponse"},"type":"array","title":"Response List Mcp Servers Api Mcp Servers  Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["mcp"],"summary":"Create Mcp Server","operationId":"create_mcp_server_api_mcp_servers__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mcp/servers/research-tools":{"get":{"tags":["mcp"],"summary":"List Research Search Tools","operationId":"list_research_search_tools_api_mcp_servers_research_tools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mcp/servers/{server_id}":{"put":{"tags":["mcp"],"summary":"Update Mcp Server","operationId":"update_mcp_server_api_mcp_servers__server_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["mcp"],"summary":"Delete Mcp Server","operationId":"delete_mcp_server_api_mcp_servers__server_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/{server_id}/tools":{"get":{"tags":["mcp"],"summary":"List Mcp Server Tools","description":"Cached tool names and input schemas, for choosing an image input mapping.","operationId":"list_mcp_server_tools_api_mcp_servers__server_id__tools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/{server_id}/refresh":{"post":{"tags":["mcp"],"summary":"Refresh Mcp Server Tools","operationId":"refresh_mcp_server_tools_api_mcp_servers__server_id__refresh_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerProbeResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/import":{"post":{"tags":["mcp"],"summary":"Import Mcp Servers","description":"Bulk-register servers from a standard mcpServers JSON config (issue\n#5936). Each entry rides the existing create path: _validate_url applies\nthe same stdio gate (a stdio entry becomes a per-entry error when stdio is\noff; http still imports), and entries whose url already exists are skipped\nso re-importing the same file is idempotent. One bad entry never 400s the\nwhole batch -- failures are reported per entry.","operationId":"import_mcp_servers_api_mcp_servers_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mcp/servers/test":{"post":{"tags":["mcp"],"summary":"Test Mcp Server","operationId":"test_mcp_server_api_mcp_servers_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerTestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerProbeResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/mcp/servers/{server_id}/ui-resource":{"get":{"tags":["mcp"],"summary":"Read Mcp Ui Resource","operationId":"read_mcp_ui_resource_api_mcp_servers__server_id__ui_resource_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"uri","in":"query","required":true,"schema":{"type":"string","title":"Uri"}},{"name":"thread_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpUiResourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/{server_id}/ui-tool-call":{"post":{"tags":["mcp"],"summary":"Call Mcp Ui Tool","description":"Widget is untrusted: server_id comes from the host frame, the tool must be discovered with \"app\" visibility, and it passes the confirm gate.","operationId":"call_mcp_ui_tool_api_mcp_servers__server_id__ui_tool_call_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpUiToolCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpUiToolCallResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills":{"get":{"tags":["skills"],"summary":"Get Skills","operationId":"get_skills_api_skills_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SkillRecord"},"type":"array","title":"Response Get Skills Api Skills Get"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["skills"],"summary":"Update All Skills Enabled","operationId":"update_all_skills_enabled_api_skills_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllSkillsEnabledRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SkillRecord"},"type":"array","title":"Response Update All Skills Enabled Api Skills Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["skills"],"summary":"Create Skill Route","operationId":"create_skill_route_api_skills_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/skills/import":{"post":{"tags":["skills"],"summary":"Import Skill Route","operationId":"import_skill_route_api_skills_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_skill_route_api_skills_import_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/skills/{name}":{"get":{"tags":["skills"],"summary":"Get Skill","operationId":"get_skill_api_skills__name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillManifest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["skills"],"summary":"Update Skill Route","operationId":"update_skill_route_api_skills__name__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillDraft"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["skills"],"summary":"Delete Skill Route","operationId":"delete_skill_route_api_skills__name__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/{name}/export":{"get":{"tags":["skills"],"summary":"Export Skill Route","operationId":"export_skill_route_api_skills__name__export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/{name}/enabled":{"put":{"tags":["skills"],"summary":"Update Skill Enabled","operationId":"update_skill_enabled_api_skills__name__enabled_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillEnabledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/computer-use/status":{"get":{"tags":["computer-use"],"summary":"Computer Use Status","operationId":"computer_use_status_api_computer_use_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputerUseStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/computer-use/settings":{"put":{"tags":["computer-use"],"summary":"Update Computer Use Settings","operationId":"update_computer_use_settings_api_computer_use_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputerUseSettingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputerUseStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/computer-use/permissions/{kind}":{"post":{"tags":["computer-use"],"summary":"Request Computer Use Permission","description":"Raise the OS prompt for a grant. A person presses this in Settings; a tool call never can.","operationId":"request_computer_use_permission_api_computer_use_permissions__kind__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["screen","input"],"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputerUseStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/computer-use/allowed-apps":{"post":{"tags":["computer-use"],"summary":"Allow Computer Use App","description":"Always allow: the model acts in this app without asking, in every chat.","operationId":"allow_computer_use_app_api_computer_use_allowed_apps_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputerUseAppRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputerUseStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["computer-use"],"summary":"Remove Computer Use App","operationId":"remove_computer_use_app_api_computer_use_allowed_apps_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputerUseStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/computer-use/blocked-apps":{"post":{"tags":["computer-use"],"summary":"Block Computer Use App","description":"Block: no model acts in this app, in any chat or permission mode.","operationId":"block_computer_use_app_api_computer_use_blocked_apps_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputerUseAppRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputerUseStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["computer-use"],"summary":"Unblock Computer Use App","operationId":"unblock_computer_use_app_api_computer_use_blocked_apps_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputerUseStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/computer-use/resume":{"post":{"tags":["computer-use"],"summary":"Resume Computer Use","description":"Allow again: chats the user stopped with the pointer may use the computer once more.","operationId":"resume_computer_use_api_computer_use_resume_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputerUseStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/computer-use/revoke":{"post":{"tags":["computer-use"],"summary":"Revoke Computer Use","description":"Every chat of this account asks again, and the actions running now end.","operationId":"revoke_computer_use_api_computer_use_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/prompts/entries":{"get":{"tags":["prompts"],"summary":"Get Entries","operationId":"get_entries_api_prompts_entries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/prompts/entries/{entry_id}":{"put":{"tags":["prompts"],"summary":"Put Entry","operationId":"put_entry_api_prompts_entries__entry_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptEntry"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["prompts"],"summary":"Remove Entry","operationId":"remove_entry_api_prompts_entries__entry_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompts/entries/bulk":{"post":{"tags":["prompts"],"summary":"Bulk Entries","operationId":"bulk_entries_api_prompts_entries_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkEntriesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/prompts/lists":{"get":{"tags":["prompts"],"summary":"Get Lists","operationId":"get_lists_api_prompts_lists_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/prompts/lists/{list_id}":{"put":{"tags":["prompts"],"summary":"Put List","operationId":"put_list_api_prompts_lists__list_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptList"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["prompts"],"summary":"Remove List","operationId":"remove_list_api_prompts_lists__list_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompts/lists/bulk":{"post":{"tags":["prompts"],"summary":"Bulk Lists","operationId":"bulk_lists_api_prompts_lists_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkListsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/scheduled-tasks":{"get":{"tags":["scheduled-tasks"],"summary":"List Scheduled Tasks","operationId":"list_scheduled_tasks_api_scheduled_tasks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledTaskList"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["scheduled-tasks"],"summary":"Create Scheduled Task","operationId":"create_scheduled_task_api_scheduled_tasks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledTaskCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledTask"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/scheduled-tasks/runs":{"get":{"tags":["scheduled-tasks"],"summary":"Scheduled Task Activity","description":"Runs finished since ``since`` (ms), for a client that notifies when results arrive.","operationId":"scheduled_task_activity_api_scheduled_tasks_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":9223372036854775807,"minimum":0},{"type":"null"}],"title":"Since"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledTaskActivity"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scheduled-tasks/{task_id}":{"get":{"tags":["scheduled-tasks"],"summary":"Get Scheduled Task","operationId":"get_scheduled_task_api_scheduled_tasks__task_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledTask"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["scheduled-tasks"],"summary":"Update Scheduled Task","operationId":"update_scheduled_task_api_scheduled_tasks__task_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledTaskUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledTask"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["scheduled-tasks"],"summary":"Delete Scheduled Task","operationId":"delete_scheduled_task_api_scheduled_tasks__task_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scheduled-tasks/{task_id}/run":{"post":{"tags":["scheduled-tasks"],"summary":"Run Scheduled Task Now","description":"Queue a run outside the schedule; the next scheduled run is unaffected.","operationId":"run_scheduled_task_now_api_scheduled_tasks__task_id__run_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunNowRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledTaskRun"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library":{"get":{"tags":["library"],"summary":"Get Library","operationId":"get_library_api_library_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Library Api Library Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/favorites":{"get":{"tags":["library"],"summary":"Get Favorites","description":"Favorite item ids alone, for pages that mark favorites without listing every source. Only\nthose the source still has: a gallery or chat can delete one without the Library.","operationId":"get_favorites_api_library_favorites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Favorites Api Library Favorites Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/items":{"patch":{"tags":["library"],"summary":"Patch Item","operationId":"patch_item_api_library_items_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Patch Item Api Library Items Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/items/opened":{"post":{"tags":["library"],"summary":"Mark Item Opened","operationId":"mark_item_opened_api_library_items_opened_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemRef"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mark Item Opened Api Library Items Opened Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/items/delete":{"post":{"tags":["library"],"summary":"Delete Item","operationId":"delete_item_api_library_items_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemDelete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Delete Item Api Library Items Delete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/items/project":{"post":{"tags":["library"],"summary":"Add Item To Project","description":"Copy an item's file into a chat project's folder. The Library keeps its item.","operationId":"add_item_to_project_api_library_items_project_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCopy"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Add Item To Project Api Library Items Project Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/items/reveal":{"post":{"tags":["library"],"summary":"Reveal Item","description":"Show the item's file in the OS file manager. The backend host's, so the desktop app's.","operationId":"reveal_item_api_library_items_reveal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemRef"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reveal Item Api Library Items Reveal Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/items/thumbnail":{"get":{"tags":["library"],"summary":"Get Item Thumbnail","description":"An image or video item's card picture. The client adds the item's version to the URL, so it\ncan cache.","operationId":"get_item_thumbnail_api_library_items_thumbnail_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","maxLength":4096,"title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/items/download":{"head":{"tags":["library"],"summary":"Download Item","description":"An item's file as an attachment. Takes ``?token=`` as well: the desktop app streams it\nstraight to disk, and its native save sends no header.","operationId":"download_item_api_library_items_download_head","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","maxLength":4096,"title":"Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8192},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["library"],"summary":"Download Item","description":"An item's file as an attachment. Takes ``?token=`` as well: the desktop app streams it\nstraight to disk, and its native save sends no header.","operationId":"download_item_api_library_items_download_head","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","maxLength":4096,"title":"Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8192},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/items/stream-url":{"get":{"tags":["library"],"summary":"Get Item Stream Url","description":"A short-lived link an ``<audio>`` or ``<video>`` element plays an item from, with range\nrequests. Relative, so it works behind any proxy the page is served through.","operationId":"get_item_stream_url_api_library_items_stream_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","maxLength":4096,"title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Item Stream Url Api Library Items Stream Url Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/items/stream":{"head":{"tags":["library"],"summary":"Stream Item","description":"An audio or video item, gated by its link rather than the bearer so it can be a plain\n``src``, and range-capable so it seeks. Opened once in the link's account and read from that\ndescriptor, so a sandbox name swapped for a link after the check is never followed.","operationId":"stream_item_api_library_items_stream_head","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","maxLength":4096,"title":"Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","maxLength":8192,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["library"],"summary":"Stream Item","description":"An audio or video item, gated by its link rather than the bearer so it can be a plain\n``src``, and range-capable so it seeks. Opened once in the link's account and read from that\ndescriptor, so a sandbox name swapped for a link after the check is never followed.","operationId":"stream_item_api_library_items_stream_head","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","maxLength":4096,"title":"Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","maxLength":8192,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/locations":{"get":{"tags":["library"],"summary":"Get Locations","operationId":"get_locations_api_library_locations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Locations Api Library Locations Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/locations/reveal":{"post":{"tags":["library"],"summary":"Reveal Location","operationId":"reveal_location_api_library_locations_reveal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationRef"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reveal Location Api Library Locations Reveal Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/locations/move":{"post":{"tags":["library"],"summary":"Move Location","description":"Move one kind of file to another folder, files and all. Installation owner only, like the\nother storage settings: other accounts keep their files in their own workspace. `leftBehind`\nnames the folder whose files stayed on an unplugged drive when a Reset let go of it.","operationId":"move_location_api_library_locations_move_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationMove"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Move Location Api Library Locations Move Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/uploads":{"post":{"tags":["library"],"summary":"Upload Files","operationId":"upload_files_api_library_uploads_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_files_api_library_uploads_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Upload Files Api Library Uploads Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/uploads/{upload_id}/file":{"get":{"tags":["library"],"summary":"Get Upload File","operationId":"get_upload_file_api_library_uploads__upload_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/uploads/{upload_id}/text":{"put":{"tags":["library"],"summary":"Put Upload Text","operationId":"put_upload_text_api_library_uploads__upload_id__text_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextContent"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Upload Text Api Library Uploads  Upload Id  Text Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/folders":{"post":{"tags":["library"],"summary":"Create Folder","operationId":"create_folder_api_library_folders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Folder Api Library Folders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library/folders/{folder_id}":{"patch":{"tags":["library"],"summary":"Patch Folder","operationId":"patch_folder_api_library_folders__folder_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Folder Api Library Folders  Folder Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["library"],"summary":"Delete Folder","operationId":"delete_folder_api_library_folders__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Folder Api Library Folders  Folder Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/stats":{"get":{"tags":["profile"],"summary":"Get Profile Stats","description":"Usage stats from the caller's database, bucketed in the caller's timezone (``tz``, or the ``tz_offset_minutes`` fallback).","operationId":"get_profile_stats_api_profile_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":366,"minimum":1,"default":366,"title":"Days"}},{"name":"tz_offset_minutes","in":"query","required":false,"schema":{"type":"integer","maximum":840,"minimum":-840,"default":0,"title":"Tz Offset Minutes"}},{"name":"tz","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"Tz"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Profile Stats Api Profile Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/stats/export":{"get":{"tags":["profile"],"summary":"Export Profile Usage","description":"The token usage behind the stats as CSV, one row per chat response or API request.","operationId":"export_profile_usage_api_profile_stats_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tz_offset_minutes","in":"query","required":false,"schema":{"type":"integer","maximum":840,"minimum":-840,"default":0,"title":"Tz Offset Minutes"}},{"name":"tz","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"Tz"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/upload":{"post":{"tags":["datasets"],"summary":"Upload Dataset","operationId":"upload_dataset_api_datasets_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_dataset_api_datasets_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/models__datasets__UploadDatasetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"deprecated":true,"security":[{"HTTPBearer":[]}]}},"/api/datasets/local":{"get":{"tags":["datasets"],"summary":"List Local Datasets","operationId":"list_local_datasets_api_datasets_local_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/models__datasets__LocalDatasetsResponse"}}}}},"deprecated":true,"security":[{"HTTPBearer":[]}]}},"/api/datasets/download-progress":{"get":{"tags":["datasets"],"summary":"Get Dataset Download Progress","operationId":"get_dataset_download_progress_api_datasets_download_progress_get","deprecated":true,"security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace dataset repo ID, e.g. 'unsloth/LaTeX_OCR'","title":"Repo Id"},"description":"HuggingFace dataset repo ID, e.g. 'unsloth/LaTeX_OCR'"},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/check-format":{"post":{"tags":["datasets"],"summary":"Check Format","operationId":"check_format_api_datasets_check_format_post","deprecated":true,"security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/models__datasets__CheckFormatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckFormatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/datasets/ai-assist-mapping":{"post":{"tags":["datasets"],"summary":"Ai Assist Mapping","operationId":"ai_assist_mapping_api_datasets_ai_assist_mapping_post","deprecated":true,"security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/models__datasets__AiAssistMappingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAssistMappingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/jobs/{job_id}/download":{"get":{"tags":["data-recipe"],"summary":"Download Job Dataset","operationId":"download_job_dataset_api_data_recipe_jobs__job_id__download_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"format","in":"query","required":false,"schema":{"enum":["jsonl","parquet"],"type":"string","default":"jsonl","title":"Format"}},{"name":"artifact_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Path"}},{"name":"filename","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/seed/inspect":{"post":{"tags":["data-recipe"],"summary":"Inspect Seed Dataset","operationId":"inspect_seed_dataset_api_data_recipe_seed_inspect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedInspectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedInspectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/data-recipe/seed/upload-unstructured-file":{"post":{"tags":["data-recipe"],"summary":"Upload Unstructured File","operationId":"upload_unstructured_file_api_data_recipe_seed_upload_unstructured_file_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_unstructured_file_api_data_recipe_seed_upload_unstructured_file_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnstructuredFileUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/data-recipe/seed/unstructured-file/{block_id}/{file_id}":{"delete":{"tags":["data-recipe"],"summary":"Remove Unstructured File","operationId":"remove_unstructured_file_api_data_recipe_seed_unstructured_file__block_id___file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"block_id","in":"path","required":true,"schema":{"type":"string","title":"Block Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/seed/unstructured-block/{block_id}":{"delete":{"tags":["data-recipe"],"summary":"Remove Unstructured Block","description":"Delete a block's upload directory; files on disk still count toward its quota.\n\nOnly uid-namespaced directories may be bulk-deleted: they have exactly one\nowning block. Legacy node-id directories (n1, ...) can be shared by other\nrecipes, so they are managed file-by-file instead.","operationId":"remove_unstructured_block_api_data_recipe_seed_unstructured_block__block_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"block_id","in":"path","required":true,"schema":{"type":"string","title":"Block Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/seed/inspect-upload":{"post":{"tags":["data-recipe"],"summary":"Inspect Seed Upload","operationId":"inspect_seed_upload_api_data_recipe_seed_inspect_upload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedInspectUploadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedInspectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/data-recipe/seed/github/env-token":{"get":{"tags":["data-recipe"],"summary":"Get Github Env Token Status","description":"Report whether the server has a GH_TOKEN / GITHUB_TOKEN env var.\n\nThe value is never returned; the UI uses this to tell the user they\ncan leave the token field blank.","operationId":"get_github_env_token_status_api_data_recipe_seed_github_env_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Github Env Token Status Api Data Recipe Seed Github Env Token Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/data-recipe/validate":{"post":{"tags":["data-recipe"],"summary":"Validate","operationId":"validate_api_data_recipe_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/data-recipe/jobs":{"post":{"tags":["data-recipe"],"summary":"Create Job","operationId":"create_job_api_data_recipe_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/data-recipe/jobs/{job_id}/status":{"get":{"tags":["data-recipe"],"summary":"Job Status","operationId":"job_status_api_data_recipe_jobs__job_id__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/jobs/current":{"get":{"tags":["data-recipe"],"summary":"Current Job","operationId":"current_job_api_data_recipe_jobs_current_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/data-recipe/jobs/{job_id}/cancel":{"post":{"tags":["data-recipe"],"summary":"Cancel Job","operationId":"cancel_job_api_data_recipe_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/jobs/{job_id}/analysis":{"get":{"tags":["data-recipe"],"summary":"Job Analysis","operationId":"job_analysis_api_data_recipe_jobs__job_id__analysis_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/jobs/{job_id}/dataset":{"get":{"tags":["data-recipe"],"summary":"Job Dataset","operationId":"job_dataset_api_data_recipe_jobs__job_id__dataset_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/jobs/{job_id}/download-url":{"get":{"tags":["data-recipe"],"summary":"Create Job Dataset Download Url","description":"Mint the signed link the browser or the native downloader then fetches.\n\nBearer-gated like the rest of the package. It settles here whether the run can be exported at\nall, and under what name, so a failure lands in the UI instead of after the save dialog has\nopened. The URL is relative, so it survives whatever proxy the page itself came through.","operationId":"create_job_dataset_download_url_api_data_recipe_jobs__job_id__download_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"format","in":"query","required":false,"schema":{"enum":["jsonl","parquet"],"type":"string","default":"jsonl","title":"Format"}},{"name":"artifact_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Path"}},{"name":"filename","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/jobs/{job_id}/publish":{"post":{"tags":["data-recipe"],"summary":"Publish Job Dataset","operationId":"publish_job_dataset_api_data_recipe_jobs__job_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishDatasetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishDatasetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/jobs/{job_id}/events":{"post":{"tags":["data-recipe"],"summary":"Job Events","operationId":"job_events_api_data_recipe_jobs__job_id__events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/mcp/tools":{"post":{"tags":["data-recipe"],"summary":"List Mcp Tools","operationId":"list_mcp_tools_api_data_recipe_mcp_tools_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpToolsListRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpToolsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/data-recipe/recipes":{"get":{"tags":["data-recipe"],"summary":"Get Recipes","operationId":"get_recipes_api_data_recipe_recipes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/data-recipe/recipes/import":{"post":{"tags":["data-recipe"],"summary":"Import Legacy Recipes","operationId":"import_legacy_recipes_api_data_recipe_recipes_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/data-recipe/recipes/{recipe_id}":{"get":{"tags":["data-recipe"],"summary":"Get Recipe","operationId":"get_recipe_api_data_recipe_recipes__recipe_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_id","in":"path","required":true,"schema":{"type":"string","title":"Recipe Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["data-recipe"],"summary":"Put Recipe","operationId":"put_recipe_api_data_recipe_recipes__recipe_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_id","in":"path","required":true,"schema":{"type":"string","title":"Recipe Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveRecipeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["data-recipe"],"summary":"Remove Recipe","operationId":"remove_recipe_api_data_recipe_recipes__recipe_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_id","in":"path","required":true,"schema":{"type":"string","title":"Recipe Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/recipes/{recipe_id}/executions":{"get":{"tags":["data-recipe"],"summary":"Get Executions","operationId":"get_executions_api_data_recipe_recipes__recipe_id__executions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_id","in":"path","required":true,"schema":{"type":"string","title":"Recipe Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-recipe/recipes/{recipe_id}/executions/{execution_id}":{"put":{"tags":["data-recipe"],"summary":"Put Execution","operationId":"put_execution_api_data_recipe_recipes__recipe_id__executions__execution_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_id","in":"path","required":true,"schema":{"type":"string","title":"Recipe Id"}},{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","title":"Execution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionRecord"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/llama/update-status":{"get":{"tags":["llama"],"summary":"Llama Update Status","operationId":"llama_update_status_api_llama_update_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass the 24h release cache for an explicit check.","default":false,"title":"Force Refresh"},"description":"Bypass the 24h release cache for an explicit check."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlamaUpdateStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/llama/update":{"post":{"tags":["llama"],"summary":"Llama Update","operationId":"llama_update_api_llama_update_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlamaUpdateActionResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/llama/update-changelog":{"get":{"tags":["llama"],"summary":"Llama Update Changelog","operationId":"llama_update_changelog_api_llama_update_changelog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Retry the exact release lookups.","default":false,"title":"Force Refresh"},"description":"Retry the exact release lookups."},{"name":"installed_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Installed tag the caller is displaying; ignored unless it still matches.","title":"Installed Tag"},"description":"Installed tag the caller is displaying; ignored unless it still matches."},{"name":"latest_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Target the caller is displaying, so a newer one cached meanwhile does not retarget the comparison.","title":"Latest Tag"},"description":"Target the caller is displaying, so a newer one cached meanwhile does not retarget the comparison."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlamaUpdateChangelogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/llama/backend":{"get":{"tags":["llama"],"summary":"Llama Backend Status","operationId":"llama_backend_status_api_llama_backend_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass the 24h resolver cache for an explicit re-check.","default":false,"title":"Force Refresh"},"description":"Bypass the 24h resolver cache for an explicit re-check."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlamaBackendStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["llama"],"summary":"Llama Backend Switch","description":"Install the llama.cpp build for another backend and record the choice.\n\nShares the update job, so it answers already_running rather than starting a\nsecond writer against the same install; callers poll /update-status for\nprogress exactly as they do for an update.","operationId":"llama_backend_switch_api_llama_backend_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlamaBackendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlamaUpdateActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engines":{"get":{"tags":["engines"],"summary":"List Engines","operationId":"list_engines_api_engines_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/engines/{engine}/install":{"post":{"tags":["engines"],"summary":"Install","operationId":"install_api_engines__engine__install_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"engine","in":"path","required":true,"schema":{"enum":["vllm","sglang"],"type":"string","title":"Engine"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engines/{engine}/cancel":{"post":{"tags":["engines"],"summary":"Cancel","operationId":"cancel_api_engines__engine__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"engine","in":"path","required":true,"schema":{"enum":["vllm","sglang"],"type":"string","title":"Engine"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engines/{engine}":{"delete":{"tags":["engines"],"summary":"Remove","operationId":"remove_api_engines__engine__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"engine","in":"path","required":true,"schema":{"enum":["vllm","sglang"],"type":"string","title":"Engine"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engines/{engine}/rollback":{"post":{"tags":["engines"],"summary":"Rollback","operationId":"rollback_api_engines__engine__rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"engine","in":"path","required":true,"schema":{"enum":["vllm","sglang"],"type":"string","title":"Engine"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engines/wsl/environment":{"delete":{"tags":["engines"],"summary":"Remove Wsl Environment","description":"Windows only: delete Unsloth's private WSL distro with every engine inside it.","operationId":"remove_wsl_environment_api_engines_wsl_environment_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/whisper/update-status":{"get":{"tags":["whisper"],"summary":"Whisper Update Status","operationId":"whisper_update_status_api_whisper_update_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass the 24h release cache for an explicit check.","default":false,"title":"Force Refresh"},"description":"Bypass the 24h release cache for an explicit check."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhisperUpdateStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/npu/status":{"get":{"tags":["npu"],"summary":"Npu Status","description":"Whether this machine has a supported NPU, and the runtime's state. Never starts anything.","operationId":"npu_status_api_npu_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/npu/compat":{"get":{"tags":["npu"],"summary":"Npu Compat","description":"What the installed FastFlowLM runs and the Q4NX converter converts, per architecture and\nshape. Never starts the runtime; on a supported NPU, installs the pinned converter source if missing.","operationId":"npu_compat_api_npu_compat_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/npu/enable":{"post":{"tags":["npu"],"summary":"Enable Npu","description":"Install and start Lemonade, install FastFlowLM and validate the NPU. Idempotent.","operationId":"enable_npu_api_npu_enable_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/npu/models":{"get":{"tags":["npu"],"summary":"List Npu Models","operationId":"list_npu_models_api_npu_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/npu/downloads":{"get":{"tags":["npu"],"summary":"List Npu Downloads","description":"Pulls still running, so a reopened page can follow them again.","operationId":"list_npu_downloads_api_npu_downloads_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/npu/models/{model_id}/download":{"post":{"tags":["npu"],"summary":"Download Npu Model","description":"Stream download progress through a final complete or error event.\n\nDisconnecting stops progress updates, not the download.","operationId":"download_npu_model_api_npu_models__model_id__download_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["npu"],"summary":"Follow Npu Download","description":"The running pull's progress, from its first event. Never starts or retries one.","operationId":"follow_npu_download_api_npu_models__model_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/npu/models/{model_id}/download/cancel":{"post":{"tags":["npu"],"summary":"Cancel Npu Download","description":"Stop the running pull at its next chunk; its partial files stay, so Download resumes.","operationId":"cancel_npu_download_api_npu_models__model_id__download_cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/npu/models/{model_id}":{"delete":{"tags":["npu"],"summary":"Delete Npu Model","operationId":"delete_npu_model_api_npu_models__model_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/npu/checkpoints/{checkpoint}":{"delete":{"tags":["npu"],"summary":"Delete Npu Checkpoint","description":"Settings > Storage's delete: its folders know their FastFlowLM checkpoint, not lemond's id.","operationId":"delete_npu_checkpoint_api_npu_checkpoints__checkpoint__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"checkpoint","in":"path","required":true,"schema":{"type":"string","title":"Checkpoint"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/load-checkpoint":{"post":{"tags":["export"],"summary":"Load Checkpoint","description":"Load a checkpoint into the export backend (ExportBackend.load_checkpoint).\n\nExport runs in its own subprocess and is allowed to run in parallel with\ntraining and inference. We deliberately do NOT stop training or unload the\nchat model here -- if the GPU runs out of memory the load/export fails with\na clear error instead of tearing down the user's other running workloads.","operationId":"load_checkpoint_api_export_load_checkpoint_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoadCheckpointRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/cleanup":{"post":{"tags":["export"],"summary":"Cleanup Export Memory","description":"Cleanup export-related models from memory (ExportBackend.cleanup_memory).","operationId":"cleanup_export_memory_api_export_cleanup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOperationResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/cancel":{"post":{"tags":["export"],"summary":"Cancel Export","description":"Cancel the in-flight export by terminating its worker subprocess.\n\nOnly the export subprocess is killed; training and inference run in their\nown subprocesses and keep going.","operationId":"cancel_export_api_export_cancel_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ExportCancelRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/status":{"get":{"tags":["export"],"summary":"Get Export Status","description":"Get export backend status (loaded checkpoint, model type, PEFT flag).","operationId":"get_export_status_api_export_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/logs":{"get":{"tags":["export"],"summary":"Get Export Logs","description":"Tunnel-safe JSON fallback for the live export log stream.\n\nThe SSE endpoint (`/logs/stream`) is the low-latency path, but some reverse\nproxies -- notably Cloudflare quick tunnels (`*.trycloudflare.com`) used by\n`--secure` mode -- buffer streamed GET responses until the stream closes.\nThis endpoint returns the same ring-buffer lines as a short, complete JSON\nresponse that no proxy buffers, so the frontend can poll it and still show\nlogs in near real time even where the stream itself does not arrive.\n\nShares the orchestrator's monotonic `seq` cursor with the SSE stream, so the\ntwo transports can run together and the client de-dupes by seq.","operationId":"get_export_logs_api_export_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Return log entries with seq strictly greater than this cursor.","title":"Since"},"description":"Return log entries with seq strictly greater than this cursor."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/decision-info":{"get":{"tags":["export"],"summary":"Get Decision Export Info","description":"GGUF export options for a decision model checkpoint (Clef / Laya); decision is null otherwise.","operationId":"get_decision_export_info_api_export_decision_info_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"checkpoint_path","in":"query","required":true,"schema":{"type":"string","description":"Local checkpoint folder","title":"Checkpoint Path"},"description":"Local checkpoint folder"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportDecisionInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/moe-info":{"get":{"tags":["export"],"summary":"Get Moe Info","description":"Routed-expert counts for the REAP option on the export page; null counts for a dense model.\nThe token (gated repos) comes in the X-HF-Token header, as for /api/models/export-size.","operationId":"get_moe_info_api_export_moe_info_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string","maxLength":4096,"description":"Local checkpoint / model folder or Hub id","title":"Model"},"description":"Local checkpoint / model folder or Hub id"},{"name":"X-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoeInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/export/merged":{"post":{"tags":["export"],"summary":"Export Merged Model","description":"Export a merged PEFT model (16-bit or 4-bit), optionally pushing to Hub.\n\nWraps ExportBackend.export_merged_model.","operationId":"export_merged_model_api_export_export_merged_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportMergedModelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/llm-compressor-probe":{"get":{"tags":["export"],"summary":"Probe Llm Compressor Export","operationId":"probe_llm_compressor_export_api_export_llm_compressor_probe_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LlmCompressorExportProbeResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/export/base":{"post":{"tags":["export"],"summary":"Export Base Model","description":"Export a non-PEFT base model, optionally pushing to Hub.\n\nWraps ExportBackend.export_base_model.","operationId":"export_base_model_api_export_export_base_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportBaseModelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/export/gguf":{"post":{"tags":["export"],"summary":"Export Gguf","description":"Export the current model to GGUF format, optionally pushing to Hub.\n\nWraps ExportBackend.export_gguf.","operationId":"export_gguf_api_export_export_gguf_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportGGUFRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/convert/q4nx":{"post":{"tags":["export"],"summary":"Convert Q4Nx","description":"Convert an existing GGUF (local file or Hub repo) to FastFlowLM Q4NX for the AMD NPU.\n\nNeeds no loaded checkpoint or GPU, so it runs here rather than in the export worker.","operationId":"convert_q4nx_api_export_convert_q4nx_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertQ4NXRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/export/diffusion-lora":{"post":{"tags":["export"],"summary":"Export Diffusion Lora","description":"Save a copy of an image-generation LoRA (weights plus metadata sidecar) to a folder.\n\nA plain file copy out of the Images LoRA catalog: no loaded model, GPU or export worker.","operationId":"export_diffusion_lora_api_export_export_diffusion_lora_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportDiffusionLoRARequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/export/lora":{"post":{"tags":["export"],"summary":"Export Lora Adapter","description":"Export only the LoRA adapter (if the loaded model is PEFT).\n\nWraps ExportBackend.export_lora_adapter.","operationId":"export_lora_adapter_api_export_export_lora_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportLoRAAdapterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportOperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/export/logs/stream":{"post":{"tags":["export"],"summary":"Stream Export Logs","description":"Stream live stdout/stderr from the export worker subprocess as\nServer-Sent Events.\n\nEvents:\n  - `log`      : a single log line (data: {\"stream\",\"line\",\"ts\"})\n  - `heartbeat`: periodic keepalive when no new lines are available\n  - `complete` : once the worker is idle and no new lines arrived for\n                 ~1 second. Clients should close.\n  - `error`    : unrecoverable server-side error\n\nEach event's `id:` field is the log entry's monotonic seq number so the\nbrowser can resume via `Last-Event-ID` on reconnect.","operationId":"stream_export_logs_api_export_logs_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Return log entries with seq strictly greater than this cursor.","title":"Since"},"description":"Return log entries with seq strictly greater than this cursor."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/import/{source}/status":{"get":{"tags":["import"],"summary":"External Import Status","operationId":"external_import_status_api_import__source__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source","in":"path","required":true,"schema":{"enum":["cursor","claude","codex"],"type":"string","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalImportStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/import/{source}":{"post":{"tags":["import"],"summary":"External Import","operationId":"external_import_api_import__source__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source","in":"path","required":true,"schema":{"enum":["cursor","claude","codex"],"type":"string","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/knowledge-bases":{"get":{"tags":["rag"],"summary":"List Knowledge Bases","operationId":"list_knowledge_bases_api_rag_knowledge_bases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Knowledge Bases Api Rag Knowledge Bases Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["rag"],"summary":"Create Knowledge Base","operationId":"create_knowledge_base_api_rag_knowledge_bases_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKbRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Knowledge Base Api Rag Knowledge Bases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/rag/knowledge-bases/{kb_id}":{"patch":{"tags":["rag"],"summary":"Update Knowledge Base","operationId":"update_knowledge_base_api_rag_knowledge_bases__kb_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","title":"Kb Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKbRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Knowledge Base Api Rag Knowledge Bases  Kb Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["rag"],"summary":"Delete Knowledge Base","operationId":"delete_knowledge_base_api_rag_knowledge_bases__kb_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Knowledge Base Api Rag Knowledge Bases  Kb Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/knowledge-bases/{kb_id}/documents":{"post":{"tags":["rag"],"summary":"Upload Kb Document","operationId":"upload_kb_document_api_rag_knowledge_bases__kb_id__documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","title":"Kb Id"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_kb_document_api_rag_knowledge_bases__kb_id__documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Kb Document Api Rag Knowledge Bases  Kb Id  Documents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["rag"],"summary":"List Kb Documents","operationId":"list_kb_documents_api_rag_knowledge_bases__kb_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Kb Documents Api Rag Knowledge Bases  Kb Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/knowledge-bases/{kb_id}/linked-folders":{"post":{"tags":["rag"],"summary":"Link Kb Folder","operationId":"link_kb_folder_api_rag_knowledge_bases__kb_id__linked_folders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","title":"Kb Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkFolderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Link Kb Folder Api Rag Knowledge Bases  Kb Id  Linked Folders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/threads/{thread_id}/documents":{"post":{"tags":["rag"],"summary":"Upload Thread Document","operationId":"upload_thread_document_api_rag_threads__thread_id__documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_thread_document_api_rag_threads__thread_id__documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Thread Document Api Rag Threads  Thread Id  Documents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["rag"],"summary":"List Thread Documents","operationId":"list_thread_documents_api_rag_threads__thread_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Thread Documents Api Rag Threads  Thread Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/projects/{project_id}/documents":{"post":{"tags":["rag"],"summary":"Upload Project Document","operationId":"upload_project_document_api_rag_projects__project_id__documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_project_document_api_rag_projects__project_id__documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Project Document Api Rag Projects  Project Id  Documents Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["rag"],"summary":"List Project Documents","operationId":"list_project_documents_api_rag_projects__project_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Project Documents Api Rag Projects  Project Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/projects/{project_id}/linked-folders":{"post":{"tags":["rag"],"summary":"Link Project Folder","operationId":"link_project_folder_api_rag_projects__project_id__linked_folders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkFolderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Link Project Folder Api Rag Projects  Project Id  Linked Folders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/linked-folders":{"get":{"tags":["rag"],"summary":"List Linked Folders","operationId":"list_linked_folders_api_rag_linked_folders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scope_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Type"}},{"name":"scope_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Linked Folders Api Rag Linked Folders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/linked-folders/{folder_id}":{"patch":{"tags":["rag"],"summary":"Update Linked Folder","operationId":"update_linked_folder_api_rag_linked_folders__folder_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFolderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Linked Folder Api Rag Linked Folders  Folder Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["rag"],"summary":"Unlink Folder","operationId":"unlink_folder_api_rag_linked_folders__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"remove_index","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Remove Index"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unlink Folder Api Rag Linked Folders  Folder Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/linked-folders/{folder_id}/sync":{"post":{"tags":["rag"],"summary":"Sync Folder","operationId":"sync_folder_api_rag_linked_folders__folder_id__sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sync Folder Api Rag Linked Folders  Folder Id  Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/linked-folders/{folder_id}/rebuild":{"post":{"tags":["rag"],"summary":"Rebuild Folder","operationId":"rebuild_folder_api_rag_linked_folders__folder_id__rebuild_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rebuild Folder Api Rag Linked Folders  Folder Id  Rebuild Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/documents":{"get":{"tags":["rag"],"summary":"List All Uploaded Documents","description":"Every uploaded file across chats, projects, and knowledge bases (settings\nData tab).","operationId":"list_all_uploaded_documents_api_rag_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List All Uploaded Documents Api Rag Documents Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/rag/documents/{document_id}":{"delete":{"tags":["rag"],"summary":"Delete Document","operationId":"delete_document_api_rag_documents__document_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Document Api Rag Documents  Document Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/reembed":{"get":{"tags":["rag"],"summary":"Reembed Status","description":"Documents indexed under another embedder than the current one, and the re-embed job.","operationId":"reembed_status_api_rag_reembed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reembed Status Api Rag Reembed Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["rag"],"summary":"Start Reembed","operationId":"start_reembed_api_rag_reembed_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Start Reembed Api Rag Reembed Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/rag/reembed/cancel":{"post":{"tags":["rag"],"summary":"Cancel Reembed","operationId":"cancel_reembed_api_rag_reembed_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Cancel Reembed Api Rag Reembed Cancel Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/rag/jobs/{job_id}":{"get":{"tags":["rag"],"summary":"Job Status","operationId":"job_status_api_rag_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Job Status Api Rag Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/jobs/{job_id}/events":{"post":{"tags":["rag"],"summary":"Job Events","operationId":"job_events_api_rag_jobs__job_id__events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/linked-folder-jobs/{job_id}":{"get":{"tags":["rag"],"summary":"Folder Job Status","operationId":"folder_job_status_api_rag_linked_folder_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Folder Job Status Api Rag Linked Folder Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/linked-folder-jobs/{job_id}/events":{"post":{"tags":["rag"],"summary":"Folder Job Events","operationId":"folder_job_events_api_rag_linked_folder_jobs__job_id__events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/extract-text":{"post":{"tags":["rag"],"summary":"Extract Text","operationId":"extract_text_api_rag_extract_text_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_extract_text_api_rag_extract_text_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Extract Text Api Rag Extract Text Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/rag/search":{"post":{"tags":["rag"],"summary":"Search","operationId":"search_api_rag_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Search Api Rag Search Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/rag/documents/{document_id}/file-url":{"get":{"tags":["rag"],"summary":"Document File Url","description":"Mint a short-lived signed URL for the source file.","operationId":"document_file_url_api_rag_documents__document_id__file_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Document File Url Api Rag Documents  Document Id  File Url Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/documents/{document_id}/file-signed":{"get":{"tags":["rag"],"summary":"Document File Signed","description":"Serve the source file gated by the HMAC token (no bearer) so pdf.js range\nrequests work.","operationId":"document_file_signed_api_rag_documents__document_id__file_signed_get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/runs":{"get":{"tags":["training-history"],"summary":"List Training Runs","description":"List training runs, newest first.","operationId":"list_training_runs_api_train_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingRunListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/runs/{run_id}":{"get":{"tags":["training-history"],"summary":"Get Training Run Detail","description":"Get a single training run with full config and metrics.","operationId":"get_training_run_detail_api_train_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingRunDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["training-history"],"summary":"Update Training Run","description":"Update mutable fields on a training run (currently only display_name).","operationId":"update_training_run_api_train_runs__run_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingRunUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingRunSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["training-history"],"summary":"Delete Training Run","description":"Delete a training run and its metrics (CASCADE).","operationId":"delete_training_run_api_train_runs__run_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"delete_artifacts","in":"query","required":false,"schema":{"type":"boolean","description":"Also delete the run's output directory on disk","default":false,"title":"Delete Artifacts"},"description":"Also delete the run's output directory on disk"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingRunDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/local":{"get":{"tags":["hub"],"summary":"List Local Models","operationId":"list_local_models_api_hub_local_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"models_dir","in":"query","required":false,"schema":{"type":"string","description":"Directory to scan for local model folders","default":"./models","title":"Models Dir"},"description":"Directory to scan for local model folders"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hub__schemas__inventory__LocalModelListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/unsloth-models":{"get":{"tags":["hub"],"summary":"List Unsloth Models","description":"Models fine-tuned or exported in Unsloth, for the Hub's On Device list.","operationId":"list_unsloth_models_api_hub_unsloth_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hub__schemas__inventory__LocalModelListResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/scan-folders":{"get":{"tags":["hub"],"summary":"Get Scan Folders","operationId":"get_scan_folders_api_hub_scan_folders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanFoldersResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["hub"],"summary":"Add Scan Folder Endpoint","operationId":"add_scan_folder_endpoint_api_hub_scan_folders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/hub__schemas__inventory__AddScanFolderRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hub__schemas__inventory__ScanFolderInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/scan-folders/{folder_id}":{"delete":{"tags":["hub"],"summary":"Remove Scan Folder Endpoint","operationId":"remove_scan_folder_endpoint_api_hub_scan_folders__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveScanFolderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/models-folder":{"get":{"tags":["hub"],"summary":"Get Models Folder","operationId":"get_models_folder_api_hub_models_folder_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelsFolderResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/sdxl-checkpoint":{"get":{"tags":["hub"],"summary":"Is Sdxl Checkpoint","operationId":"is_sdxl_checkpoint_api_hub_sdxl_checkpoint_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":192,"title":"Repo Id"}},{"name":"filename","in":"query","required":true,"schema":{"type":"string","pattern":"(?i)^(?:[^/\\\\.][^/\\\\]*/)*[^/\\\\]+\\.safetensors$","title":"Filename"}},{"name":"revision","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{40}$"},{"type":"null"}],"title":"Revision"}},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"boolean","title":"Response Is Sdxl Checkpoint Api Hub Sdxl Checkpoint Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/gguf-variants":{"get":{"tags":["hub"],"summary":"Get Gguf Variants","operationId":"get_gguf_variants_api_hub_gguf_variants_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace repo ID (e.g. 'unsloth/gemma-3-4b-it-GGUF')","title":"Repo Id"},"description":"HuggingFace repo ID (e.g. 'unsloth/gemma-3-4b-it-GGUF')"},{"name":"prefer_local_cache","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Prefer Local Cache"}},{"name":"offline","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Offline"}},{"name":"local_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Path"}},{"name":"include_cache_locations","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Cache Locations"}},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hub__schemas__inventory__GgufVariantsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/download":{"post":{"tags":["hub"],"summary":"Download Model","operationId":"download_model_api_hub_download_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadModelRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/download/cancel":{"post":{"tags":["hub"],"summary":"Cancel Download Model","operationId":"cancel_download_model_api_hub_download_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelDownloadRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/download-status":{"get":{"tags":["hub"],"summary":"Get Download Status","operationId":"get_download_status_api_hub_download_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace repo ID","title":"Repo Id"},"description":"HuggingFace repo ID"},{"name":"gguf_variant","in":"query","required":false,"schema":{"type":"string","description":"Quantization variant (empty for safetensors)","default":"","title":"Gguf Variant"},"description":"Quantization variant (empty for safetensors)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadJobStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/active-downloads":{"get":{"tags":["hub"],"summary":"Get Active Downloads","operationId":"get_active_downloads_api_hub_active_downloads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":false,"schema":{"type":"string","description":"HuggingFace repo ID","default":"","title":"Repo Id"},"description":"HuggingFace repo ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveDownloadsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/transport-status":{"get":{"tags":["hub"],"summary":"Get Model Transport Status","operationId":"get_model_transport_status_api_hub_transport_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace repo ID","title":"Repo Id"},"description":"HuggingFace repo ID"},{"name":"gguf_variant","in":"query","required":false,"schema":{"type":"string","description":"Quantization variant (empty for safetensors)","default":"","title":"Gguf Variant"},"description":"Quantization variant (empty for safetensors)"},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/gguf-download-progress":{"get":{"tags":["hub"],"summary":"Get Gguf Download Progress","operationId":"get_gguf_download_progress_api_hub_gguf_download_progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace repo ID","title":"Repo Id"},"description":"HuggingFace repo ID"},{"name":"variant","in":"query","required":false,"schema":{"type":"string","description":"Quantization variant (e.g. UD-TQ1_0)","default":"","title":"Variant"},"description":"Quantization variant (e.g. UD-TQ1_0)"},{"name":"expected_bytes","in":"query","required":false,"schema":{"type":"integer","description":"Expected total download size in bytes","default":0,"title":"Expected Bytes"},"description":"Expected total download size in bytes"},{"name":"engram_precision","in":"query","required":false,"schema":{"type":"string","maxLength":32,"description":"Standalone Engram table the load fetches, if any","default":"","title":"Engram Precision"},"description":"Standalone Engram table the load fetches, if any"},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadProgressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/download-progress":{"get":{"tags":["hub"],"summary":"Get Download Progress","operationId":"get_download_progress_api_hub_download_progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace repo ID","title":"Repo Id"},"description":"HuggingFace repo ID"},{"name":"expected_bytes","in":"query","required":false,"schema":{"type":"integer","description":"Expected total download size in bytes","default":0,"title":"Expected Bytes"},"description":"Expected total download size in bytes"},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadProgressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/cached-gguf":{"get":{"tags":["hub"],"summary":"List Cached Gguf","operationId":"list_cached_gguf_api_hub_cached_gguf_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachedGgufResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/cached-models":{"get":{"tags":["hub"],"summary":"List Cached Models","operationId":"list_cached_models_api_hub_cached_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hub__schemas__inventory__CachedModelsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/hidden-models":{"get":{"tags":["hub"],"summary":"List Hidden Models","operationId":"list_hidden_models_api_hub_hidden_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HiddenModelsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/delete-impact":{"post":{"tags":["hub"],"summary":"Delete Impact","description":"preview a delete without mutation; POST avoids path-shaped repo IDs.","operationId":"delete_impact_api_hub_delete_impact_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_delete_impact_api_hub_delete_impact_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteImpactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/orphan-companions":{"get":{"tags":["hub"],"summary":"Orphan Companions","description":"list unused companion assets; removal still uses the guarded delete.","operationId":"orphan_companions_api_hub_orphan_companions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrphanCompanionsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/local/reveal":{"post":{"tags":["hub"],"summary":"Reveal Local Model","description":"Reveal an on-device model outside the HF cache. `id` picks one of several rows sharing a path.","operationId":"reveal_local_model_api_hub_local_reveal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_reveal_local_model_api_hub_local_reveal_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/local/delete":{"delete":{"tags":["hub"],"summary":"Delete Local Model","description":"Delete an on-device model outside the HF cache listed by /local.","operationId":"delete_local_model_api_hub_local_delete_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_delete_local_model_api_hub_local_delete_delete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/delete-cached":{"delete":{"tags":["hub"],"summary":"Delete Cached Model","operationId":"delete_cached_model_api_hub_delete_cached_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_delete_cached_model_api_hub_delete_cached_delete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCachedModelResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/datasets/upload":{"post":{"tags":["hub"],"summary":"Upload Dataset","operationId":"upload_dataset_api_hub_datasets_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_dataset_api_hub_datasets_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hub__schemas__datasets__UploadDatasetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/datasets/local":{"get":{"tags":["hub"],"summary":"List Local Datasets","operationId":"list_local_datasets_api_hub_datasets_local_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/hub__schemas__datasets__LocalDatasetsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/datasets/local/upload":{"delete":{"tags":["hub"],"summary":"Delete Uploaded Dataset","operationId":"delete_uploaded_dataset_api_hub_datasets_local_upload_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_delete_uploaded_dataset_api_hub_datasets_local_upload_delete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Delete Uploaded Dataset Api Hub Datasets Local Upload Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/datasets/cached":{"get":{"tags":["hub"],"summary":"List Cached Datasets","operationId":"list_cached_datasets_api_hub_datasets_cached_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CachedDatasetsResponse"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["hub"],"summary":"Delete Cached Dataset","operationId":"delete_cached_dataset_api_hub_datasets_cached_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_delete_cached_dataset_api_hub_datasets_cached_delete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCachedDatasetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/datasets/local-options":{"post":{"tags":["hub"],"summary":"Get Local Dataset Options","operationId":"get_local_dataset_options_api_hub_datasets_local_options_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalDatasetOptionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalDatasetOptionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/datasets/hub-options":{"post":{"tags":["hub"],"summary":"Get Hub Dataset Options","operationId":"get_hub_dataset_options_api_hub_datasets_hub_options_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubDatasetOptionsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubDatasetOptionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/datasets/download-progress":{"get":{"tags":["hub"],"summary":"Get Dataset Download Progress","operationId":"get_dataset_download_progress_api_hub_datasets_download_progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace dataset repo ID, e.g. 'unsloth/LaTeX_OCR'","title":"Repo Id"},"description":"HuggingFace dataset repo ID, e.g. 'unsloth/LaTeX_OCR'"},{"name":"expected_bytes","in":"query","required":false,"schema":{"type":"integer","description":"Expected total download size in bytes","default":0,"title":"Expected Bytes"},"description":"Expected total download size in bytes"},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadProgressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/datasets/download":{"post":{"tags":["hub"],"summary":"Download Dataset","operationId":"download_dataset_api_hub_datasets_download_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadDatasetRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetDownloadStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/datasets/download/cancel":{"post":{"tags":["hub"],"summary":"Cancel Dataset Download","operationId":"cancel_dataset_download_api_hub_datasets_download_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelDatasetDownloadRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelDatasetDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/hub/datasets/download-status":{"get":{"tags":["hub"],"summary":"Get Dataset Download Status","operationId":"get_dataset_download_status_api_hub_datasets_download_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace dataset repo ID","title":"Repo Id"},"description":"HuggingFace dataset repo ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetDownloadJobStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/datasets/active-downloads":{"get":{"tags":["hub"],"summary":"Get Active Dataset Downloads","operationId":"get_active_dataset_downloads_api_hub_datasets_active_downloads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":false,"schema":{"type":"string","description":"HuggingFace dataset repo ID","default":"","title":"Repo Id"},"description":"HuggingFace dataset repo ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveDownloadsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/datasets/transport-status":{"get":{"tags":["hub"],"summary":"Get Dataset Transport Status","operationId":"get_dataset_transport_status_api_hub_datasets_transport_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"repo_id","in":"query","required":true,"schema":{"type":"string","description":"HuggingFace dataset repo ID","title":"Repo Id"},"description":"HuggingFace dataset repo ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/datasets/check-format":{"post":{"tags":["hub"],"summary":"Check Format","operationId":"check_format_api_hub_datasets_check_format_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/hub__schemas__datasets__CheckFormatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckFormatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/datasets/ai-assist-mapping":{"post":{"tags":["hub"],"summary":"Ai Assist Mapping","operationId":"ai_assist_mapping_api_hub_datasets_ai_assist_mapping_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/hub__schemas__datasets__AiAssistMappingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiAssistMappingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/picker/validate-chat-template":{"post":{"tags":["picker"],"summary":"Validate Chat Template Route","operationId":"validate_chat_template_route_api_picker_validate_chat_template_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateChatTemplateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateChatTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/picker/chat-template/{model_name}":{"get":{"tags":["picker"],"summary":"Get Default Chat Template Route","operationId":"get_default_chat_template_route_api_picker_chat_template__model_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model_name","in":"path","required":true,"schema":{"type":"string","title":"Model Name"}},{"name":"gguf_variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant"}},{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/token/validate":{"post":{"tags":["hub"],"summary":"Validate Token","operationId":"validate_token_api_hub_token_validate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Unsloth-HF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"X-Unsloth-Hf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HfTokenValidationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/proxy/{path}":{"head":{"tags":["hub"],"summary":"Relay","operationId":"relay_api_hub_proxy__path__head","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hub"],"summary":"Relay","operationId":"relay_api_hub_proxy__path__head","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub/datasets-server-proxy/{path}":{"head":{"tags":["hub"],"summary":"Relay","operationId":"relay_api_hub_datasets_server_proxy__path__head","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hub"],"summary":"Relay","operationId":"relay_api_hub_datasets_server_proxy__path__head","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/youtube/transcript":{"post":{"tags":["youtube"],"summary":"Get Transcript","operationId":"get_transcript_api_youtube_transcript_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/browser/fetch":{"post":{"tags":["browser"],"summary":"Browser Fetch","description":"Fetch a page: HTML as JSON for the shell, anything else raw with its content type.","operationId":"browser_fetch_api_browser_fetch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserFetchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/browser/request":{"post":{"tags":["browser"],"summary":"Browser Page Request","description":"A page's fetch or XHR to its own site, which its opaque-origin sandbox can't make (browser_network.py).","operationId":"browser_page_request_api_browser_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserPageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/browser/cookie":{"post":{"tags":["browser"],"summary":"Browser Page Cookie","description":"A page's ``document.cookie`` write, so the site sees it on the page's next request.","operationId":"browser_page_cookie_api_browser_cookie_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserPageCookie"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/browser/clear-cookies":{"post":{"tags":["browser"],"summary":"Browser Clear Cookies","description":"Forget the cookies sites set on this account's pages (Clear browsing data).","operationId":"browser_clear_cookies_api_browser_clear_cookies_post","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/api/liveness":{"get":{"summary":"Liveness Check","description":"Cheap process liveness for desktop port validation.","operationId":"liveness_check_api_liveness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"summary":"Health Check","description":"Liveness plus launcher capability bits; host fingerprint gated on authentication.\n\nUnauthenticated callers get non-sensitive fields (service, studio_root_id,\nchat_only, desktop_*, native_path_leases_supported) to re-adopt a sibling\nbackend and gate UI before a token exists. version / studio_version /\ndevice_type require authentication, including a valid desktop secret.","operationId":"health_check_api_health_get","parameters":[{"name":"detect_hardware","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Detect Hardware"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/studio/install-source":{"get":{"summary":"Studio Install Source","description":"Return source-aware install metadata without remote update checks.","operationId":"studio_install_source_api_studio_install_source_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/studio/update-status":{"get":{"summary":"Studio Update Status","description":"Return source-aware manual update status for browser-served Unsloth.","operationId":"studio_update_status_api_studio_update_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/studio/release-notes":{"get":{"summary":"Studio Release Notes","description":"Return the newest release's notes. `version` is echoed, not looked up.","operationId":"studio_release_notes_api_studio_release_notes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"version","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"Version"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/studio/download-transport-capabilities":{"get":{"summary":"Studio Download Transport Capabilities","operationId":"studio_download_transport_capabilities_api_studio_download_transport_capabilities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"probe","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Probe"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportCapabilities"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shutdown":{"post":{"summary":"Shutdown Server","description":"Gracefully shut down the Unsloth Studio server.\n\nCalled by the frontend quit dialog so users can stop the server from the UI\nwithout the CLI or killing the process manually.","operationId":"shutdown_server_api_shutdown_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/desktop/shutdown":{"post":{"summary":"Desktop Shutdown Server","description":"The desktop shell's quit path, authenticated by its secret.","operationId":"desktop_shutdown_server_api_desktop_shutdown_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/system":{"get":{"summary":"Get System Info","description":"Get system information.\n\nAuth-gated: the response (platform, Python/GPU, memory, ML packages) can\nfingerprint a host, which matters in -H 0.0.0.0 / Colab / Tauri-relayed\nsetups where remote callers can reach /api/system.","operationId":"get_system_info_api_system_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refresh_memory","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh Memory"}},{"name":"gpu_max_age","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gpu Max Age"}},{"name":"probe_media","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Probe Media"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/disk":{"get":{"summary":"Get Disk Space","description":"Free space where downloads land. One syscall, and nothing else.\n\nSeparate from /api/system because that route enumerates GPUs, reads package metadata and\nsamples CPU: fine for a screen the user is looking at, far too much to run on the chance\nthat a disk is filling. The low-disk notice asks for THIS instead, and only when a download\nis about to start.\n\nshutil.disk_usage is statvfs on Linux and macOS and GetDiskFreeSpaceExW on Windows, so this\nis microseconds on every platform Unsloth runs on and needs no directory walk. Note that on\nWindows it reports the quota available to the CALLING user, which is the number that decides\nwhether the download fits, so that difference is the correct one.\n\nMeasured at the models root rather than the filesystem root: those are different volumes\nwhenever HF_HUB_CACHE, or the Unsloth root, sits on another disk, and the free space that\nmatters is the one the bytes are going to.\n\nBoth roots that receive bytes are measured, not just the hub one. HF_XET_CACHE is resolved\nindependently of HF_HUB_CACHE and holds the Xet chunks every download now streams through,\nso the two can sit on different volumes and the wrong one has ample room. The TIGHTEST\nreading wins, because the volume that runs out first is the one that stops the download.\nDeduplicated by device, so the ordinary install where both live on one disk still costs a\nsingle syscall.","operationId":"get_disk_space_api_system_disk_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/system/gpu-visibility":{"get":{"summary":"Get Gpu Visibility","operationId":"get_gpu_visibility_api_system_gpu_visibility_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/system/hardware":{"get":{"summary":"Get Hardware Info","description":"Return GPU name, total VRAM, and key ML package versions.\n\nGated behind auth alongside /api/system -- same fingerprinting concern.\n/api/system/gpu-visibility is also auth-gated.\n\n``include_details`` is for About/diagnostics. The default response stays\ncheap for callers that only need the primary GPU summary, like training\nmethod auto-selection. Sync def (not async): hardware/detail probes can\nshell out, and FastAPI runs sync endpoints in a threadpool.","operationId":"get_hardware_info_api_system_hardware_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_details","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Details"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Serve Root","operationId":"serve_root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/{full_path}":{"get":{"summary":"Serve Frontend","operationId":"serve_frontend__full_path__get","parameters":[{"name":"full_path","in":"path","required":true,"schema":{"type":"string","title":"Full Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccountActiveRequest":{"properties":{"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["is_active"],"title":"AccountActiveRequest"},"AccountListResponse":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/AccountResponse"},"type":"array","title":"Accounts"}},"type":"object","required":["accounts"],"title":"AccountListResponse"},"AccountModelAccessRequest":{"properties":{"model_allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Model Allowlist","description":"Hugging Face repo ids or org/* patterns; null or empty allows every model"}},"type":"object","title":"AccountModelAccessRequest"},"AccountResponse":{"properties":{"account_id":{"type":"string","title":"Account Id"},"username":{"type":"string","title":"Username"},"role":{"type":"string","title":"Role"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","title":"Created At"},"setup_code_pending":{"type":"boolean","title":"Setup Code Pending"},"model_allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Model Allowlist"},"login_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Alias"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["account_id","username","role","is_active","created_at","setup_code_pending"],"title":"AccountResponse"},"AccountSetupResponse":{"properties":{"account":{"$ref":"#/components/schemas/AccountResponse"},"setup_code":{"type":"string","title":"Setup Code"},"setup_code_expires_at":{"type":"string","title":"Setup Code Expires At"}},"type":"object","required":["account","setup_code","setup_code_expires_at"],"title":"AccountSetupResponse"},"ActiveDownload":{"properties":{"repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Id"},"variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"},"transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transport"},"cancel_transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Transport"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"load_attached":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Load Attached"},"state":{"type":"string","title":"State"},"files":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Files","description":"For a SCOPED job (variant '@name'), the exact file list it is fetching; null for a full-snapshot or variant download. Every file set of one repo shares the scope slot, so an adopting client needs this to tell whether a live job is its own transfer or a sibling checkpoint's."},"generation":{"type":"integer","title":"Generation","description":"Current run generation; an adopting client stores it so a later cancel is scoped to this exact run.","default":0},"engram_precision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engram Precision","description":"The standalone Engram table this GGUF job fetches in place of the quant's own; null when it fetches the quant's own"}},"type":"object","required":["state"],"title":"ActiveDownload","description":"One in-flight download for a repo. ``variant`` is null for safetensors."},"ActiveDownloadsResponse":{"properties":{"downloads":{"items":{"$ref":"#/components/schemas/ActiveDownload"},"type":"array","title":"Downloads"}},"type":"object","required":["downloads"],"title":"ActiveDownloadsResponse"},"AiAssistMappingResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"suggested_mapping":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Suggested Mapping"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"user_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Template"},"assistant_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assistant Template"},"label_mapping":{"anyOf":[{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"type":"object"},{"type":"null"}],"title":"Label Mapping"},"dataset_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Type"},"is_conversational":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Conversational"},"user_notification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Notification"}},"type":"object","required":["success"],"title":"AiAssistMappingResponse"},"AllSkillsEnabledRequest":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"additionalProperties":false,"type":"object","required":["enabled"],"title":"AllSkillsEnabledRequest"},"AnePrefillAvailabilityRequest":{"properties":{"model_path":{"type":"string","title":"Model Path","description":"Model identifier or local path"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Token for gated repositories"}},"type":"object","required":["model_path"],"title":"AnePrefillAvailabilityRequest","description":"A model whose run settings may offer MLX Neural Engine prefill."},"AnePrefillAvailabilityResponse":{"properties":{"available":{"type":"boolean","title":"Available"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Cause when available is false: 'not_downloaded', 'unsupported_model', 'unsupported_zoo', 'probe_failed', or unsloth_zoo's own reason ('no_neural_engine', 'no_eligible_mlps')."}},"type":"object","required":["available"],"title":"AnePrefillAvailabilityResponse","description":"Whether a load of this model could run MLX Neural Engine prefill, judged from its downloaded files."},"AnthropicImageBlock":{"properties":{"type":{"type":"string","const":"image","title":"Type"},"source":{"$ref":"#/components/schemas/AnthropicImageSource"}},"type":"object","required":["type","source"],"title":"AnthropicImageBlock"},"AnthropicImageSource":{"properties":{"type":{"type":"string","enum":["base64","url"],"title":"Type"},"media_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Type"},"data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["type"],"title":"AnthropicImageSource"},"AnthropicMessage":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/AnthropicTextBlock"},{"$ref":"#/components/schemas/AnthropicImageBlock"},{"$ref":"#/components/schemas/AnthropicToolUseBlock"},{"$ref":"#/components/schemas/AnthropicToolResultBlock"},{"$ref":"#/components/schemas/AnthropicThinkingBlock"},{"$ref":"#/components/schemas/AnthropicRedactedThinkingBlock"},{"$ref":"#/components/schemas/AnthropicUnknownBlock"}]},"type":"array"}],"title":"Content"}},"type":"object","required":["role","content"],"title":"AnthropicMessage"},"AnthropicMessagesRequest":{"properties":{"model":{"type":"string","title":"Model","default":"default"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"messages":{"items":{"$ref":"#/components/schemas/AnthropicMessage"},"type":"array","title":"Messages"},"system":{"anyOf":[{"type":"string"},{"items":{},"type":"array"},{"type":"null"}],"title":"System"},"tools":{"anyOf":[{"items":{"$ref":"#/components/schemas/AnthropicTool"},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{},{"type":"null"}],"title":"Tool Choice"},"stream":{"type":"boolean","title":"Stream","default":false},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"top_k":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top K"},"seed":{"anyOf":[{"type":"integer","maximum":1.8446744073709552e+19,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Seed","description":"[x-unsloth] Best-effort deterministic sampling seed."},"stop_sequences":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop Sequences"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"min_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Min P","description":"[x-unsloth] Min-p sampling threshold"},"repetition_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":1.0},{"type":"null"}],"title":"Repetition Penalty","description":"[x-unsloth] Repetition penalty"},"presence_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Presence Penalty","description":"[x-unsloth] Presence penalty"},"enable_tools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Tools"},"enabled_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Enabled Tools"},"thinking":{"anyOf":[{"$ref":"#/components/schemas/AnthropicThinkingConfig"},{"type":"null"}]},"enable_thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Thinking"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","max","xhigh"]},{"type":"null"}],"title":"Reasoning Effort"},"preserve_thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preserve Thinking"},"output_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Config"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id","description":"[x-unsloth] Conversation ID for scoping stateful tool sessions (e.g. stdio MCP); stays per-thread where session_id may be shared project-wide."},"cancel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Id"},"bypass_permissions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bypass Permissions","description":"[x-unsloth] Bypass Permissions: when true, disable the python/terminal execution sandbox (safety checks, command blocklist, resource limits) for server-side tool calls. Secret env vars are still stripped. Declared explicitly (not relied on via extra='allow') so omitted requests default to False instead of raising AttributeError.","default":false},"permission_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permission Mode","description":"[x-unsloth] Permission level for local tool calls: 'ask' pauses every call, 'auto' ('Approve for me') only pauses calls detected as high risk, 'off' ('Run automatically') never pauses while Python and Terminal run in the OS sandbox and otherwise pauses their high-risk calls in a streaming UI chat, 'full' equals bypass_permissions=true. Unset defaults to 'auto' for the per-call gate; a non-streaming request without an explicit mode runs the loop. An unrecognized value (e.g. from a newer client) is treated as 'ask'. Declared explicitly so omitted requests default to None instead of raising AttributeError."},"sandbox_level":{"type":"string","enum":["high","low"],"title":"Sandbox Level","description":"[x-unsloth] Sandbox level for the Python and Terminal tools. 'high' (default) runs them in the OS sandbox when it works and on software safeguards otherwise. 'low' runs them on software safeguards only, so on a streaming UI chat 'off' still asks before their high-risk calls; elsewhere 'off' never prompts, as before. Full access overrides both. Case-insensitive; any other value is rejected.","default":"high"},"auto_heal_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Heal Tool Calls","description":"[x-unsloth] Auto-detect and fix malformed tool calls from model output (mirrors the Chat Completions field; applies to the client-tool passthrough).","default":true},"nudge_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Nudge Tool Calls","description":"[x-unsloth] Opt-in tool-call recovery; mirrors the Chat Completions nudge_tool_calls field and defaults off."}},"additionalProperties":true,"type":"object","required":["messages"],"title":"AnthropicMessagesRequest"},"AnthropicRedactedThinkingBlock":{"properties":{"type":{"type":"string","const":"redacted_thinking","title":"Type"},"data":{"type":"string","title":"Data","default":""}},"additionalProperties":true,"type":"object","required":["type"],"title":"AnthropicRedactedThinkingBlock"},"AnthropicTextBlock":{"properties":{"type":{"type":"string","const":"text","title":"Type"},"text":{"type":"string","title":"Text"}},"type":"object","required":["type","text"],"title":"AnthropicTextBlock"},"AnthropicThinkingBlock":{"properties":{"type":{"type":"string","const":"thinking","title":"Type"},"thinking":{"type":"string","title":"Thinking","default":""},"signature":{"type":"string","title":"Signature","default":""}},"additionalProperties":true,"type":"object","required":["type"],"title":"AnthropicThinkingBlock"},"AnthropicThinkingConfig":{"properties":{"type":{"type":"string","title":"Type","default":"enabled"},"budget_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Tokens"}},"additionalProperties":true,"type":"object","title":"AnthropicThinkingConfig"},"AnthropicTool":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"input_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Schema"}},"additionalProperties":true,"type":"object","title":"AnthropicTool"},"AnthropicToolResultBlock":{"properties":{"type":{"type":"string","const":"tool_result","title":"Type"},"tool_use_id":{"type":"string","title":"Tool Use Id"},"content":{"anyOf":[{"type":"string"},{"items":{},"type":"array"}],"title":"Content","default":""},"is_error":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Error"}},"type":"object","required":["type","tool_use_id"],"title":"AnthropicToolResultBlock"},"AnthropicToolUseBlock":{"properties":{"type":{"type":"string","const":"tool_use","title":"Type"},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"input":{"additionalProperties":true,"type":"object","title":"Input"}},"type":"object","required":["type","id","name","input"],"title":"AnthropicToolUseBlock"},"AnthropicUnknownBlock":{"properties":{"type":{"type":"string","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"AnthropicUnknownBlock"},"ApiKeyListResponse":{"properties":{"api_keys":{"items":{"$ref":"#/components/schemas/ApiKeyResponse"},"type":"array","title":"Api Keys"}},"type":"object","required":["api_keys"],"title":"ApiKeyListResponse","description":"List of API keys for the authenticated user."},"ApiKeyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix","description":"First 8 characters after sk-unsloth- for display"},"created_at":{"type":"string","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"is_active":{"type":"boolean","title":"Is Active"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"access":{"type":"string","enum":["full","inference"],"title":"Access","default":"full"}},"type":"object","required":["id","name","key_prefix","created_at","is_active"],"title":"ApiKeyResponse","description":"Public representation of an API key (never contains the raw key)."},"ApprovePlan":{"properties":{"planRevision":{"type":"integer","minimum":1.0,"title":"Planrevision"},"planHash":{"type":"string","maxLength":64,"minLength":64,"title":"Planhash"}},"additionalProperties":false,"type":"object","required":["planRevision","planHash"],"title":"ApprovePlan"},"AudioAnalyzeRequest":{"properties":{"input_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},{"type":"null"}],"title":"Input Id"},"clip_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},{"type":"null"}],"title":"Clip Id"},"voice_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},{"type":"null"}],"title":"Voice Id"},"expected_text":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Expected Text","description":"Text the audio should say; adds match_score"}},"additionalProperties":false,"type":"object","title":"AudioAnalyzeRequest","description":"``POST /audio/analyze``: measure one clip, upload or voice; nothing is saved."},"AudioAnalyzeResponse":{"properties":{"duration_s":{"type":"number","title":"Duration S"},"sample_rate":{"type":"integer","title":"Sample Rate"},"channels":{"type":"integer","title":"Channels"},"integrated_lufs":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Integrated Lufs","description":"BS.1770 loudness; None for silence"},"true_peak_dbtp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"True Peak Dbtp"},"clipped_samples":{"type":"integer","title":"Clipped Samples"},"clipping_ratio":{"type":"number","title":"Clipping Ratio"},"speech_start_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Speech Start S"},"speech_end_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Speech End S"},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"},"match_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Match Score","description":"1 - word error rate against expected_text; null when the texts are too long to align"},"stt_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stt Model"}},"type":"object","required":["duration_s","sample_rate","channels","clipped_samples","clipping_ratio"],"title":"AudioAnalyzeResponse"},"AudioCancelRequest":{"properties":{"cancel_id":{"type":"string","maxLength":64,"minLength":8,"pattern":"^[A-Za-z0-9_-]+$","title":"Cancel Id"}},"additionalProperties":false,"type":"object","required":["cancel_id"],"title":"AudioCancelRequest"},"AudioCatalogModel":{"properties":{"id":{"type":"string","title":"Id"},"repo_id":{"type":"string","title":"Repo Id"},"folder":{"type":"string","title":"Folder","default":""},"source":{"type":"string","enum":["umbrella","community"],"title":"Source"},"display_name":{"type":"string","title":"Display Name"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"task":{"type":"string","enum":["tts","music","asr","sep",""],"title":"Task","default":""},"workflows":{"items":{"type":"string","enum":["speak","clone","edit","convert","music","separate","transcribe"]},"type":"array","title":"Workflows"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Languages"},"status":{"anyOf":[{"type":"string","enum":["supported","community","experimental","testing","wip"]},{"type":"null"}],"title":"Status"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"estimated_resident_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Resident Gb"},"smallest_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Smallest Size Bytes"},"smallest_estimated_resident_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Smallest Estimated Resident Gb"},"downloaded":{"type":"boolean","title":"Downloaded","default":false},"unsupported_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unsupported Reason"}},"type":"object","required":["id","repo_id","source","display_name"],"title":"AudioCatalogModel","description":"One audio.cpp model Unsloth Studio can offer: an umbrella folder or a Community repo."},"AudioCatalogResponse":{"properties":{"source":{"type":"string","enum":["hub","saved","cache"],"title":"Source"},"fetched_at":{"type":"number","title":"Fetched At"},"runtime_specs":{"type":"boolean","title":"Runtime Specs","default":false},"models":{"items":{"$ref":"#/components/schemas/AudioCatalogModel"},"type":"array","title":"Models"}},"type":"object","required":["source","fetched_at"],"title":"AudioCatalogResponse","description":"The audio.cpp model catalog, with where its umbrella listing came from."},"AudioConvertParams":{"properties":{"mode":{"type":"string","enum":["speech","singing"],"title":"Mode","default":"speech"},"pitch":{"anyOf":[{"type":"integer","maximum":24.0,"minimum":-24.0},{"type":"null"}],"title":"Pitch"},"pitch_auto":{"type":"boolean","title":"Pitch Auto","default":false},"style":{"type":"string","enum":["source","target"],"title":"Style","default":"source"},"voice":{"anyOf":[{"type":"string","enum":["default","manthos","chocola","fraise"]},{"type":"null"}],"title":"Voice"}},"additionalProperties":false,"type":"object","title":"AudioConvertParams"},"AudioCppSubStatus":{"properties":{"update_available":{"type":"boolean","title":"Update Available","description":"True when the chained apply would run a whisper phase.","default":false},"installed_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installed Tag"},"latest_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Tag"},"update_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Update Size Bytes"},"skip_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skip Reason","description":"Why the whisper phase would be skipped (up_to_date | local_link | source_build | not_installed | ...)."}},"type":"object","title":"AudioCppSubStatus","description":"The audio.cpp phase inside the llama update item; latest_tag is the release this Studio pins."},"AudioGalleryFlagsPatch":{"properties":{"pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned","description":"Pin (True) or unpin (False) the clip"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived","description":"Archive (True) or restore (False) the clip"}},"type":"object","title":"AudioGalleryFlagsPatch"},"AudioGalleryItem":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"prompt":{"type":"string","title":"Prompt"},"model":{"type":"string","title":"Model"},"audio_type":{"type":"string","title":"Audio Type"},"sample_rate":{"type":"integer","title":"Sample Rate"},"duration_s":{"type":"number","title":"Duration S"},"created_at":{"type":"string","title":"Created At"},"pinned":{"type":"boolean","title":"Pinned","description":"Pinned to the top of history","default":false},"archived":{"type":"boolean","title":"Archived","description":"Moved to the archived shelf, hidden from history","default":false},"workflow":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow","description":"Audio page workflow that made the clip: speak, clone, edit, convert, music or separate"},"order_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Order At","description":"Unpinned sort key (epoch-second scale): the manual key once dragged, else the file mtime"},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Id","description":"Clips made by one run share this id"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"The clip's part in its run, e.g. output"},"source_clip_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Clip Id","description":"History clip the run took its reference from"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id","description":"Saved voice the run spoke in"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings","description":"Language, options, speed and whether a transcript was used"},"reference_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Name","description":"Name of the reference clip or voice"},"source_input_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Input Id","description":"Uploaded input a conversion took its recording from"},"source_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Name","description":"Name of the recording a run converted"},"target_builtin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Builtin","description":"Built-in voice a conversion converted to"},"target_clip_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Clip Id","description":"History clip a conversion took its target voice from"},"target_input_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Input Id","description":"Uploaded input a conversion took its target voice from"},"source_saved":{"type":"boolean","title":"Source Saved","description":"Served at /audio/gallery/{id}/source/file","default":false}},"type":"object","required":["id","url","prompt","model","audio_type","sample_rate","duration_s","created_at"],"title":"AudioGalleryItem","description":"One persisted TTS clip. ``url`` serves the WAV bytes (auth required)."},"AudioGalleryListResponse":{"properties":{"audio":{"items":{"$ref":"#/components/schemas/AudioGalleryItem"},"type":"array","title":"Audio"},"has_more":{"type":"boolean","title":"Has More","default":false},"next_before_mtime":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Next Before Mtime"},"next_before_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Before Id"},"next_before_pin":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Next Before Pin"}},"type":"object","title":"AudioGalleryListResponse","description":"A window of the audio gallery for infinite scroll: pinned first, then newest first."},"AudioGenerateRequest":{"properties":{"model":{"type":"string","title":"Model","description":"Model identifier (informational; the active model is used)","default":"default"},"messages":{"items":{"$ref":"#/components/schemas/models__inference__ChatMessage"},"type":"array","title":"Messages","description":"Conversation messages"},"stream":{"type":"boolean","title":"Stream","description":"Whether to stream the response via SSE. Default matches OpenAI's spec (`false`); opt into streaming by sending `stream: true`.","default":false},"temperature":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Temperature","default":0.6},"top_p":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Top P","default":0.95},"max_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Tokens","description":"Maximum tokens to generate (None = until EOS)"},"presence_penalty":{"type":"number","maximum":2.0,"minimum":-2.0,"title":"Presence Penalty","description":"Presence penalty: charges a token once if it appears. MLX scores the completion only; llama-server also counts the prompt, within its own window.","default":0.0},"frequency_penalty":{"type":"number","maximum":2.0,"minimum":-2.0,"title":"Frequency Penalty","description":"Frequency penalty: charges a token per occurrence. MLX scores the completion only; llama-server also counts the prompt, within its own window.","default":0.0},"logit_bias":{"anyOf":[{"additionalProperties":{"type":"number","maximum":100.0,"minimum":-100.0},"type":"object"},{"type":"null"}],"title":"Logit Bias","description":"Additive per-token logit bias keyed by token id, each in [-100, 100]. Ids past the model's logit width are ignored."},"stop":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop","description":"OpenAI stop sequences: a single string or list of strings at which generation halts."},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Format","description":"Guided decoding contract, typically `{\"type\": \"json_object\"}` or a `json_schema`. `{\"type\": \"text\"}` names the default and constrains nothing. Anything else needs a grammar engine, and a backend without one rejects the request rather than answering text that ignores the contract."},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools","description":"OpenAI function-tool definitions. When provided without `enable_tools=true`, Unsloth forwards the tools to the backend so the model returns structured tool_calls for the client to execute (standard OpenAI function calling)."},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice","description":"OpenAI tool choice: 'auto' | 'required' | 'none' | {'type': 'function', 'function': {'name': ...}}"},"max_completion_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Completion Tokens","description":"OpenAI upper bound on generated tokens (supersedes the deprecated max_tokens)."},"n":{"anyOf":[{"type":"integer","maximum":128.0,"minimum":1.0},{"type":"null"}],"title":"N","description":"Number of chat completion choices to generate."},"logprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Logprobs","description":"Whether to return log probabilities of the output tokens."},"top_logprobs":{"anyOf":[{"type":"integer","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Top Logprobs","description":"Number of most likely tokens (0-20) to return per position; requires logprobs=true."},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls","description":"Whether to enable parallel function calling during tool use."},"seed":{"anyOf":[{"type":"integer","maximum":1.8446744073709552e+19,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Seed","description":"Best-effort deterministic sampling seed."},"stream_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Stream Options","description":"Streaming options, e.g. {\"include_usage\": true} to emit a final usage chunk."},"top_k":{"type":"integer","maximum":100.0,"minimum":-1.0,"title":"Top K","description":"[x-unsloth] Top-k sampling","default":20},"min_p":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Min P","description":"[x-unsloth] Min-p sampling threshold","default":0.01},"repetition_penalty":{"type":"number","maximum":2.0,"minimum":1.0,"title":"Repetition Penalty","description":"[x-unsloth] Repetition penalty","default":1.0},"image_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Base64","description":"[x-unsloth] Base64-encoded image for vision models"},"audio_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Base64","description":"[x-unsloth] Base64-encoded audio (wav/mp3/ogg/flac/m4a) for audio-input models"},"modalities":{"anyOf":[{"items":{"type":"string","enum":["text","audio"]},"type":"array"},{"type":"null"}],"title":"Modalities","description":"Output modalities, as OpenAI's. [\"text\", \"audio\"] asks a model that speaks (status speaks) to answer the spoken question in audio_base64 in its own voice as well: the reply text, then message.audio / delta.audio {data: base64 wav, format: wav, sample_rate}. The model samples the reply its own way, so sampling settings do not apply and stop sequences are refused; max_tokens and usage count speech frames as well as text tokens; a streamed reply arrives whole, as one text delta and one audio delta."},"extra_audio_base64":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Extra Audio Base64","description":"[x-unsloth] Further recordings after audio_base64, in order, for models that take several clips in one message. Size and duration caps apply to all clips together."},"audio_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Instructions","description":"[x-unsloth] Scene or music-description instructions for native audio models. MiniMax Music 3 requires this alongside lyrics."},"audio_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Language","description":"[x-unsloth] Target-language hint for native audio models that support it."},"audio_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio Options","description":"[x-unsloth] Per-model request options ({name: value}) for audio GGUF models, as listed in the loaded model's audio_options. Unknown names are dropped."},"video_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Base64","description":"[x-unsloth] Base64-encoded video (mp4/mov/webm/mkv/avi) for video-input models: a GGUF served by llama-server, or an MLX model whose processor reads video."},"use_adapter":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"null"}],"title":"Use Adapter","description":"[x-unsloth] Adapter control for compare mode. null = no change (default), false = disable adapters (base model), true = enable the current adapter, string = enable a specific adapter by name."},"enable_thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Thinking","description":"[x-unsloth] Enable/disable thinking/reasoning mode for supported models"},"continue_final_message":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Continue Final Message","description":"[x-unsloth] Continue the trailing assistant message instead of starting a new turn: the prompt ends mid-response so the model resumes token-exactly from where it stopped. Requires the last message to have role 'assistant'."},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","max","xhigh"]},{"type":"null"}],"title":"Reasoning Effort","description":"[x-unsloth] Reasoning effort level ('none'|'minimal'|'low'|'medium'|'high'|'max'|'xhigh'). OpenAI `/v1/responses` accepts model-dependent subsets; Anthropic adaptive thinking uses `max` as the top tier on Claude 4.6 Opus/Sonnet (inbound `xhigh` is mapped to `max`) and `xhigh` on Claude 4.7 Opus; local Harmony/gpt-oss templates support low|medium|high."},"preserve_thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preserve Thinking","description":"[x-unsloth] When true, keep historical <think> blocks from past assistant turns in the prompt (Qwen3.6 templates). Independent of enable_thinking / reasoning_effort."},"thinking":{"anyOf":[{"$ref":"#/components/schemas/ThinkingConfig"},{"type":"null"}],"description":"[Anthropic-compatible] Thinking configuration. Use {type: 'disabled'} to disable thinking, {type: 'enabled'} to enable."},"enable_tools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Tools","description":"[x-unsloth] Enable tool calling for supported models"},"enabled_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Enabled Tools","description":"[x-unsloth] List of enabled tool names. Local GGUF/safetensors models accept ['web_search', 'python', 'terminal', 'edit_file', 'render_html']. External providers accept ['web_search', 'web_fetch', 'code_execution'] for Anthropic and ['web_search', 'code_execution', 'image_generation'] for OpenAI Responses. If None, all local tools are enabled and no server-side tools are forwarded."},"mcp_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mcp Enabled","description":"[x-unsloth] When true, append tools from every enabled MCP server to this request's tool list."},"mcp_image":{"anyOf":[{"type":"string","maxLength":15728640},{"type":"null"}],"title":"Mcp Image","description":"[x-unsloth] PNG, JPEG or WebP data URL that MCP tools with a mapped image field can receive after the user approves each call. Never shown to the model."},"deep_research_armed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deep Research Armed","description":"[x-unsloth] Offer the deep_research handoff tool for this turn. Set when the composer has Deep Research armed; the model decides whether to use it."},"confirm_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirm Tool Calls","description":"[x-unsloth] When true, pause before each tool call and wait for the user to allow/deny it via POST /api/inference/tool-confirm."},"bypass_permissions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bypass Permissions","description":"[x-unsloth] Bypass Permissions: when true, skip the tool-call confirmation gate AND disable the python/terminal execution sandbox (safety checks, command blocklist, resource limits). edit_file is likewise unconfined: an absolute path resolves as written and edits the real file there, instead of being held to the conversation's working directory. Secret env vars are still stripped. Takes precedence over confirm_tool_calls. Refused (400) for API keys and keyless API access unless the server sets UNSLOTH_STUDIO_ALLOW_API_FULL_ACCESS=1.","default":false},"permission_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permission Mode","description":"[x-unsloth] Permission level for local tool calls. 'ask' pauses every call for approval; 'ask'/'auto' enable the confirmation gate on their own (needs a streaming request to deliver prompts). 'auto' ('Approve for me') only pauses calls detected as high risk (credential reads, privilege escalation, destructive/persistence, network exfil); ordinary calls run immediately, and the sandbox stays on. 'full' is equivalent to bypass_permissions=true (no confirmation, no sandbox). Unset defaults to 'auto' for the per-call gate; a non-streaming request without an explicit mode cannot prompt and runs the loop. An unrecognized value (e.g. from a newer client) is treated as 'ask'."},"sandbox_level":{"type":"string","enum":["high","low"],"title":"Sandbox Level","description":"[x-unsloth] Sandbox level for the Python and Terminal tools. 'high' (default) runs them in the OS sandbox when it works and on software safeguards otherwise. 'low' runs them on software safeguards only, so on a streaming UI chat 'off' still asks before their high-risk calls; elsewhere 'off' never prompts, as before. Full access overrides both. Case-insensitive; any other value is rejected.","default":"high"},"auto_heal_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Heal Tool Calls","description":"[x-unsloth] Auto-detect and fix malformed tool calls from model output.","default":true},"nudge_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Nudge Tool Calls","description":"[x-unsloth] Opt-in tool-call recovery: when a model stalls with a short plan instead of calling an available tool, or passthrough healing cannot repair a malformed call, retry with a short nudge. Default off; UNSLOTH_TOOL_CALL_NUDGE=1 flips the process default."},"deduplicate_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deduplicate Tool Calls","description":"[x-unsloth] When false, a tool call identical to one that already succeeded in this response runs again instead of being answered with a duplicate notice. Default on.","default":true},"context_overflow":{"anyOf":[{"type":"string","enum":["error","truncate_middle","truncate_oldest"]},{"type":"null"}],"title":"Context Overflow","description":"[x-unsloth] Local GGUF context-overflow behavior. 'error' (default) returns a 400 with code=context_length_exceeded. 'truncate_middle' is limited to client-tool or response_format passthrough and retries after keeping the first and recent turns. 'truncate_oldest' provides a rolling window for plain and Unsloth-tool chats by dropping complete oldest turns. Both truncation policies preserve system messages and tool-call groups. MLX models honor 'truncate_oldest' only, as do external providers given a compaction_threshold."},"context_policy":{"anyOf":[{"type":"string","enum":["checkpoint","rolling"]},{"type":"null"}],"title":"Context Policy","description":"[x-unsloth] How a local GGUF or MLX chat compacts once context_overflow is truncate_oldest. 'checkpoint' resets to the latest turn plus standing instructions (Unsloth default). 'rolling' drops oldest complete turns. Unset uses UNSLOTH_CONTEXT_POLICY. On MLX only Unsloth-tool chats start a reset."},"compaction_headroom_ratio":{"anyOf":[{"type":"number","maximum":0.9,"minimum":0.0},{"type":"null"}],"title":"Compaction Headroom Ratio","description":"[x-unsloth] Extra share of the prompt budget to drop when a rolling compaction fires, so the boundary can stay put for a stretch of turns. A checkpoint reset leaves the same share free when it keeps the tool calls of the turn in progress. 0.25 is the process default (ROLLING_COMPACTION_HEADROOM_RATIO). Unset keeps the process default."},"compact_context":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Compact Context","description":"[x-unsloth] Compact now (Unsloth's /compact). A local GGUF or MLX chat starts a checkpoint on this request even when it still fits: older turns are archived and searchable, and the model keeps the newest turn plus standing instructions until the chat outgrows the window again. Needs context_overflow=truncate_oldest and a saved thread; otherwise ignored. On a cloud connection the turns before the newest one are summarised: by the provider where it compacts server-side (Anthropic, OpenAI Responses), otherwise by a summary call to the same model."},"studio_tool_history":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Studio Tool History","description":"[x-unsloth] The replayed tool calls were produced by Unsloth's local tool loop rather than by an OpenAI-compatible client tool contract."},"max_tool_calls_per_message":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Tool Calls Per Message","description":"[x-unsloth] Maximum number of tool call iterations per message (0 = disabled, 9999 = unlimited).","default":50},"tool_call_timeout":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Tool Call Timeout","description":"[x-unsloth] Timeout in seconds for each tool call execution (9999 = no limit).","default":300},"run_tools_locally":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Run Tools Locally","description":"[x-unsloth] Execute the selected tools on the Unsloth host instead of asking the provider to run its own hosted builtins. Only meaningful for providers that ship hosted tools of the same name (OpenAI, Gemini, Kimi, OpenRouter), where 'web_search' alone is ambiguous: the same request means hosted search to a client written before Unsloth ran tools for external providers. Omitted keeps the hosted behaviour, so an older client is unaffected."},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id","description":"[x-unsloth] Session/thread ID for scoping tool execution sandbox."},"sandbox_attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/SandboxAttachment"},"type":"array","maxItems":64},{"type":"null"}],"title":"Sandbox Attachments","description":"[x-unsloth] Chat attachment originals (hashes from POST /api/chat/attachment-originals) to copy into the session sandbox before the tool loop, when the python tool is enabled."},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id","description":"[x-unsloth] Conversation ID for scoping stateful tool sessions (e.g. stdio MCP); stays per-thread where session_id may be shared project-wide."},"user_message_id":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"User Message Id","description":"[x-unsloth] The user message this turn answers. With thread_id it keys the chat's file history, so /rewind can put back what this turn's tool calls changed."},"rag_scope":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rag Scope","description":"[x-unsloth] Hidden RAG retrieval scope for the search_knowledge_base tool: {kb_id?, thread_id?, default_top_k?, mode?, autoinject?, autoinject_min_score?}. Candidate pools and the RRF constant come from server config. The model never sees this; the server resolves which documents to search."},"cancel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Id","description":"[x-unsloth] Per-request cancellation token. Frontend sends a fresh UUID per run so /inference/cancel matches one specific generation."},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id","description":"[x-unsloth] Saved provider config ID. Its stored key is used when encrypted_api_key is omitted."},"provider_api_type":{"type":"string","enum":["chat_completions","responses"],"title":"Provider Api Type","default":"chat_completions"},"provider_reasoning_config":{"anyOf":[{"$ref":"#/components/schemas/ProviderReasoningConfig"},{"type":"null"}],"description":"[x-unsloth] Explicit Custom reasoning dialect; saved provider configuration takes precedence."},"provider_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Type","description":"[x-unsloth] Provider type (e.g. 'openai', 'mistral'). Used if provider_id is not set."},"external_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Model","description":"[x-unsloth] Model ID at the external provider."},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key","description":"[x-unsloth] RSA-encrypted, base64-encoded API key for the external provider."},"provider_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Base Url","description":"[x-unsloth] Override base URL for the external provider."},"extra_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Extra Headers","description":"[x-unsloth] Extra request headers when the request carries an API key. Saved connections send these from the stored record instead, so an explicit key cannot bind saved metadata."},"enable_prompt_caching":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"null"}],"title":"Enable Prompt Caching","description":"[x-unsloth] Opt in to provider-side prompt caching. On Anthropic, boolean true attaches cache_control={type:ephemeral} to the system block so the static prefix is reused across turns. On OpenAI cloud, caching is automatic for prompts >=1024 tokens and the boolean is informational. On Gemini, pass a string cache resource name such as `cachedContents/abc123` to attach `cachedContent` on the native request (boolean true is a no-op on Gemini because creating the cache requires a separate POST /cachedContents call). On OpenRouter, boolean true adds a top-level cache_control for anthropic/ models. Ignored for every other provider. Treated as enabled when omitted."},"prompt_cache_ttl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Ttl","description":"[x-unsloth] Anthropic cache_control TTL, also used for Claude on OpenRouter. Defaults to the 5-minute ephemeral pool when omitted. Pass `1h` to write into the 1-hour pool instead -- 1h writes are billed at 2x base input vs 1.25x for 5m, but reads stay at 0.1x for both, so 1h pays off the moment a single extra read lands more than 5 minutes after the write. Only `5m` and `1h` are forwarded; any other value is silently ignored downstream so a stale frontend can't make the API 422 on the request. No-op on every other provider."},"compaction_threshold":{"anyOf":[{"type":"integer","maximum":2000000.0,"minimum":1.0},{"type":"null"}],"title":"Compaction Threshold","description":"[x-unsloth] Server-side context compaction trigger, in tokens. Per-provider routing:\n  - Anthropic (Opus 4.6+, Sonnet 4.6, Mythos preview): attaches the `compact_20260112` edit and the `compact-2026-01-12` beta header. The upstream floor is 50k; `_stream_anthropic` clamps lower values up.\n  - OpenAI cloud (api.openai.com) and Azure OpenAI Foundry (*.openai.azure.com, *.services.ai.azure.com): attaches `context_management:[{type:'compaction', compact_threshold:N}]` to /v1/responses. A deployment that answers `compact_threshold is not enabled` is retried without it.\nBoth cap the trigger at 200k unless compaction_uncapped is set.\nEvery other provider and model ignores it unless context_overflow is truncate_oldest, in which case Unsloth asks the same model to summarise the oldest turns, keeps the recent ones verbatim and reuses the summary on later turns of a saved thread, so the prompt and the reply fit within it before forwarding. If the summary call fails the oldest turns are evicted instead, archived for recall on a saved thread. Per-provider floors are enforced in the corresponding stream helpers."},"compaction_uncapped":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Compaction Uncapped","description":"[x-unsloth] compaction_threshold is the connection's own \"Auto-compact after\" setting rather than the default. Anthropic and OpenAI server-side compaction then use it as given instead of capping it at 200k: it is still raised to the provider's floor and never exceeds context_window."},"compaction_percent":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":10.0},{"type":"null"}],"title":"Compaction Percent","description":"[x-unsloth] The connection's \"Auto-compact at\" share of the model's window, in percent. Where Unsloth reads the window from a self-hosted server (no compaction_threshold, or Ollama's loaded num_ctx), it replaces the 75% default."},"compaction_mode":{"anyOf":[{"type":"string","enum":["summary","rolling","checkpoint"]},{"type":"null"}],"title":"Compaction Mode","description":"[x-unsloth] How a cloud connection that does not compact server-side compacts once compaction_threshold is passed, and on compact_context. 'summary' (the default) asks the same model to summarise the older turns. 'rolling' and 'checkpoint' make no summary call and drop whole oldest turns into the thread's archive, where search_conversation and inline recall find them: 'rolling' drops just enough on each request, 'checkpoint' resets to the latest turn as a local model does, and only it honours compact_context. Ignored by local engines and by Anthropic and OpenAI server-side compaction."},"context_window":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Context Window","description":"[x-unsloth] The external model's context window, in tokens. When Unsloth drops the oldest turns for a compaction_threshold, the prompt also leaves room for max_tokens within it, and max_tokens is lowered if it would leave the prompt less than half of the window. With context_overflow=truncate_oldest and no compaction_threshold, three quarters of this window is used as the threshold; when this field is also omitted, a vLLM, llama.cpp or Custom connection uses the window its server reports on /models."},"openai_code_exec_container_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openai Code Exec Container Id","description":"[x-unsloth] OpenAI shell-tool container id from the prior response in the same chat thread. When set and `code_execution` is in `enabled_tools`, the next /v1/responses call uses environment.type='container_reference' so filesystem state persists across turns. Unset → environment.type='container_auto' and OpenAI creates a fresh container. Only meaningful for the OpenAI cloud + gpt-5.5 family path; ignored otherwise."},"anthropic_code_exec_container_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthropic Code Exec Container Id","description":"[x-unsloth] Anthropic code_execution container id from the prior response in the same chat thread. When set and `code_execution` is in `enabled_tools`, the next /v1/messages call carries a top-level `container` field so the model sees filesystem state from earlier turns. Unset → Anthropic auto-creates a fresh container. Stale ids surface a 4xx with a `container_expired` / `container_not_found` hint; the backend emits a synthetic `container_invalidated` _toolEvent so the next turn falls back to auto-create."},"fast_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fast Mode","description":"[x-unsloth] Anthropic fast-mode toggle. On Claude Opus 4.6 / 4.7 adds the `fast-mode-2026-02-01` beta header and sends `speed: 'fast'` for higher OTPS at premium pricing. Silently ignored on every other model + provider. See https://platform.claude.com/docs/en/build-with-claude/fast-mode"},"voice_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},{"type":"null"}],"title":"Voice Id","description":"[x-unsloth] A saved voice to speak in, as the Audio page's Speak does; the loaded model must clone. Language, instructions, options, seed and the token cap apply."},"persist":{"type":"boolean","title":"Persist","description":"[x-unsloth] Keep the clip in Audio history. Read aloud sends false.","default":true}},"additionalProperties":true,"type":"object","required":["messages"],"title":"AudioGenerateRequest","description":"``POST /audio/generate``: speak the last user message, as chat's read aloud does."},"AudioInputRecord":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"duration_s":{"type":"number","title":"Duration S"},"sample_rate":{"type":"integer","title":"Sample Rate"},"channels":{"type":"integer","title":"Channels"},"url":{"type":"string","title":"Url"},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["id","name","duration_s","sample_rate","channels","url","expires_at"],"title":"AudioInputRecord"},"AudioInputTranscribeRequest":{"properties":{"context_length":{"type":"integer","maximum":65536.0,"minimum":0.0,"title":"Context Length","description":"Qwen3-ASR on llama.cpp only: 0 (Auto) sizes context for the recording; a multiple of 256 from 1024 to 65536 fixes the context limit. Ignored by other STT engines.","default":0},"model":{"type":"string","maxLength":512,"minLength":1,"title":"Model"},"engine":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Engine"},"device":{"anyOf":[{"type":"string","enum":["auto","cpu","gpu"]},{"type":"null"}],"title":"Device"},"language":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Language"},"purpose":{"type":"string","enum":["reference","convert"],"title":"Purpose","default":"reference"}},"additionalProperties":false,"type":"object","required":["model"],"title":"AudioInputTranscribeRequest"},"AudioInputTranscript":{"properties":{"text":{"type":"string","title":"Text"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"model":{"type":"string","title":"Model"}},"type":"object","required":["text","model"],"title":"AudioInputTranscript"},"AudioMusicEdit":{"properties":{"action":{"type":"string","enum":["repaint","extend","cover","continue","inpaint","restyle"],"title":"Action"},"ranges":{"items":{"$ref":"#/components/schemas/AudioMusicRange"},"type":"array","maxItems":8,"title":"Ranges"},"strength":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Strength"},"extend_s":{"anyOf":[{"type":"number","maximum":600.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Extend S"}},"additionalProperties":false,"type":"object","required":["action"],"title":"AudioMusicEdit"},"AudioMusicRange":{"properties":{"start_s":{"type":"number","maximum":86400.0,"minimum":0.0,"title":"Start S"},"end_s":{"type":"number","maximum":86400.0,"exclusiveMinimum":0.0,"title":"End S"}},"additionalProperties":false,"type":"object","required":["start_s","end_s"],"title":"AudioMusicRange"},"AudioRunAudio":{"properties":{"data":{"type":"string","title":"Data"},"format":{"type":"string","title":"Format","default":"wav"},"sample_rate":{"type":"integer","title":"Sample Rate"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"}},"type":"object","required":["data","sample_rate"],"title":"AudioRunAudio"},"AudioRunClip":{"properties":{"id":{"type":"string","title":"Id"},"role":{"type":"string","title":"Role","default":"output"},"url":{"type":"string","title":"Url"},"sample_rate":{"type":"integer","title":"Sample Rate"},"duration_s":{"type":"number","title":"Duration S"},"workflow":{"type":"string","title":"Workflow"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"source_clip_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Clip Id"}},"type":"object","required":["id","url","sample_rate","duration_s","workflow"],"title":"AudioRunClip"},"AudioRunEdit":{"properties":{"mode":{"type":"string","enum":["words","delivery"],"title":"Mode","default":"words"},"markup":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Markup"},"instructions":{"anyOf":[{"items":{"type":"string","maxLength":300,"minLength":1},"type":"array","maxItems":8},{"type":"null"}],"title":"Instructions"},"speed":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.5},{"type":"null"}],"title":"Speed"},"pitch_steps":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Pitch Steps"}},"additionalProperties":false,"type":"object","title":"AudioRunEdit","description":"Words: client-rendered DotTTS markup or FireRedAudio instructions, checked against both\ntranscripts. Delivery (FireRedAudio): numbers only."},"AudioRunInputs":{"properties":{"reference":{"anyOf":[{"$ref":"#/components/schemas/AudioSourceRef"},{"type":"null"}]},"source":{"anyOf":[{"$ref":"#/components/schemas/AudioSourceRef"},{"type":"null"}]},"reference_text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Reference Text"},"emotion":{"anyOf":[{"$ref":"#/components/schemas/AudioSourceRef"},{"type":"null"}]},"target":{"anyOf":[{"$ref":"#/components/schemas/AudioSourceRef"},{"type":"null"}]},"source_text":{"anyOf":[{"type":"string","maxLength":16000},{"type":"null"}],"title":"Source Text"}},"additionalProperties":false,"type":"object","title":"AudioRunInputs"},"AudioRunRequest":{"properties":{"workflow":{"type":"string","enum":["clone","speak","edit","convert","music","separate"],"title":"Workflow"},"model":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Model","description":"A downloaded audio model to load first when model auto-switch is on; otherwise the loaded model runs it"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"language":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Language"},"instructions":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Instructions"},"inputs":{"$ref":"#/components/schemas/AudioRunInputs"},"mode":{"anyOf":[{"type":"string","enum":["song","sfx","edit"]},{"type":"null"}],"title":"Mode"},"lyrics":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Lyrics"},"instrumental":{"type":"boolean","title":"Instrumental","default":false},"duration_s":{"anyOf":[{"type":"number","maximum":600.0,"minimum":0.5},{"type":"null"}],"title":"Duration S"},"variations":{"type":"integer","maximum":4.0,"minimum":1.0,"title":"Variations","default":1},"edit":{"anyOf":[{"$ref":"#/components/schemas/AudioMusicEdit"},{"$ref":"#/components/schemas/AudioRunEdit"},{"type":"null"}],"title":"Edit"},"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options","description":"Per-model options, as listed in audio_options or by a tool panel"},"speed":{"anyOf":[{"type":"number","maximum":4.0,"minimum":0.25},{"type":"null"}],"title":"Speed"},"seed":{"anyOf":[{"type":"integer","maximum":1.8446744073709552e+19,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Seed"},"max_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Tokens"},"convert":{"anyOf":[{"$ref":"#/components/schemas/AudioConvertParams"},{"type":"null"}]},"take":{"anyOf":[{"type":"integer","maximum":4.0,"minimum":1.0},{"type":"null"}],"title":"Take"},"group_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{32}$"},{"type":"null"}],"title":"Group Id"},"cancel_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":8,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Cancel Id","description":"Your id for this run; POST it to /audio/cancel to stop the run"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id","description":"[x-unsloth] Saved connection ID. When set, Speak sends the text to that connection's /audio/speech as `model` and the clip is saved to history."},"voice":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Voice","description":"Voice on the connection named by `provider_id`."}},"additionalProperties":false,"type":"object","required":["workflow"],"title":"AudioRunRequest","description":"``POST /audio/run``: one Audio page run. Audio is named by id; the server picks the files."},"AudioRunResponse":{"properties":{"clips":{"items":{"$ref":"#/components/schemas/AudioRunClip"},"type":"array","title":"Clips"},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Id"},"model":{"type":"string","title":"Model"},"audio":{"anyOf":[{"$ref":"#/components/schemas/AudioRunAudio"},{"type":"null"}],"description":"The audio inline, only when saving it to history failed"},"ignored_options":{"items":{"type":"string"},"type":"array","title":"Ignored Options","description":"Sent options the model does not take; not sent"},"applied":{"additionalProperties":true,"type":"object","title":"Applied","description":"Values Unsloth Studio used for settings it can change, e.g. duration_s"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["model"],"title":"AudioRunResponse"},"AudioSourceRef":{"properties":{"input_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},{"type":"null"}],"title":"Input Id"},"clip_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},{"type":"null"}],"title":"Clip Id"},"voice_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},{"type":"null"}],"title":"Voice Id"}},"additionalProperties":false,"type":"object","title":"AudioSourceRef","description":"Audio named by id: an uploaded input, a history clip or a saved voice. Exactly one."},"AudioSpeechRequest":{"properties":{"input":{"type":"string","minLength":1,"title":"Input","description":"The text to synthesize."},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model id. A downloaded text-to-speech model named here is loaded first when model auto-switch is on; otherwise the loaded audio model is used."},"voice":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/AudioSpeechVoice"},{"type":"null"}],"title":"Voice","description":"A saved voice's id (or {\"id\": ...}), else a built-in speaker of the model. Other names, such as OpenAI's, are ignored."},"reference":{"anyOf":[{"$ref":"#/components/schemas/AudioSourceRef"},{"type":"null"}],"description":"[x-unsloth] Audio to clone: an uploaded input, a history clip or a saved voice."},"reference_text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Reference Text","description":"[x-unsloth] What is said in the reference, for models that use it."},"response_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Format","description":"Output format: wav, mp3, flac, opus, aac or pcm.","default":"wav"},"stream_format":{"anyOf":[{"type":"string","enum":["audio","sse"]},{"type":"null"}],"title":"Stream Format","description":"Only 'audio' (the whole file in one response) is supported."},"speed":{"anyOf":[{"type":"number","maximum":4.0,"minimum":0.25},{"type":"null"}],"title":"Speed","description":"Speech rate, applied where the model supports it."},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions","description":"Scene or music-description instructions for compatible audio models."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Target-language hint for compatible audio models."},"seed":{"anyOf":[{"type":"integer","maximum":1.8446744073709552e+19,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Seed","description":"Best-effort deterministic generation seed."},"max_new_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max New Tokens","description":"Maximum generated audio tokens/frames; MiniMax Music 3 uses 25 frames per second."},"audio_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio Options","description":"[x-unsloth] Per-model request options ({name: value}) for audio GGUF models, as listed in the loaded model's audio_options. Unknown names are dropped."},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id","description":"[x-unsloth] Saved connection ID. When set, synthesis is proxied to that provider's /audio/speech and model/voice/speed are forwarded as sent."},"provider_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Base Url","description":"[x-unsloth] Browser-snapshotted connection base URL. Required with a legacy encrypted_api_key so an edit cannot route that key to another endpoint."},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key","description":"[x-unsloth] Per-request key for a browser still holding a legacy provider key, used when the connection has none saved server side."}},"type":"object","required":["input"],"title":"AudioSpeechRequest","description":"OpenAI ``CreateSpeechRequest`` for ``POST /v1/audio/speech``.\n\n``voice`` picks a saved voice or a built-in speaker; OpenAI's own voice names are accepted\nand ignored. ``reference`` clones from uploaded audio, a history clip or a saved voice."},"AudioSpeechVoice":{"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$","title":"Id"}},"type":"object","required":["id"],"title":"AudioSpeechVoice","description":"OpenAI's custom-voice object: here a saved voice's id."},"AudioVoice":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"duration_s":{"type":"number","title":"Duration S"},"sample_rate":{"type":"integer","title":"Sample Rate"},"created_at":{"type":"string","title":"Created At"},"url":{"type":"string","title":"Url"}},"type":"object","required":["id","name","duration_s","sample_rate","created_at","url"],"title":"AudioVoice"},"AudioVoiceCreate":{"properties":{"source":{"$ref":"#/components/schemas/AudioSourceRef"},"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"transcript":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Transcript"},"language":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Language"}},"additionalProperties":false,"type":"object","required":["source","name"],"title":"AudioVoiceCreate"},"AudioVoiceListResponse":{"properties":{"voices":{"items":{"$ref":"#/components/schemas/AudioVoice"},"type":"array","title":"Voices"}},"type":"object","title":"AudioVoiceListResponse"},"AudioVoicePatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"transcript":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Transcript"},"language":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Language"}},"additionalProperties":false,"type":"object","title":"AudioVoicePatch"},"AuthLoginRequest":{"properties":{"username":{"type":"string","title":"Username","description":"Username"},"password":{"type":"string","title":"Password","description":"Password"}},"type":"object","required":["username","password"],"title":"AuthLoginRequest","description":"Login payload: username/password to obtain a JWT."},"AuthStatusResponse":{"properties":{"initialized":{"type":"boolean","title":"Initialized","description":"True if the auth database contains a login user"},"default_username":{"type":"string","title":"Default Username","description":"Default admin username for first-boot UI prefill.","default":"unsloth"},"login_mode":{"type":"string","title":"Login Mode","description":"'single' when one account exists, so the form posts default_username without asking; 'multi' when a username has to be entered. Never lists accounts.","default":"single"},"full_access":{"type":"boolean","title":"Full Access","description":"Legacy pre-login hint: false whenever another account exists, active or not. Signed-in clients offer Full access only to the installation owner.","default":true},"requires_password_change":{"type":"boolean","title":"Requires Password Change","description":"True if the seeded admin must still change the default password"},"bootstrap_deadline_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bootstrap Deadline Seconds","description":"Seconds until this instance shuts down for leaving the default password unchanged, or null when the launch is not time-boxed."}},"type":"object","required":["initialized","requires_password_change"],"title":"AuthStatusResponse","description":"Indicate whether the seeded admin auth flow is ready."},"BlenderSetup":{"properties":{"port":{"type":"integer","maximum":65535.0,"minimum":1.0,"title":"Port","default":9876},"blender_path":{"type":"string","pattern":"^[^\\x00]*$","title":"Blender Path","default":""},"is_enabled":{"type":"boolean","title":"Is Enabled"},"consent":{"type":"boolean","title":"Consent","default":false}},"additionalProperties":false,"type":"object","required":["is_enabled"],"title":"BlenderSetup"},"BlenderTest":{"properties":{"port":{"type":"integer","maximum":65535.0,"minimum":1.0,"title":"Port","default":9876},"blender_path":{"type":"string","pattern":"^[^\\x00]*$","title":"Blender Path","default":""},"consent":{"type":"boolean","title":"Consent","default":false}},"additionalProperties":false,"type":"object","title":"BlenderTest"},"Body_create_file_v1_files_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"purpose":{"type":"string","title":"Purpose"}},"type":"object","required":["file","purpose"],"title":"Body_create_file_v1_files_post"},"Body_delete_cached_dataset_api_hub_datasets_cached_delete":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path"}},"type":"object","required":["repo_id"],"title":"Body_delete_cached_dataset_api_hub_datasets_cached_delete"},"Body_delete_cached_model_api_hub_delete_cached_delete":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"},"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path"},"only_if_orphan":{"type":"boolean","title":"Only If Orphan","default":false}},"type":"object","required":["repo_id"],"title":"Body_delete_cached_model_api_hub_delete_cached_delete"},"Body_delete_cached_model_api_models_delete_cached_delete":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"},"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path"}},"type":"object","required":["repo_id"],"title":"Body_delete_cached_model_api_models_delete_cached_delete"},"Body_delete_finetuned_model_api_models_delete_finetuned_delete":{"properties":{"model_path":{"type":"string","title":"Model Path"},"source":{"type":"string","title":"Source"},"export_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export Type"},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant"}},"type":"object","required":["model_path","source"],"title":"Body_delete_finetuned_model_api_models_delete_finetuned_delete"},"Body_delete_impact_api_hub_delete_impact_post":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"},"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path"}},"type":"object","required":["repo_id"],"title":"Body_delete_impact_api_hub_delete_impact_post"},"Body_delete_local_model_api_hub_local_delete_delete":{"properties":{"path":{"type":"string","title":"Path"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"type":"object","required":["path"],"title":"Body_delete_local_model_api_hub_local_delete_delete"},"Body_delete_uploaded_dataset_api_hub_datasets_local_upload_delete":{"properties":{"id":{"type":"string","title":"Id"}},"type":"object","required":["id"],"title":"Body_delete_uploaded_dataset_api_hub_datasets_local_upload_delete"},"Body_discard_remote_code_download_api_models_discard_remote_code_post":{"properties":{"model_name":{"type":"string","title":"Model Name"}},"type":"object","required":["model_name"],"title":"Body_discard_remote_code_download_api_models_discard_remote_code_post"},"Body_extract_text_api_rag_extract_text_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"max_chars":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Chars"},"boxes":{"type":"boolean","title":"Boxes","default":false}},"type":"object","required":["file"],"title":"Body_extract_text_api_rag_extract_text_post"},"Body_import_skill_route_api_skills_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_skill_route_api_skills_import_post"},"Body_openai_audio_transcriptions_api_inference_audio_transcriptions_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"response_format":{"type":"string","title":"Response Format","default":"json"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key"},"timestamp_granularities[]":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Timestamp Granularities[]"},"device":{"anyOf":[{"type":"string","enum":["auto","cpu","gpu"]},{"type":"null"}],"title":"Device"}},"type":"object","required":["file"],"title":"Body_openai_audio_transcriptions_api_inference_audio_transcriptions_post"},"Body_openai_audio_transcriptions_v1_audio_transcriptions_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"response_format":{"type":"string","title":"Response Format","default":"json"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key"},"timestamp_granularities[]":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Timestamp Granularities[]"},"device":{"anyOf":[{"type":"string","enum":["auto","cpu","gpu"]},{"type":"null"}],"title":"Device"}},"type":"object","required":["file"],"title":"Body_openai_audio_transcriptions_v1_audio_transcriptions_post"},"Body_openai_audio_translations_api_inference_audio_translations_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"response_format":{"type":"string","title":"Response Format","default":"json"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"},"device":{"anyOf":[{"type":"string","enum":["auto","cpu","gpu"]},{"type":"null"}],"title":"Device"}},"type":"object","required":["file"],"title":"Body_openai_audio_translations_api_inference_audio_translations_post"},"Body_openai_audio_translations_v1_audio_translations_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"response_format":{"type":"string","title":"Response Format","default":"json"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"},"device":{"anyOf":[{"type":"string","enum":["auto","cpu","gpu"]},{"type":"null"}],"title":"Device"}},"type":"object","required":["file"],"title":"Body_openai_audio_translations_v1_audio_translations_post"},"Body_reveal_cached_model_api_models_reveal_cached_model_post":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"}},"type":"object","required":["repo_id"],"title":"Body_reveal_cached_model_api_models_reveal_cached_model_post"},"Body_reveal_local_model_api_hub_local_reveal_post":{"properties":{"path":{"type":"string","title":"Path"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"type":"object","required":["path"],"title":"Body_reveal_local_model_api_hub_local_reveal_post"},"Body_scan_model_remote_code_api_models_remote_code_scan_post":{"properties":{"model_name":{"type":"string","title":"Model Name"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token"},"prefer_local_cache":{"type":"boolean","title":"Prefer Local Cache","default":false},"model_local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Local Path"},"model_snapshot_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Snapshot Path"},"model_snapshot_repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Snapshot Repo Id"}},"type":"object","required":["model_name"],"title":"Body_scan_model_remote_code_api_models_remote_code_scan_post"},"Body_upload_attachment_original_api_chat_attachment_originals_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_attachment_original_api_chat_attachment_originals_post"},"Body_upload_dataset_api_datasets_upload_post":{"properties":{"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"},"nativePathLease":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nativepathlease"}},"type":"object","title":"Body_upload_dataset_api_datasets_upload_post"},"Body_upload_dataset_api_hub_datasets_upload_post":{"properties":{"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"},"nativePathLease":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nativepathlease"}},"type":"object","title":"Body_upload_dataset_api_hub_datasets_upload_post"},"Body_upload_diffusion_dataset_api_train_diffusion_dataset_post":{"properties":{"name":{"type":"string","title":"Name"},"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"},"create_only":{"type":"boolean","title":"Create Only","default":false}},"type":"object","required":["name","files"],"title":"Body_upload_diffusion_dataset_api_train_diffusion_dataset_post"},"Body_upload_files_api_library_uploads_post":{"properties":{"files":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Files"},"nativePathLeases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Nativepathleases"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folderid"}},"type":"object","title":"Body_upload_files_api_library_uploads_post"},"Body_upload_kb_document_api_rag_knowledge_bases__kb_id__documents_post":{"properties":{"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"},"nativePathLease":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nativepathlease"},"ocr":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ocr"},"caption":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Caption"}},"type":"object","title":"Body_upload_kb_document_api_rag_knowledge_bases__kb_id__documents_post"},"Body_upload_project_document_api_rag_projects__project_id__documents_post":{"properties":{"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"},"nativePathLease":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nativepathlease"},"ocr":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ocr"},"caption":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Caption"}},"type":"object","title":"Body_upload_project_document_api_rag_projects__project_id__documents_post"},"Body_upload_sandbox_file_api_inference_sandbox__session_id__upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"overwrite":{"type":"boolean","title":"Overwrite","default":false}},"type":"object","required":["file"],"title":"Body_upload_sandbox_file_api_inference_sandbox__session_id__upload_post"},"Body_upload_sandbox_file_v1_sandbox__session_id__upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"overwrite":{"type":"boolean","title":"Overwrite","default":false}},"type":"object","required":["file"],"title":"Body_upload_sandbox_file_v1_sandbox__session_id__upload_post"},"Body_upload_thread_document_api_rag_threads__thread_id__documents_post":{"properties":{"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"},"nativePathLease":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nativepathlease"},"ocr":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ocr"},"caption":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Caption"}},"type":"object","title":"Body_upload_thread_document_api_rag_threads__thread_id__documents_post"},"Body_upload_unstructured_file_api_data_recipe_seed_upload_unstructured_file_post":{"properties":{"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"},"block_id":{"type":"string","title":"Block Id"},"nativePathLease":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nativepathlease"}},"type":"object","required":["block_id"],"title":"Body_upload_unstructured_file_api_data_recipe_seed_upload_unstructured_file_post"},"BrowseEntry":{"properties":{"name":{"type":"string","title":"Name","description":"Entry name (basename, not full path)"},"has_models":{"type":"boolean","title":"Has Models","description":"Hint that the directory likely contains models (*.gguf, *.safetensors, config.json, or HF-style `models--*` subfolders). Used by the UI to highlight promising candidates; the scanner itself is authoritative.","default":false},"hidden":{"type":"boolean","title":"Hidden","description":"Name starts with a dot (e.g. `.cache`)","default":false}},"type":"object","required":["name"],"title":"BrowseEntry","description":"A directory entry surfaced by the folder browser."},"BrowseFolderCreate":{"properties":{"parent":{"type":"string","title":"Parent"},"name":{"type":"string","title":"Name"}},"type":"object","required":["parent","name"],"title":"BrowseFolderCreate"},"BrowseFoldersResponse":{"properties":{"current":{"type":"string","title":"Current","description":"Absolute path of the directory just listed"},"parent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent","description":"Parent directory of `current`, or null if `current` is the filesystem root. The frontend uses this to render an `Up` row."},"entries":{"items":{"$ref":"#/components/schemas/BrowseEntry"},"type":"array","title":"Entries","description":"Subdirectories of `current`. Sorted with model-bearing directories first, then alphabetically case-insensitive; hidden entries come last within each group."},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions","description":"Handy starting points (home, HF cache, already-registered scan folders). Rendered as quick-pick chips above the list."},"places":{"items":{"$ref":"#/components/schemas/BrowsePlace"},"type":"array","title":"Places","description":"The suggestions again, each with a short label and a kind."},"truncated":{"type":"boolean","title":"Truncated","description":"True when the listing was capped because the directory had more subfolders than the server is willing to enumerate in one request. The UI should show a hint telling the user to narrow their path.","default":false},"model_files_here":{"type":"integer","title":"Model Files Here","description":"Count of GGUF/safetensors files immediately inside ``current``. Used by the UI to surface a hint on leaf model directories (which otherwise look `empty` because they contain only files, no subdirectories).","default":0}},"type":"object","required":["current"],"title":"BrowseFoldersResponse","description":"Response schema for the folder browser endpoint."},"BrowsePlace":{"properties":{"path":{"type":"string","title":"Path"},"label":{"type":"string","title":"Label"},"kind":{"type":"string","title":"Kind","description":"`home`, `user`, `drive` or `models`: picks the icon and group"}},"type":"object","required":["path","label","kind"],"title":"BrowsePlace"},"BrowserActionResultRequest":{"properties":{"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"action_id":{"type":"string","maxLength":64,"minLength":1,"title":"Action Id"},"result":{"additionalProperties":true,"type":"object","title":"Result"}},"type":"object","required":["action_id","result"],"title":"BrowserActionResultRequest","description":"What the chat tab's browser did for one ``browser_action`` (``state.browser_actions``)."},"BrowserFetchRequest":{"properties":{"url":{"type":"string","maxLength":8192,"minLength":1,"title":"Url"},"method":{"type":"string","enum":["GET","POST"],"title":"Method","default":"GET"},"body":{"anyOf":[{"type":"string","maxLength":1048576},{"type":"null"}],"title":"Body"},"max_bytes":{"anyOf":[{"type":"integer","maximum":52428800.0,"minimum":1.0},{"type":"null"}],"title":"Max Bytes"},"error_page":{"type":"boolean","title":"Error Page","default":false},"initiator":{"anyOf":[{"type":"string","maxLength":8192},{"type":"null"}],"title":"Initiator"},"credentials":{"type":"string","enum":["include","omit"],"title":"Credentials","default":"include"}},"type":"object","required":["url"],"title":"BrowserFetchRequest"},"BrowserPageCookie":{"properties":{"page":{"type":"string","maxLength":8192,"title":"Page"},"key":{"type":"string","maxLength":4096,"minLength":2,"title":"Key"},"value":{"anyOf":[{"type":"string","maxLength":8192},{"type":"null"}],"title":"Value"},"same_site":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Same Site"}},"type":"object","required":["page","key"],"title":"BrowserPageCookie"},"BrowserPageRequest":{"properties":{"page":{"type":"string","maxLength":8192,"minLength":1,"title":"Page"},"url":{"type":"string","maxLength":8192,"minLength":1,"title":"Url"},"method":{"type":"string","pattern":"^[A-Za-z]{1,16}$","title":"Method","default":"GET"},"headers":{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array","maxItems":64,"title":"Headers"},"body":{"anyOf":[{"type":"string","maxLength":1398104},{"type":"null"}],"title":"Body"},"redirect":{"type":"string","enum":["follow","error","manual"],"title":"Redirect","default":"follow"},"integrity":{"type":"string","maxLength":4096,"title":"Integrity","default":""},"credentials":{"type":"string","enum":["omit","same-origin","include"],"title":"Credentials","default":"same-origin"}},"type":"object","required":["page","url"],"title":"BrowserPageRequest"},"BrowserPrefsPayload":{"properties":{"openLinksInBrowser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Openlinksinbrowser"},"openFilesInBrowser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Openfilesinbrowser"},"searchEngine":{"anyOf":[{"type":"string","enum":["duckduckgo","google","bing","brave"]},{"type":"null"}],"title":"Searchengine"},"showFullUrl":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showfullurl"},"bookmarksToolbar":{"anyOf":[{"type":"string","enum":["always","newtab","never"]},{"type":"null"}],"title":"Bookmarkstoolbar"},"showBookmarkEditor":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showbookmarkeditor"},"hiddenSuggestions":{"anyOf":[{"items":{"type":"string","maxLength":253},"type":"array","maxItems":500},{"type":"null"}],"title":"Hiddensuggestions"},"switchToNewTabs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Switchtonewtabs"},"defaultZoom":{"anyOf":[{"type":"number","maximum":5.0,"minimum":0.25},{"type":"null"}],"title":"Defaultzoom"},"showSuggestedSites":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showsuggestedsites"},"showRecentPages":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showrecentpages"},"saveHistory":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Savehistory"},"historyRetentionDays":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":0.0},{"type":"null"}],"title":"Historyretentiondays"},"saveDownloadHistory":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Savedownloadhistory"},"askWhereToSave":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Askwheretosave"},"askBeforeDownloading":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Askbeforedownloading"},"askBeforeProgramDownloads":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Askbeforeprogramdownloads"},"annotationScreenshots":{"anyOf":[{"type":"string","enum":["always","never"]},{"type":"null"}],"title":"Annotationscreenshots"}},"type":"object","title":"BrowserPrefsPayload"},"BulkEntriesRequest":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/PromptEntry"},"type":"array","title":"Entries"}},"type":"object","required":["entries"],"title":"BulkEntriesRequest"},"BulkListsRequest":{"properties":{"lists":{"items":{"$ref":"#/components/schemas/PromptList"},"type":"array","title":"Lists"}},"type":"object","required":["lists"],"title":"BulkListsRequest"},"CacheEntryResponse":{"properties":{"key":{"type":"string","title":"Key"},"group":{"type":"string","title":"Group"},"opt_in":{"type":"boolean","title":"Opt In"},"paths":{"items":{"type":"string"},"type":"array","title":"Paths"},"measured_paths":{"items":{"type":"string"},"type":"array","title":"Measured Paths"},"clear_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Clear Size Bytes"},"clear_entry_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Clear Entry Count"},"system_disk_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"System Disk Bytes"},"size_bytes":{"type":"integer","title":"Size Bytes"},"entry_count":{"type":"integer","title":"Entry Count"},"present":{"type":"boolean","title":"Present"},"purgeable":{"type":"boolean","title":"Purgeable"},"blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Reason"}},"type":"object","required":["key","group","opt_in","paths","size_bytes","entry_count","present","purgeable"],"title":"CacheEntryResponse"},"CacheInventoryResponse":{"properties":{"caches":{"items":{"$ref":"#/components/schemas/CacheEntryResponse"},"type":"array","title":"Caches"},"total_bytes":{"type":"integer","title":"Total Bytes"},"reclaimable_bytes":{"type":"integer","title":"Reclaimable Bytes"},"free_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Bytes"},"total_disk_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Disk Bytes"},"refreshing":{"type":"boolean","title":"Refreshing","default":false}},"type":"object","required":["caches","total_bytes","reclaimable_bytes"],"title":"CacheInventoryResponse"},"CachePurgePayload":{"properties":{"keys":{"items":{"type":"string"},"type":"array","maxItems":17,"minItems":1,"title":"Keys"}},"type":"object","required":["keys"],"title":"CachePurgePayload"},"CachePurgeResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/CachePurgeResultResponse"},"type":"array","title":"Results"},"freed_bytes":{"type":"integer","title":"Freed Bytes"},"inventory":{"$ref":"#/components/schemas/CacheInventoryResponse"}},"type":"object","required":["results","freed_bytes","inventory"],"title":"CachePurgeResponse"},"CachePurgeResultResponse":{"properties":{"key":{"type":"string","title":"Key"},"freed_bytes":{"type":"integer","title":"Freed Bytes"},"removed_entries":{"type":"integer","title":"Removed Entries"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["key","freed_bytes","removed_entries","errors"],"title":"CachePurgeResultResponse"},"CachedDatasetItem":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"size_bytes":{"type":"integer","title":"Size Bytes","default":0},"last_modified":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Modified"},"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path"},"load_cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Cache Path"},"processed_cache":{"type":"boolean","title":"Processed Cache","default":false},"partial":{"type":"boolean","title":"Partial","default":false},"partial_transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partial Transport"},"partial_resumable":{"type":"boolean","title":"Partial Resumable","default":false}},"type":"object","required":["repo_id"],"title":"CachedDatasetItem"},"CachedDatasetsResponse":{"properties":{"cached":{"items":{"$ref":"#/components/schemas/CachedDatasetItem"},"type":"array","title":"Cached"}},"type":"object","title":"CachedDatasetsResponse"},"CachedGgufRepo":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"size_bytes":{"type":"integer","title":"Size Bytes","default":0},"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path"},"cache_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Ref"},"last_modified":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Modified"},"partial":{"type":"boolean","title":"Partial","default":false},"partial_transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partial Transport"},"partial_resumable":{"type":"boolean","title":"Partial Resumable","default":false},"inventory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inventory Id"},"load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Id"},"model_format":{"type":"string","enum":["gguf","safetensors","adapter","checkpoint","unknown"],"title":"Model Format","default":"gguf"},"artifact_kind":{"type":"string","enum":["diffusers_pipeline","diffusers_modular_pipeline","diffusers_dual_pipeline","transformers_model","single_file_checkpoint","gguf","adapter","unknown"],"title":"Artifact Kind","default":"unknown"},"runtime":{"type":"string","enum":["llama_cpp","transformers","adapter","unknown"],"title":"Runtime","default":"unknown"},"format_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format Variant"},"capabilities":{"$ref":"#/components/schemas/LocalModelCapabilities"},"task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task"},"audio_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Type"},"audio_workflows":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Audio Workflows"},"has_variant_state":{"type":"boolean","title":"Has Variant State","description":"Whether a download manifest or cancel marker exists for some quant. A sibling cancelled before any file landed changes nothing else on this row, so callers watching for on-disk change need this to notice it.","default":false},"umbrella_folder":{"type":"boolean","title":"Umbrella Folder","default":false}},"type":"object","required":["repo_id"],"title":"CachedGgufRepo"},"CachedGgufResponse":{"properties":{"cached":{"items":{"$ref":"#/components/schemas/CachedGgufRepo"},"type":"array","title":"Cached"},"scan_confirmed":{"type":"boolean","title":"Scan Confirmed","default":true}},"type":"object","title":"CachedGgufResponse"},"CachedModelPathResponse":{"properties":{"path":{"type":"string","title":"Path"},"is_dir":{"type":"boolean","title":"Is Dir"}},"type":"object","required":["path","is_dir"],"title":"CachedModelPathResponse"},"CancelDatasetDownloadRequest":{"properties":{"repo_id":{"type":"string","title":"Repo Id","description":"HuggingFace dataset repo ID"},"generation":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Generation","description":"Download generation"}},"type":"object","required":["repo_id"],"title":"CancelDatasetDownloadRequest"},"CancelDatasetDownloadResponse":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"state":{"type":"string","title":"State"}},"type":"object","required":["repo_id","state"],"title":"CancelDatasetDownloadResponse"},"CancelDownloadRequest":{"properties":{"repo_id":{"type":"string","title":"Repo Id","description":"HuggingFace repo ID"},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant","description":"GGUF variant label; omit for safetensors snapshots"},"generation":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Generation","description":"Download generation tag from a prior start; passing it scopes the cancel to that exact run."}},"type":"object","required":["repo_id"],"title":"CancelDownloadRequest"},"CancelDownloadResponse":{"properties":{"job_key":{"type":"string","title":"Job Key"},"state":{"type":"string","title":"State"}},"type":"object","required":["job_key","state"],"title":"CancelDownloadResponse"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","minLength":8,"title":"Current Password","description":"Existing password for the authenticated user"},"new_password":{"type":"string","minLength":8,"title":"New Password","description":"Replacement password (minimum 8 characters)"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest","description":"Change the current user's password, typically on first login."},"ChatAgentsMd":{"properties":{"text":{"type":"string","title":"Text","default":""}},"type":"object","title":"ChatAgentsMd"},"ChatBackgroundAdjustmentsPayload":{"properties":{"adjustments":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object","maxProperties":32,"title":"Adjustments"}},"type":"object","required":["adjustments"],"title":"ChatBackgroundAdjustmentsPayload"},"ChatBackgroundImageMeta":{"properties":{"sha256":{"type":"string","title":"Sha256"},"type":{"type":"string","title":"Type"},"size":{"type":"integer","title":"Size"}},"type":"object","required":["sha256","type","size"],"title":"ChatBackgroundImageMeta"},"ChatBackgroundResponse":{"properties":{"saved":{"type":"boolean","title":"Saved","default":false},"adjustments":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Adjustments"},"image":{"anyOf":[{"$ref":"#/components/schemas/ChatBackgroundImageMeta"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Updatedat"}},"type":"object","title":"ChatBackgroundResponse"},"ChatClearRequest":{"properties":{"ids":{"items":{"type":"string"},"type":"array","maxItems":200000,"title":"Ids"},"operationId":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Operationid"}},"type":"object","title":"ChatClearRequest"},"ChatCompletionRequest":{"properties":{"model":{"type":"string","title":"Model","description":"Model identifier (informational; the active model is used)","default":"default"},"messages":{"items":{"$ref":"#/components/schemas/models__inference__ChatMessage"},"type":"array","title":"Messages","description":"Conversation messages"},"stream":{"type":"boolean","title":"Stream","description":"Whether to stream the response via SSE. Default matches OpenAI's spec (`false`); opt into streaming by sending `stream: true`.","default":false},"temperature":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Temperature","default":0.6},"top_p":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Top P","default":0.95},"max_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Tokens","description":"Maximum tokens to generate (None = until EOS)"},"presence_penalty":{"type":"number","maximum":2.0,"minimum":-2.0,"title":"Presence Penalty","description":"Presence penalty: charges a token once if it appears. MLX scores the completion only; llama-server also counts the prompt, within its own window.","default":0.0},"frequency_penalty":{"type":"number","maximum":2.0,"minimum":-2.0,"title":"Frequency Penalty","description":"Frequency penalty: charges a token per occurrence. MLX scores the completion only; llama-server also counts the prompt, within its own window.","default":0.0},"logit_bias":{"anyOf":[{"additionalProperties":{"type":"number","maximum":100.0,"minimum":-100.0},"type":"object"},{"type":"null"}],"title":"Logit Bias","description":"Additive per-token logit bias keyed by token id, each in [-100, 100]. Ids past the model's logit width are ignored."},"stop":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop","description":"OpenAI stop sequences: a single string or list of strings at which generation halts."},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Format","description":"Guided decoding contract, typically `{\"type\": \"json_object\"}` or a `json_schema`. `{\"type\": \"text\"}` names the default and constrains nothing. Anything else needs a grammar engine, and a backend without one rejects the request rather than answering text that ignores the contract."},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools","description":"OpenAI function-tool definitions. When provided without `enable_tools=true`, Unsloth forwards the tools to the backend so the model returns structured tool_calls for the client to execute (standard OpenAI function calling)."},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice","description":"OpenAI tool choice: 'auto' | 'required' | 'none' | {'type': 'function', 'function': {'name': ...}}"},"max_completion_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Completion Tokens","description":"OpenAI upper bound on generated tokens (supersedes the deprecated max_tokens)."},"n":{"anyOf":[{"type":"integer","maximum":128.0,"minimum":1.0},{"type":"null"}],"title":"N","description":"Number of chat completion choices to generate."},"logprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Logprobs","description":"Whether to return log probabilities of the output tokens."},"top_logprobs":{"anyOf":[{"type":"integer","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Top Logprobs","description":"Number of most likely tokens (0-20) to return per position; requires logprobs=true."},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls","description":"Whether to enable parallel function calling during tool use."},"seed":{"anyOf":[{"type":"integer","maximum":1.8446744073709552e+19,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Seed","description":"Best-effort deterministic sampling seed."},"stream_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Stream Options","description":"Streaming options, e.g. {\"include_usage\": true} to emit a final usage chunk."},"top_k":{"type":"integer","maximum":100.0,"minimum":-1.0,"title":"Top K","description":"[x-unsloth] Top-k sampling","default":20},"min_p":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Min P","description":"[x-unsloth] Min-p sampling threshold","default":0.01},"repetition_penalty":{"type":"number","maximum":2.0,"minimum":1.0,"title":"Repetition Penalty","description":"[x-unsloth] Repetition penalty","default":1.0},"image_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Base64","description":"[x-unsloth] Base64-encoded image for vision models"},"audio_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Base64","description":"[x-unsloth] Base64-encoded audio (wav/mp3/ogg/flac/m4a) for audio-input models"},"modalities":{"anyOf":[{"items":{"type":"string","enum":["text","audio"]},"type":"array"},{"type":"null"}],"title":"Modalities","description":"Output modalities, as OpenAI's. [\"text\", \"audio\"] asks a model that speaks (status speaks) to answer the spoken question in audio_base64 in its own voice as well: the reply text, then message.audio / delta.audio {data: base64 wav, format: wav, sample_rate}. The model samples the reply its own way, so sampling settings do not apply and stop sequences are refused; max_tokens and usage count speech frames as well as text tokens; a streamed reply arrives whole, as one text delta and one audio delta."},"extra_audio_base64":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Extra Audio Base64","description":"[x-unsloth] Further recordings after audio_base64, in order, for models that take several clips in one message. Size and duration caps apply to all clips together."},"audio_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Instructions","description":"[x-unsloth] Scene or music-description instructions for native audio models. MiniMax Music 3 requires this alongside lyrics."},"audio_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Language","description":"[x-unsloth] Target-language hint for native audio models that support it."},"audio_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio Options","description":"[x-unsloth] Per-model request options ({name: value}) for audio GGUF models, as listed in the loaded model's audio_options. Unknown names are dropped."},"video_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Base64","description":"[x-unsloth] Base64-encoded video (mp4/mov/webm/mkv/avi) for video-input models: a GGUF served by llama-server, or an MLX model whose processor reads video."},"use_adapter":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"null"}],"title":"Use Adapter","description":"[x-unsloth] Adapter control for compare mode. null = no change (default), false = disable adapters (base model), true = enable the current adapter, string = enable a specific adapter by name."},"enable_thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Thinking","description":"[x-unsloth] Enable/disable thinking/reasoning mode for supported models"},"continue_final_message":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Continue Final Message","description":"[x-unsloth] Continue the trailing assistant message instead of starting a new turn: the prompt ends mid-response so the model resumes token-exactly from where it stopped. Requires the last message to have role 'assistant'."},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","max","xhigh"]},{"type":"null"}],"title":"Reasoning Effort","description":"[x-unsloth] Reasoning effort level ('none'|'minimal'|'low'|'medium'|'high'|'max'|'xhigh'). OpenAI `/v1/responses` accepts model-dependent subsets; Anthropic adaptive thinking uses `max` as the top tier on Claude 4.6 Opus/Sonnet (inbound `xhigh` is mapped to `max`) and `xhigh` on Claude 4.7 Opus; local Harmony/gpt-oss templates support low|medium|high."},"preserve_thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preserve Thinking","description":"[x-unsloth] When true, keep historical <think> blocks from past assistant turns in the prompt (Qwen3.6 templates). Independent of enable_thinking / reasoning_effort."},"thinking":{"anyOf":[{"$ref":"#/components/schemas/ThinkingConfig"},{"type":"null"}],"description":"[Anthropic-compatible] Thinking configuration. Use {type: 'disabled'} to disable thinking, {type: 'enabled'} to enable."},"enable_tools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Tools","description":"[x-unsloth] Enable tool calling for supported models"},"enabled_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Enabled Tools","description":"[x-unsloth] List of enabled tool names. Local GGUF/safetensors models accept ['web_search', 'python', 'terminal', 'edit_file', 'render_html']. External providers accept ['web_search', 'web_fetch', 'code_execution'] for Anthropic and ['web_search', 'code_execution', 'image_generation'] for OpenAI Responses. If None, all local tools are enabled and no server-side tools are forwarded."},"mcp_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mcp Enabled","description":"[x-unsloth] When true, append tools from every enabled MCP server to this request's tool list."},"mcp_image":{"anyOf":[{"type":"string","maxLength":15728640},{"type":"null"}],"title":"Mcp Image","description":"[x-unsloth] PNG, JPEG or WebP data URL that MCP tools with a mapped image field can receive after the user approves each call. Never shown to the model."},"deep_research_armed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deep Research Armed","description":"[x-unsloth] Offer the deep_research handoff tool for this turn. Set when the composer has Deep Research armed; the model decides whether to use it."},"confirm_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirm Tool Calls","description":"[x-unsloth] When true, pause before each tool call and wait for the user to allow/deny it via POST /api/inference/tool-confirm."},"bypass_permissions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bypass Permissions","description":"[x-unsloth] Bypass Permissions: when true, skip the tool-call confirmation gate AND disable the python/terminal execution sandbox (safety checks, command blocklist, resource limits). edit_file is likewise unconfined: an absolute path resolves as written and edits the real file there, instead of being held to the conversation's working directory. Secret env vars are still stripped. Takes precedence over confirm_tool_calls. Refused (400) for API keys and keyless API access unless the server sets UNSLOTH_STUDIO_ALLOW_API_FULL_ACCESS=1.","default":false},"permission_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permission Mode","description":"[x-unsloth] Permission level for local tool calls. 'ask' pauses every call for approval; 'ask'/'auto' enable the confirmation gate on their own (needs a streaming request to deliver prompts). 'auto' ('Approve for me') only pauses calls detected as high risk (credential reads, privilege escalation, destructive/persistence, network exfil); ordinary calls run immediately, and the sandbox stays on. 'full' is equivalent to bypass_permissions=true (no confirmation, no sandbox). Unset defaults to 'auto' for the per-call gate; a non-streaming request without an explicit mode cannot prompt and runs the loop. An unrecognized value (e.g. from a newer client) is treated as 'ask'."},"sandbox_level":{"type":"string","enum":["high","low"],"title":"Sandbox Level","description":"[x-unsloth] Sandbox level for the Python and Terminal tools. 'high' (default) runs them in the OS sandbox when it works and on software safeguards otherwise. 'low' runs them on software safeguards only, so on a streaming UI chat 'off' still asks before their high-risk calls; elsewhere 'off' never prompts, as before. Full access overrides both. Case-insensitive; any other value is rejected.","default":"high"},"auto_heal_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Heal Tool Calls","description":"[x-unsloth] Auto-detect and fix malformed tool calls from model output.","default":true},"nudge_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Nudge Tool Calls","description":"[x-unsloth] Opt-in tool-call recovery: when a model stalls with a short plan instead of calling an available tool, or passthrough healing cannot repair a malformed call, retry with a short nudge. Default off; UNSLOTH_TOOL_CALL_NUDGE=1 flips the process default."},"deduplicate_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deduplicate Tool Calls","description":"[x-unsloth] When false, a tool call identical to one that already succeeded in this response runs again instead of being answered with a duplicate notice. Default on.","default":true},"context_overflow":{"anyOf":[{"type":"string","enum":["error","truncate_middle","truncate_oldest"]},{"type":"null"}],"title":"Context Overflow","description":"[x-unsloth] Local GGUF context-overflow behavior. 'error' (default) returns a 400 with code=context_length_exceeded. 'truncate_middle' is limited to client-tool or response_format passthrough and retries after keeping the first and recent turns. 'truncate_oldest' provides a rolling window for plain and Unsloth-tool chats by dropping complete oldest turns. Both truncation policies preserve system messages and tool-call groups. MLX models honor 'truncate_oldest' only, as do external providers given a compaction_threshold."},"context_policy":{"anyOf":[{"type":"string","enum":["checkpoint","rolling"]},{"type":"null"}],"title":"Context Policy","description":"[x-unsloth] How a local GGUF or MLX chat compacts once context_overflow is truncate_oldest. 'checkpoint' resets to the latest turn plus standing instructions (Unsloth default). 'rolling' drops oldest complete turns. Unset uses UNSLOTH_CONTEXT_POLICY. On MLX only Unsloth-tool chats start a reset."},"compaction_headroom_ratio":{"anyOf":[{"type":"number","maximum":0.9,"minimum":0.0},{"type":"null"}],"title":"Compaction Headroom Ratio","description":"[x-unsloth] Extra share of the prompt budget to drop when a rolling compaction fires, so the boundary can stay put for a stretch of turns. A checkpoint reset leaves the same share free when it keeps the tool calls of the turn in progress. 0.25 is the process default (ROLLING_COMPACTION_HEADROOM_RATIO). Unset keeps the process default."},"compact_context":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Compact Context","description":"[x-unsloth] Compact now (Unsloth's /compact). A local GGUF or MLX chat starts a checkpoint on this request even when it still fits: older turns are archived and searchable, and the model keeps the newest turn plus standing instructions until the chat outgrows the window again. Needs context_overflow=truncate_oldest and a saved thread; otherwise ignored. On a cloud connection the turns before the newest one are summarised: by the provider where it compacts server-side (Anthropic, OpenAI Responses), otherwise by a summary call to the same model."},"studio_tool_history":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Studio Tool History","description":"[x-unsloth] The replayed tool calls were produced by Unsloth's local tool loop rather than by an OpenAI-compatible client tool contract."},"max_tool_calls_per_message":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Tool Calls Per Message","description":"[x-unsloth] Maximum number of tool call iterations per message (0 = disabled, 9999 = unlimited).","default":50},"tool_call_timeout":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Tool Call Timeout","description":"[x-unsloth] Timeout in seconds for each tool call execution (9999 = no limit).","default":300},"run_tools_locally":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Run Tools Locally","description":"[x-unsloth] Execute the selected tools on the Unsloth host instead of asking the provider to run its own hosted builtins. Only meaningful for providers that ship hosted tools of the same name (OpenAI, Gemini, Kimi, OpenRouter), where 'web_search' alone is ambiguous: the same request means hosted search to a client written before Unsloth ran tools for external providers. Omitted keeps the hosted behaviour, so an older client is unaffected."},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id","description":"[x-unsloth] Session/thread ID for scoping tool execution sandbox."},"sandbox_attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/SandboxAttachment"},"type":"array","maxItems":64},{"type":"null"}],"title":"Sandbox Attachments","description":"[x-unsloth] Chat attachment originals (hashes from POST /api/chat/attachment-originals) to copy into the session sandbox before the tool loop, when the python tool is enabled."},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id","description":"[x-unsloth] Conversation ID for scoping stateful tool sessions (e.g. stdio MCP); stays per-thread where session_id may be shared project-wide."},"user_message_id":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"User Message Id","description":"[x-unsloth] The user message this turn answers. With thread_id it keys the chat's file history, so /rewind can put back what this turn's tool calls changed."},"rag_scope":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rag Scope","description":"[x-unsloth] Hidden RAG retrieval scope for the search_knowledge_base tool: {kb_id?, thread_id?, default_top_k?, mode?, autoinject?, autoinject_min_score?}. Candidate pools and the RRF constant come from server config. The model never sees this; the server resolves which documents to search."},"cancel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Id","description":"[x-unsloth] Per-request cancellation token. Frontend sends a fresh UUID per run so /inference/cancel matches one specific generation."},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id","description":"[x-unsloth] Saved provider config ID. Its stored key is used when encrypted_api_key is omitted."},"provider_api_type":{"type":"string","enum":["chat_completions","responses"],"title":"Provider Api Type","default":"chat_completions"},"provider_reasoning_config":{"anyOf":[{"$ref":"#/components/schemas/ProviderReasoningConfig"},{"type":"null"}],"description":"[x-unsloth] Explicit Custom reasoning dialect; saved provider configuration takes precedence."},"provider_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Type","description":"[x-unsloth] Provider type (e.g. 'openai', 'mistral'). Used if provider_id is not set."},"external_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Model","description":"[x-unsloth] Model ID at the external provider."},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key","description":"[x-unsloth] RSA-encrypted, base64-encoded API key for the external provider."},"provider_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Base Url","description":"[x-unsloth] Override base URL for the external provider."},"extra_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Extra Headers","description":"[x-unsloth] Extra request headers when the request carries an API key. Saved connections send these from the stored record instead, so an explicit key cannot bind saved metadata."},"enable_prompt_caching":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"null"}],"title":"Enable Prompt Caching","description":"[x-unsloth] Opt in to provider-side prompt caching. On Anthropic, boolean true attaches cache_control={type:ephemeral} to the system block so the static prefix is reused across turns. On OpenAI cloud, caching is automatic for prompts >=1024 tokens and the boolean is informational. On Gemini, pass a string cache resource name such as `cachedContents/abc123` to attach `cachedContent` on the native request (boolean true is a no-op on Gemini because creating the cache requires a separate POST /cachedContents call). On OpenRouter, boolean true adds a top-level cache_control for anthropic/ models. Ignored for every other provider. Treated as enabled when omitted."},"prompt_cache_ttl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Ttl","description":"[x-unsloth] Anthropic cache_control TTL, also used for Claude on OpenRouter. Defaults to the 5-minute ephemeral pool when omitted. Pass `1h` to write into the 1-hour pool instead -- 1h writes are billed at 2x base input vs 1.25x for 5m, but reads stay at 0.1x for both, so 1h pays off the moment a single extra read lands more than 5 minutes after the write. Only `5m` and `1h` are forwarded; any other value is silently ignored downstream so a stale frontend can't make the API 422 on the request. No-op on every other provider."},"compaction_threshold":{"anyOf":[{"type":"integer","maximum":2000000.0,"minimum":1.0},{"type":"null"}],"title":"Compaction Threshold","description":"[x-unsloth] Server-side context compaction trigger, in tokens. Per-provider routing:\n  - Anthropic (Opus 4.6+, Sonnet 4.6, Mythos preview): attaches the `compact_20260112` edit and the `compact-2026-01-12` beta header. The upstream floor is 50k; `_stream_anthropic` clamps lower values up.\n  - OpenAI cloud (api.openai.com) and Azure OpenAI Foundry (*.openai.azure.com, *.services.ai.azure.com): attaches `context_management:[{type:'compaction', compact_threshold:N}]` to /v1/responses. A deployment that answers `compact_threshold is not enabled` is retried without it.\nBoth cap the trigger at 200k unless compaction_uncapped is set.\nEvery other provider and model ignores it unless context_overflow is truncate_oldest, in which case Unsloth asks the same model to summarise the oldest turns, keeps the recent ones verbatim and reuses the summary on later turns of a saved thread, so the prompt and the reply fit within it before forwarding. If the summary call fails the oldest turns are evicted instead, archived for recall on a saved thread. Per-provider floors are enforced in the corresponding stream helpers."},"compaction_uncapped":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Compaction Uncapped","description":"[x-unsloth] compaction_threshold is the connection's own \"Auto-compact after\" setting rather than the default. Anthropic and OpenAI server-side compaction then use it as given instead of capping it at 200k: it is still raised to the provider's floor and never exceeds context_window."},"compaction_percent":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":10.0},{"type":"null"}],"title":"Compaction Percent","description":"[x-unsloth] The connection's \"Auto-compact at\" share of the model's window, in percent. Where Unsloth reads the window from a self-hosted server (no compaction_threshold, or Ollama's loaded num_ctx), it replaces the 75% default."},"compaction_mode":{"anyOf":[{"type":"string","enum":["summary","rolling","checkpoint"]},{"type":"null"}],"title":"Compaction Mode","description":"[x-unsloth] How a cloud connection that does not compact server-side compacts once compaction_threshold is passed, and on compact_context. 'summary' (the default) asks the same model to summarise the older turns. 'rolling' and 'checkpoint' make no summary call and drop whole oldest turns into the thread's archive, where search_conversation and inline recall find them: 'rolling' drops just enough on each request, 'checkpoint' resets to the latest turn as a local model does, and only it honours compact_context. Ignored by local engines and by Anthropic and OpenAI server-side compaction."},"context_window":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Context Window","description":"[x-unsloth] The external model's context window, in tokens. When Unsloth drops the oldest turns for a compaction_threshold, the prompt also leaves room for max_tokens within it, and max_tokens is lowered if it would leave the prompt less than half of the window. With context_overflow=truncate_oldest and no compaction_threshold, three quarters of this window is used as the threshold; when this field is also omitted, a vLLM, llama.cpp or Custom connection uses the window its server reports on /models."},"openai_code_exec_container_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openai Code Exec Container Id","description":"[x-unsloth] OpenAI shell-tool container id from the prior response in the same chat thread. When set and `code_execution` is in `enabled_tools`, the next /v1/responses call uses environment.type='container_reference' so filesystem state persists across turns. Unset → environment.type='container_auto' and OpenAI creates a fresh container. Only meaningful for the OpenAI cloud + gpt-5.5 family path; ignored otherwise."},"anthropic_code_exec_container_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthropic Code Exec Container Id","description":"[x-unsloth] Anthropic code_execution container id from the prior response in the same chat thread. When set and `code_execution` is in `enabled_tools`, the next /v1/messages call carries a top-level `container` field so the model sees filesystem state from earlier turns. Unset → Anthropic auto-creates a fresh container. Stale ids surface a 4xx with a `container_expired` / `container_not_found` hint; the backend emits a synthetic `container_invalidated` _toolEvent so the next turn falls back to auto-create."},"fast_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fast Mode","description":"[x-unsloth] Anthropic fast-mode toggle. On Claude Opus 4.6 / 4.7 adds the `fast-mode-2026-02-01` beta header and sends `speed: 'fast'` for higher OTPS at premium pricing. Silently ignored on every other model + provider. See https://platform.claude.com/docs/en/build-with-claude/fast-mode"}},"additionalProperties":true,"type":"object","required":["messages"],"title":"ChatCompletionRequest","description":"OpenAI-compatible chat completion request.\n\nNon-OpenAI extension fields are marked with 'x-unsloth'."},"ChatCountResponse":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"ChatCountResponse"},"ChatCountTokensRequest":{"properties":{"enable_thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Thinking","description":"[x-unsloth] Enable/disable thinking/reasoning mode for supported models"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","max","xhigh"]},{"type":"null"}],"title":"Reasoning Effort","description":"[x-unsloth] Reasoning effort level ('none'|'minimal'|'low'|'medium'|'high'|'max'|'xhigh'). OpenAI `/v1/responses` accepts model-dependent subsets; Anthropic adaptive thinking uses `max` as the top tier on Claude 4.6 Opus/Sonnet (inbound `xhigh` is mapped to `max`) and `xhigh` on Claude 4.7 Opus; local Harmony/gpt-oss templates support low|medium|high."},"preserve_thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preserve Thinking","description":"[x-unsloth] When true, keep historical <think> blocks from past assistant turns in the prompt (Qwen3.6 templates). Independent of enable_thinking / reasoning_effort."},"thinking":{"anyOf":[{"$ref":"#/components/schemas/ThinkingConfig"},{"type":"null"}],"description":"[Anthropic-compatible] Thinking configuration. Use {type: 'disabled'} to disable thinking, {type: 'enabled'} to enable."},"model":{"type":"string","title":"Model","description":"Model identifier (informational; the active model is used)","default":"default"},"messages":{"items":{"$ref":"#/components/schemas/models__inference__ChatMessage"},"type":"array","title":"Messages","description":"Conversation messages in OpenAI chat form"},"max_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Tokens"},"context_overflow":{"anyOf":[{"type":"string","enum":["error","truncate_middle","truncate_oldest"]},{"type":"null"}],"title":"Context Overflow"},"context_policy":{"anyOf":[{"type":"string","enum":["checkpoint","rolling"]},{"type":"null"}],"title":"Context Policy"},"compaction_headroom_ratio":{"anyOf":[{"type":"number","maximum":0.9,"minimum":0.0},{"type":"null"}],"title":"Compaction Headroom Ratio"},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools","description":"Optional OpenAI tool definitions included in the prompt"},"enable_tools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Tools","description":"[x-unsloth] Enable tool calling for supported models"},"enabled_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Enabled Tools","description":"[x-unsloth] List of enabled built-in tool names"},"mcp_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mcp Enabled","description":"[x-unsloth] Append tools from every enabled MCP server"},"deep_research_armed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deep Research Armed","description":"[x-unsloth] Offer the deep_research handoff tool. Its schema is in the prompt whenever the composer armed research, so the count carries it too."},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id","description":"[x-unsloth] The thread being counted. A thread with a conversation archive puts search_conversation and its compaction nudge in the prompt, so the count needs the same id the completion sends to price them."},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id","description":"[x-unsloth] The tool session the completion sends. A project's chosen working folder adds a sentence to the tool nudge, so the count needs it to price that."},"rag_scope":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rag Scope","description":"[x-unsloth] Hidden RAG retrieval scope for search_knowledge_base"},"auto_heal_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Heal Tool Calls","description":"[x-unsloth] Strip leaked tool-call markup from replayed history"},"studio_tool_history":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Studio Tool History","description":"[x-unsloth] Mirrors ChatCompletionRequest: the replayed tool calls came from Unsloth's local tool loop, so _takes_tool_passthrough routes the count the way it routes the completion. Declared rather than left to extra='allow', which coerces nothing and would read the string 'false' as a claim of ownership."},"permission_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permission Mode","description":"[x-unsloth] Permission level the completion would send. 'full' swaps the python/terminal descriptions for the unsandboxed pair and adds a sentence to the tool nudge; 'ask' holds the tool loop's first-pass retrieval behind its confirmation gate, so a pending turn under a retrieval scope is countable. A count that omits this prices a prompt the completion will not send, or declines one it could have priced."},"sandbox_level":{"type":"string","enum":["high","low"],"title":"Sandbox Level","description":"[x-unsloth] Sandbox level for the Python and Terminal tools. 'high' (default) runs them in the OS sandbox when it works and on software safeguards otherwise. 'low' runs them on software safeguards only, so on a streaming UI chat 'off' still asks before their high-risk calls; elsewhere 'off' never prompts, as before. Full access overrides both. Case-insensitive; any other value is rejected.","default":"high"},"bypass_permissions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bypass Permissions","description":"[x-unsloth] Equivalent of permission_mode='full'. Declared explicitly (not left to extra='allow') so an omitted flag reads as None instead of raising AttributeError."},"confirm_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirm Tool Calls","description":"[x-unsloth] Whether the completion's tool loop would gate each call. Declared so it is typed and folded into permission_mode as it is on a completion."},"max_tool_calls_per_message":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Tool Calls Per Message","description":"[x-unsloth] Tool-call budget the completion would send. Zero suppresses the tool loop, so a count that never sees it prices a catalog the relay does not render."},"breakdown":{"type":"boolean","title":"Breakdown","description":"[x-unsloth] Also split the total into system, tools (schemas and the tool nudge) and messages, and return the rendered prompt (GGUF only; null elsewhere). Studio's /context. Costs two more renders.","default":false}},"additionalProperties":true,"type":"object","required":["messages"],"title":"ChatCountTokensRequest","description":"Count prompt tokens for a local chat without generating."},"ChatDeleteRequest":{"properties":{"ids":{"items":{"type":"string"},"type":"array","title":"Ids"},"delete_files":{"type":"boolean","title":"Delete Files","default":false}},"type":"object","required":["ids"],"title":"ChatDeleteRequest"},"ChatExportResponse":{"properties":{"exportedAt":{"type":"string","title":"Exportedat"},"version":{"type":"integer","title":"Version"},"threadCount":{"type":"integer","title":"Threadcount"},"projects":{"items":{"$ref":"#/components/schemas/ChatProject"},"type":"array","title":"Projects"},"threads":{"items":{"$ref":"#/components/schemas/ChatThread-Output"},"type":"array","title":"Threads"},"messages":{"items":{"$ref":"#/components/schemas/ChatMessage-Output"},"type":"array","title":"Messages"}},"type":"object","required":["exportedAt","version","threadCount","threads","messages"],"title":"ChatExportResponse"},"ChatForkCountResponse":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"ChatForkCountResponse"},"ChatForkRequest":{"properties":{"messageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messageid"},"newThreadId":{"type":"string","title":"Newthreadid"},"createdAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Createdat"}},"type":"object","required":["newThreadId","createdAt"],"title":"ChatForkRequest"},"ChatForkResponse":{"properties":{"thread":{"$ref":"#/components/schemas/ChatThread-Output"},"messages":{"items":{"$ref":"#/components/schemas/ChatMessage-Output"},"type":"array","title":"Messages"},"containerSnapshotWarning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Containersnapshotwarning"}},"type":"object","required":["thread","messages"],"title":"ChatForkResponse"},"ChatHistoryRevisionResponse":{"properties":{"revision":{"type":"integer","title":"Revision"},"threads":{"additionalProperties":{"type":"integer"},"type":"object","title":"Threads"}},"type":"object","required":["revision","threads"],"title":"ChatHistoryRevisionResponse"},"ChatImportLedgerRecordRequest":{"properties":{"threadIds":{"items":{"type":"string"},"type":"array","maxItems":10000,"title":"Threadids"}},"type":"object","title":"ChatImportLedgerRecordRequest"},"ChatImportLedgerRecordResponse":{"properties":{"accepted":{"type":"integer","title":"Accepted"},"inserted":{"type":"integer","title":"Inserted"}},"type":"object","required":["accepted","inserted"],"title":"ChatImportLedgerRecordResponse"},"ChatImportLedgerResponse":{"properties":{"threadIds":{"items":{"type":"string"},"type":"array","title":"Threadids"}},"type":"object","required":["threadIds"],"title":"ChatImportLedgerResponse"},"ChatMemoryPayload":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"}},"type":"object","title":"ChatMemoryPayload"},"ChatMemoryResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"text":{"type":"string","title":"Text"},"path":{"type":"string","title":"Path"},"max_bytes":{"type":"integer","title":"Max Bytes"},"locked_by_environment":{"type":"boolean","title":"Locked By Environment"}},"type":"object","required":["enabled","text","path","max_bytes","locked_by_environment"],"title":"ChatMemoryResponse"},"ChatMessage-Output":{"properties":{"id":{"type":"string","title":"Id"},"threadId":{"type":"string","title":"Threadid"},"parentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parentid"},"role":{"type":"string","title":"Role"},"content":{"title":"Content"},"attachments":{"anyOf":[{},{"type":"null"}],"title":"Attachments"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"createdAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Createdat"}},"type":"object","required":["id","threadId","role","createdAt"],"title":"ChatMessage"},"ChatMessageCountsResponse":{"properties":{"countsByThreadId":{"additionalProperties":{"type":"integer"},"type":"object","title":"Countsbythreadid"}},"type":"object","required":["countsByThreadId"],"title":"ChatMessageCountsResponse"},"ChatMessageListResponse":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/ChatMessage-Output"},"type":"array","title":"Messages"}},"type":"object","required":["messages"],"title":"ChatMessageListResponse"},"ChatMessageSyncRequest":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/routes__chat_history__ChatMessage"},"type":"array","title":"Messages"},"pruneMissing":{"type":"boolean","title":"Prunemissing","default":false},"deletedMessageIds":{"items":{"type":"string"},"type":"array","title":"Deletedmessageids"}},"type":"object","required":["messages"],"title":"ChatMessageSyncRequest"},"ChatMessagesBatchRequest":{"properties":{"threadIds":{"items":{"type":"string"},"type":"array","title":"Threadids"},"view":{"type":"string","enum":["full","search"],"title":"View","default":"full"}},"type":"object","required":["threadIds"],"title":"ChatMessagesBatchRequest"},"ChatMessagesBatchResponse":{"properties":{"messagesByThreadId":{"additionalProperties":{"items":{"$ref":"#/components/schemas/ChatMessage-Output"},"type":"array"},"type":"object","title":"Messagesbythreadid"}},"type":"object","required":["messagesByThreadId"],"title":"ChatMessagesBatchResponse"},"ChatPdfRequest":{"properties":{"model":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Model"},"title":{"type":"string","maxLength":2000,"title":"Title","default":""},"html":{"type":"string","maxLength":67108864,"minLength":1,"title":"Html"}},"type":"object","required":["html"],"title":"ChatPdfRequest"},"ChatPinsMigrationRequest":{"properties":{"ids":{"items":{"type":"string","maxLength":512,"minLength":1},"type":"array","maxItems":10000,"title":"Ids"}},"additionalProperties":false,"type":"object","required":["ids"],"title":"ChatPinsMigrationRequest"},"ChatPinsResponse":{"properties":{"pinnedIds":{"items":{"type":"string"},"type":"array","title":"Pinnedids"}},"type":"object","title":"ChatPinsResponse"},"ChatPreferencesMigrationPayload":{"properties":{"show_model_disclaimer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Model Disclaimer"}},"type":"object","title":"ChatPreferencesMigrationPayload"},"ChatPreferencesPayload":{"properties":{"show_model_disclaimer":{"type":"boolean","title":"Show Model Disclaimer"}},"type":"object","required":["show_model_disclaimer"],"title":"ChatPreferencesPayload"},"ChatPreferencesResponse":{"properties":{"show_model_disclaimer":{"type":"boolean","title":"Show Model Disclaimer"}},"type":"object","required":["show_model_disclaimer"],"title":"ChatPreferencesResponse"},"ChatPrefsPayload":{"properties":{"shareComposerDraft":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sharecomposerdraft"},"plainTextComposer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Plaintextcomposer"},"showContextWindowUsage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showcontextwindowusage"},"sendShortcut":{"anyOf":[{"type":"string","enum":["enter","mod-enter-multiline","mod-enter"]},{"type":"null"}],"title":"Sendshortcut"},"followUpBehavior":{"anyOf":[{"type":"string","enum":["queue","steer"]},{"type":"null"}],"title":"Followupbehavior"},"confirmDeleteChats":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirmdeletechats"},"alwaysDeleteChatFiles":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Alwaysdeletechatfiles"},"showResponseModel":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showresponsemodel"},"showLinkPreviews":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showlinkpreviews"},"showReplyTimes":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showreplytimes"},"showGenerationDetails":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showgenerationdetails"},"showInlineEditResponse":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showinlineeditresponse"},"thinkingVisibility":{"anyOf":[{"type":"string","enum":["collapsed","auto","expanded"]},{"type":"null"}],"title":"Thinkingvisibility"},"toolVisibility":{"anyOf":[{"type":"string","enum":["collapsed","auto","expanded"]},{"type":"null"}],"title":"Toolvisibility"},"foldToolActivityIntoThinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Foldtoolactivityintothinking"},"pastedTextMinChars":{"anyOf":[{"type":"integer","enum":[0,2000,4000,8000,16000]},{"type":"null"}],"title":"Pastedtextminchars"},"autoScrollWhileGenerating":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autoscrollwhilegenerating"},"newChatComposerPosition":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Newchatcomposerposition"},"showTurnNavigation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showturnnavigation"},"richTextPaste":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Richtextpaste"},"generationStatsUpdates":{"anyOf":[{"type":"string","enum":["settled","realtime"]},{"type":"null"}],"title":"Generationstatsupdates"}},"type":"object","title":"ChatPrefsPayload"},"ChatProject":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"instructions":{"type":"string","title":"Instructions","default":""},"mcpServerIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mcpserverids"},"rootPath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rootpath"},"sandboxPath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sandboxpath"},"workingFolder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolder"},"workingFolderStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolderstatus"},"workingFolderDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolderdisplay"},"workingFolderBranch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolderbranch"},"archived":{"type":"boolean","title":"Archived","default":false},"createdAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Createdat"},"updatedAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Updatedat"},"lastActivityAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lastactivityat"}},"type":"object","required":["id","name","createdAt","updatedAt"],"title":"ChatProject"},"ChatProjectCreate":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"instructions":{"type":"string","title":"Instructions","default":""},"mcpServerIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mcpserverids"},"rootPath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rootpath"},"sandboxPath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sandboxpath"},"workingFolder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolder"},"workingFolderStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolderstatus"},"workingFolderDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolderdisplay"},"workingFolderBranch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolderbranch"},"archived":{"type":"boolean","title":"Archived","default":false},"createdAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Createdat"},"updatedAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Updatedat"},"lastActivityAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lastactivityat"},"nativePathLease":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Nativepathlease"},"reuseExisting":{"type":"boolean","title":"Reuseexisting","default":false}},"type":"object","required":["id","name","createdAt","updatedAt"],"title":"ChatProjectCreate"},"ChatProjectDeleted":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"instructions":{"type":"string","title":"Instructions","default":""},"mcpServerIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mcpserverids"},"rootPath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rootpath"},"sandboxPath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sandboxpath"},"workingFolder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolder"},"workingFolderStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolderstatus"},"workingFolderDisplay":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolderdisplay"},"workingFolderBranch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workingfolderbranch"},"archived":{"type":"boolean","title":"Archived","default":false},"createdAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Createdat"},"updatedAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Updatedat"},"lastActivityAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lastactivityat"},"sandboxes_kept":{"items":{"type":"string"},"type":"array","title":"Sandboxes Kept","default":[]}},"type":"object","required":["id","name","createdAt","updatedAt"],"title":"ChatProjectDeleted","description":"The deleted project, plus the member sandboxes that still hold files."},"ChatProjectFolderAccess":{"properties":{"serverPath":{"type":"boolean","title":"Serverpath","default":false}},"type":"object","title":"ChatProjectFolderAccess"},"ChatProjectListResponse":{"properties":{"projects":{"items":{"$ref":"#/components/schemas/ChatProject"},"type":"array","title":"Projects"}},"type":"object","required":["projects"],"title":"ChatProjectListResponse"},"ChatProjectPatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"mcpServerIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Mcpserverids"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived"},"createdAt":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Updatedat"}},"type":"object","title":"ChatProjectPatch"},"ChatProjectWorkingFolder":{"properties":{"nativePathLease":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Nativepathlease"},"serverPath":{"anyOf":[{"type":"string","maxLength":4096,"minLength":1},{"type":"null"}],"title":"Serverpath"}},"additionalProperties":false,"type":"object","title":"ChatProjectWorkingFolder"},"ChatRagKnowledgeBaseSource":{"properties":{"type":{"type":"string","const":"kb","title":"Type"},"kbId":{"type":"string","maxLength":256,"minLength":1,"title":"Kbid"}},"additionalProperties":false,"type":"object","required":["type","kbId"],"title":"ChatRagKnowledgeBaseSource"},"ChatRagThreadSource":{"properties":{"type":{"type":"string","const":"thread","title":"Type"}},"additionalProperties":false,"type":"object","required":["type"],"title":"ChatRagThreadSource"},"ChatRewindRequest":{"properties":{"turn_ids":{"items":{"type":"string","maxLength":256,"minLength":1},"type":"array","maxItems":5000,"title":"Turn Ids"},"dry_run":{"type":"boolean","title":"Dry Run","default":false},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["turn_ids"],"title":"ChatRewindRequest"},"ChatSettingsResponse":{"properties":{"settings":{"additionalProperties":true,"type":"object","title":"Settings"}},"type":"object","required":["settings"],"title":"ChatSettingsResponse"},"ChatSidebarRow":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","enum":["single","compare"],"title":"Type"},"threadIds":{"items":{"type":"string"},"type":"array","title":"Threadids"},"title":{"type":"string","title":"Title"},"createdAt":{"type":"integer","title":"Createdat"},"updatedAt":{"type":"integer","title":"Updatedat"},"modifiedAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Modifiedat"},"modelIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Modelids"},"isFork":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isfork"},"isScheduled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isscheduled"},"threadTitles":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Threadtitles"},"projectId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Projectid"}},"type":"object","required":["id","type","threadIds","title","createdAt","updatedAt"],"title":"ChatSidebarRow","description":"One sidebar row, shaped as the frontend's SidebarItem."},"ChatSidebarRowsRequest":{"properties":{"archived":{"type":"boolean","title":"Archived","default":false},"projectId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Projectid"},"unfiledOnly":{"type":"boolean","title":"Unfiledonly","default":false},"includeIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Includeids"},"excludeIds":{"items":{"type":"string"},"type":"array","title":"Excludeids"},"sort":{"type":"string","enum":["updated","manual"],"title":"Sort","default":"updated"},"manualOrder":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Manualorder"},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","default":20},"cursor":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Cursor"}},"additionalProperties":false,"type":"object","title":"ChatSidebarRowsRequest"},"ChatSidebarRowsResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/ChatSidebarRow"},"type":"array","title":"Rows"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextcursor"},"hasMore":{"type":"boolean","title":"Hasmore"},"total":{"type":"integer","title":"Total"},"threadPatchGuards":{"type":"boolean","title":"Threadpatchguards","default":false}},"type":"object","required":["rows","hasMore","total"],"title":"ChatSidebarRowsResponse"},"ChatSidebarThreadRowsResponse":{"properties":{"rowIdByThreadId":{"additionalProperties":{"type":"string"},"type":"object","title":"Rowidbythreadid"}},"type":"object","required":["rowIdByThreadId"],"title":"ChatSidebarThreadRowsResponse"},"ChatThread-Input":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title","default":"New Chat"},"modelType":{"type":"string","enum":["base","lora","model1","model2"],"title":"Modeltype"},"modelId":{"type":"string","title":"Modelid","default":""},"modelGgufVariant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modelggufvariant"},"pairId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pairid"},"projectId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Projectid"},"archived":{"type":"boolean","title":"Archived","default":false},"createdAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Updatedat"},"openaiCodeExecContainerId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openaicodeexeccontainerid"},"anthropicCodeExecContainerId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthropiccodeexeccontainerid"},"forkedFromThreadId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forkedfromthreadid"},"forkedFromMessageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forkedfrommessageid"},"forkBoundaryMessageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forkboundarymessageid"},"forkTitleBase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forktitlebase"},"scheduledTaskId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduledtaskid"},"modifiedAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Modifiedat"},"settings":{"anyOf":[{"$ref":"#/components/schemas/ChatThreadSettings"},{"type":"null"}]}},"type":"object","required":["id","modelType","createdAt"],"title":"ChatThread"},"ChatThread-Output":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title","default":"New Chat"},"modelType":{"type":"string","enum":["base","lora","model1","model2"],"title":"Modeltype"},"modelId":{"type":"string","title":"Modelid","default":""},"modelGgufVariant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modelggufvariant"},"pairId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pairid"},"projectId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Projectid"},"archived":{"type":"boolean","title":"Archived","default":false},"createdAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Updatedat"},"openaiCodeExecContainerId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openaicodeexeccontainerid"},"anthropicCodeExecContainerId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthropiccodeexeccontainerid"},"forkedFromThreadId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forkedfromthreadid"},"forkedFromMessageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forkedfrommessageid"},"forkBoundaryMessageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forkboundarymessageid"},"forkTitleBase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forktitlebase"},"scheduledTaskId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduledtaskid"},"modifiedAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Modifiedat"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}]}},"type":"object","required":["id","modelType","createdAt"],"title":"ChatThread"},"ChatThreadForkCountsResponse":{"properties":{"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"}},"type":"object","required":["counts"],"title":"ChatThreadForkCountsResponse"},"ChatThreadListResponse":{"properties":{"threads":{"items":{"$ref":"#/components/schemas/ChatThread-Output"},"type":"array","title":"Threads"},"threadPatchGuards":{"type":"boolean","title":"Threadpatchguards","default":false}},"type":"object","required":["threads"],"title":"ChatThreadListResponse"},"ChatThreadPatch":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"expectedTitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expectedtitle"},"preserveTitleModifiedAt":{"type":"boolean","title":"Preservetitlemodifiedat","default":false},"expectedOpeningMessageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expectedopeningmessageid"},"modelType":{"anyOf":[{"type":"string","enum":["base","lora","model1","model2"]},{"type":"null"}],"title":"Modeltype"},"modelId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modelid"},"modelGgufVariant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modelggufvariant"},"pairId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pairid"},"projectId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Projectid"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived"},"createdAt":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Updatedat"},"openaiCodeExecContainerId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openaicodeexeccontainerid"},"anthropicCodeExecContainerId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthropiccodeexeccontainerid"},"settings":{"anyOf":[{"$ref":"#/components/schemas/ChatThreadSettings"},{"type":"null"}]},"settingsPatch":{"anyOf":[{"$ref":"#/components/schemas/ChatThreadSettings"},{"type":"null"}]},"settingsSeq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Settingsseq"},"settingsWriter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settingswriter"}},"type":"object","title":"ChatThreadPatch"},"ChatThreadSettings":{"properties":{"reasoningEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reasoningenabled"},"reasoningEffort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","max","xhigh"]},{"type":"null"}],"title":"Reasoningeffort"},"toolsEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Toolsenabled"},"codeToolsEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Codetoolsenabled"},"imageToolsEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Imagetoolsenabled"},"webFetchToolsEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Webfetchtoolsenabled"},"deepResearchEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deepresearchenabled"},"artifactsEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Artifactsenabled"},"mcpEnabledForChat":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mcpenabledforchat"},"permissionMode":{"anyOf":[{"type":"string","enum":["ask","auto","off"]},{"type":"null"}],"title":"Permissionmode"},"fullAccess":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fullaccess"},"ragEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ragenabled"},"ragSource":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/ChatRagThreadSource"},{"$ref":"#/components/schemas/ChatRagKnowledgeBaseSource"}],"discriminator":{"propertyName":"type","mapping":{"kb":"#/components/schemas/ChatRagKnowledgeBaseSource","thread":"#/components/schemas/ChatRagThreadSource"}}},{"type":"null"}],"title":"Ragsource"},"ragMode":{"anyOf":[{"type":"string","enum":["hybrid","lexical","dense"]},{"type":"null"}],"title":"Ragmode"},"ragTopK":{"anyOf":[{"type":"integer","maximum":50.0,"minimum":1.0},{"type":"null"}],"title":"Ragtopk"},"ragAutoInject":{"anyOf":[{"type":"string","enum":["auto","on","off"]},{"type":"null"}],"title":"Ragautoinject"},"ragAutoInjectMinScore":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Ragautoinjectminscore"},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature"},"topP":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Topp"},"topK":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":-1.0},{"type":"null"}],"title":"Topk"},"minP":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Minp"},"minPMode":{"anyOf":[{"type":"string","enum":["server-default","custom"]},{"type":"null"}],"title":"Minpmode"},"repetitionPenalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":1.0},{"type":"null"}],"title":"Repetitionpenalty"},"presencePenalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Presencepenalty"},"seed":{"anyOf":[{"type":"integer","maximum":4294967294.0,"minimum":0.0},{"type":"null"}],"title":"Seed"},"systemPrompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Systemprompt"},"systemVariables":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Systemvariables"}},"additionalProperties":false,"type":"object","title":"ChatThreadSettings","description":"The chat settings captured per thread; a thread storing none uses the global ones."},"CheckFormatResponse":{"properties":{"requires_manual_mapping":{"type":"boolean","title":"Requires Manual Mapping"},"detected_format":{"type":"string","title":"Detected Format"},"columns":{"items":{"type":"string"},"type":"array","title":"Columns"},"is_image":{"type":"boolean","title":"Is Image","default":false},"is_audio":{"type":"boolean","title":"Is Audio","default":false},"multimodal_columns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Multimodal Columns"},"suggested_mapping":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Suggested Mapping"},"detected_image_column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Image Column"},"detected_audio_column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Audio Column"},"detected_text_column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Text Column"},"detected_speaker_column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Speaker Column"},"chat_column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Column"},"preview_samples":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Preview Samples"},"total_rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Rows"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning"}},"type":"object","required":["requires_manual_mapping","detected_format","columns"],"title":"CheckFormatResponse"},"CheckpointInfo":{"properties":{"display_name":{"type":"string","title":"Display Name","description":"User-friendly checkpoint name (folder name)"},"path":{"type":"string","title":"Path","description":"Full path to the checkpoint directory"},"loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loss","description":"Training loss at this checkpoint"}},"type":"object","required":["display_name","path"],"title":"CheckpointInfo","description":"Information about a discovered checkpoint directory."},"CheckpointListResponse":{"properties":{"outputs_dir":{"type":"string","title":"Outputs Dir","description":"Directory that was scanned"},"models":{"items":{"$ref":"#/components/schemas/ModelCheckpoints"},"type":"array","title":"Models","description":"List of training runs with their checkpoints"}},"type":"object","required":["outputs_dir"],"title":"CheckpointListResponse","description":"Response for listing available checkpoints in an outputs directory."},"ClientPreferencesPayload":{"properties":{"interfaceScale":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":50.0},{"type":"null"}],"title":"Interfacescale"},"browser":{"anyOf":[{"$ref":"#/components/schemas/BrowserPrefsPayload"},{"type":"null"}]},"chat":{"anyOf":[{"$ref":"#/components/schemas/ChatPrefsPayload"},{"type":"null"}]},"plusMenu":{"anyOf":[{"$ref":"#/components/schemas/PlusMenuPrefsPayload"},{"type":"null"}]},"material":{"anyOf":[{"$ref":"#/components/schemas/MaterialPrefsPayload"},{"type":"null"}]},"timeFormat":{"anyOf":[{"type":"string","enum":["system","12h","24h"]},{"type":"null"}],"title":"Timeformat"},"spellcheck":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spellcheck"}},"type":"object","title":"ClientPreferencesPayload"},"ClientPreferencesResponse":{"properties":{"interfaceScale":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":50.0},{"type":"null"}],"title":"Interfacescale"},"browser":{"anyOf":[{"$ref":"#/components/schemas/BrowserPrefsPayload"},{"type":"null"}]},"chat":{"anyOf":[{"$ref":"#/components/schemas/ChatPrefsPayload"},{"type":"null"}]},"plusMenu":{"anyOf":[{"$ref":"#/components/schemas/PlusMenuPrefsPayload"},{"type":"null"}]},"material":{"anyOf":[{"$ref":"#/components/schemas/MaterialPrefsPayload"},{"type":"null"}]},"timeFormat":{"anyOf":[{"type":"string","enum":["system","12h","24h"]},{"type":"null"}],"title":"Timeformat"},"spellcheck":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spellcheck"},"saved":{"type":"boolean","title":"Saved","default":false},"updatedAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Updatedat"}},"type":"object","title":"ClientPreferencesResponse"},"CodingAgentsResponse":{"properties":{"agents":{"items":{"type":"string"},"type":"array","title":"Agents","default":["claude","codex","vscode","dsh","opencode","hermes","openclaw","pi","vibe"]},"detected":{"items":{"type":"string"},"type":"array","title":"Detected"}},"type":"object","required":["detected"],"title":"CodingAgentsResponse"},"CompactionContentPart":{"properties":{"type":{"type":"string","const":"compaction","title":"Type"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content","description":"Anthropic-produced summary of the compacted-away conversation prefix."},"encrypted_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Content","description":"OpenAI Responses compaction item, opaque."}},"type":"object","required":["type"],"title":"CompactionContentPart","description":"round-trip Anthropic summaries and opaque OpenAI Responses compaction state."},"CompanionAssetInfo":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"size_bytes":{"type":"integer","title":"Size Bytes","description":"Real on-disk blob bytes, deduped per blob","default":0},"needed_by":{"items":{"type":"string"},"type":"array","title":"Needed By","description":"Installed models that still need it; empty means it is reclaimable"}},"type":"object","required":["repo_id"],"title":"CompanionAssetInfo","description":"A companion base repo (text encoders, VAE, tokenizer, configs) in the cache."},"ComputerUseAppRequest":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["name"],"title":"ComputerUseAppRequest"},"ComputerUsePermissions":{"properties":{"screen":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Screen"},"input":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Input"}},"type":"object","title":"ComputerUsePermissions"},"ComputerUseSettingsRequest":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"coordinates":{"anyOf":[{"type":"string","enum":["auto","pixels","grid"]},{"type":"null"}],"title":"Coordinates"}},"additionalProperties":false,"type":"object","title":"ComputerUseSettingsRequest"},"ComputerUseStatus":{"properties":{"available":{"type":"boolean","title":"Available"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"enabled":{"type":"boolean","title":"Enabled"},"coordinates":{"type":"string","enum":["auto","pixels","grid"],"title":"Coordinates"},"platform":{"type":"string","title":"Platform"},"permissions":{"$ref":"#/components/schemas/ComputerUsePermissions"},"allowed_apps":{"items":{"type":"string"},"type":"array","title":"Allowed Apps","default":[]},"blocked_apps":{"items":{"type":"string"},"type":"array","title":"Blocked Apps","default":[]},"stopped_chats":{"type":"integer","title":"Stopped Chats","default":0}},"type":"object","required":["available","enabled","coordinates","platform","permissions"],"title":"ComputerUseStatus"},"ConditionalChatSettingsResponse":{"properties":{"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"applied":{"type":"boolean","title":"Applied"}},"type":"object","required":["settings","applied"],"title":"ConditionalChatSettingsResponse"},"ControlNetSpec":{"properties":{"id":{"type":"string","maxLength":512,"minLength":1,"title":"Id","description":"ControlNet discovery id (repo id or local name)"},"image":{"type":"string","maxLength":33554432,"minLength":1,"title":"Image","description":"Base64/data-URL control image (a source image or a preprocessed map)"},"control_type":{"type":"string","title":"Control Type","description":"How to derive the control map: 'passthrough' (already a map) or 'canny'","default":"passthrough"},"strength":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Strength","description":"ControlNet conditioning scale; 0 disables","default":1.0},"guidance_start":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Guidance Start","description":"Fraction of steps at which ControlNet begins","default":0.0},"guidance_end":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Guidance End","description":"Fraction of steps at which ControlNet ends","default":1.0}},"type":"object","required":["id","image"],"title":"ControlNetSpec","description":"A ControlNet to condition this generation on: a discovery id plus a control image.\n\nThe id resolves against the backend's ControlNet catalog + local scan (see\ncore/inference/diffusion_controlnet.py); the client never supplies a raw filesystem path.\n``image`` is either an already-made control map (``control_type='passthrough'``) or a source\nimage the backend turns into a map (``control_type='canny'``). strength 0 disables it."},"ConvertQ4NXRequest":{"properties":{"save_directory":{"type":"string","title":"Save Directory","description":"Directory the Q4NX folder is written into"},"gguf_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Path","description":"A local .gguf file"},"repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Id","description":"Hub repo holding the GGUF, with filename"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename","description":"GGUF file in repo_id"},"base_model":{"type":"string","title":"Base Model","description":"The original (non-GGUF) Hub repo or local model folder; FastFlowLM needs its config.json and tokenizer files."},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Hugging Face token for gated repos"}},"type":"object","required":["save_directory","base_model"],"title":"ConvertQ4NXRequest","description":"Convert a GGUF that already exists to FastFlowLM Q4NX, without loading a model."},"CreateAccountRequest":{"properties":{"username":{"type":"string","title":"Username"}},"type":"object","required":["username"],"title":"CreateAccountRequest"},"CreateApiKeyRequest":{"properties":{"name":{"type":"string","title":"Name","description":"Human-readable label for this key"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":36500.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Days","description":"Number of days until the key expires (None = never)"},"access":{"type":"string","enum":["full","inference"],"title":"Access","description":"inference: only the chat, completions, embeddings and model list endpoints; no model loads, downloads or settings","default":"full"}},"type":"object","required":["name"],"title":"CreateApiKeyRequest","description":"Request body to create a new API key."},"CreateApiKeyResponse":{"properties":{"key":{"type":"string","title":"Key","description":"Full API key (shown once)"},"api_key":{"$ref":"#/components/schemas/ApiKeyResponse"}},"type":"object","required":["key","api_key"],"title":"CreateApiKeyResponse","description":"Returned once when a key is created -- ``key`` is never shown again."},"CreateChatGenerationRun":{"properties":{"runId":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Runid"},"threadId":{"type":"string","maxLength":256,"minLength":1,"title":"Threadid"},"userMessageId":{"type":"string","maxLength":256,"minLength":1,"title":"Usermessageid"},"assistantMessageId":{"type":"string","maxLength":256,"minLength":1,"title":"Assistantmessageid"},"requestPayload":{"additionalProperties":true,"type":"object","title":"Requestpayload"},"stopWhenUnattended":{"type":"boolean","title":"Stopwhenunattended","default":false}},"additionalProperties":false,"type":"object","required":["runId","threadId","userMessageId","assistantMessageId","requestPayload"],"title":"CreateChatGenerationRun"},"CreateKbRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"CreateKbRequest"},"CreateOpenAIContainerBody":{"properties":{"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id","description":"[x-unsloth] Saved OpenAI provider config whose stored key may be used."},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key","description":"[x-unsloth] Optional RSA-encrypted OpenAI API key override."},"provider_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Base Url","description":"[x-unsloth] OpenAI base URL. Only api.openai.com is supported; non-cloud bases are rejected with 400."},"name":{"type":"string","maxLength":256,"minLength":1,"title":"Name","description":"Human-readable container name. Surfaces in the picker UI."},"ttl_minutes":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Ttl Minutes","description":"Idle-timeout TTL the new container will inherit (anchor=last_active_at). OpenAI hard-caps this at 20 minutes and rejects larger values with integer_above_max_value.","default":20}},"type":"object","required":["name"],"title":"CreateOpenAIContainerBody"},"CreateResearchRun":{"properties":{"threadId":{"type":"string","title":"Threadid"},"userMessageId":{"type":"string","title":"Usermessageid"},"unstable_assistantMessageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unstable Assistantmessageid"},"inferenceRequest":{"additionalProperties":true,"type":"object","title":"Inferencerequest"},"ragScope":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ragscope"},"mcpSources":{"items":{"$ref":"#/components/schemas/ResearchMcpSource"},"type":"array","maxItems":20,"title":"Mcpsources"},"budgets":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Budgets"},"websitePolicy":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Websitepolicy"},"instructions":{"anyOf":[{"type":"string","maxLength":32000},{"type":"null"}],"title":"Instructions"},"question":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Question"},"stopWhenUnattended":{"type":"boolean","title":"Stopwhenunattended","default":false}},"additionalProperties":false,"type":"object","required":["threadId","userMessageId"],"title":"CreateResearchRun"},"CurrentDatePromptPayload":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"CurrentDatePromptPayload"},"CurrentDatePromptResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"default_enabled":{"type":"boolean","title":"Default Enabled","default":true}},"type":"object","required":["enabled"],"title":"CurrentDatePromptResponse"},"DailySchedule":{"properties":{"kind":{"type":"string","const":"daily","title":"Kind"},"time":{"type":"string","title":"Time"}},"additionalProperties":false,"type":"object","required":["kind","time"],"title":"DailySchedule"},"DatasetDownloadJobStatus":{"properties":{"state":{"type":"string","enum":["idle","running","cancelling","cancelled","complete","error"],"title":"State","description":"Current dataset download job state."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if state == 'error'"},"generation":{"type":"integer","title":"Generation","description":"Current run generation; an adopting client stores it so a later cancel is scoped to this exact run.","default":0},"attempt":{"type":"integer","title":"Attempt","description":"Worker attempt within this generation; a retry that restarts the file bumps it so a client drops the old run's progress.","default":1}},"type":"object","required":["state"],"title":"DatasetDownloadJobStatus","description":"Live state of a background dataset download job."},"DatasetDownloadStartResponse":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"state":{"type":"string","title":"State"},"accepted":{"type":"boolean","title":"Accepted"},"attached":{"type":"boolean","title":"Attached","default":false},"generation":{"type":"integer","title":"Generation"},"transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transport"},"cancel_transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Transport"}},"type":"object","required":["repo_id","state","accepted","generation"],"title":"DatasetDownloadStartResponse"},"DatasetSplitOption":{"properties":{"dataset":{"type":"string","title":"Dataset"},"config":{"type":"string","title":"Config"},"split":{"type":"string","title":"Split"}},"type":"object","required":["dataset","config","split"],"title":"DatasetSplitOption"},"DebugLogResponse":{"properties":{"status":{"type":"string","enum":["ok","empty","missing","unreadable","disabled"],"title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"},"realpath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Realpath"},"lines":{"items":{"type":"string"},"type":"array","title":"Lines"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"},"reset":{"type":"boolean","title":"Reset","default":false},"reset_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reset Reason"},"dropped_bytes":{"type":"integer","title":"Dropped Bytes","default":0},"truncated_head":{"type":"boolean","title":"Truncated Head","default":false},"more_pending":{"type":"boolean","title":"More Pending","default":false},"file_logging_disabled":{"type":"boolean","title":"File Logging Disabled","default":false},"size_bytes":{"type":"integer","title":"Size Bytes","default":0}},"type":"object","required":["status"],"title":"DebugLogResponse"},"DebugLogSourceModel":{"properties":{"id":{"type":"string","title":"Id"},"family":{"type":"string","title":"Family"},"label":{"type":"string","title":"Label"},"realpath":{"type":"string","title":"Realpath"},"size_bytes":{"type":"integer","title":"Size Bytes"},"modified_at":{"type":"number","title":"Modified At"},"is_current":{"type":"boolean","title":"Is Current"}},"type":"object","required":["id","family","label","realpath","size_bytes","modified_at","is_current"],"title":"DebugLogSourceModel"},"DebugLogSourcesResponse":{"properties":{"sources":{"items":{"$ref":"#/components/schemas/DebugLogSourceModel"},"type":"array","title":"Sources"},"default_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Source Id"},"matched_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Source Id"},"file_logging_disabled":{"type":"boolean","title":"File Logging Disabled","default":false},"log_root":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Root"}},"type":"object","required":["sources"],"title":"DebugLogSourcesResponse"},"DecisionExportInfo":{"properties":{"is_decision":{"type":"boolean","title":"Is Decision","description":"True for a decision model checkpoint","default":true},"layout":{"type":"string","enum":["clef","laya"],"title":"Layout","description":"Decision checkpoint layout"},"adapter_only":{"type":"boolean","title":"Adapter Only","description":"True for a Clef folder holding LoRA adapters only (merged at export time)","default":false},"eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Eligible","description":"False when llama.cpp cannot serve this model; None when only the export can tell"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why the checkpoint is not eligible"},"quantizations":{"items":{"type":"string"},"type":"array","title":"Quantizations","description":"Allowed GGUF quantizations, default first"},"default_quantization":{"type":"string","title":"Default Quantization","description":"Default GGUF quantization"},"output_dir":{"type":"string","title":"Output Dir","description":"Where the GGUF files are written (<run folder>/gguf)"},"existing_export":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Existing Export","description":"Content of an earlier gguf/export.json, if valid"}},"type":"object","required":["layout","quantizations","default_quantization","output_dir"],"title":"DecisionExportInfo","description":"GGUF export options for a decision model (Clef or Laya) checkpoint."},"DeleteCachedDatasetResponse":{"properties":{"status":{"type":"string","title":"Status"},"repo_id":{"type":"string","title":"Repo Id"}},"type":"object","required":["status","repo_id"],"title":"DeleteCachedDatasetResponse"},"DeleteCachedModelResponse":{"properties":{"status":{"type":"string","title":"Status"},"repo_id":{"type":"string","title":"Repo Id"},"variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"}},"type":"object","required":["status","repo_id"],"title":"DeleteCachedModelResponse"},"DeleteImpactResponse":{"properties":{"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path","description":"Cache repository folder targeted by this delete"},"cache_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Ref"},"repo_id":{"type":"string","title":"Repo Id"},"variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"},"reclaimed_bytes":{"type":"integer","title":"Reclaimed Bytes","description":"Bytes this delete frees, from the cache scan","default":0},"retained_companions":{"items":{"$ref":"#/components/schemas/CompanionAssetInfo"},"type":"array","title":"Retained Companions","description":"Shared assets that stay because another installed model needs them"},"freeable_companions":{"items":{"$ref":"#/components/schemas/CompanionAssetInfo"},"type":"array","title":"Freeable Companions","description":"Shared assets that become orphaned by this delete and can then be removed"},"blocked_by":{"items":{"type":"string"},"type":"array","title":"Blocked By","description":"Installed models that make this delete impossible (shared-asset guard)"}},"type":"object","required":["repo_id"],"title":"DeleteImpactResponse","description":"What a pending delete would actually do, so the confirm dialog can say it."},"DeleteOpenAIContainerBody":{"properties":{"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id","description":"[x-unsloth] Saved OpenAI provider config whose stored key may be used."},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key","description":"[x-unsloth] Optional RSA-encrypted OpenAI API key override."},"provider_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Base Url","description":"[x-unsloth] OpenAI base URL. Only api.openai.com is supported; non-cloud bases are rejected with 400."},"container_id":{"type":"string","title":"Container Id","description":"OpenAI container id (cntr_...) to delete."}},"type":"object","required":["container_id"],"title":"DeleteOpenAIContainerBody"},"DesktopInitialPasswordRequest":{"properties":{"new_password":{"type":"string","minLength":8,"title":"New Password","description":"Replacement password (minimum 8 characters)"}},"type":"object","required":["new_password"],"title":"DesktopInitialPasswordRequest","description":"Set the seeded admin's first real password from the desktop app."},"DesktopLoginRequest":{"properties":{"secret":{"type":"string","title":"Secret","description":"Desktop local auth secret"}},"type":"object","required":["secret"],"title":"DesktopLoginRequest","description":"Desktop-only local secret exchange payload."},"DeveloperModePayload":{"properties":{"video_cpu":{"type":"boolean","title":"Video Cpu"}},"type":"object","required":["video_cpu"],"title":"DeveloperModePayload"},"DeveloperModeResponse":{"properties":{"video_cpu":{"type":"boolean","title":"Video Cpu"},"video_cpu_setting":{"type":"boolean","title":"Video Cpu Setting"},"default_video_cpu":{"type":"boolean","title":"Default Video Cpu","default":false},"video_cpu_env_override":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Video Cpu Env Override"},"video_cpu_applicable":{"type":"boolean","title":"Video Cpu Applicable"},"host_ram_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Host Ram Bytes"},"min_ram_bytes":{"type":"integer","title":"Min Ram Bytes","default":34359738368}},"type":"object","required":["video_cpu","video_cpu_setting","video_cpu_applicable"],"title":"DeveloperModeResponse"},"DiffusionAcceleratorFallbackRecord":{"properties":{"accelerator":{"type":"string","title":"Accelerator"},"fallback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback"},"strikes":{"type":"integer","title":"Strikes","default":0},"proven":{"type":"boolean","title":"Proven","default":false},"diverting":{"type":"boolean","title":"Diverting","default":false},"stale":{"type":"boolean","title":"Stale","default":false}},"type":"object","required":["accelerator"],"title":"DiffusionAcceleratorFallbackRecord"},"DiffusionAcceleratorFallbackResponse":{"properties":{"records":{"items":{"$ref":"#/components/schemas/DiffusionAcceleratorFallbackRecord"},"type":"array","title":"Records","default":[]},"enabled":{"type":"boolean","title":"Enabled","default":true},"diverting":{"type":"boolean","title":"Diverting","default":false}},"type":"object","title":"DiffusionAcceleratorFallbackResponse"},"DiffusionCaptionUpdateRequest":{"properties":{"caption":{"type":"string","title":"Caption","default":""}},"type":"object","title":"DiffusionCaptionUpdateRequest","description":"Write (or, when blank, clear) the per-image ``.txt`` caption sidecar."},"DiffusionDatasetExample":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"repo":{"type":"string","title":"Repo"},"description":{"type":"string","title":"Description"},"license":{"type":"string","title":"License"},"image_cap":{"type":"integer","title":"Image Cap"},"suggested_trigger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Trigger"}},"type":"object","required":["id","label","repo","description","license","image_cap"],"title":"DiffusionDatasetExample","description":"A curated, one-click-importable example image dataset. ``image_cap`` bounds how many\nimages are materialized; ``license`` is shown verbatim so users see the terms before\nimporting; ``suggested_trigger`` seeds the trigger prompt for uncaptioned subject sets."},"DiffusionDatasetExamplesResponse":{"properties":{"examples":{"items":{"$ref":"#/components/schemas/DiffusionDatasetExample"},"type":"array","title":"Examples"}},"type":"object","required":["examples"],"title":"DiffusionDatasetExamplesResponse","description":"The curated example-dataset registry the Train tab offers for one-click import."},"DiffusionDatasetImageRecord":{"properties":{"filename":{"type":"string","title":"Filename"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"caption_source":{"type":"string","enum":["sidecar","metadata","none"],"title":"Caption Source","default":"none"},"kind":{"type":"string","enum":["image","clip"],"title":"Kind","default":"image"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"size_bytes":{"type":"integer","title":"Size Bytes"}},"type":"object","required":["filename","width","height","size_bytes"],"title":"DiffusionDatasetImageRecord","description":"One image in a training dataset folder, with its resolved caption. ``caption`` is\nnull when no caption exists from any source; ``caption_source`` records where the\nshown caption came from (``metadata`` beats a per-image ``sidecar``; ``none`` when\nuncaptioned) so the labeling UI can highlight images that still need a caption."},"DiffusionDatasetImagesResponse":{"properties":{"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"images":{"items":{"$ref":"#/components/schemas/DiffusionDatasetImageRecord"},"type":"array","title":"Images"}},"type":"object","required":["name","path","images"],"title":"DiffusionDatasetImagesResponse","description":"Every item in a dataset folder (including uncaptioned ones), for the labeling grid."},"DiffusionDatasetImportRequest":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id"],"title":"DiffusionDatasetImportRequest","description":"Import a curated example (``id``) into a dataset folder (``name``; defaults to the\nexample id)."},"DiffusionDatasetImportResponse":{"properties":{"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"image_count":{"type":"integer","title":"Image Count"},"clip_count":{"type":"integer","title":"Clip Count","default":0},"caption_count":{"type":"integer","title":"Caption Count"},"imported":{"type":"integer","title":"Imported"},"license":{"type":"string","title":"License"},"source_repo":{"type":"string","title":"Source Repo"}},"type":"object","required":["name","path","image_count","caption_count","imported","license","source_repo"],"title":"DiffusionDatasetImportResponse","description":"Result of a one-click example import: folder counts plus provenance so the UI can\nshow what was fetched and under what license."},"DiffusionDatasetSummary":{"properties":{"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"image_count":{"type":"integer","title":"Image Count"},"clip_count":{"type":"integer","title":"Clip Count","default":0},"caption_count":{"type":"integer","title":"Caption Count"}},"type":"object","required":["name","path","image_count","caption_count"],"title":"DiffusionDatasetSummary","description":"One dataset folder under the Unsloth datasets root: images, clips, or both."},"DiffusionDatasetUploadResponse":{"properties":{"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"image_count":{"type":"integer","title":"Image Count"},"clip_count":{"type":"integer","title":"Clip Count","default":0},"caption_count":{"type":"integer","title":"Caption Count"},"uploaded":{"type":"integer","title":"Uploaded"}},"type":"object","required":["name","path","image_count","caption_count","uploaded"],"title":"DiffusionDatasetUploadResponse","description":"counts cover the whole folder after the upload, including earlier uploads."},"DiffusionDetailerSpec":{"properties":{"targets":{"type":"string","maxLength":500,"minLength":1,"title":"Targets","description":"What to fix, as Mask from text takes it: comma-separated, `:N` caps a target (default 8 each, at most 20), e.g. 'face' or 'face, hand:2'","default":"face"},"prompt":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Prompt","description":"Prompt for the detail pass; omitted = the image's prompt. [PROMPT] inserts it, [SEP] gives later detections their own text (ADetailer)."},"negative_prompt":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Negative Prompt","description":"Negative prompt for the pass; omitted = the image's"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence","description":"SAM 3 score a detection must exceed","default":0.5},"denoise":{"type":"number","maximum":1.0,"minimum":0.01,"title":"Denoise","description":"Inpaint strength of the pass (the UI request builder's floor)","default":0.5},"crop_factor":{"type":"number","maximum":10.0,"minimum":1.0,"title":"Crop Factor","description":"Crop around each detection, times its box","default":3.0},"guide_size":{"type":"integer","maximum":2048.0,"minimum":64.0,"title":"Guide Size","description":"The box's (or crop's) short side is enlarged to this","default":512},"guide_size_for":{"type":"string","enum":["bbox","crop_region"],"title":"Guide Size For","description":"What guide_size measures: the detection box or the whole crop","default":"bbox"},"max_size":{"type":"integer","maximum":2048.0,"minimum":64.0,"title":"Max Size","description":"Caps the enlargement: an enlarged crop's sides stay within this. A crop already larger renders at its own size, never shrunk (FaceDetailer's force_inpaint)","default":1024},"dilation":{"type":"integer","maximum":128.0,"minimum":-128.0,"title":"Dilation","description":"Grow (or, negative, shrink) each mask by this many px","default":10},"feather":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Feather","description":"Paste-back blur (px) at the mask's edge","default":5},"drop_size":{"type":"integer","maximum":1024.0,"minimum":1.0,"title":"Drop Size","description":"Detections with a box side at or below this (px) are skipped","default":10},"steps":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":1.0},{"type":"null"}],"title":"Steps","description":"Steps for the pass; omitted = the image's"},"guidance":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Guidance","description":"Guidance for the pass; omitted = the image's"}},"type":"object","title":"DiffusionDetailerSpec","description":"Detailer (face fix) post-pass, after ADetailer and ComfyUI-Impact-Pack's FaceDetailer: SAM 3 finds the targets,\neach is inpainted in an enlarged crop and pasted back through a feathered mask. Defaults follow FaceDetailer\n(core/inference/diffusion_detailer.py). Needs a model whose status `workflows` has 'inpaint' and a downloaded SAM 3."},"DiffusionDownloadPlanEntry":{"properties":{"repo_id":{"type":"string","title":"Repo Id","description":"Repo to download from"},"files":{"items":{"type":"string"},"type":"array","title":"Files","description":"Exact files the loader reads. Scoped on purpose: a full snapshot would also pull the packaged root single, transformer/ shards and fp16 twins the loader never opens (tens of GB on a FLUX repo)."},"bytes":{"type":"integer","title":"Bytes","description":"Declared size of the files still missing from cache, 0 when unknown","default":0},"gguf_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Filename","description":"Set when this entry is the single-file GGUF checkpoint"},"checkpoint":{"type":"boolean","title":"Checkpoint","description":"This entry holds the SELECTED model rather than a companion repo. The planner has to say so: a gated base is staged from its ungated mirror, so the entry's repo id is not the id the caller picked and the role cannot be recovered downstream.","default":false},"hosted_denoiser":{"type":"boolean","title":"Hosted Denoiser","description":"This checkpoint entry holds a hosted denoiser replacing the pipeline's dense weights, which a pinned snapshot of that pipeline does not contain.","default":false}},"type":"object","required":["repo_id"],"title":"DiffusionDownloadPlanEntry","description":"One repo the pick needs, with the exact files to fetch from it."},"DiffusionDownloadPlanResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/DiffusionDownloadPlanEntry"},"type":"array","title":"Entries"},"plan_failed":{"type":"boolean","title":"Plan Failed","description":"Metadata discovery left the file list incomplete","default":false},"total_bytes":{"type":"integer","title":"Total Bytes","description":"Sum of the remaining download entries, 0 when ready or unknown","default":0},"required_bytes":{"type":"integer","title":"Required Bytes","description":"Full declared footprint of every file the load requires, including cached files","default":0},"checkpoint_bytes":{"type":"integer","title":"Checkpoint Bytes","description":"Declared size of the selected checkpoint within required_bytes","default":0},"incompatible_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incompatible Reason","description":"Why this pick cannot load as selected (today: a FLUX.2 GGUF paired with a different-size base), so the picker can refuse at selection time instead of after a multi-GB download. Reported rather than raised: the images page falls back to /images/load on any plan failure, which would start that very download. Null means nothing is known to be wrong -- the check reads metadata only and stays silent on an unreadable header, an unmapped base or an offline host."},"incompatible_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incompatible Code","description":"Stable code for incompatible_reason: 'unified-memory-load' when the unified-memory check refused the pick (send allow_oversized_load to attempt it anyway); null otherwise."}},"type":"object","title":"DiffusionDownloadPlanResponse","description":"Files to stage before loading; plan_failed marks an incomplete listing."},"DiffusionGenerateProgressResponse":{"properties":{"active":{"type":"boolean","title":"Active","description":"Whether a generation is running","default":false},"step":{"type":"integer","title":"Step","description":"Denoising steps completed so far","default":0},"total_steps":{"type":"integer","title":"Total Steps","description":"Total denoising steps for this run","default":0},"fraction":{"type":"number","title":"Fraction","description":"step / total_steps, clamped to [0,1]","default":0.0},"eta_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eta Seconds","description":"Estimated seconds remaining"},"phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase","description":"enhance (FLUX.3 prompt upsampling, before the run) | encode | denoise | decode; null from engines that report no phase (sd.cpp)"},"preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview","description":"Live latent preview of the image being denoised, as a JPEG data URL"},"preview_seq":{"type":"integer","title":"Preview Seq","description":"Moves each time a new preview is published","default":0},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Status text for a phase with no steps (phase 'enhance': 'Enhancing prompt...')"},"target":{"anyOf":[{"type":"string","const":"connection"},{"type":"null"}],"title":"Target","description":"'connection' when the run is on a saved image connection, so a page that resumed it sends Stop to POST /images/generate/cancel?target=connection"}},"type":"object","title":"DiffusionGenerateProgressResponse","description":"Live per-step progress for an in-flight generation."},"DiffusionGenerateRequest":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"Text prompt"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt","description":"What to avoid (if the model supports it)"},"width":{"type":"integer","maximum":6272.0,"minimum":256.0,"title":"Width","description":"Image width in pixels (multiple of 16; the loaded model may require more)","default":1024},"height":{"type":"integer","maximum":6272.0,"minimum":256.0,"title":"Height","description":"Image height in pixels (multiple of 16; the loaded model may require more)","default":1024},"steps":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Steps","description":"Number of denoising steps. Omitted: the loaded model's default (status generation_defaults).","default":9},"guidance":{"type":"number","maximum":20.0,"minimum":0.0,"title":"Guidance","description":"Classifier-free guidance scale. Omitted: the loaded model's default.","default":0.0},"seed":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":-1.0},{"type":"null"}],"title":"Seed","description":"Seed for reproducibility (random if omitted or -1)"},"batch_size":{"type":"integer","maximum":32.0,"minimum":1.0,"title":"Batch Size","description":"Images generated in one forward pass (VRAM-heavy)","default":1},"prompts":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":32,"minItems":1},{"type":"null"}],"title":"Prompts","description":"Prompt list for batched generation: one image per prompt in a single forward pass (plain text-to-image only). Overrides `prompt` for the images; `prompt` is still required as the fallback/display value."},"enhance_prompt":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enhance Prompt","description":"Rewrite the prompt with the FLUX.3 prompt upsampler before encoding. Null = the family default (on for every FLUX.3 Klein family); ignored by every other family. An unavailable or failing upsampler leaves the prompt as typed."},"seeds":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":32,"minItems":1},{"type":"null"}],"title":"Seeds","description":"Per-image seeds for batched generation: one image per seed (with `prompts`, lengths must match; alone, every image uses `prompt`). Each image is individually reproducible from its own seed."},"init_image":{"anyOf":[{"type":"string","maxLength":33554432},{"type":"null"}],"title":"Init Image","description":"Base64/data-URL source image for img2img or inpaint (omit for txt2img)"},"mask_image":{"anyOf":[{"type":"string","maxLength":33554432},{"type":"null"}],"title":"Mask Image","description":"Base64/data-URL mask for inpaint (white = repaint, black = keep). Requires init_image."},"strength":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Strength","description":"img2img/inpaint denoise strength: low values stay close to the source, 1 fully redraws it. Must be greater than 0. Ignored for txt2img."},"upscale":{"anyOf":[{"type":"number","maximum":4.0,"minimum":1.0},{"type":"null"}],"title":"Upscale","description":"Upscale (hires fix) factor for an init_image: enlarges the source by this multiple and re-denoises at low strength. Requires init_image; ignored for txt2img/inpaint/edit."},"live_preview":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Live Preview","description":"Stream a small live preview of the image while it denoises (generate-progress 'preview'). Null = the server default (on unless UNSLOTH_DIFFUSION_PREVIEW=0)."},"allow_oversized":{"type":"boolean","title":"Allow Oversized","description":"Run even when the generate-time memory check estimates this size will not fit the free GPU memory. Sizes that fit once the VAE decodes tile by tile already run without it; this is for the rest. An oversized run can fail with an out-of-memory error, or on Windows spill into system RAM and run very slowly. Same effect as the server's UNSLOTH_DIFFUSION_ALLOW_OVERSIZED_GENERATE=1, per request.","default":false},"reference_images":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":9},{"type":"null"}],"title":"Reference Images","description":"Additional images (base64/data-URL) for the reference and edit workflows, after init_image and in this order. The loaded family bounds the total including init_image (FLUX.2: 4, Qwen-Image-2.1: 10); more is refused, never truncated."},"workflow":{"anyOf":[{"type":"string","enum":["edit","reference","outpaint"]},{"type":"null"}],"title":"Workflow","description":"Explicit image-conditioned workflow; every one needs init_image. edit: follow the prompt as an instruction over init_image (and reference_images); reference: draw a new image from init_image plus reference_images; outpaint: runs as inpaint over the padded init_image under mask_image (required) and is recorded as outpaint. Omitted keeps the workflow implied by the other fields."},"reference_resolution":{"anyOf":[{"type":"integer","maximum":2048.0,"minimum":256.0},{"type":"null"}],"title":"Reference Resolution","description":"Resolution each condition image is resized to (by area) before encoding, for families that expose it (Qwen-Image-2.1: 512, 1024 or 2048; default 1024). Separate from the output size."},"localized_edit":{"anyOf":[{"$ref":"#/components/schemas/LocalizedEditSpec"},{"type":"null"}],"description":"Localized edit layer for the edit workflow on a unified-edit model."},"loras":{"anyOf":[{"items":{"$ref":"#/components/schemas/LoraSpec"},"type":"array","maxItems":8},{"type":"null"}],"title":"Loras","description":"LoRA adapters to apply for this generation (by discovery id + weight). Omitted: the adapters the model was loaded with (baked in, or named on a dense load), at their load weights; none for a load that named none. An empty list applies none. Rejected with a clear message when the loaded model or its quantisation can't apply LoRA."},"controlnet":{"anyOf":[{"$ref":"#/components/schemas/ControlNetSpec"},{"type":"null"}],"description":"ControlNet conditioning for this generation (id + control image + strength). Omitted applies none and behaves exactly as before. Rejected with a clear message when the loaded model or its quantisation can't apply ControlNet."},"sampler":{"anyOf":[{"type":"string","enum":["default","euler","euler_a","dpmpp_2m","dpmpp_2m_sde"]},{"type":"null"}],"title":"Sampler","description":"Sampler for this generation, one of the loaded model's status `samplers` ids. Omitted or 'default' keeps the model's shipped scheduler."},"schedule_type":{"anyOf":[{"type":"string","enum":["automatic","uniform","karras","exponential"]},{"type":"null"}],"title":"Schedule Type","description":"Noise schedule for the sampler. Omitted or 'automatic' uses the sampler's usual schedule (Karras for DPM++ 2M, Exponential for DPM++ 2M SDE, else the model's)."},"prompt_weighting":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Prompt Weighting","description":"AUTOMATIC1111 prompt syntax on SDXL: (word:1.2), (word), [word], \\( escapes and BREAK. Omitted: on. A prompt without that syntax that fits in 75 CLIP tokens renders exactly as before; a longer one is encoded in 75-token chunks instead of truncated. false reads brackets literally (long prompts still chunk). true is refused for a model without the control."},"clip_skip":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Clip Skip","description":"CLIP skip in AUTOMATIC1111 numbering: 1 = the model's own layer. On SDXL 1 and 2 both read the penultimate layer the model already uses (as in A1111 and Forge), 3 reads one layer earlier. Values above 1 are refused for models without the control."},"cfg_rescale":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Cfg Rescale","description":"CFG rescale (diffusers guidance_rescale, arXiv 2305.08891): 0 = off. Mostly for v-prediction / zero-terminal-SNR checkpoints, where 0.7 is the paper's value. Above 0 is refused for models without the control."},"variation_seed":{"anyOf":[{"type":"integer","maximum":4294967295.0,"minimum":0.0},{"type":"null"}],"title":"Variation Seed","description":"Variation seed (AUTOMATIC1111 subseed): the seed's noise is slerped toward this seed's noise by variation_strength. Omitted with a strength: random. Text-to-image only."},"variation_strength":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Variation Strength","description":"How far toward the variation seed's noise: 0 = off, 1 = the variation seed alone. With a batch, every image keeps the seed and image i uses variation_seed + i."},"cfg_interval_end":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Cfg Interval End","description":"Fast CFG (lossy, off by default): fraction of the denoising steps after which the unconditional branch is skipped, e.g. 0.8 runs CFG for the first 80% of the steps and the conditional branch alone for the rest (about 10% faster at 50 steps on FLUX.3 Klein base). Only on models whose status has supports_cfg_interval; omitted or 1 keeps full CFG."},"shift":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Shift","description":"Static flow shift for this generation, as ComfyUI's ModelSamplingSD3 / ModelSamplingAuraFlow `shift`, on models whose status `shift_control.node` is 'sd3'. Omitted keeps the model's schedule."},"base_shift":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Base Shift","description":"ComfyUI ModelSamplingFlux `base_shift` (default 0.5) for models whose status `shift_control.node` is 'flux'. Omitted with `max_shift` keeps the model's schedule."},"max_shift":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Max Shift","description":"ComfyUI ModelSamplingFlux `max_shift` (default 1.15), applied at the output size, for models whose status `shift_control.node` is 'flux'."},"mask_blur":{"anyOf":[{"type":"integer","maximum":64.0,"minimum":0.0},{"type":"null"}],"title":"Mask Blur","description":"Inpaint only: Gaussian blur radius (px) applied to the mask before inpainting (AUTOMATIC1111 'Mask blur'). Omitted or 0 uses the mask as painted."},"inpaint_only_masked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Inpaint Only Masked","description":"Inpaint only: render just the masked region (plus `inpaint_padding`) at full resolution and paste it back (AUTOMATIC1111 'Inpaint area: Only masked', diffusers padding_mask_crop). Requires status `supports_inpaint_only_masked`; omitted or false inpaints the whole picture."},"inpaint_padding":{"anyOf":[{"type":"integer","maximum":256.0,"minimum":0.0},{"type":"null"}],"title":"Inpaint Padding","description":"Padding (px) around the mask when `inpaint_only_masked` is set; omitted = 32."},"detailer":{"anyOf":[{"$ref":"#/components/schemas/DiffusionDetailerSpec"},{"type":"null"}],"description":"Detailer (face fix) post-pass on every image of the run. Omitted = off. Refused (400) when the loaded model has no inpaint pipeline or SAM 3 is not downloaded."},"hires":{"anyOf":[{"$ref":"#/components/schemas/HiresSpec"},{"type":"null"}],"description":"Hires fix for text to image: upscale the render and refine it in the same request. Requires status `hires` to be non-null; omitted = off."},"upscale_model":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Upscale Model","description":"Upscale workflow only: a model upscaler id from status `upscale_models` used in place of the Lanczos resize. Omitted = Lanczos."},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id","description":"[x-unsloth] Saved connection ID. When set, the prompt goes to that connection's /images/generations as `model` and the results are saved to the gallery. With `workflow` edit, init_image (then reference_images) and the prompt go to its /images/edits instead. No size is sent with an edit, so width and height are not used and the server picks the output size. No other image-input workflow runs on a connection."},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model name on the connection named by `provider_id`."},"xy":{"anyOf":[{"$ref":"#/components/schemas/XYGridSpec"},{"type":"null"}],"description":"X/Y grid: render one image per combination of the axes' values, each saved to the gallery with its own recipe, plus one labelled grid image (returned as `grid`). Every cell runs at batch size 1 on the same seed unless seed is an axis. Local models only."}},"type":"object","required":["prompt"],"title":"DiffusionGenerateRequest","description":"Request to generate one image from the loaded diffusion model."},"DiffusionGenerateResponse":{"properties":{"images":{"items":{"$ref":"#/components/schemas/GalleryImage"},"type":"array","title":"Images","description":"Saved records, one per image in the batch"},"grid":{"anyOf":[{"$ref":"#/components/schemas/GalleryImage"},{"type":"null"}],"description":"xy only: the labelled grid image, also saved to the gallery; `images` holds the cells row by row"}},"type":"object","required":["images"],"title":"DiffusionGenerateResponse","description":"The persisted gallery records for one generation call (a batch)."},"DiffusionInferenceInfo":{"properties":{"family":{"type":"string","title":"Family","description":"Diffusion family name (auto-policy table key)."},"transformer_bf16_gb":{"type":"number","title":"Transformer Bf16 Gb","description":"bf16-resident transformer size in GB."},"text_encoders_bf16_gb":{"type":"number","title":"Text Encoders Bf16 Gb","description":"bf16-resident text encoder(s) size in GB."},"vae_bf16_gb":{"type":"number","title":"Vae Bf16 Gb","description":"bf16-resident VAE size in GB."},"estimated_resident_gb":{"additionalProperties":{"type":"number"},"type":"object","title":"Estimated Resident Gb","description":"Estimated resident GB keyed by scheme: bf16, int8, fp8, mxfp8, nvfp4."}},"type":"object","required":["family","transformer_bf16_gb","text_encoders_bf16_gb","vae_bf16_gb","estimated_resident_gb"],"title":"DiffusionInferenceInfo","description":"bf16 component sizes and 0.1 GB resident estimates by transformer quantization scheme."},"DiffusionInferenceInfoResponse":{"properties":{"families":{"items":{"$ref":"#/components/schemas/DiffusionInferenceInfo"},"type":"array","title":"Families"}},"type":"object","title":"DiffusionInferenceInfoResponse","description":"Static per-family footprint summary for the Advanced Dtype tradeoff (GET\n/api/inference/images/info). Hardware-independent: no GPU probing, so it is served\nfrom the pure auto-policy tables and is safe to fetch before anything is loaded."},"DiffusionLmExportInfo":{"properties":{"profile":{"type":"string","title":"Profile","description":"Text-diffusion family of the checkpoint's base model"},"disabled_methods":{"items":{"type":"string"},"type":"array","title":"Disabled Methods","description":"Export methods this checkpoint cannot use"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why those methods are unavailable"}},"type":"object","required":["profile"],"title":"DiffusionLmExportInfo","description":"Export limits for a text-diffusion LM checkpoint (LLaDA, Dream, SDAR, DiffusionGemma, ...)."},"DiffusionLoadProgressResponse":{"properties":{"phase":{"anyOf":[{"type":"string","enum":["downloading","finalizing","saving_chat_context","ready","error"]},{"type":"null"}],"title":"Phase","description":"Load phase; null when idle"},"bytes_downloaded":{"type":"integer","title":"Bytes Downloaded","description":"Bytes present in the HF cache so far","default":0},"bytes_total":{"type":"integer","title":"Bytes Total","description":"Estimated total bytes to download (0 = unknown)","default":0},"fraction":{"type":"number","title":"Fraction","description":"bytes_downloaded / bytes_total, clamped to [0,1]","default":0.0},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Failure message when phase is 'error'"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code","description":"Stable code for error: 'unified-memory-load' when the unified-memory check refused the load (retry with allow_oversized_load to attempt it anyway); null otherwise."}},"type":"object","title":"DiffusionLoadProgressResponse","description":"Download/finalize progress for an in-flight diffusion load."},"DiffusionLoadRequest":{"properties":{"load_token":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Load Token","description":"Opaque id the client picks for this load; POST /images/unload with expected_load_id set to it unloads this load only, and cancels it if it has not started yet."},"model_path":{"type":"string","title":"Model Path","description":"Diffusion repo id or local path"},"display_repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Repo Id","description":"Logical Hub id of a local snapshot"},"gguf_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Filename","description":"The chosen single-file checkpoint (GGUF or safetensors) inside model_path. Required for the gguf / single_file kinds; omit for a full pipeline."},"model_kind":{"anyOf":[{"type":"string","enum":["gguf","single_file","pipeline"]},{"type":"null"}],"title":"Model Kind","description":"How to load the model (null = auto-detect from gguf_filename): gguf (single-file GGUF transformer, dequantised on-device), single_file (single-file safetensors transformer, e.g. fp8), or pipeline (a full diffusers repo via from_pretrained, embedded quant auto-applied). A single_file .safetensors loads from any repo; pipeline loads are restricted to unsloth/* repos, the official base repos, or a local path."},"base_repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Repo","description":"Companion diffusers repo for VAE/text-encoders (default: family base)"},"text_encoder_file":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Text Encoder File","description":"Separate text-encoder file(s) to use instead of the base repo's, e.g. a ComfyUI models/text_encoders file. One path or a list (FLUX.1: clip_l + t5xxl); each is matched to the pipeline slot whose encoder class it fits. A local .safetensors path (relative paths resolve against model_path, so ../text_encoders/x.safetensors works from a ComfyUI diffusion_models folder) or owner/repo/path.safetensors under the same repo rule as model_path. Unquantized, scaled fp8 and int8 (ConvRot) files load; other ComfyUI formats are refused. Only with a gguf / single_file load; the base repo then supplies only configs and tokenizers for these encoders. Unset on a local DiT inside a ComfyUI models tree, the tree's text_encoders file that fits is used when exactly one is best (UNSLOTH_DIFFUSION_COMFY_TEXT_ENCODERS=0 turns that off)."},"vae_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vae File","description":"Separate VAE file to use instead of the base repo's, e.g. a ComfyUI models/vae file (ae.safetensors, qwen_image_vae.safetensors, wan_2.1_vae.safetensors). Same path rules as text_encoder_file. Only with a gguf / single_file load."},"family_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Override","description":"Force a family when it can't be inferred from the repo id"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"HuggingFace token for gated repos"},"engine":{"anyOf":[{"type":"string","enum":["auto","diffusers","sd_cpp"]},{"type":"null"}],"title":"Engine","description":"Inference engine for this load: auto (default: diffusers on a GPU, native sd.cpp without one), diffusers, or sd_cpp (native; GGUF only, applies LoRA to GGUF models). UNSLOTH_DIFFUSION_ENGINE wins over it. A pick the engine cannot serve is refused, not swapped."},"cpu_offload":{"type":"boolean","title":"Cpu Offload","description":"Enable model CPU offload to fit low-VRAM cards","default":false},"memory_mode":{"anyOf":[{"type":"string","enum":["auto","fast","balanced","low_vram"]},{"type":"null"}],"title":"Memory Mode","description":"Memory policy: auto (measured), fast (resident), balanced (stream the transformer, near-resident speed, moderate VRAM cut), low_vram (stream the transformer and text encoders block by block, tiled VAE decode; lowest VRAM, slowest). Overrides cpu_offload when set."},"allow_oversized_load":{"type":"boolean","title":"Allow Oversized Load","description":"Attempt the load even when the unified-memory check (Apple Silicon, integrated GPUs) estimates its weights will not fit. The check stays on by default; an oversized load can exhaust memory, swap heavily, stop the server or make the computer unresponsive. Same effect as the server's UNSLOTH_DIFFUSION_ALLOW_OVERSIZED_LOAD=1, for this load only.","default":false},"speed_mode":{"anyOf":[{"type":"string","enum":["off","eager","default","max"]},{"type":"null"}],"title":"Speed Mode","description":"Speed optims. Unset: off for a dense load, default for a GGUF load (near-lossless compile profile). off: bit-identical output (a quantized transformer still compiles). eager (channels_last + cudnn + attention + fused RMSNorm/AdaLayerNorm patches, NO torch.compile -> fast first image, no compile tax), default (also regional torch.compile where eligible), max (also TF32 + fused QKV)."},"text_encoder_quant":{"anyOf":[{"type":"string","enum":["auto","none","off","fp8","fp8_dynamic","int8","nvfp4"]},{"type":"null"}],"title":"Text Encoder Quant","description":"Quantise the companion text encoder(s). Unset or 'auto' lets the family choose (Qwen-Image-2.1 takes its hosted pre-cast fp8 encoder, 8.75 GiB against 16.33 dense); 'none'/'off' pins the released bf16 encoder. Explicit: fp8 (layerwise cast, ~2x smaller, CUDA cc>=8.9), fp8_dynamic (torchao compute fp8 on the tensor cores, ~2x + faster, cc>=8.9), int8 (torchao compute int8 with per-family keep-bf16 layers; falls back to fp8 where no schedule exists; cc>=8.0), or nvfp4 (torchao weight-only, ~3.5x smaller, dequantised to bf16 per forward so the prompt encode is slower; cc>=8.0). A memory-vs-quality tradeoff (shifts fine detail), not free; pairs well with balanced mode. Fails CLOSED when NOTHING could be cast (409, or a load-progress error); an int8 request downgraded to fp8 loads and is reported through the status resolved record instead."},"transformer_quant":{"anyOf":[{"type":"string","enum":["auto","none","off","int8","fp8","nvfp4","mxfp8"]},{"type":"null"}],"title":"Transformer Quant","description":"Transformer compute dtype. UNSET or auto (the default) picks the fastest precision the hardware supports: the DENSE bf16 transformer is loaded instead of the GGUF and torchao-quantised onto the low-precision tensor cores (int8 first on every tier, then fp8 on sm_89+), falling back to the GGUF when the device, VRAM or disk cannot take it. none/off pins running the GGUF as-is; an explicit scheme forces that scheme. Dense path needs CUDA + bf16. An EXPLICIT scheme fails CLOSED: where it cannot be honored the load is refused (409, or an error phase on load-progress for the footprint-dependent declines) rather than silently running the GGUF at another precision. Only auto falls back."},"transformer_quant_fast_accum":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Transformer Quant Fast Accum","description":"fp8 only: FP8 matmul accumulate. null auto-detects by GPU class (fast FP16 accumulate on consumer/workstation cards, where FP32 accumulate is ~2x slower; precise FP32 accumulate on data-center HBM cards, which are not nerfed). true/false force it. Negligible quality effect (below the fp8 quant noise floor); no overflow risk."},"transformer_prequant_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Prequant Path","description":"Local path to a pre-quantized transformer checkpoint (built by scripts/build_prequant_checkpoint.py) for the requested transformer_quant scheme. Loads the already-quantized weights with the dense bf16 never on the GPU (~half the load VRAM and a smaller download). null uses the family's hosted checkpoint if configured, else quantises the dense transformer at load time. A local path installs arbitrary weights into the served model, so it is ignored unless the path resolves inside a directory the operator allowlisted via UNSLOTH_ALLOW_LOCAL_PREQUANT_PATH (one or more directories, separated by the OS path separator). A bare on/off value such as '1' is deliberately not accepted -- it must name an allowed directory."},"loras":{"anyOf":[{"items":{"$ref":"#/components/schemas/LoraSpec"},"type":"array","maxItems":8},{"type":"null"}],"title":"Loras","description":"LoRA adapters to BAKE into a torchao int8/fp8 build: they attach on the dense transformer before quantisation and compilation (the only ordering the quantized fast path supports), so they ride inside the compiled build. Weight changes and disabling apply live at generation time; CHANGING the adapter set needs a reload with the new selection. Ignored by every other load kind (bf16 / bnb-4bit loads take adapters at generation time; GGUF-as-is has no dense transformer). Also forces the dense build path: a baked-LoRA load skips the hosted pre-quantized checkpoint and pays the dense load peak."},"attention_backend":{"anyOf":[{"type":"string","enum":["auto","native","sdpa","cudnn","flash","flash2","flash3","flash4","sage","xformers","aiter","unsloth_int8","flash_sdpa"]},{"type":"null"}],"title":"Attention Backend","description":"Attention kernel via the diffusers dispatcher. auto picks the best exact backend for the device (cuDNN fused attention on NVIDIA, ~1.18x and near-lossless, when a speed profile is active; native SDPA elsewhere and when speed=off). native (alias sdpa) forces default SDPA; cudnn/flash/flash3/flash4 are exact (kernel/arch-gated); sage is INT8 attention (a small quality cost, consumer friendly); unsloth_int8 is Studio's own INT8 attention kernel on the families with strided attention processors; xformers/aiter are memory-efficient (NVIDIA) / AMD ROCm (aiter needs diffusers' local AITER backend, gone in 0.41+; without it ROCm runs the auto pick); flash_sdpa pins torch SDPA's flash kernel. diffusers dispatcher names (_native_flash, _native_cudnn, _flash_3_hub, flash_4_hub, sage_hub) are accepted as the matching alias. An unavailable kernel falls back to the auto pick (native SDPA when speed=off)."},"int8_attention":{"anyOf":[{"type":"string","enum":["auto","on","off"]},{"type":"null"}],"title":"Int8 Attention","description":"Studio's own INT8 attention kernel for this load. auto (the default, also when unset) engages it where it is measured accurate and faster for this model and GPU (it passes the per-card accuracy check against fp32 attention and wins a timed race against the selected attention); the UNSLOTH_DIFFUSION_INT8_ATTENTION_KERNEL environment switch still applies. on engages it wherever it passes the accuracy check, over the env switch (attention_backend=unsloth_int8 is the same). off never engages it on this load, over the env switch; it does not change an explicit attention_backend such as sage. The status record reports what engaged under resolved.int8_attention."},"transformer_cache":{"anyOf":[{"type":"string","enum":["off","fbcache","static"]},{"type":"null"}],"title":"Transformer Cache","description":"Step caching. fbcache = First-Block-Cache: reuse the transformer tail across denoise steps when the first block's residual barely changes (~1.4x on Flux 28-step at LPIPS ~0.08). Unset = auto: engages only on speed_mode=max with a 20+ step schedule, otherwise uncached. An explicit fbcache engages on every speed tier; off never caches. Composes with compile (drops fullgraph automatically); incompatible models run uncached. static = skip denoiser calls on a fixed schedule (first 20% and last 10% of the steps always run, every other middle step is extrapolated from the last two outputs; 12+ steps only), which keeps compile fullgraph and the CUDA graph. Never picked automatically."},"transformer_cache_threshold":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Transformer Cache Threshold","description":"FBCache residual threshold (higher = skips more steps = faster, lower quality). null auto-picks 0.08 (0.12 when the transformer is quantised, which shifts the residual distribution). Ignored by static."},"gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Gpu Ids","description":"CUDA / ROCm physical indices this load may use, or null for automatic. Neither engine shards a diffusion checkpoint, so a selection of several cards resolves to the one with the most free VRAM. Refused with a 400 when an index does not exist here; ignored on XPU / MPS / CPU, which have no applicator for a physical index."}},"type":"object","required":["model_path"],"title":"DiffusionLoadRequest","description":"Request to load a local diffusion (text-to-image) checkpoint."},"DiffusionLoadUnloadedResponse":{"properties":{"load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Id","description":"The load_token of the load in flight or resident (one Studio made up for a load sent without one); POST unload with expected_load_id set to it unloads that load only."},"resident_load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resident Load Id","description":"The load_token of the model resident in the slot, also while another load is in flight over it (equal to load_id when none is); a failed replacement leaves this model loaded."},"resident_mib":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resident Mib","description":"Best-effort memory the resident model holds, in MiB; null when unknown."},"multi_gpu":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Multi Gpu","description":"Multi-GPU placement (component -> card, primary, secondary) and CFG-parallel state (armed, call counts, or why it declined); null when the load had one card to use. A multi-card load that kept everything on its primary card reports why it declined."},"graph_engagement":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Graph Engagement","description":"Compile / CUDA-graph engagement counters: this load's graph captures, replays and ungraphed denoiser calls (whole-step, per block, per-card segments, and the per-block graphs a whole-step graph falls back to), and the process's dynamo frame and graph-break totals; null when nothing is loaded."},"loaded":{"type":"boolean","title":"Loaded","description":"Whether a diffusion model is loaded","default":false},"evicted":{"items":{"type":"string"},"type":"array","title":"Evicted","description":"Models this load unloaded to make room. Filled only on the load answer."},"evicted_slots":{"items":{"$ref":"#/components/schemas/EvictedSlot"},"type":"array","title":"Evicted Slots","description":"The same models as evicted, each with its kind and public model id."},"repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Id","description":"Loaded repo id or local path"},"display_repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Repo Id","description":"Logical Hub id of a local snapshot"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family","description":"Detected diffusion family"},"supported_families":{"items":{"type":"string"},"type":"array","title":"Supported Families","description":"Loadable families"},"modular_families":{"items":{"type":"string"},"type":"array","title":"Modular Families","description":"Loadable families shipped as Modular Diffusers pipelines"},"supports_prompt_upsampler":{"type":"boolean","title":"Supports Prompt Upsampler","description":"Whether the loaded family can enhance prompts with the FLUX.3 prompt upsampler","default":false},"prompt_upsampler_default":{"type":"boolean","title":"Prompt Upsampler Default","description":"Whether enhance_prompt defaults to on for the loaded family","default":false},"base_repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Repo","description":"Companion diffusers base repo"},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device","description":"Device the pipeline is on"},"dtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dtype","description":"Compute dtype"},"model_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Kind","description":"Resolved load kind: gguf | single_file | pipeline (gates GGUF-only UI)"},"gguf_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Filename","description":"Loaded single-file checkpoint filename, or null for a pipeline"},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant","description":"Selected GGUF quantisation variant (for example Q8_0)"},"component_files":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Component Files","description":"Supplied text-encoder / VAE files by pipeline component (e.g. text_encoder_2: t5xxl_fp8_e4m3fn_scaled.safetensors); null when every companion came from the base repo"},"cpu_offload":{"type":"boolean","title":"Cpu Offload","description":"Whether CPU offload is engaged","default":false},"offload_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offload Policy","description":"Resolved offload policy: none | group | model | streaming | sequential"},"denoiser_offload":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denoiser Offload","description":"Under group offload, where the denoiser lives now: resident (only the text encoders stream) | partial | streamed (blocks move from CPU on every step). Null for other policies."},"vae_tiling":{"type":"boolean","title":"Vae Tiling","description":"Whether VAE tiling/slicing is enabled","default":false},"memory_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Mode","description":"Requested memory mode"},"speed_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speed Mode","description":"Requested speed mode"},"speed_optims":{"items":{"type":"string"},"type":"array","title":"Speed Optims","description":"Speed optimisations actually engaged"},"text_encoder_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Encoder Quant","description":"Text-encoder quantisation engaged: fp8 | nvfp4 | null"},"transformer_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant","description":"Transformer quant engaged on the dense fast path: int8 | fp8 | nvfp4 | mxfp8 | null (null = the GGUF transformer was loaded)"},"transformer_quant_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant Backend","description":"Which NVFP4 kernel path the loaded DiT actually runs: flashinfer | torchao | null (null for every scheme but nvfp4). The scheme alone does not say: flashinfer is selected per device and falls back to torchao on a preflight failure, so this is the only place a render's speed can be attributed to the backend that served it."},"transformer_quant_backend_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant Backend Reason","description":"Why flashinfer is not serving an NVFP4 load that runs torchao: the on-demand install was refused (offline, opt-out, ineligible host) or failed and was rolled back. null when the backend is flashinfer, the scheme is not nvfp4, or no reason was recorded."},"attention_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attention Backend","description":"Attention backend engaged via the diffusers dispatcher (e.g. _native_cudnn), or null for the default SDPA"},"transformer_cache":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Cache","description":"Step cache engaged: fbcache | static | null"},"baked_loras":{"items":{"type":"string"},"type":"array","title":"Baked Loras","description":"Adapter ids baked into the transformer at load time, as GalleryImage.baked_loras records them; empty when the load baked none"},"baked_lora_specs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Baked Lora Specs","description":"The baked adapters as the load requested them, [{id, weight}]; empty when none. The Images page compares a LoRA selection against it to tell whether Generate needs a reload first"},"transformer_cache_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Transformer Cache Stats","description":"Static step skip only: mode, schedule and the last generation's calls / computed / skipped transformer calls; null for any other cache"},"render_engagement":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Render Engagement","description":"What the last generation actually ran: fbcache = {computed, skipped} head-block decisions of First-Block-Cache (null when it is not installed). null before the first generation."},"workflows":{"items":{"type":"string"},"type":"array","title":"Workflows","description":"Image workflows the loaded family supports (drives UI tab gating): txt2img, img2img, inpaint. Empty when nothing is loaded or on the native engine."},"conditioning":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Conditioning","description":"Image-conditioning limits of the loaded model on the active engine: max_condition_images (total, including the source), alpha, dimension_multiple, max_output_side, max_output_pixels, reference_resolutions, edit_output_resolution (the output size an edit should default to, or null) and localized_edit_modes. Null when nothing is loaded."},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine","description":"Active diffusion engine: diffusers | sd_cpp | mlx (opt-in, Apple Silicon)"},"native_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Native Mode","description":"Native sd.cpp execution mode: server (resident sd-server) | oneshot (per-image sd-cli) | null (diffusers engine)"},"fallback_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback Reason","description":"Why diffusers was chosen over the native sd.cpp engine (null when none)"},"mlx_fallback_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Fallback Reason","description":"Why an Apple Silicon load did not get the MLX engine (null when MLX is off, the host is not an Apple Silicon Mac, or MLX is in use)"},"engine_routing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Engine Routing","description":"Per-request routing of the default Apple Silicon MLX engine: mode, default_engine, resident engines, txt2img_engine (where plain text-to-image runs next), engines_fit_together, last_served_by and last_reason. Null for every other engine."},"engine_forced":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Forced","description":"Engine UNSLOTH_DIFFUSION_ENGINE pins (diffusers | sd_cpp); a load's own engine pick is ignored while set. Null when unset."},"native_engine_eligible":{"type":"boolean","title":"Native Engine Eligible","description":"Whether the loaded pick is a GGUF of a family the native sd.cpp engine can run (the binary itself is checked when a load asks for it).","default":false},"lora_via_native":{"type":"boolean","title":"Lora Via Native","description":"LoRA is unavailable on the current engine for this GGUF, but reloading it on the native sd.cpp engine would apply LoRAs.","default":false},"lora_after_reload":{"type":"boolean","title":"Lora After Reload","description":"LoRA is off only because Speed=Auto compiled the model on its 3rd image; reloading it (still Speed=Auto) brings LoRAs back until then.","default":false},"supports_lora":{"type":"boolean","title":"Supports Lora","description":"Whether the loaded model + quantisation can apply LoRA adapters (drives the LoRA picker's enabled state). torchao int8/fp8 builds support LoRA via the load-time bake: select the adapters when loading; weight changes apply live, a different adapter set needs a reload. False on unsupported families/quant (e.g. nvfp4/mxfp8, a whole-pipeline SDXL GGUF, or Qwen-Image on the native engine).","default":false},"lora_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lora Unavailable Reason","description":"Why the loaded model cannot apply LoRA adapters on its current engine, shown on the Images page in place of the LoRA picker. Null when supports_lora is true or nothing is loaded."},"supports_controlnet":{"type":"boolean","title":"Supports Controlnet","description":"Whether the loaded model can apply a ControlNet (drives the ControlNet picker's enabled state). Diffusers only, for families with a ControlNet pipeline; False for the native engine, GGUF-via-diffusers, and torchao fp8/int8 dense.","default":false},"supports_inpaint_only_masked":{"type":"boolean","title":"Supports Inpaint Only Masked","description":"Whether the loaded model's inpaint pipeline can render only the masked area (`inpaint_only_masked`, diffusers padding_mask_crop). Diffusers only; False for the native and MLX engines and when nothing is loaded.","default":false},"supports_negative_prompt":{"type":"boolean","title":"Supports Negative Prompt","description":"Whether the loaded model applies a negative prompt on this engine (drives the Negative prompt field). False for FLUX and Ideogram 4 on diffusers, and for FLUX.1 / Kontext / FLUX.2-dev on the native engine.","default":true},"negative_prompt_min_guidance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Negative Prompt Min Guidance","description":"The guidance Unsloth passes a negative prompt above (1 for classifier-free guidance, 0 for Z-Image and Krea 2 on diffusers); null when guidance does not gate it. Drives the Negative prompt hint."},"supports_guidance":{"type":"boolean","title":"Supports Guidance","description":"Whether the loaded model reads the guidance value on this engine (drives the Guidance control). False on diffusers for FLUX.3 Klein (distilled), whose pipeline has no guidance, and for distilled FLUX.2 klein checkpoints, which Flux2KleinPipeline runs without it.","default":true},"supports_live_preview":{"type":"boolean","title":"Supports Live Preview","description":"Whether generations on this load can stream live denoise previews (drives the Live preview switch). False on the native and MLX engines and for families without a fitted preview map.","default":true},"prompt_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Hint","description":"How the loaded model reads prompts, in one or two sentences; null when it has no tip."},"samplers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Samplers","description":"Samplers the loaded model can run, each {id, label, schedule_types}; the first is 'default' (the shipped scheduler). Empty when there is no choice: flow-matching models, the native and MLX engines, or nothing loaded."},"sd_controls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sd Controls","description":"SDXL prompt weighting, CLIP skip, CFG rescale and variation seed: {prompt_weighting, clip_skip {min, max, default, same_as_default_through}, cfg_rescale {min, max, default, recommended}, variation_seed, vary_strength, prediction_type}. Null when the loaded model has none of them (every non-SDXL family, the native and MLX engines)."},"supports_cfg_interval":{"type":"boolean","title":"Supports Cfg Interval","description":"Whether generate accepts cfg_interval_end (Fast CFG) for the loaded model.","default":false},"shift_control":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Shift Control","description":"The Shift control the loaded flow-matching model takes, or null to hide it: {node: 'sd3', shift} (one static shift, ComfyUI ModelSamplingSD3 / AuraFlow; shift = the loaded value or null when resolution-dependent) or {node: 'flux', base_shift, max_shift} (ComfyUI ModelSamplingFlux defaults). Diffusers engine only."},"hires":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Hires","description":"The Hires fix control the loaded model takes, or null to hide it: {upscalers: [{id, label, kind}], default_upscaler, defaults: {scale, denoise}, max_side}."},"hires_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hires Unavailable Reason","description":"Why Hires fix is hidden for the loaded model, when there is a reason worth showing"},"upscale_models":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Upscale Models","description":"Model upscalers ({id, label, scale}) the Upscale workflow can use; empty = Lanczos only."},"textual_inversion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Textual Inversion","description":"Textual-inversion embedding format the loaded model takes ('sdxl'), or null when it takes none. Embeddings are listed by GET /api/models/diffusion-embeddings."},"resolved":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/DiffusionResolvedControl"},"type":"object"},{"type":"null"}],"title":"Resolved","description":"Per-control resolved value + provenance (source auto|explicit + reason), keyed by Advanced control name; null when unloaded or unavailable."},"generation_defaults":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Generation Defaults","description":"Default steps and guidance for the loaded model (file header before base repo); null when unloaded or on an engine that does not report it."},"unloaded":{"type":"boolean","const":true,"title":"Unloaded","description":"Always true: that load was unloaded"},"outcome":{"type":"string","const":"unloaded","title":"Outcome","description":"Always unloaded"}},"type":"object","required":["unloaded","outcome"],"title":"DiffusionLoadUnloadedResponse","description":"POST /images/unload with expected_load_id that unloaded that load: the state it left behind."},"DiffusionMetricHistory":{"properties":{"steps":{"items":{"type":"integer"},"type":"array","title":"Steps"},"loss":{"items":{"type":"number"},"type":"array","title":"Loss"},"lr":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Lr"},"grad_norm":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Grad Norm"},"video_loss":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Video Loss"},"audio_loss":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Audio Loss"}},"type":"object","title":"DiffusionMetricHistory","description":"Paired step-indexed history arrays for the live training charts. Every series but\n``loss`` may hold nulls so the sparse ones still align with ``steps`` by index."},"DiffusionModelLoadProgress":{"properties":{"done":{"type":"integer","minimum":0.0,"title":"Done"},"total":{"type":"integer","exclusiveMinimum":0.0,"title":"Total"},"unit":{"type":"string","enum":["tensors","components","shards"],"title":"Unit"},"label":{"type":"string","title":"Label"}},"type":"object","required":["done","total","unit","label"],"title":"DiffusionModelLoadProgress"},"DiffusionResolvedControl":{"properties":{"value":{"title":"Value","description":"The engaged value: a string, a boolean (cpu_offload), or null."},"requested":{"title":"Requested","description":"What the caller asked for, verbatim (a string, a boolean for cpu_offload), or null when they left this control to the backend. Compare with ``value`` to see whether the request survived."},"source":{"type":"string","title":"Source","description":"\"auto\" (backend decided) or \"explicit\" (caller set it)"},"status":{"type":"string","title":"Status","description":"Whether the request was honored: \"applied\" (it was, or there was no request), \"fell_back\" (an explicit request was declined and something else engaged) or \"unsupported\" (an explicit request cannot run on this host / model at all). Defaulted so a client reading an older backend's payload still parses.","default":"applied"},"reason":{"type":"string","title":"Reason","description":"Short human-readable reason for the resolved value.","default":""},"artifact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact","description":"The hosted or local file the engaged value came from, as \"prequant:<repo>/<file>\", when a pre-quantized checkpoint was seeded rather than the weights being quantised in memory. Declared here or pydantic drops it and no API client ever sees the provenance. Null on every other control and on a runtime quantise."},"replaced":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replaced","description":"The picked checkpoint that did NOT run, as \"gguf:<file>\", when a GGUF pick whose memory plan offloads loaded the hosted pre-quantized checkpoint (``artifact``) instead. Null otherwise."},"steps":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Steps","description":"speed_mode only: the auto-optimizer's per-step audit for this load, in order, each {\"step\", \"status\": \"engaged\" | \"declined\" | \"failed\", \"reason\"} (why a step did not engage, or the error it failed with). Null on every other control."},"engaged":{"title":"Engaged","description":"attention_backend: the backend the attention modules actually run (a string). int8_attention: whether Studio's INT8 attention kernel engaged (a boolean). Null on every other control."},"modules":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Modules","description":"attention_backend / int8_attention: how many attention modules run the engaged backend; null when the pipeline has no countable processors and on every other control."},"routed":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Routed","description":"attention_backend only: how many attention modules route to each backend. Null on every other control."}},"type":"object","required":["source"],"title":"DiffusionResolvedControl","description":"One Advanced control's engaged value + provenance, for the \"Auto: X\" badges.\n\n``value`` is what actually applied (a scheme string, a mode string, ``null`` when the\ncontrol is off, or ``true``/``false`` for cpu_offload), so it is typed ``Any``.\n``source`` is \"auto\" when this backend decided it or \"explicit\" when the caller did;\n``reason`` is the short human-readable why the frontend shows as a tooltip.\n\n``requested`` and ``status`` carry the OTHER half: what was asked for and whether it was\nhonored. Without them a declined request was indistinguishable from an honored one -- the\nengaged value was reported truthfully, but the ask it replaced was gone, so the UI kept\nadvertising a precision that never engaged."},"DiffusionSampleImage":{"properties":{"step":{"type":"integer","title":"Step"},"path":{"type":"string","title":"Path"},"prompt":{"type":"string","title":"Prompt","default":""},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"}},"type":"object","required":["step","path"],"title":"DiffusionSampleImage","description":"One preview image; ``path`` is relative to the run's output_dir."},"DiffusionStatusResponse":{"properties":{"load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Id","description":"The load_token of the load in flight or resident (one Studio made up for a load sent without one); POST unload with expected_load_id set to it unloads that load only."},"resident_load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resident Load Id","description":"The load_token of the model resident in the slot, also while another load is in flight over it (equal to load_id when none is); a failed replacement leaves this model loaded."},"resident_mib":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resident Mib","description":"Best-effort memory the resident model holds, in MiB; null when unknown."},"multi_gpu":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Multi Gpu","description":"Multi-GPU placement (component -> card, primary, secondary) and CFG-parallel state (armed, call counts, or why it declined); null when the load had one card to use. A multi-card load that kept everything on its primary card reports why it declined."},"graph_engagement":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Graph Engagement","description":"Compile / CUDA-graph engagement counters: this load's graph captures, replays and ungraphed denoiser calls (whole-step, per block, per-card segments, and the per-block graphs a whole-step graph falls back to), and the process's dynamo frame and graph-break totals; null when nothing is loaded."},"loaded":{"type":"boolean","title":"Loaded","description":"Whether a diffusion model is loaded","default":false},"evicted":{"items":{"type":"string"},"type":"array","title":"Evicted","description":"Models this load unloaded to make room. Filled only on the load answer."},"evicted_slots":{"items":{"$ref":"#/components/schemas/EvictedSlot"},"type":"array","title":"Evicted Slots","description":"The same models as evicted, each with its kind and public model id."},"repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Id","description":"Loaded repo id or local path"},"display_repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Repo Id","description":"Logical Hub id of a local snapshot"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family","description":"Detected diffusion family"},"supported_families":{"items":{"type":"string"},"type":"array","title":"Supported Families","description":"Loadable families"},"modular_families":{"items":{"type":"string"},"type":"array","title":"Modular Families","description":"Loadable families shipped as Modular Diffusers pipelines"},"supports_prompt_upsampler":{"type":"boolean","title":"Supports Prompt Upsampler","description":"Whether the loaded family can enhance prompts with the FLUX.3 prompt upsampler","default":false},"prompt_upsampler_default":{"type":"boolean","title":"Prompt Upsampler Default","description":"Whether enhance_prompt defaults to on for the loaded family","default":false},"base_repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Repo","description":"Companion diffusers base repo"},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device","description":"Device the pipeline is on"},"dtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dtype","description":"Compute dtype"},"model_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Kind","description":"Resolved load kind: gguf | single_file | pipeline (gates GGUF-only UI)"},"gguf_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Filename","description":"Loaded single-file checkpoint filename, or null for a pipeline"},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant","description":"Selected GGUF quantisation variant (for example Q8_0)"},"component_files":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Component Files","description":"Supplied text-encoder / VAE files by pipeline component (e.g. text_encoder_2: t5xxl_fp8_e4m3fn_scaled.safetensors); null when every companion came from the base repo"},"cpu_offload":{"type":"boolean","title":"Cpu Offload","description":"Whether CPU offload is engaged","default":false},"offload_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offload Policy","description":"Resolved offload policy: none | group | model | streaming | sequential"},"denoiser_offload":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denoiser Offload","description":"Under group offload, where the denoiser lives now: resident (only the text encoders stream) | partial | streamed (blocks move from CPU on every step). Null for other policies."},"vae_tiling":{"type":"boolean","title":"Vae Tiling","description":"Whether VAE tiling/slicing is enabled","default":false},"memory_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Mode","description":"Requested memory mode"},"speed_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speed Mode","description":"Requested speed mode"},"speed_optims":{"items":{"type":"string"},"type":"array","title":"Speed Optims","description":"Speed optimisations actually engaged"},"text_encoder_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Encoder Quant","description":"Text-encoder quantisation engaged: fp8 | nvfp4 | null"},"transformer_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant","description":"Transformer quant engaged on the dense fast path: int8 | fp8 | nvfp4 | mxfp8 | null (null = the GGUF transformer was loaded)"},"transformer_quant_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant Backend","description":"Which NVFP4 kernel path the loaded DiT actually runs: flashinfer | torchao | null (null for every scheme but nvfp4). The scheme alone does not say: flashinfer is selected per device and falls back to torchao on a preflight failure, so this is the only place a render's speed can be attributed to the backend that served it."},"transformer_quant_backend_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant Backend Reason","description":"Why flashinfer is not serving an NVFP4 load that runs torchao: the on-demand install was refused (offline, opt-out, ineligible host) or failed and was rolled back. null when the backend is flashinfer, the scheme is not nvfp4, or no reason was recorded."},"attention_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attention Backend","description":"Attention backend engaged via the diffusers dispatcher (e.g. _native_cudnn), or null for the default SDPA"},"transformer_cache":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Cache","description":"Step cache engaged: fbcache | static | null"},"baked_loras":{"items":{"type":"string"},"type":"array","title":"Baked Loras","description":"Adapter ids baked into the transformer at load time, as GalleryImage.baked_loras records them; empty when the load baked none"},"baked_lora_specs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Baked Lora Specs","description":"The baked adapters as the load requested them, [{id, weight}]; empty when none. The Images page compares a LoRA selection against it to tell whether Generate needs a reload first"},"transformer_cache_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Transformer Cache Stats","description":"Static step skip only: mode, schedule and the last generation's calls / computed / skipped transformer calls; null for any other cache"},"render_engagement":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Render Engagement","description":"What the last generation actually ran: fbcache = {computed, skipped} head-block decisions of First-Block-Cache (null when it is not installed). null before the first generation."},"workflows":{"items":{"type":"string"},"type":"array","title":"Workflows","description":"Image workflows the loaded family supports (drives UI tab gating): txt2img, img2img, inpaint. Empty when nothing is loaded or on the native engine."},"conditioning":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Conditioning","description":"Image-conditioning limits of the loaded model on the active engine: max_condition_images (total, including the source), alpha, dimension_multiple, max_output_side, max_output_pixels, reference_resolutions, edit_output_resolution (the output size an edit should default to, or null) and localized_edit_modes. Null when nothing is loaded."},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine","description":"Active diffusion engine: diffusers | sd_cpp | mlx (opt-in, Apple Silicon)"},"native_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Native Mode","description":"Native sd.cpp execution mode: server (resident sd-server) | oneshot (per-image sd-cli) | null (diffusers engine)"},"fallback_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback Reason","description":"Why diffusers was chosen over the native sd.cpp engine (null when none)"},"mlx_fallback_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Fallback Reason","description":"Why an Apple Silicon load did not get the MLX engine (null when MLX is off, the host is not an Apple Silicon Mac, or MLX is in use)"},"engine_routing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Engine Routing","description":"Per-request routing of the default Apple Silicon MLX engine: mode, default_engine, resident engines, txt2img_engine (where plain text-to-image runs next), engines_fit_together, last_served_by and last_reason. Null for every other engine."},"engine_forced":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Forced","description":"Engine UNSLOTH_DIFFUSION_ENGINE pins (diffusers | sd_cpp); a load's own engine pick is ignored while set. Null when unset."},"native_engine_eligible":{"type":"boolean","title":"Native Engine Eligible","description":"Whether the loaded pick is a GGUF of a family the native sd.cpp engine can run (the binary itself is checked when a load asks for it).","default":false},"lora_via_native":{"type":"boolean","title":"Lora Via Native","description":"LoRA is unavailable on the current engine for this GGUF, but reloading it on the native sd.cpp engine would apply LoRAs.","default":false},"lora_after_reload":{"type":"boolean","title":"Lora After Reload","description":"LoRA is off only because Speed=Auto compiled the model on its 3rd image; reloading it (still Speed=Auto) brings LoRAs back until then.","default":false},"supports_lora":{"type":"boolean","title":"Supports Lora","description":"Whether the loaded model + quantisation can apply LoRA adapters (drives the LoRA picker's enabled state). torchao int8/fp8 builds support LoRA via the load-time bake: select the adapters when loading; weight changes apply live, a different adapter set needs a reload. False on unsupported families/quant (e.g. nvfp4/mxfp8, a whole-pipeline SDXL GGUF, or Qwen-Image on the native engine).","default":false},"lora_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lora Unavailable Reason","description":"Why the loaded model cannot apply LoRA adapters on its current engine, shown on the Images page in place of the LoRA picker. Null when supports_lora is true or nothing is loaded."},"supports_controlnet":{"type":"boolean","title":"Supports Controlnet","description":"Whether the loaded model can apply a ControlNet (drives the ControlNet picker's enabled state). Diffusers only, for families with a ControlNet pipeline; False for the native engine, GGUF-via-diffusers, and torchao fp8/int8 dense.","default":false},"supports_inpaint_only_masked":{"type":"boolean","title":"Supports Inpaint Only Masked","description":"Whether the loaded model's inpaint pipeline can render only the masked area (`inpaint_only_masked`, diffusers padding_mask_crop). Diffusers only; False for the native and MLX engines and when nothing is loaded.","default":false},"supports_negative_prompt":{"type":"boolean","title":"Supports Negative Prompt","description":"Whether the loaded model applies a negative prompt on this engine (drives the Negative prompt field). False for FLUX and Ideogram 4 on diffusers, and for FLUX.1 / Kontext / FLUX.2-dev on the native engine.","default":true},"negative_prompt_min_guidance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Negative Prompt Min Guidance","description":"The guidance Unsloth passes a negative prompt above (1 for classifier-free guidance, 0 for Z-Image and Krea 2 on diffusers); null when guidance does not gate it. Drives the Negative prompt hint."},"supports_guidance":{"type":"boolean","title":"Supports Guidance","description":"Whether the loaded model reads the guidance value on this engine (drives the Guidance control). False on diffusers for FLUX.3 Klein (distilled), whose pipeline has no guidance, and for distilled FLUX.2 klein checkpoints, which Flux2KleinPipeline runs without it.","default":true},"supports_live_preview":{"type":"boolean","title":"Supports Live Preview","description":"Whether generations on this load can stream live denoise previews (drives the Live preview switch). False on the native and MLX engines and for families without a fitted preview map.","default":true},"prompt_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Hint","description":"How the loaded model reads prompts, in one or two sentences; null when it has no tip."},"samplers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Samplers","description":"Samplers the loaded model can run, each {id, label, schedule_types}; the first is 'default' (the shipped scheduler). Empty when there is no choice: flow-matching models, the native and MLX engines, or nothing loaded."},"sd_controls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sd Controls","description":"SDXL prompt weighting, CLIP skip, CFG rescale and variation seed: {prompt_weighting, clip_skip {min, max, default, same_as_default_through}, cfg_rescale {min, max, default, recommended}, variation_seed, vary_strength, prediction_type}. Null when the loaded model has none of them (every non-SDXL family, the native and MLX engines)."},"supports_cfg_interval":{"type":"boolean","title":"Supports Cfg Interval","description":"Whether generate accepts cfg_interval_end (Fast CFG) for the loaded model.","default":false},"shift_control":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Shift Control","description":"The Shift control the loaded flow-matching model takes, or null to hide it: {node: 'sd3', shift} (one static shift, ComfyUI ModelSamplingSD3 / AuraFlow; shift = the loaded value or null when resolution-dependent) or {node: 'flux', base_shift, max_shift} (ComfyUI ModelSamplingFlux defaults). Diffusers engine only."},"hires":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Hires","description":"The Hires fix control the loaded model takes, or null to hide it: {upscalers: [{id, label, kind}], default_upscaler, defaults: {scale, denoise}, max_side}."},"hires_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hires Unavailable Reason","description":"Why Hires fix is hidden for the loaded model, when there is a reason worth showing"},"upscale_models":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Upscale Models","description":"Model upscalers ({id, label, scale}) the Upscale workflow can use; empty = Lanczos only."},"textual_inversion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Textual Inversion","description":"Textual-inversion embedding format the loaded model takes ('sdxl'), or null when it takes none. Embeddings are listed by GET /api/models/diffusion-embeddings."},"resolved":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/DiffusionResolvedControl"},"type":"object"},{"type":"null"}],"title":"Resolved","description":"Per-control resolved value + provenance (source auto|explicit + reason), keyed by Advanced control name; null when unloaded or unavailable."},"generation_defaults":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Generation Defaults","description":"Default steps and guidance for the loaded model (file header before base repo); null when unloaded or on an engine that does not report it."}},"type":"object","title":"DiffusionStatusResponse","description":"Current diffusion backend state."},"DiffusionTrainableFamily":{"properties":{"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"default_base":{"type":"string","title":"Default Base"},"base_repos":{"items":{"type":"string"},"type":"array","title":"Base Repos"},"defaults":{"additionalProperties":true,"type":"object","title":"Defaults"},"vram_note":{"type":"string","title":"Vram Note","default":""},"params":{"type":"string","title":"Params","default":""},"qlora_vram_gb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Qlora Vram Gb"},"gated":{"type":"boolean","title":"Gated","default":false},"note":{"type":"string","title":"Note","default":""},"precision_modes":{"items":{"type":"string"},"type":"array","title":"Precision Modes"},"recommended_precision":{"type":"string","title":"Recommended Precision","default":"nf4"},"supports_compile":{"type":"boolean","title":"Supports Compile","default":false},"supports_block_swap":{"type":"boolean","title":"Supports Block Swap","default":false},"supports_checkpoints":{"type":"boolean","title":"Supports Checkpoints","default":true},"supports_samples":{"type":"boolean","title":"Supports Samples","default":false},"supports_bucketing":{"type":"boolean","title":"Supports Bucketing","default":true},"is_video":{"type":"boolean","title":"Is Video","default":false},"max_train_batch_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Train Batch Size"},"deploy_base":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deploy Base"},"deploy_bases":{"additionalProperties":{"type":"string"},"type":"object","title":"Deploy Bases"},"lora_families":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Lora Families"},"base_specs":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Base Specs"}},"type":"object","required":["name","label","default_base"],"title":"DiffusionTrainableFamily","description":"A base-model family the diffusion trainer supports, with UI-facing metadata."},"DiffusionTrainingDownloadProgress":{"properties":{"bytes_done":{"type":"integer","minimum":0.0,"title":"Bytes Done","default":0},"bytes_total":{"type":"integer","minimum":0.0,"title":"Bytes Total","default":0},"label":{"type":"string","title":"Label","default":"Model files"},"scope":{"type":"string","title":"Scope","default":"active_files"}},"type":"object","title":"DiffusionTrainingDownloadProgress"},"DiffusionTrainingInfoResponse":{"properties":{"datasets_root":{"type":"string","title":"Datasets Root"},"outputs_root":{"type":"string","title":"Outputs Root"},"datasets":{"items":{"$ref":"#/components/schemas/DiffusionDatasetSummary"},"type":"array","title":"Datasets"},"dataset_names":{"items":{"type":"string"},"type":"array","title":"Dataset Names"},"continuation_dataset_names":{"items":{"type":"string"},"type":"array","title":"Continuation Dataset Names"},"families":{"items":{"$ref":"#/components/schemas/DiffusionTrainableFamily"},"type":"array","title":"Families"}},"type":"object","required":["datasets_root","outputs_root","datasets"],"title":"DiffusionTrainingInfoResponse","description":"lists paths, usable datasets, and UI-facing trainable families for this Unsloth instance."},"DiffusionTrainingPreparation":{"properties":{"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"done":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Done"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","title":"DiffusionTrainingPreparation"},"DiffusionTrainingRunDetail":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message","default":""},"adapter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adapter"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model"},"step":{"type":"integer","title":"Step","default":0},"total_steps":{"type":"integer","title":"Total Steps","default":0},"avg_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Loss"},"saved":{"type":"boolean","title":"Saved","default":false},"catalog_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Catalog Path"},"instance_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instance Prompt"},"started_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ended At"},"output_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Dir"},"can_resume":{"type":"boolean","title":"Can Resume","default":false},"checkpoint_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Checkpoint Step"},"checkpoint_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkpoint Path"},"resume_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Blocked Reason"},"resumed_from_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resumed From Job Id"},"resumed_from_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resumed From Step"},"loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loss"},"samples_per_second":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Samples Per Second"},"peak_memory_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peak Memory Gb"},"num_images":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Images"},"lora_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lora Path"},"ema_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ema Path"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"metric_history":{"anyOf":[{"$ref":"#/components/schemas/DiffusionMetricHistory"},{"type":"null"}]},"samples":{"items":{"$ref":"#/components/schemas/DiffusionSampleImage"},"type":"array","title":"Samples"}},"type":"object","required":["job_id","status"],"title":"DiffusionTrainingRunDetail","description":"The full persisted record: summary + scrubbed start config + metric logs."},"DiffusionTrainingRunSummary":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message","default":""},"adapter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adapter"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model"},"step":{"type":"integer","title":"Step","default":0},"total_steps":{"type":"integer","title":"Total Steps","default":0},"avg_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Loss"},"saved":{"type":"boolean","title":"Saved","default":false},"catalog_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Catalog Path"},"instance_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instance Prompt"},"started_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ended At"},"output_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Dir"},"can_resume":{"type":"boolean","title":"Can Resume","default":false},"checkpoint_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Checkpoint Step"},"checkpoint_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkpoint Path"},"resume_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Blocked Reason"},"resumed_from_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resumed From Job Id"},"resumed_from_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resumed From Step"}},"type":"object","required":["job_id","status"],"title":"DiffusionTrainingRunSummary","description":"One persisted diffusion training run (terminal), as listed in the Train tab's\nprevious-runs history. The heavy payload (config + metric logs) lives in the detail."},"DiffusionTrainingRunsResponse":{"properties":{"runs":{"items":{"$ref":"#/components/schemas/DiffusionTrainingRunSummary"},"type":"array","title":"Runs"}},"type":"object","title":"DiffusionTrainingRunsResponse"},"DiffusionTrainingStartRequest":{"properties":{"base_model":{"type":"string","title":"Base Model","description":"HF repo id or local path to a trainable base"},"data_dir":{"type":"string","title":"Data Dir","description":"Folder of training images (+ captions)"},"output_dir":{"type":"string","title":"Output Dir","description":"Directory to write the LoRA .safetensors into"},"model_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Family","description":"Explicit trainer family (sdxl / flux.1 / ...); omitted = detect from base_model"},"instance_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instance Prompt","description":"Dreambooth caption applied to images without their own caption"},"resolution":{"type":"integer","maximum":2048.0,"minimum":64.0,"title":"Resolution","description":"Square training resolution (multiple of 8)","default":1024},"train_steps":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Train Steps","default":500},"num_epochs":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Num Epochs","description":"0 = use train_steps; > 0 overrides train_steps with epochs x ceil(N / (batch x grad_accum)) optimizer steps over the N-image dataset","default":0},"learning_rate":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Learning Rate","default":0.0001},"train_batch_size":{"type":"integer","maximum":64.0,"minimum":1.0,"title":"Train Batch Size","default":1},"gradient_accumulation_steps":{"type":"integer","maximum":256.0,"minimum":1.0,"title":"Gradient Accumulation Steps","default":1},"lora_rank":{"type":"integer","maximum":320.0,"minimum":1.0,"title":"Lora Rank","default":16},"lora_alpha":{"anyOf":[{"type":"integer","maximum":640.0,"minimum":1.0},{"type":"null"}],"title":"Lora Alpha","description":"Defaults to lora_rank"},"lora_dropout":{"type":"number","exclusiveMaximum":1.0,"minimum":0.0,"title":"Lora Dropout","default":0.0},"lora_target_modules":{"items":{"type":"string"},"type":"array","title":"Lora Target Modules","description":"U-Net modules to attach LoRA to"},"max_grad_norm":{"type":"number","minimum":0.0,"title":"Max Grad Norm","description":"Gradient clipping max-norm; 0 disables clipping","default":1.0},"seed":{"type":"integer","maximum":1.8446744073709552e+19,"minimum":-9.223372036854776e+18,"title":"Seed","default":42},"mixed_precision":{"type":"string","enum":["bf16","fp16","no"],"title":"Mixed Precision","default":"bf16"},"snr_gamma":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Snr Gamma","description":"Min-SNR loss weighting (SDXL only; flow-matching families ignore it); null disables","default":5.0},"gradient_checkpointing":{"type":"boolean","title":"Gradient Checkpointing","default":true},"lr_scheduler":{"type":"string","enum":["linear","cosine","cosine_with_restarts","polynomial","constant","constant_with_warmup"],"title":"Lr Scheduler","default":"constant"},"lr_warmup_steps":{"type":"integer","minimum":0.0,"title":"Lr Warmup Steps","default":0},"center_crop":{"type":"boolean","title":"Center Crop","default":false},"random_flip":{"type":"boolean","title":"Random Flip","description":"Randomly mirror training images left-right (augmentation)","default":false},"bucketing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Bucketing","description":"Aspect-ratio buckets: train each image on the same-area canvas nearest its aspect ratio instead of a square crop. null means on for a new run and, on a resume, what the checkpoint recorded (square for a run from before buckets existed). MiniMax-H3 always trains unbucketed."},"caption_column":{"type":"string","title":"Caption Column","default":"text"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token"},"cache_latents":{"type":"boolean","title":"Cache Latents","description":"Precompute VAE latents once and free the VAE for the run","default":true},"cache_variants":{"type":"integer","maximum":16.0,"minimum":1.0,"title":"Cache Variants","description":"Frozen crop/flip variants per image in the latent cache","default":4},"cond_cache_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cond Cache Dir","description":"Directory for the PERSISTENT conditioning cache (latents + text embeddings), reused across runs: a rerun whose images, captions and resolution are unchanged skips loading the VAE and the multi-GB text encoders entirely. Unsloth-relative names are resolved under the Unsloth outputs root and absolute paths must stay inside it. null or blank uses the default cache in the Studio cache folder (on for the DiT and MiniMax-H3 families, oldest entries evicted past UNSLOTH_DIFFUSION_TRAIN_COND_CACHE_MAX_GB, 20 by default); 'off' keeps the in-memory cache only, rebuilt every run, as does UNSLOTH_DIFFUSION_TRAIN_COND_CACHE=0 for the default."},"compile_transformer":{"type":"string","enum":["off","on","auto"],"title":"Compile Transformer","description":"Regional torch.compile of the transformer blocks","default":"auto"},"enable_tf32":{"type":"boolean","title":"Enable Tf32","description":"TF32 matmuls + cudnn autotuning (near-lossless speedup)","default":true},"base_precision":{"type":"string","enum":["nf4","bf16","int8","fp8","mxfp8","auto"],"title":"Base Precision","description":"DiT base transformer precision: nf4 QLoRA (memory floor, default), bf16 dense, int8 torchao weight-only, fp8 float8 training compute (Ada/Hopper/Blackwell), mxfp8 block-scaled float8 compute (Blackwell, best at high resolution/batch), or auto (pick by free VRAM + GPU class). Dense modes need a non-prequant base.","default":"nf4"},"block_swap":{"anyOf":[{"type":"string","enum":["off","auto"]},{"type":"integer","maximum":1024.0,"minimum":0.0},{"type":"null"}],"title":"Block Swap","description":"DiT families with base_precision='bf16' only: repeated transformer blocks kept in host RAM and streamed to the GPU each step, so a bf16 base larger than the card trains at bf16 accuracy. 'auto' swaps as few as fit, a number swaps that many, 'off' or 0 none. Needs gradient checkpointing and a discrete CUDA / ROCm GPU. null keeps the server default (UNSLOTH_DIT_BLOCK_SWAP)."},"num_gpus":{"type":"integer","maximum":64.0,"minimum":1.0,"title":"Num Gpus","description":"DiT families on CUDA: data-parallel training over this many identical visible GPUs (one process each); train_batch_size is per GPU. Falls back to one GPU with a warning when the host cannot.","default":1},"ema_decay":{"type":"number","exclusiveMaximum":1.0,"minimum":0.0,"title":"Ema Decay","description":"EMA of the LoRA weights; 0 disables it","default":0.0},"cfg_dropout":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Cfg Dropout","description":"Chance of dropping the caption to an empty prompt","default":0.0},"weighting_scheme":{"type":"string","enum":["none","bell"],"title":"Weighting Scheme","description":"Per-sample loss weighting over the drawn timestep: none (unweighted MSE) or bell (Gaussian bell centered mid-schedule). Timesteps are always logit-normal sampled.","default":"none"},"flow_shift":{"anyOf":[{"type":"number"},{"type":"string","const":"auto"},{"type":"null"}],"title":"Flow Shift","description":"Flow-matching timestep shift, as the effective shift on the unshifted schedule (musubi / kohya discrete_flow_shift; 1.0 trains unshifted). null uses the family default: auto for qwen-image, ltx-2 and minimax-h3, otherwise the model's own scheduler shift (3.0 for Z-Image-Turbo, 6.0 for Z-Image)."},"save_steps":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Save Steps","description":"Write a resumable checkpoint every N optimizer steps. 0 (the default) writes no periodic checkpoints; a stop-and-save always writes one, so Resume stays available either way.","default":0},"save_total_limit":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Save Total Limit","description":"How many checkpoints to keep; 0 keeps every one","default":2},"sample_every":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Sample Every","description":"Render fixed-seed preview images every N optimizer steps (plus a step-0 baseline and the final step). 0 (the default) renders none. Image families only.","default":0},"sample_prompts":{"items":{"type":"string"},"type":"array","maxItems":4,"title":"Sample Prompts","description":"Preview prompts, one image each. Empty uses the instance prompt, else the first caption."},"resume_from_checkpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume From Checkpoint","description":"Continue a previous run: its output_dir (the newest complete checkpoint inside it is used) or one explicit checkpoint-<N> directory. Must resolve inside the Unsloth outputs root, and must match this run's family, base model, dataset, LoRA configuration and precision. train_steps is then the TARGET TOTAL, so resuming a checkpoint at step 11 with train_steps=500 trains steps 12..500."},"resumed_from_job_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{32}$"},{"type":"null"}],"title":"Resumed From Job Id","description":"The run this one continues, recorded in the history for lineage only"}},"type":"object","required":["base_model","data_dir","output_dir"],"title":"DiffusionTrainingStartRequest","description":"Request to start a diffusion (SDXL) LoRA training job.\n\nField names mirror ``core.training.diffusion_lora_trainer.DiffusionLoraConfig`` so the\nservice can pass ``model_dump()`` straight through. Only the paths are required; the\nrest carry the trainer's defaults."},"DiffusionTrainingStartResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"DiffusionTrainingStartResponse","description":"Response for starting a diffusion training job."},"DiffusionTrainingStatusResponse":{"properties":{"active":{"type":"boolean","title":"Active"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message","default":""},"step":{"type":"integer","title":"Step","default":0},"total_steps":{"type":"integer","title":"Total Steps","default":0},"loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Loss"},"avg_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Loss"},"learning_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Learning Rate"},"grad_norm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Grad Norm"},"video_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Video Loss"},"audio_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Audio Loss"},"num_images":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Images"},"in_model_load":{"type":"boolean","title":"In Model Load","default":false},"preparation":{"anyOf":[{"$ref":"#/components/schemas/DiffusionTrainingPreparation"},{"type":"null"}]},"model_load_stage":{"anyOf":[{"type":"string","enum":["conditioning","transformer","quantizing"]},{"type":"null"}],"title":"Model Load Stage"},"model_load_progress":{"anyOf":[{"$ref":"#/components/schemas/DiffusionModelLoadProgress"},{"type":"null"}]},"download_progress":{"anyOf":[{"$ref":"#/components/schemas/DiffusionTrainingDownloadProgress"},{"type":"null"}]},"output_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Dir"},"lora_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lora Path"},"ema_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ema Path"},"catalog_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Catalog Path"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model"},"samples_per_second":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Samples Per Second"},"peak_memory_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peak Memory Gb"},"block_swap":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Block Swap"},"checkpoint_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkpoint Path"},"checkpoint_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Checkpoint Step"},"resume_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Blocked Reason"},"resumed_from_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resumed From Step"},"started_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Started At"},"updated_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Updated At"},"metric_history":{"anyOf":[{"$ref":"#/components/schemas/DiffusionMetricHistory"},{"type":"null"}]},"samples":{"items":{"$ref":"#/components/schemas/DiffusionSampleImage"},"type":"array","title":"Samples"}},"type":"object","required":["active","status"],"title":"DiffusionTrainingStatusResponse","description":"A snapshot of the current diffusion training job (or idle)."},"DiffusionTrainingStopRequest":{"properties":{"save":{"type":"boolean","title":"Save","default":true}},"type":"object","title":"DiffusionTrainingStopRequest","description":"Optional body for stopping a diffusion training job. ``save`` mirrors the LLM\ntrainer's stop: True (default) exports the partial adapter, False cancels without\nleaving one behind."},"DownloadDatasetRequest":{"properties":{"repo_id":{"type":"string","title":"Repo Id","description":"HuggingFace dataset repo ID"},"use_xet":{"type":"boolean","title":"Use Xet","description":"Legacy transport flag, superseded by transport_mode. Kept so an older frontend or a scripted caller keeps working.","default":true},"transport_mode":{"anyOf":[{"type":"string","enum":["auto","xet","http"]},{"type":"null"}],"title":"Transport Mode","description":"Transport preference. 'auto' (the default in the UI) lets the backend pick per machine: it knows this host's RAM, its hf_xet build, and whether Xet has been failing here. 'xet'/'http' force one. Omitted -> use_xet decides."}},"type":"object","required":["repo_id"],"title":"DownloadDatasetRequest","description":"Body for POST /api/hub/datasets/download.\n\nThe HuggingFace token travels in the internal Hub token header."},"DownloadJobStatus":{"properties":{"state":{"type":"string","enum":["idle","running","cancelling","cancelled","complete","error"],"title":"State","description":"Current download job state."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if state == 'error'"},"generation":{"type":"integer","title":"Generation","description":"Current run generation; an adopting client stores it so a later cancel is scoped to this exact run.","default":0},"attempt":{"type":"integer","title":"Attempt","description":"Worker attempt within this generation; a retry that restarts the file bumps it so a client drops the old run's progress.","default":1}},"type":"object","required":["state"],"title":"DownloadJobStatus","description":"Live state of a background download job."},"DownloadModelRequest":{"properties":{"repo_id":{"type":"string","title":"Repo Id","description":"HuggingFace repo ID, e.g. 'unsloth/Qwen3-4B-GGUF'"},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant","description":"Quantization label (e.g. 'Q4_K_M'). Required for GGUF repos."},"engram_precision":{"anyOf":[{"type":"string","maxLength":32,"pattern":"^[A-Za-z0-9_]*$"},{"type":"null"}],"title":"Engram Precision","description":"With gguf_variant: fetch the repo's standalone Engram table of this precision in place of the quant's own table shard (see LoadRequest.engram_precision)."},"use_xet":{"type":"boolean","title":"Use Xet","description":"Legacy transport flag, superseded by transport_mode. Kept so an older frontend or a scripted caller keeps working.","default":true},"transport_mode":{"anyOf":[{"type":"string","enum":["auto","xet","http"]},{"type":"null"}],"title":"Transport Mode","description":"Transport preference. 'auto' (the default in the UI) lets the backend pick per machine: it knows this host's RAM, its hf_xet build, and whether Xet has been failing here. 'xet'/'http' force one. Omitted -> use_xet decides."},"scope_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Id","description":"Marks a partial-by-design download of `files` only (e.g. 'diffusion', whose loader reads a scoped subset of a repo). Keyed separately from the full snapshot of the same repo, so neither one's manifest describes the other."},"files":{"items":{"type":"string"},"type":"array","title":"Files","description":"Exact files to fetch. Required with scope_id, ignored without it."},"download_dir":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Download Dir","description":"Folder to download into instead of the Models folder. It is used like a Models folder (files land under its hub/ subfolder) and is added to Custom Folders. Omitted -> the Models folder."}},"type":"object","required":["repo_id"],"title":"DownloadModelRequest","description":"Body for POST /api/hub/download.\n\nThe HuggingFace token travels in the internal Hub token header."},"DownloadProgressResponse":{"properties":{"progress_scope":{"anyOf":[{"type":"string","const":"active_files"},{"type":"null"}],"title":"Progress Scope"},"downloaded_bytes":{"type":"integer","title":"Downloaded Bytes"},"completed_bytes":{"type":"integer","title":"Completed Bytes","default":0},"complete_on_disk":{"type":"boolean","title":"Complete On Disk","description":"True only when the backend verified a usable completed snapshot/variant on disk.","default":false},"expected_bytes":{"type":"integer","title":"Expected Bytes"},"progress":{"type":"number","title":"Progress"},"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path"},"cache_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Ref"},"cache_measured":{"type":"boolean","title":"Cache Measured","description":"False when the cache could not be scanned at all (an unreadable root). The reading is then unknown, not empty: cache_path is null either way, and hydration must not retire a persisted job on a scan that never happened.","default":true},"target_present":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Target Present","description":"Whether this TARGET (variant) has anything in the cache, as opposed to the shared repo directory existing. Null where it cannot be established."}},"type":"object","required":["downloaded_bytes","expected_bytes","progress"],"title":"DownloadProgressResponse"},"DownloadSpeedLimitPayload":{"properties":{"mbps":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Mbps"}},"type":"object","title":"DownloadSpeedLimitPayload"},"DownloadSpeedLimitResponse":{"properties":{"mbps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mbps"}},"type":"object","title":"DownloadSpeedLimitResponse"},"DownloadStartResponse":{"properties":{"job_key":{"type":"string","title":"Job Key"},"state":{"type":"string","title":"State"},"accepted":{"type":"boolean","title":"Accepted"},"attached":{"type":"boolean","title":"Attached","default":false},"generation":{"type":"integer","title":"Generation"},"transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transport"},"cancel_transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Transport"}},"type":"object","required":["job_key","state","accepted","generation"],"title":"DownloadStartResponse"},"DownloadTransportPayload":{"properties":{"mode":{"type":"string","enum":["auto","xet","http"],"title":"Mode"}},"type":"object","required":["mode"],"title":"DownloadTransportPayload"},"DownloadTransportResponse":{"properties":{"mode":{"type":"string","title":"Mode"},"xet_available":{"type":"boolean","title":"Xet Available"},"xet_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xet Unavailable Reason"},"auto_resolves_to":{"type":"string","title":"Auto Resolves To"},"auto_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Reason"}},"type":"object","required":["mode","xet_available","auto_resolves_to"],"title":"DownloadTransportResponse"},"DrafterTrainingConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"strategy":{"type":"string","enum":["auto","mtp","eagle3"],"title":"Strategy","default":"auto"},"data_source":{"type":"string","enum":["dataset","regenerate"],"title":"Data Source","default":"dataset"},"max_examples":{"type":"integer","maximum":100000.0,"minimum":16.0,"title":"Max Examples","default":2000},"epochs":{"type":"number","maximum":20.0,"minimum":0.1,"title":"Epochs","default":1.0},"learning_rate":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Learning Rate"},"draft_steps":{"type":"integer","maximum":8.0,"minimum":1.0,"title":"Draft Steps","default":3}},"type":"object","title":"DrafterTrainingConfig","description":"Optional speculative-decoding drafter trained after the fine-tune (omitted or disabled = off)."},"EditorSetup":{"properties":{"port":{"anyOf":[{"type":"integer","maximum":65535.0,"minimum":1.0},{"type":"null"}],"title":"Port"},"project_path":{"type":"string","maxLength":4096,"pattern":"^[^\\x00]*$","title":"Project Path","default":""},"is_enabled":{"type":"boolean","title":"Is Enabled"},"consent":{"type":"boolean","title":"Consent","default":false}},"additionalProperties":false,"type":"object","required":["is_enabled"],"title":"EditorSetup"},"EditorTest":{"properties":{"port":{"anyOf":[{"type":"integer","maximum":65535.0,"minimum":1.0},{"type":"null"}],"title":"Port"},"project_path":{"type":"string","maxLength":4096,"pattern":"^[^\\x00]*$","title":"Project Path","default":""},"consent":{"type":"boolean","title":"Consent","default":false}},"additionalProperties":false,"type":"object","title":"EditorTest"},"EmbeddingCheckResponse":{"properties":{"model_name":{"type":"string","title":"Model Name","description":"Model identifier"},"is_embedding":{"type":"boolean","title":"Is Embedding","description":"Whether the model is an embedding/sentence-transformer model"}},"type":"object","required":["model_name","is_embedding"],"title":"EmbeddingCheckResponse","description":"Response for checking if a model is an embedding model"},"EmbeddingDevicePayload":{"properties":{"device":{"type":"string","enum":["auto","cpu","gpu"],"title":"Device"}},"type":"object","required":["device"],"title":"EmbeddingDevicePayload"},"EmbeddingModelPayload":{"properties":{"embedding_model":{"type":"string","maxLength":512,"minLength":1,"title":"Embedding Model"},"gguf_repo":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Gguf Repo"},"backend":{"anyOf":[{"type":"string","enum":["llama","sentence-transformers","connection"]},{"type":"null"}],"title":"Backend"},"hf_token":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Hf Token"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["embedding_model"],"title":"EmbeddingModelPayload"},"EmbeddingModelResolveResponse":{"properties":{"embedding_model":{"type":"string","title":"Embedding Model"},"backend":{"type":"string","enum":["llama","sentence-transformers","connection"],"title":"Backend"},"download_repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Repo"},"files":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Files"},"cached":{"type":"boolean","title":"Cached","default":false},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["embedding_model","backend"],"title":"EmbeddingModelResolveResponse"},"EmbeddingModelResponse":{"properties":{"embedding_model":{"type":"string","title":"Embedding Model"},"embedding_gguf_repo":{"type":"string","title":"Embedding Gguf Repo"},"default_embedding_model":{"type":"string","title":"Default Embedding Model"},"default_embedding_gguf_repo":{"type":"string","title":"Default Embedding Gguf Repo"},"is_custom":{"type":"boolean","title":"Is Custom"},"loaded":{"type":"boolean","title":"Loaded","default":false},"backend_loaded":{"type":"boolean","title":"Backend Loaded","default":false},"embedding_device":{"type":"string","enum":["auto","cpu","gpu"],"title":"Embedding Device","default":"auto"},"embedding_device_locked":{"type":"boolean","title":"Embedding Device Locked","default":false}},"type":"object","required":["embedding_model","embedding_gguf_repo","default_embedding_model","default_embedding_gguf_repo","is_custom"],"title":"EmbeddingModelResponse"},"EstimateMemoryRequest":{"properties":{"model_path":{"type":"string","title":"Model Path","description":"Model identifier or local path"},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant","description":"GGUF quantization to price (e.g. Q4_K_M); the picked variant."},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Token for gated repositories"},"native_path_lease":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Native Path Lease","description":"Lease for a picked / drag-dropped .gguf, as /validate takes one."},"n_ctx":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"N Ctx","description":"Context length to price (--ctx-size). 0 or omitted prices the model's native context, which is what an Auto load asks for."},"load_in_4bit":{"type":"boolean","title":"Load In 4Bit","description":"Quantize an unquantized checkpoint to 4 bits on load, as /load does by default. Priced because it is the difference between a checkpoint's shards and what those shards go resident as. A checkpoint carrying its own quantization is priced at its shards, and asking for 4 bits on top can make it unsizable, because the real load refuses that.","default":true},"cache_type_kv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Type Kv","description":"KV cache dtype to price. The biggest lever on this estimate at long contexts, so omitting it prices a load nobody asked for."},"n_parallel":{"anyOf":[{"type":"integer","maximum":64.0,"minimum":1.0},{"type":"null"}],"title":"N Parallel","description":"Serving slots (--parallel); scales both the cache and the buffers."},"n_batch":{"anyOf":[{"type":"integer","maximum":65536.0,"minimum":1.0},{"type":"null"}],"title":"N Batch"},"n_ubatch":{"anyOf":[{"type":"integer","maximum":65536.0,"minimum":1.0},{"type":"null"}],"title":"N Ubatch"},"ctx_checkpoints":{"anyOf":[{"type":"integer","maximum":256.0,"minimum":0.0},{"type":"null"}],"title":"Ctx Checkpoints"},"cache_ram":{"anyOf":[{"type":"integer","maximum":1048576.0,"minimum":-1.0},{"type":"null"}],"title":"Cache Ram","description":"MLX prompt cache in MiB, as on /load; it comes out of what the context fits in."},"speculative_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speculative Type","description":"Speculative mode; decides which drafter's weights are charged."},"spec_draft_model":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Spec Draft Model","description":"MLX companion drafter intended for the follow-up load, as on /load."},"spec_draft_n_max":{"anyOf":[{"type":"integer","maximum":16.0,"minimum":1.0},{"type":"null"}],"title":"Spec Draft N Max","description":"Draft depth. Sizes the drafter's rollback state, so it moves the estimate for every mode that loads a separate drafter."},"spec_draft_cache_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec Draft Cache Type","description":"Draft KV cache dtype. The drafter keeps its own cache, and at a long context that is GB, not a rounding error."},"tensor_parallel":{"type":"boolean","title":"Tensor Parallel","description":"Whether tensor mode is requested","default":false},"disable_vision":{"type":"boolean","title":"Disable Vision","description":"Vision off, so an image projector's bytes are not charged.","default":false},"gpu_memory_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gpu Memory Mode","description":"'auto' or 'manual'; manual splits the weights by gpu_layers."},"gpu_layers":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Gpu Layers","description":"Layers pinned to the GPU under manual placement."},"n_cpu_moe":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"N Cpu Moe","description":"Expert layers held on the CPU (--n-cpu-moe). Not priced; echoed back so the panel can say the GPU figure reads high."},"selected_gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Selected Gpu Ids","description":"GPUs the load is pinned to. Tensor mode replicates its compute buffers per device, so the pinned count changes the footprint."},"llama_extra_args":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Llama Extra Args","description":"Pass-through llama-server flags. Read, not just carried: -c, -nkvo, --swa-full and the cache-type flags all move this estimate."},"max_seq_length":{"anyOf":[{"type":"integer","maximum":1048576.0,"minimum":0.0},{"type":"null"}],"title":"Max Seq Length","description":"Context an MLX load would open at. Separate from n_ctx because the two backends take the length from different fields -- /load reads n_ctx for GGUF and max_seq_length for everything else -- and pricing one from the other quotes a context the load will not use."},"mlx_kv_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant","description":"MLX KV cache quantization in /load's vocabulary ('auto', '8', 'tq-4', ...). A TurboQuant choice is priced at full width, as the load fits it."},"mlx_kv_bits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mlx Kv Bits","description":"Superseded by mlx_kv_quant; read only when mlx_kv_quant is omitted. Not derived from cache_type_kv: that is llama.cpp's setting, it survives in the config of a model that never used it, and reading it here would quantize an estimate for a load whose cache stays full width."},"mlx_ple_offload":{"anyOf":[{"type":"string","enum":["auto","off"]},{"type":"number"},{"type":"null"}],"title":"Mlx Ple Offload","description":"As /load's mlx_ple_offload."},"mlx_expert_offload":{"anyOf":[{"type":"string","enum":["auto","off"]},{"type":"number"},{"type":"null"}],"title":"Mlx Expert Offload","description":"As /load's mlx_expert_offload."}},"type":"object","required":["model_path"],"title":"EstimateMemoryRequest","description":"Settings a Load-Model panel is about to submit, priced before it submits them.\n\nEvery field mirrors the load request it previews, so the estimate answers for the\ncommand that would actually run. No model is loaded and no tensor data is read: a\nGGUF is priced from its header, an MLX repo from safetensors headers and the shapes\nof a graph that is built and never evaluated."},"EstimateMemoryResponse":{"properties":{"available":{"type":"boolean","title":"Available","description":"Whether a breakdown could be produced at all."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Cause when available is false: 'not_gguf', 'not_downloaded', 'unsupported_source' or 'unsizable'."},"weights_bytes":{"type":"integer","title":"Weights Bytes","description":"Resident weights, projector and drafter. The size of the files for a GGUF load; for MLX, what those files go resident AS, which is smaller wherever the load casts or quantizes them.","default":0},"kv_bytes":{"type":"integer","title":"Kv Bytes","description":"KV cache at the requested context and slots","default":0},"kv_checkpoint_bytes":{"type":"integer","title":"Kv Checkpoint Bytes","description":"Context checkpoints in host RAM: included in kv_bytes and total_bytes, excluded from gpu_bytes.","default":0},"compute_bytes":{"type":"integer","title":"Compute Bytes","description":"Compute / graph buffers, flat plus context-linear","default":0},"drafter_runtime_bytes":{"type":"integer","title":"Drafter Runtime Bytes","description":"A separate drafter's own KV cache and rollback state, on top of its file in weights_bytes. Included in total_bytes, and in gpu_bytes unless the drafter is CPU-pinned. Reported separately so the itemization accounts for it.","default":0},"drafter_runtime_gpu_bytes":{"type":"integer","title":"Drafter Runtime Gpu Bytes","description":"The share of drafter_runtime_bytes that lands on the GPU. Not a placement flag, because the term is not placed as one piece: under MTP the target-side verification state follows the TARGET cache (so --no-kv-offload moves it) while the draft cache follows the drafter (so --spec-draft-ngl 0 moves that instead), and the two can go different ways in the same load.","default":0},"projector_runtime_bytes":{"type":"integer","title":"Projector Runtime Bytes","description":"The vision encoder's buffers, about 0.4x the projector file on top of it. Included in total_bytes, and in gpu_bytes unless --no-mmproj-offload keeps the projector in host RAM.","default":0},"drafter_kv_unsized":{"type":"boolean","title":"Drafter Kv Unsized","description":"True when a drafter is charged whose cache could not be sized: --spec-draft-hf names a repository whose header is not on this disk. Its weights are in weights_bytes but its context-scaled cache is missing, so total_bytes is a lower bound.","default":false},"adapters_unsized":{"type":"boolean","title":"Adapters Unsized","description":"True when a pass-through --lora / --lora-scaled / --control-vector / --control-vector-scaled names a file that could not be stat'd. llama.cpp loads every one of them into resident tensors on top of the base model, so those bytes are missing from total_bytes and it is a lower bound.","default":false},"total_bytes":{"type":"integer","title":"Total Bytes","description":"Weights + KV + compute, wherever they land","default":0},"gpu_bytes":{"type":"integer","title":"Gpu Bytes","description":"The share of total_bytes that lands on the GPU under this offload","default":0},"kv_estimable":{"type":"boolean","title":"Kv Estimable","description":"False when the GGUF header lacks the attention dims needed to size the cache. kv_bytes is then 0 meaning UNKNOWN and total_bytes is a lower bound; rendering it as a confident total is what this flag exists to prevent.","default":true},"kv_on_gpu":{"type":"boolean","title":"Kv On Gpu","description":"False under --no-kv-offload, which moves the cache to host RAM","default":true},"n_ctx":{"type":"integer","title":"N Ctx","description":"Context length the estimate actually priced","default":0},"context_fitted":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Fitted","description":"The window MLX would fit to this machine's memory for a load that names no Context Length, which is then what n_ctx prices. Null when the load names one, when the machine holds the model's own window, or when the footprint of the load cannot be described."},"context_is_pinned":{"type":"boolean","title":"Context Is Pinned","description":"False only when the loader will shrink n_ctx to fit, so the context-linear share of gpu_bytes is an upper bound rather than a reservation.","default":true},"gpu_floor_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gpu Floor Bytes","description":"gpu_bytes at the shortest context the loader's fit settles for; past it the launch offloads layers instead. Set only when context_is_pinned is false."},"floor_can_offload":{"type":"boolean","title":"Floor Can Offload","description":"Whether a load still over the card at the floor moves layers to the CPU. False when the layer count is fixed or the fitter is off, where it may fail.","default":false},"cache_type_kv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Type Kv","description":"KV dtype the estimate priced, after flags and fallbacks resolve"},"n_parallel":{"type":"integer","title":"N Parallel","description":"Slots the estimate priced, after the launch clamps","default":1},"layer_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Layer Count","description":"GGUF block_count, when readable"},"gpu_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gpu Layers","description":"Layers charged to the GPU; null under automatic placement"},"moe_offload_unmodelled":{"type":"boolean","title":"Moe Offload Unmodelled","description":"True when --n-cpu-moe is set: experts move per-tensor, not per-block, so the GPU/host split above ignores it and reads high.","default":false},"lookup_table_bytes":{"type":"integer","title":"Lookup Table Bytes","description":"Lookup-only tables (per-layer embeddings / Engram) in the model file. Never in gpu_bytes; excluded from weights_bytes and total_bytes when lookup_table_on_disk is true.","default":0},"lookup_table_on_disk":{"type":"boolean","title":"Lookup Table On Disk","description":"True when llama.cpp streams those tables from disk (its default lazy mode), so only the rows in use are paged in.","default":false},"mlx_offload":{"anyOf":[{"$ref":"#/components/schemas/MlxOffloadEstimate"},{"type":"null"}],"description":"MLX: what the load reads from disk instead of memory, priced in weights_bytes; null when not MLX."}},"type":"object","required":["available"],"title":"EstimateMemoryResponse","description":"Itemized memory an inference load would occupy, or why it could not be sized."},"EvictedSlot":{"properties":{"kind":{"type":"string","enum":["chat","audio","image","video"],"title":"Kind","description":"chat, audio (a native or audio.cpp audio model), image or video"},"model":{"type":"string","title":"Model","description":"Public model id, as /api/inference/status prints it"}},"type":"object","required":["kind","model"],"title":"EvictedSlot","description":"A model a load unloaded to make room."},"ExecutionRecord":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id"},"recipeId":{"type":"string","maxLength":128,"minLength":1,"title":"Recipeid"},"createdAt":{"type":"integer","maximum":9007199254740992.0,"minimum":0.0,"title":"Createdat"}},"additionalProperties":true,"type":"object","required":["id","recipeId","createdAt"],"title":"ExecutionRecord"},"ExportBaseModelRequest":{"properties":{"save_directory":{"type":"string","title":"Save Directory","description":"Local directory where the exported artifacts will be written"},"push_to_hub":{"type":"boolean","title":"Push To Hub","description":"If True, also push the exported model to the Hugging Face Hub","default":false},"repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Id","description":"Hugging Face Hub repository ID (username/model-name)"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Hugging Face access token used for Hub operations"},"private":{"type":"boolean","title":"Private","description":"If True, create a private repository on the Hub (where applicable)","default":false},"base_model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model Id","description":"HuggingFace model ID of the base model (for model card metadata)"},"expected_checkpoint":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Expected Checkpoint","description":"Export only while this checkpoint is still the loaded one. A client that loads and then exports in two calls sends it so another load in between is refused instead of exported."},"op_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Op Id","description":"Caller's id for this operation; POST /api/export/cancel with it as expected_op_id stops only it."},"reap":{"anyOf":[{"$ref":"#/components/schemas/ReapOptions"},{"type":"null"}],"description":"Prune MoE experts with REAP before exporting (off when omitted)."}},"type":"object","required":["save_directory"],"title":"ExportBaseModelRequest","description":"Request for exporting a non-PEFT (base) model."},"ExportCancelRequest":{"properties":{"expected_op_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Expected Op Id","description":"Stop only the operation started with this op_id; one not started yet is refused when it starts."}},"type":"object","title":"ExportCancelRequest"},"ExportDecisionInfoResponse":{"properties":{"checkpoint_path":{"type":"string","title":"Checkpoint Path"},"decision":{"anyOf":[{"$ref":"#/components/schemas/DecisionExportInfo"},{"type":"null"}]},"diffusion_lm":{"anyOf":[{"$ref":"#/components/schemas/DiffusionLmExportInfo"},{"type":"null"}]}},"type":"object","required":["checkpoint_path"],"title":"ExportDecisionInfoResponse","description":"Decision-model export info for a checkpoint path; decision is None for any other model."},"ExportDiffusionLoRARequest":{"properties":{"lora_id":{"type":"string","title":"Lora Id","description":"Local adapter id as listed by /api/models/diffusion-loras"},"save_directory":{"type":"string","title":"Save Directory","description":"Directory the adapter is copied into"}},"type":"object","required":["lora_id","save_directory"],"title":"ExportDiffusionLoRARequest","description":"Copy an image-generation LoRA from the Images catalog into an export folder."},"ExportGGUFRequest":{"properties":{"expected_checkpoint":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Expected Checkpoint","description":"Export only while this checkpoint is still the loaded one. A client that loads and then exports in two calls sends it so another load in between is refused instead of exported."},"op_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Op Id","description":"Caller's id for this operation; POST /api/export/cancel with it as expected_op_id stops only it."},"save_directory":{"type":"string","title":"Save Directory","description":"Directory where GGUF files will be saved"},"quantization_method":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Quantization Method","description":"GGUF quantization method(s). A single method (e.g. \"Q4_K_M\") or a list (e.g. [\"Q4_K_M\", \"Q8_0\"]) to produce multiple GGUFs from one model load.","default":"Q4_K_M"},"push_to_hub":{"type":"boolean","title":"Push To Hub","description":"If True, also push GGUF artifacts to the Hugging Face Hub","default":false},"repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Id","description":"Hugging Face Hub repository ID for GGUF upload"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Hugging Face token for GGUF upload"},"imatrix":{"type":"boolean","title":"Imatrix","description":"Use an importance matrix (auto-downloads the upstream unsloth GGUF imatrix). Required for the IQ low-bit quants such as iq2_xxs / iq4_xs.","default":false},"imatrix_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imatrix Path","description":"Path to a custom imatrix file; overrides the auto-download when set."},"private":{"type":"boolean","title":"Private","description":"If True, create a private Hugging Face Hub repository","default":false},"npu_q4nx":{"type":"boolean","title":"Npu Q4Nx","description":"Also convert one Q4_0 / Q4_1 / Q4_K_M GGUF to FastFlowLM's Q4NX for the AMD Ryzen AI NPU, written to <save_directory>/npu-q4nx.","default":false},"reap":{"anyOf":[{"$ref":"#/components/schemas/ReapOptions"},{"type":"null"}],"description":"Prune MoE experts with REAP before converting (off when omitted)."}},"type":"object","required":["save_directory"],"title":"ExportGGUFRequest","description":"Request for exporting the current model to GGUF format."},"ExportLoRAAdapterRequest":{"properties":{"save_directory":{"type":"string","title":"Save Directory","description":"Local directory where the exported artifacts will be written"},"push_to_hub":{"type":"boolean","title":"Push To Hub","description":"If True, also push the exported model to the Hugging Face Hub","default":false},"repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Id","description":"Hugging Face Hub repository ID (username/model-name)"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Hugging Face access token used for Hub operations"},"private":{"type":"boolean","title":"Private","description":"If True, create a private repository on the Hub (where applicable)","default":false},"base_model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model Id","description":"HuggingFace model ID of the base model (for model card metadata)"},"expected_checkpoint":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Expected Checkpoint","description":"Export only while this checkpoint is still the loaded one. A client that loads and then exports in two calls sends it so another load in between is refused instead of exported."},"op_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Op Id","description":"Caller's id for this operation; POST /api/export/cancel with it as expected_op_id stops only it."},"adapter_format":{"anyOf":[{"type":"string","enum":["mlx","peft"]},{"type":"null"}],"title":"Adapter Format","description":"On-disk adapter format. Omitted resolves per platform (Apple-silicon MLX servers write the native MLX format, CUDA servers write the native PEFT format — omission always preserves the platform's native output), except with gguf=True, where the adapter files are always PEFT (GGUF LoRA files are built from that format). Explicit 'peft' on an MLX server converts the adapter; explicit 'mlx' on a non-MLX server — or combined with gguf=True — is an error."},"gguf":{"type":"boolean","title":"Gguf","description":"If True, also convert the adapter to a GGUF LoRA file (llama.cpp convert_lora_to_gguf.py), loadable with `llama-cli --lora ...`.","default":false},"gguf_outtype":{"type":"string","enum":["q8_0","f16","bf16","f32"],"title":"Gguf Outtype","description":"GGUF LoRA output float type (only used when gguf=True). Q8_0 falls back to F16 per tensor for dims not divisible by the block size (32).","default":"q8_0"}},"type":"object","required":["save_directory"],"title":"ExportLoRAAdapterRequest","description":"Request for exporting only the LoRA adapter (not merged)."},"ExportMergedModelRequest":{"properties":{"save_directory":{"type":"string","title":"Save Directory","description":"Local directory where the exported artifacts will be written"},"push_to_hub":{"type":"boolean","title":"Push To Hub","description":"If True, also push the exported model to the Hugging Face Hub","default":false},"repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Id","description":"Hugging Face Hub repository ID (username/model-name)"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Hugging Face access token used for Hub operations"},"private":{"type":"boolean","title":"Private","description":"If True, create a private repository on the Hub (where applicable)","default":false},"base_model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model Id","description":"HuggingFace model ID of the base model (for model card metadata)"},"expected_checkpoint":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Expected Checkpoint","description":"Export only while this checkpoint is still the loaded one. A client that loads and then exports in two calls sends it so another load in between is refused instead of exported."},"op_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Op Id","description":"Caller's id for this operation; POST /api/export/cancel with it as expected_op_id stops only it."},"format_type":{"type":"string","enum":["16-bit (FP16)","4-bit (FP4)","FP8 (compressed-tensors)","NVFP4 (compressed-tensors)"],"title":"Format Type","description":"Export precision / format for the merged model. The compressed-tensors options run llm-compressor for vLLM (FP8 is data-free; NVFP4 calibrates).","default":"16-bit (FP16)"},"compressed_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compressed Method","description":"Optional quantized-export alias. Either a compressed-tensors scheme (e.g. 'fp8', 'fp8_static', 'w8a8', 'w4a16', 'mxfp4', 'mxfp8', 'nvfp4' - NVIDIA only) from unsloth.save COMPRESSED_EXPORT_SCHEMES, or a portable torchao alias ('torchao_fp8', 'torchao_int8') from TORCHAO_EXPORT_SCHEMES that needs no NVIDIA GPU. When set, it overrides format_type. Lets the export UI expose the full set of formats beyond the quick buttons."},"install_missing_dependencies":{"type":"boolean","title":"Install Missing Dependencies","description":"User consent to install llm-compressor (or its shadow runtime) for compressed-tensors export.","default":false},"reap":{"anyOf":[{"$ref":"#/components/schemas/ReapOptions"},{"type":"null"}],"description":"Prune MoE experts with REAP before exporting (off when omitted)."}},"type":"object","required":["save_directory"],"title":"ExportMergedModelRequest","description":"Request for exporting a merged PEFT model."},"ExportOperationResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"True if the operation succeeded"},"message":{"type":"string","title":"Message","description":"Human-readable status or error message"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details","description":"Optional extra details about the operation"}},"type":"object","required":["success","message"],"title":"ExportOperationResponse","description":"Generic response for export operations."},"ExportSizeResponse":{"properties":{"model":{"type":"string","title":"Model","description":"Model id or path the estimate was computed for"},"fp16_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fp16 Bytes","description":"Estimated FP16/BF16-equivalent on-disk size in bytes, or null if unknown"},"total_params":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Params","description":"Estimated total parameter count (fp16_bytes // 2), or null if unknown"},"source":{"type":"string","title":"Source","description":"How the estimate was derived (e.g. safetensors, config, local, vllm, unavailable)","default":"unavailable"}},"type":"object","required":["model"],"title":"ExportSizeResponse","description":"Model fp16/bf16-equivalent size; size fields are null when unknown."},"ExportStatusResponse":{"properties":{"current_checkpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Checkpoint","description":"Path to the currently loaded checkpoint, if any"},"is_vision":{"type":"boolean","title":"Is Vision","description":"True if the loaded checkpoint is a vision model","default":false},"is_peft":{"type":"boolean","title":"Is Peft","description":"True if the loaded checkpoint is a PEFT (LoRA) model","default":false},"is_export_active":{"type":"boolean","title":"Is Export Active","description":"True while a load / export / cleanup operation is running","default":false},"active_op_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Op Kind","description":"Kind of the currently running op (load_checkpoint / export_* / cleanup)"},"last_op_seq":{"type":"integer","title":"Last Op Seq","description":"Monotonic counter of finished ops; client baseline to detect 'my op finished'","default":0},"last_op_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Op Kind","description":"Kind of the most recently finished op"},"last_op_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Op Status","description":"Outcome of the most recently finished op: success / error / cancelled"},"last_op_output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Op Output Path","description":"Output path of the most recently finished op, if it produced one"},"last_op_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Op Error","description":"Error message of the most recently finished op, if it failed"},"decision":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Decision","description":"{layout, adapter_only} when the loaded checkpoint is a decision model"}},"type":"object","title":"ExportStatusResponse","description":"Current export backend status."},"ExternalImportResult":{"properties":{"projects":{"type":"integer","title":"Projects","default":0},"chats":{"type":"integer","title":"Chats","default":0},"new_chats":{"type":"integer","title":"New Chats","default":0},"messages":{"type":"integer","title":"Messages","default":0},"skipped":{"type":"integer","title":"Skipped","default":0},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","default":[]}},"type":"object","title":"ExternalImportResult"},"ExternalImportStatus":{"properties":{"available":{"type":"boolean","title":"Available","default":false},"chats":{"type":"integer","title":"Chats","default":0}},"type":"object","title":"ExternalImportStatus"},"FastVerifyAvailabilityRequest":{"properties":{"model_path":{"type":"string","title":"Model Path","description":"Model identifier or local path"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Token for gated repositories"}},"type":"object","required":["model_path"],"title":"FastVerifyAvailabilityRequest","description":"A model whose run settings may offer MLX Fast Verify."},"FastVerifyAvailabilityResponse":{"properties":{"available":{"type":"boolean","title":"Available"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Cause when available is false: 'not_downloaded', 'unsupported_model', 'unsupported_zoo', or unsloth_zoo's own reason ('no_lane_kernel', 'no_eligible_projections', 'probe_failed')."}},"type":"object","required":["available"],"title":"FastVerifyAvailabilityResponse","description":"Whether a load of this model could run MLX Fast Verify, judged from its downloaded files."},"FineTuningJobCreate":{"properties":{"model":{"type":"string","title":"Model"},"training_file":{"type":"string","title":"Training File"},"validation_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validation File"},"hyperparameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Hyperparameters"},"method":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Method"},"suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suffix"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"integrations":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Integrations"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"additionalProperties":true,"type":"object","required":["model","training_file"],"title":"FineTuningJobCreate"},"FinishedScheduledTaskRun":{"properties":{"id":{"type":"string","title":"Id"},"taskId":{"type":"string","title":"Taskid"},"source":{"type":"string","enum":["schedule","manual"],"title":"Source"},"status":{"type":"string","enum":["queued","running","succeeded","failed"],"title":"Status"},"scheduledFor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scheduledfor"},"createdAt":{"type":"integer","title":"Createdat"},"startedAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Startedat"},"finishedAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Finishedat"},"threadId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threadid"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errorcode"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"taskTitle":{"type":"string","title":"Tasktitle"},"taskNotify":{"type":"string","enum":["all","failures","none"],"title":"Tasknotify"},"taskModel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taskmodel"}},"type":"object","required":["id","taskId","source","status","createdAt","taskTitle","taskNotify"],"title":"FinishedScheduledTaskRun"},"FirstTokenTimeoutPayload":{"properties":{"minutes":{"type":"integer","maximum":10080.0,"minimum":0.0,"title":"Minutes"}},"type":"object","required":["minutes"],"title":"FirstTokenTimeoutPayload"},"FirstTokenTimeoutResponse":{"properties":{"minutes":{"type":"integer","maximum":10080.0,"minimum":0.0,"title":"Minutes"},"default_minutes":{"type":"integer","title":"Default Minutes","default":20},"max_minutes":{"type":"integer","title":"Max Minutes","default":10080}},"type":"object","required":["minutes"],"title":"FirstTokenTimeoutResponse"},"FolderCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"parentId":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Parentid"}},"type":"object","required":["name"],"title":"FolderCreate"},"FolderPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"parentId":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Parentid"}},"type":"object","title":"FolderPatch"},"GalleryFlagsPatch":{"properties":{"pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned","description":"Pin (True) or unpin (False) the item"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived","description":"Archive (True) or restore (False) the item"}},"type":"object","title":"GalleryFlagsPatch","description":"Partial update of one gallery item's pin/archive flags; omitted fields are left alone."},"GalleryImage":{"properties":{"id":{"type":"string","title":"Id","description":"Stable id (the on-disk filename stem)"},"url":{"type":"string","title":"Url","description":"Relative URL to fetch the PNG bytes"},"prompt":{"type":"string","title":"Prompt","description":"Prompt used"},"enhanced_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enhanced Prompt","description":"The caption the prompt upsampler wrote and the model encoded; null when not enhanced. Replaying it with enhance_prompt=false reproduces the image."},"prompt_enhancement":{"anyOf":[{"type":"string","enum":["applied","off","unavailable","failed"]},{"type":"null"}],"title":"Prompt Enhancement","description":"Prompt upsampling outcome for families that have one: applied | off | unavailable (not downloaded or no llama-server) | failed; null otherwise."},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt","description":"Negative prompt, if any"},"width":{"type":"integer","title":"Width","description":"Image width"},"height":{"type":"integer","title":"Height","description":"Image height"},"steps":{"type":"integer","title":"Steps","description":"Denoising steps"},"guidance":{"type":"number","title":"Guidance","description":"Guidance scale"},"seed":{"type":"integer","title":"Seed","description":"Seed used for THIS image"},"batch_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Batch Seed","description":"Seed restore must replay this image from. For a batch_size batch that is the base seed the batch launched with (the native engine derives per-image seeds as base + index, so the derived seed alone would not reproduce it); for a prompts/seeds list, where each image carries its own seed, it equals seed. Older records without it fall back to seed."},"batch_index":{"type":"integer","title":"Batch Index","description":"Position within its batch (0-based)","default":0},"batch_size":{"type":"integer","title":"Batch Size","description":"Batch size used; with batch_index it lets restore replay this image","default":1},"generation_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Generation Seconds","description":"Elapsed generation seconds until images are ready to save, shared by the request"},"generation_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Generation Count","description":"Number of images in the timed request; absent on older records"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model repo id that produced it"},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine","description":"Engine that ran it (diffusers, sd_cpp or mlx); the same seed draws different noise on each"},"model_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Kind","description":"How the model was loaded: gguf, single_file or pipeline"},"gguf_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Filename","description":"The single-file checkpoint the load committed, for a gguf/single_file load"},"transformer_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant","description":"Transformer quantisation scheme actually engaged on the dense fast path (int8/fp8/nvfp4/mxfp8), or null when the GGUF ran as-is"},"text_encoder_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Encoder Quant","description":"Text-encoder quantisation actually engaged (fp8/fp8_dynamic/int8/nvfp4), or null when the dense bf16 encoder ran. Absent on records written before this existed."},"memory_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Mode","description":"Memory mode the load ran under: auto | fast | balanced | low_vram"},"offload_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offload Policy","description":"Offload policy actually engaged: none | group | model | sequential. Part of the build: an offloaded pipeline declines the torchao text-encoder modes."},"denoiser_offload":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denoiser Offload","description":"Under group offload, where this generation's denoiser ran: resident | partial | streamed (streamed blocks move from CPU on every step). Null for other policies and older records."},"speed_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speed Mode","description":"Speed profile engaged for this generation (eager | default | max | off), after any deferred compile. Absent on records written before this existed."},"attention_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attention Backend","description":"Attention backend engaged for this generation, or null for default SDPA. Absent on records written before this existed."},"transformer_cache":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Cache","description":"Step cache engaged for this generation (fbcache | static), or null when off. Absent on records written before this existed."},"cpu_offload":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cpu Offload","description":"Whether CPU offload was active for this generation. Absent on records written before this existed."},"schema_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Schema Version","description":"Recipe format version embedded in the PNG unsloth chunk. Absent on older images."},"baked_loras":{"items":{"type":"string"},"type":"array","title":"Baked Loras","description":"Adapter ids baked into the transformer AT LOAD TIME (before quantize + compile). Part of the build, not of this generation: reloading without them gives a different pipeline even though disabling them here contributes nothing to the image."},"loras":{"items":{"type":"string"},"type":"array","title":"Loras","description":"LoRA adapters applied, formatted as 'id:weight'"},"controlnet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Controlnet","description":"ControlNet applied, formatted as 'id:control_type:strength'"},"workflow":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow","description":"Workflow that produced it: txt2img, img2img, inpaint, upscale, edit, reference or controlnet. Absent on records written before this was recorded."},"strength":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Strength","description":"img2img/inpaint denoise strength, when the workflow used one"},"upscale":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Upscale","description":"Upscale factor, for the upscale workflow"},"upscale_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upscale Model","description":"Model upscaler id the upscale workflow used; null = Lanczos"},"hires_scale":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hires Scale","description":"Hires fix upscale factor; null = no Hires fix"},"hires_denoise":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hires Denoise","description":"Hires fix refine denoising strength"},"hires_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hires Steps","description":"Hires fix refine steps as requested; null = the base pass's steps"},"hires_upscaler":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hires Upscaler","description":"Hires fix upscaler id"},"hires_guidance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hires Guidance","description":"Hires fix refine guidance; null = the base guidance"},"hires_base_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hires Base Width","description":"Hires fix base-pass width"},"hires_base_height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hires Base Height","description":"Hires fix base-pass height"},"controlnet_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Controlnet Guidance","description":"ControlNet guidance interval, formatted as 'start:end'"},"reference_image_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reference Image Count","description":"How many ADDITIONAL images (reference_images, beyond the source) the reference or edit workflow used"},"reference_resolution":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reference Resolution","description":"Condition-image preprocessing resolution, when the model has one"},"localized_edit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Localized Edit","description":"Localized edit convention used: annotate, paint or mask"},"sampler":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sampler","description":"Sampler id the image ran with; null = the model's shipped scheduler"},"schedule_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule Type","description":"Schedule type the sampler ran with (resolved); null = the config's"},"prompt_weighting":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Prompt Weighting","description":"True when AUTOMATIC1111 weight syntax was applied; false when the request turned it off (literal prompt); null = nothing to weight"},"clip_skip":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Clip Skip","description":"CLIP skip (AUTOMATIC1111 numbering) above 1; null = the model's layer"},"cfg_rescale":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cfg Rescale","description":"CFG rescale; null = off"},"variation_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Variation Seed","description":"Variation seed THIS image used; null = no variation"},"variation_strength":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Variation Strength","description":"Variation strength; null = no variation"},"cfg_interval_end":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cfg Interval End","description":"Fast CFG step fraction the image used; null = full CFG"},"shift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shift","description":"Requested static flow shift; null = the model's"},"base_shift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Base Shift","description":"Requested ModelSamplingFlux base shift; null = the model's"},"max_shift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Shift","description":"Requested ModelSamplingFlux max shift; null = the model's"},"embeddings":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Embeddings","description":"Textual-inversion embeddings the prompts used (filename stems)"},"mask_blur":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mask Blur","description":"Inpaint mask blur radius (px) applied; null = none"},"inpaint_only_masked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Inpaint Only Masked","description":"True when the inpaint rendered only the masked area; null = whole picture"},"inpaint_padding":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Inpaint Padding","description":"Padding (px) around the mask for an only-masked inpaint"},"xy_grid":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Xy Grid","description":"Set on an X/Y grid image: its axes ({field, index, values, labels}) and the cell image ids row by row. Its other recipe fields are the first cell's, as in AUTOMATIC1111."},"detailer":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Detailer","description":"The Detailer pass this image ran: its settings, each detection (target, score, box, crop, size, seed) and timing, or `error` when it did not run; null = no pass"},"created_at":{"type":"number","title":"Created At","description":"Creation time (epoch seconds)"},"pinned":{"type":"boolean","title":"Pinned","description":"Pinned to the front of the gallery","default":false},"archived":{"type":"boolean","title":"Archived","description":"Moved to the archived shelf, hidden from the strip","default":false},"order_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Order At","description":"Unpinned sort key (epoch-second scale): the manual key once dragged, else the file mtime"}},"type":"object","required":["id","url","prompt","width","height","steps","guidance","seed","created_at"],"title":"GalleryImage","description":"A persisted image's full generation recipe (embedded in the PNG too)."},"GalleryListResponse":{"properties":{"images":{"items":{"$ref":"#/components/schemas/GalleryImage"},"type":"array","title":"Images"},"has_more":{"type":"boolean","title":"Has More","description":"Whether older images remain past this page","default":false}},"type":"object","title":"GalleryListResponse","description":"A newest-first page of persisted images, for infinite scroll."},"GalleryMoveRequest":{"properties":{"after_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After Id","description":"Id the item now follows, as displayed; null moves it to the front"}},"type":"object","title":"GalleryMoveRequest","description":"Drag one gallery item to a new place on the active shelf."},"GalleryProjectRequest":{"properties":{"project_id":{"type":"string","title":"Project Id","description":"Chat project to add the item to"}},"type":"object","required":["project_id"],"title":"GalleryProjectRequest","description":"Copy one gallery item into a chat project's folder."},"GalleryProjectResponse":{"properties":{"path":{"type":"string","title":"Path","description":"Where the copy now lives, inside the project's folder"},"already":{"type":"boolean","title":"Already","description":"The project already held this item; nothing was copied","default":false}},"type":"object","required":["path"],"title":"GalleryProjectResponse"},"GalleryVideo":{"properties":{"id":{"type":"string","title":"Id","description":"Stable id (the on-disk filename stem)"},"url":{"type":"string","title":"Url","description":"Relative URL to fetch the MP4 bytes"},"prompt":{"type":"string","title":"Prompt","description":"Prompt used"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt","description":"Negative prompt, if any"},"width":{"type":"integer","title":"Width","description":"Frame width"},"height":{"type":"integer","title":"Height","description":"Frame height"},"num_frames":{"type":"integer","title":"Num Frames","description":"Number of frames"},"fps":{"type":"integer","title":"Fps","description":"Playback frame rate"},"duration_s":{"type":"number","title":"Duration S","description":"Clip duration in seconds"},"steps":{"type":"integer","title":"Steps","description":"Denoising steps"},"guidance":{"type":"number","title":"Guidance","description":"Guidance scale"},"guidance_2":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Guidance 2","description":"Second-expert guidance scale (dual-expert families), if sent"},"flow_shift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Flow Shift","description":"Video-schedule sigma shift used, for families that expose it"},"audio_flow_shift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Audio Flow Shift","description":"Audio-schedule sigma shift used, for families that expose it"},"seed":{"type":"integer","title":"Seed","description":"Seed used"},"has_audio":{"type":"boolean","title":"Has Audio","description":"Whether the MP4 carries an audio track","default":false},"conditioning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conditioning","description":"How the clip was conditioned, in MiniMax-H3's own task names: t2va (prompt only), i2va (first frame), l2va (last frame) or fl2va (both). Absent on clips saved before keyframes existed."},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model repo id that produced it"},"model_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Kind","description":"How the model was loaded: gguf, single_file or pipeline"},"gguf_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Filename","description":"The single-file checkpoint the load committed, for a gguf/single_file load"},"transformer_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant","description":"Dense DiT quantisation actually engaged (int8/fp8/nvfp4/mxfp8), or null when the DiT(s) ran at their loaded bf16 precision"},"text_encoder_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Encoder Quant","description":"Text-encoder quantisation actually engaged (fp8/fp8_dynamic/int8/nvfp4), or null when the dense bf16 encoder ran"},"memory_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Mode","description":"Memory mode the load ran under: auto | fast | balanced | low_vram"},"offload_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offload Policy","description":"Offload policy actually engaged: none | group | model | sequential"},"baked_loras":{"items":{"type":"string"},"type":"array","title":"Baked Loras","description":"Adapters baked into the denoiser at load time (VideoLoadRequest.loras); empty when the load baked none or the clip predates the field"},"created_at":{"type":"string","title":"Created At","description":"Creation time (ISO 8601 timestamp)"},"pinned":{"type":"boolean","title":"Pinned","description":"Pinned to the front of the gallery","default":false},"archived":{"type":"boolean","title":"Archived","description":"Moved to the archived shelf, hidden from the strip","default":false},"order_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Order At","description":"Unpinned sort key (epoch-second scale): the manual key once dragged, else the file mtime"}},"type":"object","required":["id","url","prompt","width","height","num_frames","fps","duration_s","steps","guidance","seed","created_at"],"title":"GalleryVideo","description":"A persisted clip's full generation recipe (the JSON sidecar of the MP4)."},"GenerateRequest":{"properties":{"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Messages","description":"Chat messages in OpenAI format"},"system_prompt":{"type":"string","title":"System Prompt","description":"System prompt","default":""},"temperature":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Temperature","description":"Sampling temperature","default":0.6},"top_p":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Top P","description":"Top-p sampling","default":0.95},"top_k":{"type":"integer","maximum":100.0,"minimum":-1.0,"title":"Top K","description":"Top-k sampling","default":20},"min_p":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Min P","description":"Min-p sampling","default":0.0},"max_new_tokens":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Max New Tokens","description":"Maximum tokens to generate","default":2048},"repetition_penalty":{"type":"number","maximum":2.0,"minimum":1.0,"title":"Repetition Penalty","description":"Repetition penalty","default":1.0},"presence_penalty":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Presence Penalty","description":"Presence penalty","default":0.0},"image_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Base64","description":"Base64 encoded image for vision models"}},"type":"object","required":["messages"],"title":"GenerateRequest","description":"Request for text generation (legacy /generate/stream endpoint)"},"GlassStrengthPayload":{"properties":{"light":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Light"},"dark":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Dark"}},"type":"object","title":"GlassStrengthPayload"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HelperPrecachePayload":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"HelperPrecachePayload"},"HelperPrecacheResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"default_enabled":{"type":"boolean","title":"Default Enabled","default":false},"disabled_by_env":{"type":"boolean","title":"Disabled By Env"}},"type":"object","required":["enabled","disabled_by_env"],"title":"HelperPrecacheResponse"},"HfTokenValidationResponse":{"properties":{"status":{"type":"string","enum":["missing","valid","invalid","rate_limited","unavailable"],"title":"Status"},"retry_after_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry After Seconds"}},"type":"object","required":["status"],"title":"HfTokenValidationResponse"},"HiddenModelsResponse":{"properties":{"needles":{"items":{"type":"string"},"type":"array","title":"Needles"},"exact_ids":{"items":{"type":"string"},"type":"array","title":"Exact Ids"},"exact_paths":{"items":{"type":"string"},"type":"array","title":"Exact Paths"}},"type":"object","title":"HiddenModelsResponse"},"HiresSpec":{"properties":{"scale":{"type":"number","maximum":4.0,"minimum":1.0,"title":"Scale","description":"Upscale factor (A1111 'Hires upscale')","default":1.5},"denoise":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Denoise","description":"Refine-pass denoising strength (A1111 'Denoising strength'); 0 = upscale only","default":0.5},"steps":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Steps","description":"Exact refine-pass steps (A1111 'Hires steps'); omitted = the base pass's steps"},"upscaler":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Upscaler","description":"Upscaler id from status `hires.upscalers` (latent | lanczos | a model id); omitted = status `hires.default_upscaler`"},"guidance":{"anyOf":[{"type":"number","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Guidance","description":"Refine-pass guidance (Forge 'Hires CFG Scale'); omitted = guidance"}},"type":"object","title":"HiresSpec","description":"Hires fix: render, upscale, then refine with img2img at ``denoise`` (txt2img only).\n\n``steps`` is the exact refine count; None = the base pass's steps."},"HourlySchedule":{"properties":{"kind":{"type":"string","const":"hourly","title":"Kind"},"hours":{"type":"integer","maximum":24.0,"minimum":1.0,"title":"Hours"}},"additionalProperties":false,"type":"object","required":["kind","hours"],"title":"HourlySchedule"},"HubDatasetOptionsRequest":{"properties":{"dataset_name":{"type":"string","title":"Dataset Name"}},"type":"object","required":["dataset_name"],"title":"HubDatasetOptionsRequest"},"HubDatasetOptionsResponse":{"properties":{"splits":{"items":{"$ref":"#/components/schemas/DatasetSplitOption"},"type":"array","title":"Splits"}},"type":"object","title":"HubDatasetOptionsResponse"},"HubSettingsPayload":{"properties":{"hf_endpoint":{"type":"string","maxLength":2048,"title":"Hf Endpoint"},"datasets_server_follows_endpoint":{"type":"boolean","title":"Datasets Server Follows Endpoint"}},"type":"object","required":["hf_endpoint","datasets_server_follows_endpoint"],"title":"HubSettingsPayload"},"HubSettingsResponse":{"properties":{"hf_endpoint":{"type":"string","title":"Hf Endpoint"},"datasets_server_follows_endpoint":{"type":"boolean","title":"Datasets Server Follows Endpoint"},"source":{"type":"string","enum":["huggingface","modelscope"],"title":"Source"},"active_source":{"type":"string","enum":["huggingface","modelscope"],"title":"Active Source"}},"type":"object","required":["hf_endpoint","datasets_server_follows_endpoint","source","active_source"],"title":"HubSettingsResponse"},"HubSourceNoticeResponse":{"properties":{"granted":{"type":"boolean","title":"Granted"}},"type":"object","required":["granted"],"title":"HubSourceNoticeResponse"},"HubSourcePayload":{"properties":{"source":{"type":"string","enum":["huggingface","modelscope"],"title":"Source"}},"type":"object","required":["source"],"title":"HubSourcePayload"},"HuggingFaceCachePayload":{"properties":{"cache_home":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Cache Home"}},"type":"object","title":"HuggingFaceCachePayload"},"HuggingFaceCacheResponse":{"properties":{"cache_home":{"type":"string","title":"Cache Home"},"hub_cache":{"type":"string","title":"Hub Cache"},"xet_cache":{"type":"string","title":"Xet Cache"},"source":{"type":"string","enum":["default","studio","environment"],"title":"Source"},"editable":{"type":"boolean","title":"Editable"},"is_custom":{"type":"boolean","title":"Is Custom"},"available":{"type":"boolean","title":"Available"},"writable":{"type":"boolean","title":"Writable"},"free_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Bytes"},"environment_variable":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment Variable"}},"type":"object","required":["cache_home","hub_cache","xet_cache","source","editable","is_custom","available","writable"],"title":"HuggingFaceCacheResponse"},"HuggingFaceTokenPayload":{"properties":{"token":{"type":"string","maxLength":512,"minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"HuggingFaceTokenPayload"},"HuggingFaceTokenResponse":{"properties":{"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"has_token":{"type":"boolean","title":"Has Token","default":false}},"type":"object","title":"HuggingFaceTokenResponse"},"IgpuCarveoutNoticeDismissPayload":{"properties":{"current_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Gb"}},"type":"object","title":"IgpuCarveoutNoticeDismissPayload"},"IgpuCarveoutNoticeResponse":{"properties":{"dismissed_at_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dismissed At Gb"}},"type":"object","title":"IgpuCarveoutNoticeResponse"},"ImageContentPart":{"properties":{"type":{"type":"string","const":"image_url","title":"Type"},"image_url":{"$ref":"#/components/schemas/ImageUrl"}},"type":"object","required":["type","image_url"],"title":"ImageContentPart","description":"Image content part in a multimodal message."},"ImageGenerationCallContentPart":{"properties":{"type":{"type":"string","const":"image_generation_call","title":"Type"},"id":{"type":"string","title":"Id","description":"OpenAI image_generation_call output item id."},"response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Id","description":"OpenAI Responses response id to use as previous_response_id for follow-up edits."}},"type":"object","required":["type","id"],"title":"ImageGenerationCallContentPart","description":"OpenAI Responses image_generation call reference.\n\nPrior ``image_generation_call`` items let follow-up prompts edit a generated\nimage without resending the payload. The frontend forwards it as a synthetic\nassistant part; ``external_provider`` maps it back to a top-level input item."},"ImageGenerationData":{"properties":{"b64_json":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"B64 Json","description":"Base64-encoded PNG (response_format=b64_json)."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"URL to the PNG bytes (response_format=url)."}},"type":"object","title":"ImageGenerationData","description":"One image in an ``ImagesResponse`` (OpenAI ``Image``). Exactly one of\n``url`` / ``b64_json`` is set, per the request's ``response_format``; the\nroute serializes with ``exclude_none`` so the unused key is omitted."},"ImageGenerationPreset":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"params":{"$ref":"#/components/schemas/ImageGenerationPresetParams"}},"additionalProperties":false,"type":"object","required":["name","params"],"title":"ImageGenerationPreset"},"ImageGenerationPresetParams":{"properties":{"negativePrompt":{"type":"string","title":"Negativeprompt","default":""},"width":{"type":"integer","multipleOf":16.0,"maximum":6272.0,"minimum":256.0,"title":"Width","default":1024},"height":{"type":"integer","multipleOf":16.0,"maximum":6272.0,"minimum":256.0,"title":"Height","default":1024},"steps":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Steps","default":9},"guidance":{"type":"number","maximum":20.0,"minimum":0.0,"title":"Guidance","default":0},"batchSize":{"type":"integer","maximum":32.0,"minimum":1.0,"title":"Batchsize","default":1},"runs":{"type":"integer","minimum":1.0,"title":"Runs","default":1}},"additionalProperties":false,"type":"object","title":"ImageGenerationPresetParams","description":"Bounds track DiffusionGenerateRequest. A preset the generate endpoint would refuse is not\na usable preset: selecting it would make every following Generate fail validation."},"ImageGenerationPresetSettings":{"properties":{"activePreset":{"type":"string","maxLength":80,"minLength":1,"title":"Activepreset","default":"Default"},"currentParams":{"$ref":"#/components/schemas/ImageGenerationPresetParams"},"customPresets":{"items":{"$ref":"#/components/schemas/ImageGenerationPreset"},"type":"array","title":"Custompresets"},"saved":{"type":"boolean","title":"Saved","default":false}},"additionalProperties":false,"type":"object","title":"ImageGenerationPresetSettings"},"ImageGenerationPresetState":{"properties":{"activePreset":{"type":"string","maxLength":80,"minLength":1,"title":"Activepreset","default":"Default"},"currentParams":{"$ref":"#/components/schemas/ImageGenerationPresetParams"}},"additionalProperties":false,"type":"object","title":"ImageGenerationPresetState"},"ImageGenerationRequest":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"Text description of the image(s)."},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model id (informational; the loaded image model is used)."},"n":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"N","description":"Number of images to generate (1-10).","default":1},"size":{"type":"string","title":"Size","description":"'auto' or '<width>x<height>' (256-2048, each a multiple of 16).","default":"auto"},"response_format":{"type":"string","enum":["url","b64_json"],"title":"Response Format","description":"Return each image as a URL or a base64-encoded PNG.","default":"url"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User","description":"End-user identifier (accepted, unused)."},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","description":"Streaming image generation is not supported; omit or set false."},"width":{"anyOf":[{"type":"integer","maximum":2048.0,"minimum":256.0},{"type":"null"}],"title":"Width","description":"[x-unsloth] Image width in pixels (multiple of 16); send with height instead of size."},"height":{"anyOf":[{"type":"integer","maximum":2048.0,"minimum":256.0},{"type":"null"}],"title":"Height","description":"[x-unsloth] Image height in pixels (multiple of 16); send with width instead of size."},"steps":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Steps","description":"[x-unsloth] Denoising steps (default per model)."},"guidance":{"anyOf":[{"type":"number","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Guidance","description":"[x-unsloth] Classifier-free guidance scale (default per model)."},"seed":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":-1.0},{"type":"null"}],"title":"Seed","description":"[x-unsloth] Seed for a repeatable image (random if omitted or -1). With n > 1 each image derives its own seed from it."},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt","description":"[x-unsloth] What to avoid, on models that take a negative prompt."},"loras":{"anyOf":[{"items":{"$ref":"#/components/schemas/LoraSpec"},"type":"array","maxItems":8},{"type":"null"}],"title":"Loras","description":"[x-unsloth] LoRA adapters for this generation (discovery id + weight), as on /images/generate. Omitted: the adapters a diffusers load was loaded with (baked in, or applied per generation on a dense build), at their load weights; none for a load that named none, and none on the native sd.cpp and MLX engines. An empty list renders without any."}},"type":"object","required":["prompt"],"title":"ImageGenerationRequest","description":"OpenAI ``CreateImageRequest`` for ``POST /v1/images/generations``.\n\n``prompt`` is the only required field, per the spec. Unlisted OpenAI fields\nare ignored (Pydantic's default), matching dall-e-2's treatment of the\nGPT-image-only parameters."},"ImageGenerationResponse":{"properties":{"created":{"type":"integer","title":"Created","description":"Unix timestamp (seconds) the images were created."},"data":{"items":{"$ref":"#/components/schemas/ImageGenerationData"},"type":"array","title":"Data","description":"The generated images."}},"type":"object","required":["created","data"],"title":"ImageGenerationResponse","description":"OpenAI ``ImagesResponse``. dall-e-shaped: the GPT-image-only top-level\nfields (background/output_format/size/quality/usage) are omitted, since our\nsizes wouldn't satisfy their fixed enums and we report no token usage."},"ImageQueueJob":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","enum":["queued","running","done","failed","cancelled"],"title":"Status"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position","description":"0-based place among your queued jobs; null once started"},"prompt":{"type":"string","title":"Prompt"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Steps","description":"Requested steps; null follows the loaded model's default"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Requested seed; null draws one when the job runs"},"batch_size":{"type":"integer","title":"Batch Size"},"workflow":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow"},"loras":{"items":{"type":"string"},"type":"array","title":"Loras","description":"Applied adapters as id:weight"},"created_at":{"type":"number","title":"Created At"},"started_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Finished At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"image_ids":{"items":{"type":"string"},"type":"array","title":"Image Ids","description":"Gallery ids of the finished images"},"seed_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed Used","description":"The run's base seed once done, for Reuse last seed"}},"type":"object","required":["id","status","prompt","width","height","batch_size","created_at"],"title":"ImageQueueJob","description":"One job in the image generation queue: the settings that tell it apart, its state and, once done, its images."},"ImageQueueMoveRequest":{"properties":{"index":{"type":"integer","minimum":0.0,"title":"Index","description":"New 0-based place among your queued jobs (clamped)"}},"type":"object","required":["index"],"title":"ImageQueueMoveRequest","description":"Body of POST /images/queue/{job_id}/move."},"ImageQueueResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/ImageQueueJob"},"type":"array","title":"Jobs"}},"type":"object","title":"ImageQueueResponse","description":"Your image jobs in run order: running first, then queued, then the most recent finished ones."},"ImageUrl":{"properties":{"url":{"type":"string","title":"Url","description":"data:image/png;base64,... or https://..."},"detail":{"anyOf":[{"type":"string","enum":["auto","low","high","original"]},{"type":"null"}],"title":"Detail","default":"auto"}},"type":"object","required":["url"],"title":"ImageUrl","description":"Image URL object — supports data URIs and remote URLs."},"InferenceStatusResponse":{"properties":{"engine_parallelism":{"type":"string","enum":["tensor","pipeline","data"],"title":"Engine Parallelism","default":"tensor"},"engine_precision":{"type":"string","enum":["auto","bf16","fp16","int4","int8","fp8"],"title":"Engine Precision","default":"auto"},"engine_kv_cache_dtype":{"type":"string","enum":["auto","fp8"],"title":"Engine Kv Cache Dtype","default":"auto"},"engine_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Engine Seed"},"engine_gpu_memory_utilization":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engine Gpu Memory Utilization"},"engine":{"type":"string","enum":["auto","vllm","sglang"],"title":"Engine","description":"Active inference engine. 'auto' denotes Unsloth's default backend; 'vllm' and 'sglang' denote optional managed engines.","default":"auto"},"is_vision":{"type":"boolean","title":"Is Vision","description":"Whether model is a vision model","default":false},"is_diffusion":{"type":"boolean","title":"Is Diffusion","description":"Whether model is a block-diffusion model (DiffusionGemma)","default":false},"diffusion_requested_ngl":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Diffusion Requested Ngl","description":"GPU-layer count the diffusion runner was ASKED for, when that differs from what it applied: an unsloth_zoo shim without --ngl drops the split and runs Auto, so gpu_layers reports -1 while this reports the standing request. None for non-diffusion models and whenever the ask and the applied split agree."},"is_audio":{"type":"boolean","title":"Is Audio","description":"Whether model is a TTS audio model","default":false},"audio_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Type","description":"Audio codec or native generation architecture."},"has_audio_input":{"type":"boolean","title":"Has Audio Input","description":"Whether model accepts audio input (ASR)","default":false},"speaks":{"type":"boolean","title":"Speaks","description":"Whether model can answer a spoken question in its own voice","default":false},"audio_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Family","description":"Loader family of an audio GGUF model (e.g. kokoro_tts, minimax_music3)."},"audio_options":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Audio Options","description":"Request options an audio GGUF model accepts: {name, type (bool|int|float|string|enum), description, default, min, max, values, required}. Send chosen values as audio_options."},"audio_workflows":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Audio Workflows","description":"Audio page workflows (speak, clone, music, transcribe) the loaded model serves; [] for a model that is not an audio model. Derived from is_audio and audio_type when not given."},"audio_reference_text":{"anyOf":[{"type":"string","enum":["required","optional","unused"]},{"type":"null"}],"title":"Audio Reference Text","description":"For a model that clones: whether a request needs the reference clip's transcript. None for a model that does not clone."},"audio_required_inputs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Audio Required Inputs","description":"Request fields the model refuses to run without (Maya1: ['instruct'], a voice description sent as instructions)."},"audio_request_inputs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Audio Request Inputs","description":"instruct/instruction/language fields a strict audio.cpp model reads, else None."},"audio_device_fallback":{"anyOf":[{"type":"string","const":"cpu"},{"type":"null"}],"title":"Audio Device Fallback","description":"'cpu' when the audio.cpp model could not start on the GPU and runs on the CPU."},"audio_music":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio Music","description":"Music studio capabilities of an audio.cpp music model: {modes: [{id: song|sfx|edit, ...}]} with lyrics, description, instrumental, section_case, duration and variations for song and sfx, and actions, max_ranges and max_source_s for edit. None for a model the Music studio does not drive (and native MiniMax)."},"audio_options_by_workflow":{"anyOf":[{"additionalProperties":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Audio Options By Workflow","description":"Options per Audio workflow where they differ from audio_options."},"audio_workflow_tasks":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Audio Workflow Tasks","description":"audio.cpp server task per workflow, e.g. {'convert:singing': 'svc'}."},"audio_server_task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Server Task","description":"audio.cpp server task the running server was started with."},"audio_convert":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio Convert","description":"What the model offers on Convert; None when it does not convert."},"audio_convert_route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Convert Route","description":"Seed-VC route the running server was started with."},"audio_clone":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio Clone","description":"Clone rules (transcript, emotion clip, voice description); None when it does not clone."},"has_video_input":{"type":"boolean","title":"Has Video Input","description":"Whether llama-server accepts video input for this model, from its /props modalities. False unless the mmproj, the build and ffmpeg all support it.","default":false},"requires_trust_remote_code":{"type":"boolean","title":"Requires Trust Remote Code","description":"Whether the model defaults require trust_remote_code to be enabled for loading.","default":false},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length","description":"Runtime context length in tokens for the loaded model"},"npu_context_fit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Npu Context Fit","description":"Token window estimated to fit free RAM at NPU load time, before the Auto minimum."},"max_context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Context Length","description":"The ceiling to show for this model: llama.cpp estimates what the machine can hold, while MLX reports the model's own window. Neither reserves memory, and an explicit request above it is still honored."},"native_context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Native Context Length","description":"Model's native context length, from GGUF metadata or the MLX model config"},"context_length_enforced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Context Length Enforced","description":"Whether context_length bounds the runtime's KV cache for a reply decoded on its own. True confirmed, false confirmed unbounded, null the backend does not answer. MLX builds a cache to check, since a model with its own make_cache ignores the requested size. Replies decoded together are answered for by context_unbounded_when_batched, not by this."},"context_unbounded_when_batched":{"type":"boolean","title":"Context Unbounded When Batched","description":"Whether replies this load decodes together escape the window this reports. mlx-vlm's batch generator takes no window control, so a vision load able to run either batch reports true; everything else, llama.cpp included, reports false. Which batch a given reply gets is a per-request question this cannot settle, so it errs towards not promising a window. Both fields describe the load as it was loaded and neither changes afterwards, so a client combines them with parallel_slots to decide what to tell a user: a load reporting true and more than one slot cannot promise a window. That is the load's answer, not the reply's -- a load whose release keeps no batch open decodes a plain chat bounded while still reporting true -- so read it as the weaker claim it is.","default":false},"context_length_fitted":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length Fitted","description":"The window MLX fitted to this machine's memory, where that is shorter than the model's own and no Context Length was requested. Null means context_length was not chosen for this machine: a pin, or the model's own window."},"mlx_context_budget":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mlx Context Budget","description":"Token limit enforced per request rather than by the KV cache, set where a requested cache width took the cache and context_length could not bound it. A request over it is refused; null where context_length bounds the cache itself."},"supports_reasoning":{"type":"boolean","title":"Supports Reasoning","description":"Whether model supports thinking/reasoning mode (enable_thinking or reasoning_effort)","default":false},"reasoning_style":{"type":"string","enum":["enable_thinking","reasoning_effort","enable_thinking_effort"],"title":"Reasoning Style","description":"Reasoning control style: 'enable_thinking' (boolean), 'reasoning_effort' (low|medium|high), or 'enable_thinking_effort' (on/off gate plus an effort level, e.g. GLM-5.2 high|max)","default":"enable_thinking"},"reasoning_effort_levels":{"items":{"type":"string"},"type":"array","title":"Reasoning Effort Levels","description":"Discrete reasoning_effort levels the template offers when reasoning_style is 'enable_thinking_effort' (e.g. ['high', 'max']); empty otherwise"},"reasoning_always_on":{"type":"boolean","title":"Reasoning Always On","description":"Whether reasoning is always on (hardcoded <think> tags, not toggleable)","default":false},"reasoning_budget":{"type":"integer","title":"Reasoning Budget","description":"Effective llama-server reasoning token budget.","default":-1},"reasoning_budget_message":{"type":"string","title":"Reasoning Budget Message","description":"Effective llama-server reasoning-budget exhaustion message.","default":""},"requested_reasoning_budget":{"type":"integer","title":"Requested Reasoning Budget","description":"Reasoning token budget this load requested, before the environment.","default":-1},"requested_reasoning_budget_message":{"type":"string","title":"Requested Reasoning Budget Message","description":"Reasoning-budget message this load requested, before the environment.","default":""},"supports_preserve_thinking":{"type":"boolean","title":"Supports Preserve Thinking","description":"Whether the template understands the optional preserve_thinking kwarg","default":false},"preserve_thinking_default":{"type":"boolean","title":"Preserve Thinking Default","description":"Default preserve_thinking value resolved for the active model family","default":false},"supports_tools":{"type":"boolean","title":"Supports Tools","description":"Whether model supports tool calling (web search, etc.)","default":false},"cache_type_kv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Type Kv","description":"KV cache data type for K and V (e.g. 'f16', 'bf16', 'q8_0', 'q4_0', 'q4_1', 'q5_0', 'q5_1', 'iq4_nl', 'f32')"},"is_mlx":{"type":"boolean","title":"Is Mlx","description":"Whether the active model is served by the MLX backend","default":false},"is_npu":{"type":"boolean","title":"Is Npu","description":"Whether the active model runs on the AMD Ryzen AI NPU (FastFlowLM through Lemonade)","default":false},"npu_power_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npu Power Mode","description":"FastFlowLM power mode the NPU load asked for; null is FastFlowLM's default"},"npu_prefill_chunk_len":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Npu Prefill Chunk Len","description":"FastFlowLM prefill chunk length the NPU load used"},"npu_img_pre_resize":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Npu Img Pre Resize","description":"FastFlowLM image pre-resize level the NPU load asked for"},"mlx_kv_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant","description":"MLX KV cache quantization actually applied, in mlx_kv_quant's vocabulary"},"mlx_kv_quant_requested":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant Requested","description":"MLX KV cache quantization the load asked for. Differs from mlx_kv_quant when the model could not honor it, which is exactly when the reason matters."},"mlx_kv_bits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mlx Kv Bits","description":"mlx_kv_quant as a bare width, kept for clients reading the older field"},"mlx_kv_bits_requested":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mlx Kv Bits Requested","description":"mlx_kv_quant_requested as a bare width, kept for the same reason"},"chat_template_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template Override","description":"Chat template override this model was loaded with. llama.cpp reports what it applied; MLX reports what was requested, since a refusal applies nothing and the reason accompanies it"},"chat_template_override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template Override Reason","description":"Why a requested chat template override was not applied: the runtime supplies the template as code, the model ships a named set rather than one template, it renders without a template, or the override could not render a conversation."},"mlx_kv_quant_eligibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant Eligibility","description":"Whether this model's KV cache could be quantized: full, partial, none or refused. Describes eligibility, not the exact set of converted layers, which the runtime decides."},"mlx_kv_quant_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant Reason","description":"Why KV quantization was not applied in full: the model's cache layout, or the layers it could not cover when eligibility is partial"},"mlx_kv_quant_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant Note","description":"Caveat that applies when KV quantization is active"},"mlx_int8_prefill":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Int8 Prefill","description":"Whether MLX int8 prefill is active for the loaded model"},"mlx_int8_prefill_requested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Int8 Prefill Requested","description":"Whether the load asked for MLX int8 prefill"},"mlx_int8_prefill_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Int8 Prefill Reason","description":"Why requested int8 prefill is not active, as unsloth_zoo reports it (for example nax_unavailable or no_eligible_projections)"},"mlx_ane_prefill":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Ane Prefill","description":"Whether MLX Neural Engine prefill is active for the loaded model"},"mlx_ane_prefill_requested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Ane Prefill Requested","description":"Whether the load asked for MLX Neural Engine prefill"},"mlx_ane_prefill_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Ane Prefill Reason","description":"Why requested Neural Engine prefill is not active, as unsloth_zoo reports it (for example no_neural_engine, no_eligible_mlps, no_gain, not_enough_memory or released)"},"mlx_fast_verify":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Fast Verify","description":"Whether MLX Fast Verify is active for the loaded model"},"mlx_fast_verify_requested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Fast Verify Requested","description":"Whether the load asked for MLX Fast Verify"},"mlx_fast_verify_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Fast Verify Reason","description":"Why requested Fast Verify is not active: no_drafter, unsupported_zoo, or unsloth_zoo's reason"},"mlx_offload":{"anyOf":[{"$ref":"#/components/schemas/MlxOffloadStatus"},{"type":"null"}],"description":"MLX: weights read from disk"},"chat_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template","description":"Jinja2 chat template string (from GGUF metadata or tokenizer)"},"speculative_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speculative Type","description":"Canonical UI-facing requested speculative decoding mode ('auto' / 'mtp' / 'dspark' / 'ngram' / 'mtp+ngram' / 'off' / 'ngram-simple'), round-tripped from the original LoadRequest via _canonicalize_spec_mode. None when no model is loaded."},"spec_draft_n_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Spec Draft N Max","description":"Active --spec-draft-n-max for MTP or DSpark speculative decoding, or None when the platform default is in effect."},"spec_draft_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec Draft Model","description":"The companion drafter an MLX load was asked for; None elsewhere."},"spec_drafter_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec Drafter Kind","description":"Which drafter the resolution was about: 'mtp', 'dspark' or 'dflash' ('eagle3' or 'ngram' too on MLX, where 'mtp' also names a Gemma assistant). Needed because Auto resolves the kind itself, so speculative_type still reads 'auto', and a fallback leaves the engaged type at 'default': neither still says which file the UI should tell the user to fix."},"spec_fallback_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec Fallback Reason","description":"Why a speculative drafter was disabled despite being requested. 'binary_no_mtp' / 'binary_outdated' -> a newer prebuilt would re-enable it (show the update affordance); 'runtime_error' -> the current build could not run it; 'drafter_not_found' -> the model's separate MTP or DSpark drafter could not be resolved; 'drafter_no_vram' -> an Auto-mode fit downgrade: the model pins on GPU but the drafter's reserve does not, and Auto keeps the context rather than shrink it; select the drafter in Settings to force it. 'mla_mtp_disabled' -> an Auto-mode policy downgrade: the model is MLA (GLM-5.2 et al.) whose llama.cpp MTP path runs slower than no speculation, so Auto used ngram-mod or spec-off instead -- updating won't help; choose MTP in Settings (or set UNSLOTH_MLA_MTP_ENABLED=1) to force it. 'mtp_partial_offload' -> an Auto-mode policy downgrade: the model has an embedded Hybrid Mamba MTP head and the placement offloads only part of it, where the recurrent rollback copies cost more layers than the drafting wins back -- updating won't help; choose MTP in Settings to force it. MLX loads report 'drafter_not_found' (no drafter of the requested kind is cached), 'drafter_incompatible' (the named or found drafter does not fit this model), 'drafter_no_memory' (a drafter whose weights and cache leave no context that fits was passed over; a chosen mode still attaches one that fits by spending the prompt cache's share of memory), 'kv_quant' (KV cache quantization is on) or 'runtime_error' (the installed MLX packages cannot speculate, or cannot load this model the way speculation needs), also when a later drafter or n-gram copies stood in for the one asked for. Under auto an MLX load reports no refusal; it reports 'auto_context_cost' (a found drafter would shrink the fitted context) or the drafter codes above for a named or unbuildable drafter. None when the requested strategy engaged or was not requested."},"tensor_parallel":{"type":"boolean","title":"Tensor Parallel","description":"Whether tensor-parallel split (--split-mode tensor) is active.","default":false},"disable_vision":{"type":"boolean","title":"Disable Vision","description":"Whether the load ran with the vision projector deliberately left unloaded. Echoes the request, so the Advanced Settings switch can reseed from it even on a GGUF that never had a projector.","default":false},"engram_precision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engram Precision","description":"Precision of the standalone Engram table the loaded GGUF runs with, as the repo labels it; None when it runs with the table its quant ships with."},"vision_disabled_by_user":{"type":"boolean","title":"Vision Disabled By User","description":"Whether image input is off because the user asked, rather than because the model has no usable mmproj. The two look identical to a client otherwise and need different guidance, so this stays False for a model that never had a projector to switch off.","default":false},"gpu_memory_mode":{"type":"string","enum":["auto","manual"],"title":"Gpu Memory Mode","description":"Active GPU memory strategy ('auto' or 'manual').","default":"auto"},"gpu_layers":{"type":"integer","title":"Gpu Layers","description":"Manual mode: requested --gpu-layers value (-1 = Auto/--fit, or when not manual).","default":-1},"offloaded_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offloaded Layers","description":"Layers llama.cpp actually placed on a GPU, when it reported the count. In Auto mode the placement is llama.cpp's own (--fit on), so this is the only account of what happened; gpu_layers above is the REQUEST."},"offload_total_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offload Total Layers","description":"Total layers in the model, alongside offloaded_layers."},"overflow_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overflow Layers","description":"Layers with MoE expert weights that llama.cpp's --fit left in system memory: their routed experts, or part of the FFN for the first partial layer on a device. offloaded_layers still counts them as on the GPU, so a spill shows only here. Every MoE layer when expert_cache_mib is set. None when --fit did not run."},"expert_cache_mib":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expert Cache Mib","description":"--moe-cache-mib auto: every routed expert is in system memory and this many MiB of the most used ones are cached on the GPU. None when no MoE cache is in use."},"gpu_weights_mib":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gpu Weights Mib","description":"MiB of model weights llama.cpp placed in GPU buffers, from its load log."},"host_weights_mib":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Host Weights Mib","description":"MiB of model weights in system memory (CPU, memory-mapped or pinned host buffers). Token embeddings stay here even when every layer is on the GPU."},"gpu_backend_unavailable":{"type":"boolean","title":"Gpu Backend Unavailable","description":"Unsloth detected a GPU for this load but llama.cpp's own device table reported none, meaning its GPU backend did not initialise. Separates a backend failure from a fit that placed no layers; both log 0/M.","default":false},"offload_overridden":{"type":"boolean","title":"Offload Overridden","description":"Whether the user's own llama-server extras pinned the layer split. Auto mode respects an inherited -ngl instead of stripping it, so a deliberate placement can arrive with gpu_memory_mode still 'auto'.","default":false},"cpu_fallback_reason":{"anyOf":[{"type":"string","enum":["vulkan_startup_crash","vulkan_startup_stall","vulkan_no_device"]},{"type":"null"}],"title":"Cpu Fallback Reason","description":"Why an automatic GGUF load was downgraded to CPU. 'vulkan_startup_crash' means a managed, auto-selected Vulkan launch hard-crashed and the same launch became healthy with GPU devices disabled. 'vulkan_startup_stall' means that launch stopped making startup progress. 'vulkan_no_device' means the Vulkan probe found no usable device, so the load started on CPU without initialising the Vulkan runtime."},"mmproj_fallback_reason":{"anyOf":[{"type":"string","enum":["cpu_offload","projector_incompatible","projector_startup_failure"]},{"type":"null"}],"title":"Mmproj Fallback Reason","description":"How an automatic GGUF multimodal-projector recovery changed the load. 'cpu_offload' keeps vision with the projector on CPU; 'projector_incompatible' and 'projector_startup_failure' mean the model recovered text-only."},"n_cpu_moe":{"type":"integer","title":"N Cpu Moe","description":"Manual mode: MoE expert layers pinned to CPU (--n-cpu-moe); 0 = none.","default":0},"tensor_split":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Tensor Split","description":"Relative model share per GPU (--tensor-split) used by the active load; None = default (split by free VRAM)."},"n_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Layers","description":"Model's layer count (GGUF block_count), for the manual gpu-layers ceiling."},"n_moe_layers":{"type":"integer","title":"N Moe Layers","description":"Model's MoE expert-layer count (the n_cpu_moe ceiling); 0 if not an MoE model.","default":0},"gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Gpu Ids","description":"Effective GPU indices the model is using after fit-time narrowing, or None for automatic selection."},"requested_gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Requested Gpu Ids","description":"GPU placement pool requested by the user before fit-time narrowing, or None for automatic selection."},"requested_parallel_slots":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested Parallel Slots","description":"Replies the load was invoked with (per-load n_parallel, else the default; for GGUF, the server-wide --parallel set at launch). None for the diffusion runner, which ignores --parallel."},"parallel_slots":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parallel Slots","description":"Replies the loaded model is configured to decode at once. Not what any one reply is running under: a batch already decoding keeps the width it opened at until it drains, since resizing it would drop the replies inside it, and a request submitted before a change carries the width it was submitted with. For GGUF these are llama-server's --parallel slots after any fit-time reduction; elsewhere it is 1 when the runtime has no batched generation, or its settings rule it out. None for the diffusion runner, which ignores --parallel, and when the runtime did not say."},"requested_n_batch":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested N Batch","description":"Batch size (--batch-size) the load was invoked with, or None when the load left it at the llama.cpp default (or to extra args / env)."},"requested_n_ubatch":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested N Ubatch","description":"Micro-batch size (--ubatch-size) the load was invoked with, or None when the load left it at the llama.cpp default (or to extra args / env)."},"requested_load_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Load Mode","description":"Load mode (--load-mode) the load was invoked with, or None when the load left it at the llama.cpp default. This is what was REQUESTED: the Model Memory settings can replace it, and what they emit is reported by the model-memory settings route instead."},"requested_spec_draft_cache_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Spec Draft Cache Type","description":"Draft KV cache dtype the load was invoked with, or None when the load left it at the llama.cpp default (or attached no drafter)."},"requested_ctx_checkpoints":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested Ctx Checkpoints","description":"Checkpoints (--ctx-checkpoints) the load was invoked with, or None when the load left it at the llama.cpp default."},"requested_cache_ram":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested Cache Ram","description":"Host prompt cache size in MiB (--cache-ram) the load was invoked with, or None when the load left it at the llama.cpp default."},"requested_llama_extra_args":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Requested Llama Extra Args","description":"Pass-through llama-server arguments the running load was INVOKED with, or None for a non-GGUF load and for a load that passed none. Published so a client that attached to an already-running server (a fresh tab, or another browser) knows what it is running: without it, a rollback after a failed switch restores the previous model without the arguments it had."},"resident_mib":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resident Mib","description":"Best-effort memory the resident model holds, in MiB; null when unknown."},"resident_on_gpu":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Resident On Gpu","description":"True when resident_mib is model buffers on the GPUs /api/system reports, false for system RAM (a CPU-only llama.cpp build, an NPU model), null when unknown (Vulkan or SYCL buffers are not parsed)."},"active_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Model","description":"Currently active model display identifier"},"model_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Identifier","description":"Loadable identifier for the active model."},"is_gguf":{"type":"boolean","title":"Is Gguf","description":"Whether the active model is a GGUF model (llama.cpp)","default":false},"is_local_model":{"type":"boolean","title":"Is Local Model","description":"Whether the active model came from a local filesystem path","default":false},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant","description":"GGUF quantization variant (e.g. Q4_K_M)"},"memory_warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Warning","description":"Non-blocking advisory about the active load, or null: the memory_warning its load response carried, kept while that model is running."},"loading":{"items":{"type":"string"},"type":"array","title":"Loading","description":"Models currently being loaded"},"loaded":{"items":{"type":"string"},"type":"array","title":"Loaded","description":"Models currently loaded"},"multi_model_mode":{"anyOf":[{"type":"string","enum":["off","fit","always"]},{"type":"null"}],"title":"Multi Model Mode","description":"Keep multiple models loaded: off, fit (When they fit) or always."},"serving":{"items":{"type":"string"},"type":"array","title":"Serving","description":"Models answering requests: the active one and each kept alongside. Unlike loaded, leaves out a model only held in memory behind the active one."},"serving_checkpoints":{"items":{"type":"string"},"type":"array","title":"Serving Checkpoints","description":"The checkpoint id each serving entry is loaded from, in the same order: the path of a local model, else the same id. Load, select and unload by this one."},"serving_quants":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array","title":"Serving Quants","description":"The GGUF quant each serving entry runs, in the same order; null when it has none."},"inference":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inference","description":"Recommended inference parameters for the active model"},"requested_context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested Context Length","description":"The context length the active load was invoked with: 0 means the load asked the backend to choose, and null means the serving backend records no request at all. Both local backends size their own window, so context_length reports only what was resolved and cannot say whether anyone chose it; this is what lets a client restore the user's choice after a reload."},"load_in_4bit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Load In 4Bit","description":"The 4-bit setting the active non-GGUF load was REQUESTED with, not the value it resolved to: LoRA and the latest-transformers tier rewrite it, so only the requested value can be compared against a later request. None for GGUF, which does not use it."},"llama_cpp_supports_mtp":{"type":"boolean","title":"Llama Cpp Supports Mtp","description":"Whether llama.cpp supports MTP (--spec-type mtp/draft-mtp). False -> recommend `unsloth studio update`.","default":true},"spec_fallback_binary_changed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spec Fallback Binary Changed","description":"For a 'binary_no_mtp' / 'binary_outdated' stand-down only: whether a different llama-server is installed than the live one launched from, which is the necessary condition in LlamaCppBackend.spec_binary_fallback_can_retry. False -> an identical /load cannot repair the drafter and dedupes, so a client need not reload for it. None for every other reason, and on a backend too old to report it."},"spec_probe_retry_pending":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spec Probe Retry Pending","description":"The capability probe has started answering since a launch it degraded, so an identical /load is rejected once to re-derive the runtime (_runtime_matches_intent's _capability_probe_inconclusive arm). No speculative mode gates it. None on a backend too old to report it."},"spec_dflash_retry_pending":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spec Dflash Retry Pending","description":"A DFlash sidecar fetch failed retryably, which under Auto records no spec_fallback_reason at all, so an identical /load is rejected to fetch again. Applies to the 'auto' and 'dflash' modes. None on a backend too old to report it."},"spec_dspark_sidecar_absent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spec Dspark Sidecar Absent","description":"The DSpark drafter is absent rather than transiently unfetchable, which is the permanent state of every repo but one. _runtime_matches_intent excludes it from the drafter_not_found retry arm, so an identical /load dedupes and a client need not reload for it. None on a backend too old to report it."},"tensor_parallel_dropped_by_arch_gate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tensor Parallel Dropped By Arch Gate","description":"The GPU architecture gate normalized a tensor-parallel request to layer mode, so tensor_parallel reads false while the request that produced it was true. _runtime_matches_intent accepts the same true request against this runtime. None on a backend too old to report it."},"gpu_placement_paravirtual":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Gpu Placement Paravirtual","description":"Metal is a virtualised Apple GPU, so paravirtual_normalized_request rewrites every GGUF request to manual / zero layers / no split / no MoE before the duplicate-load comparators run. Placement cannot tell two requests apart here. None on a backend too old to report it."},"audio_probe_pending":{"type":"boolean","title":"Audio Probe Pending","description":"The post-launch audio probe did not finish and has to be retried. The route refuses its own already-loaded answer while this is true so load_model can re-probe, and nothing else does, so a client must not skip /load for it.","default":false},"diffusion_split_supported":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Diffusion Split Supported","description":"A diffusion launch right now would honour --ngl. _runtime_matches_intent rejects an otherwise identical request once this is true and gpu_layers differs from diffusion_requested_ngl, so a split an older shim dropped can be applied. None off a diffusion runner, and on a backend too old to report it."},"llama_cpp_prebuilt_stale":{"type":"boolean","title":"Llama Cpp Prebuilt Stale","description":"Installed llama.cpp prebuilt is >=3 days behind the latest release. True -> show `unsloth studio update` banner.","default":false},"llama_cpp_installed_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llama Cpp Installed Tag","description":"Installed llama.cpp tag, or None if unknown."},"llama_cpp_latest_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llama Cpp Latest Tag","description":"Latest published llama.cpp tag, or None if GitHub unreachable."}},"type":"object","title":"InferenceStatusResponse","description":"Current inference backend status"},"InputAudio":{"properties":{"data":{"type":"string","minLength":1,"title":"Data","description":"Base64-encoded audio, without a data: prefix."},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format","description":"Declared container, e.g. \"wav\"; the decoder sniffs it anyway."}},"type":"object","required":["data"],"title":"InputAudio"},"InputAudioContentPart":{"properties":{"type":{"type":"string","const":"input_audio","title":"Type"},"input_audio":{"$ref":"#/components/schemas/InputAudio"}},"type":"object","required":["type","input_audio"],"title":"InputAudioContentPart"},"InputDocumentContentPart":{"properties":{"type":{"type":"string","const":"input_document","title":"Type"},"file_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Data","description":"data:<media_type>;base64,<DATA> URI for inline payloads. Either file_data or file_url must be set; otherwise the part is dropped."},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url","description":"Remote URL pointing to the document (https://...)."},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename","description":"Display filename, forwarded to providers as `title`/`filename`."},"media_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Type","description":"Override the media type sniffed from the data URI (e.g. \"application/pdf\")."}},"type":"object","required":["type"],"title":"InputDocumentContentPart","description":"Document (PDF / file) content part in a multimodal message.\n\nUnsloth-normalised shape (file_data or file_url, plus optional filename/media_type).\nMapped onto Anthropic ``document`` / OpenAI ``input_file`` for vision providers;\ndropped for non-vision providers."},"InstallLatestTransformersRequest":{"properties":{"version":{"type":"string","maxLength":64,"minLength":1,"title":"Version","description":"Exact transformers version to install; must match the current latest PyPI release reported by /validate."},"force_cancel_active":{"type":"boolean","title":"Force Cancel Active","description":"Stop chats still generating instead of refusing with 409. The install is a step of the model swap that raised the same prompt, so a client that already got consent for that swap can carry it through here.","default":false},"auto":{"type":"boolean","title":"Auto","description":"Install without the user's confirmation. Allowed only for the current PyPI release whose package scan is clean; anything else answers requires_consent and installs nothing.","default":false}},"type":"object","required":["version"],"title":"InstallLatestTransformersRequest","description":"Consented request to install the latest transformers release into a sidecar."},"InstallLatestTransformersResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the sidecar was provisioned"},"version":{"type":"string","title":"Version","description":"The requested transformers version"},"message":{"type":"string","title":"Message","description":"Human-readable result"},"model_unloaded":{"type":"boolean","title":"Model Unloaded","description":"Whether the active chat model was unloaded before the swap (reported even on failure, so the client can restore its state)","default":false},"latest_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Version","description":"On a version-mismatch failure: the release that superseded the requested one, so the client can retry with it"},"latest_main_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Main Version","description":"On a version-mismatch failure: transformers main's current version"},"requires_consent":{"type":"boolean","title":"Requires Consent","description":"An automatic install was not attempted; ask the user (message says why)","default":false},"scan_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scan Status","description":"Package scan verdict for a PyPI install: clean, review or flagged (flagged installs are refused)"}},"type":"object","required":["success","version","message"],"title":"InstallLatestTransformersResponse","description":"Result of the consented latest-transformers sidecar install."},"Int8PrefillAvailabilityRequest":{"properties":{"model_path":{"type":"string","title":"Model Path","description":"Model identifier or local path"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Token for gated repositories"}},"type":"object","required":["model_path"],"title":"Int8PrefillAvailabilityRequest","description":"A model whose run settings may offer MLX int8 prefill."},"Int8PrefillAvailabilityResponse":{"properties":{"available":{"type":"boolean","title":"Available"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Cause when available is false: 'not_downloaded', 'unsupported_model', 'unsupported_zoo', or unsloth_zoo's own reason ('nax_unavailable', 'no_eligible_projections', 'probe_failed')."}},"type":"object","required":["available"],"title":"Int8PrefillAvailabilityResponse","description":"Whether a load of this model could run MLX int8 prefill, judged from its downloaded files."},"ItemDelete":{"properties":{"id":{"type":"string","maxLength":4096,"title":"Id"},"fingerprint":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Fingerprint"}},"type":"object","required":["id"],"title":"ItemDelete"},"ItemPatch":{"properties":{"id":{"type":"string","maxLength":4096,"title":"Id"},"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"favorite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Favorite"},"folderId":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Folderid"}},"type":"object","required":["id"],"title":"ItemPatch"},"ItemRef":{"properties":{"id":{"type":"string","maxLength":4096,"title":"Id"}},"type":"object","required":["id"],"title":"ItemRef"},"JobCreateResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"JobCreateResponse"},"KeylessApiAccessPayload":{"properties":{"scope":{"type":"string","enum":["off","inference","full"],"title":"Scope"},"tools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tools"}},"type":"object","required":["scope"],"title":"KeylessApiAccessPayload"},"KeylessApiAccessResponse":{"properties":{"scope":{"type":"string","enum":["off","inference","full"],"title":"Scope"},"tools":{"type":"boolean","title":"Tools"},"exposure":{"anyOf":[{"type":"string","enum":["colab","public_url","private_lan","network"]},{"type":"null"}],"title":"Exposure"},"suspended_by_accounts":{"type":"boolean","title":"Suspended By Accounts","default":false}},"type":"object","required":["scope","tools"],"title":"KeylessApiAccessResponse"},"LanAccessAddress":{"properties":{"address":{"type":"string","title":"Address"},"public":{"type":"boolean","title":"Public","default":false},"host_only":{"type":"boolean","title":"Host Only","default":false}},"type":"object","required":["address"],"title":"LanAccessAddress"},"LanAccessAddressesPayload":{"properties":{"addresses":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Addresses"}},"type":"object","required":["addresses"],"title":"LanAccessAddressesPayload"},"LanAccessAutoStartPayload":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"LanAccessAutoStartPayload"},"LanAccessPortPayload":{"properties":{"port":{"anyOf":[{"type":"integer","maximum":65535.0,"minimum":1.0},{"type":"null"}],"title":"Port"}},"type":"object","required":["port"],"title":"LanAccessPortPayload"},"LanAccessResponse":{"properties":{"state":{"type":"string","enum":["off","online","error"],"title":"State"},"urls":{"items":{"type":"string"},"type":"array","title":"Urls","default":[]},"public_urls":{"items":{"type":"string"},"type":"array","title":"Public Urls","default":[]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"auto_start":{"type":"boolean","title":"Auto Start"},"configured_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Configured Port"},"active_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Port"},"configured_addresses":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Configured Addresses"},"available_addresses":{"items":{"$ref":"#/components/schemas/LanAccessAddress"},"type":"array","title":"Available Addresses","default":[]},"configured_public_addresses":{"items":{"type":"string"},"type":"array","title":"Configured Public Addresses","default":[]},"managed_by":{"anyOf":[{"type":"string","enum":["launch","settings"]},{"type":"null"}],"title":"Managed By"},"can_start":{"type":"boolean","title":"Can Start"},"can_stop":{"type":"boolean","title":"Can Stop"},"block_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Reason"},"bind_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bind Host"},"wildcard_bind":{"type":"boolean","title":"Wildcard Bind","default":false},"serves_web_ui":{"type":"boolean","title":"Serves Web Ui","default":true},"keyless_lan_eligible":{"type":"boolean","title":"Keyless Lan Eligible","default":false},"keyless_scope":{"type":"string","enum":["off","inference","full"],"title":"Keyless Scope","default":"off"},"keyless_tools":{"type":"boolean","title":"Keyless Tools","default":false}},"type":"object","required":["state","auto_start","can_start","can_stop"],"title":"LanAccessResponse"},"LastLocalModelPayload":{"properties":{"id":{"type":"string","maxLength":4161,"minLength":1,"title":"Id"},"kind":{"type":"string","enum":["gguf","model"],"title":"Kind"},"gguf_variant":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Gguf Variant"},"loaded_at":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Loaded At"},"client_now":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Client Now"}},"type":"object","required":["id","kind"],"title":"LastLocalModelPayload"},"LastLocalModelResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"kind":{"anyOf":[{"type":"string","enum":["gguf","model"]},{"type":"null"}],"title":"Kind"},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant"},"loaded_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Loaded At"},"server_now":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Now"}},"type":"object","title":"LastLocalModelResponse"},"LearnedMemoryPatch":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"thread_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thread Enabled"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revision"},"clear":{"type":"boolean","title":"Clear","default":false}},"additionalProperties":false,"type":"object","title":"LearnedMemoryPatch"},"LegacyImportRequest":{"properties":{"recipes":{"items":{"$ref":"#/components/schemas/RecipeRecord"},"type":"array","maxItems":10000,"title":"Recipes"},"executions":{"items":{"$ref":"#/components/schemas/ExecutionRecord"},"type":"array","maxItems":50000,"title":"Executions"}},"type":"object","title":"LegacyImportRequest"},"LinkFolderRequest":{"properties":{"displayName":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Displayname"},"autoSync":{"type":"boolean","title":"Autosync","default":true},"nativePathLease":{"type":"string","minLength":1,"title":"Nativepathlease"}},"type":"object","required":["nativePathLease"],"title":"LinkFolderRequest"},"ListOpenAIContainersResponse":{"properties":{"containers":{"items":{"$ref":"#/components/schemas/OpenAIContainerSummary"},"type":"array","title":"Containers"}},"type":"object","required":["containers"],"title":"ListOpenAIContainersResponse"},"LlamaBackendOption":{"properties":{"backend":{"type":"string","title":"Backend","description":"auto | cpu | cuda | rocm | vulkan"},"available":{"type":"boolean","title":"Available","description":"True when a prebuilt for this backend installs on this host.","default":false},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason","description":"unavailable | no_prebuilt | other_release | error | rocm_not_installed | rocm_no_access, when available is false."},"unavailable_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Detail","description":"The resolver's own message for an unavailable backend."},"unavailable_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Hint","description":"What to do so this backend can install, when known."},"applies_to_host":{"type":"boolean","title":"Applies To Host","description":"False when this host has no GPU the backend runs on (ROCm with no AMD card), so the picker leaves it out instead of greying it.","default":true},"resolved_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Backend","description":"For 'auto', the backend hardware detection picks right now."},"release_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Tag"},"download_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Download Size Bytes"}},"type":"object","required":["backend"],"title":"LlamaBackendOption"},"LlamaBackendRequest":{"properties":{"backend":{"type":"string","enum":["auto","cpu","cuda","rocm","vulkan"],"title":"Backend","description":"Backend to install. 'auto' restores hardware detection."}},"type":"object","required":["backend"],"title":"LlamaBackendRequest"},"LlamaBackendStatusResponse":{"properties":{"supported":{"type":"boolean","title":"Supported","description":"True when this install's backend can be switched from here.","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why it cannot: not_installed | local_link | source_build | no_install_dir | unresolved (the backend list could not be resolved, e.g. offline)."},"env_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Env Backend","description":"Backend pinned by UNSLOTH_LLAMA_CPP_BACKEND / UNSLOTH_FORCE_VULKAN. It overrides a stored choice, so the picker shows it as read-only."},"backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backend","description":"What the install runs on now."},"backend_request":{"type":"string","title":"Backend Request","description":"The recorded choice; 'auto' means hardware detection. A name this build does not know was written by a newer Unsloth and is read-only.","default":"auto"},"selection_applied":{"type":"boolean","title":"Selection Applied","description":"False when the recorded choice is 'auto' and detection would now resolve to a different backend than the installed one.","default":true},"installed_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installed Tag"},"options":{"items":{"$ref":"#/components/schemas/LlamaBackendOption"},"type":"array","title":"Options"},"job":{"$ref":"#/components/schemas/LlamaUpdateJob"}},"type":"object","title":"LlamaBackendStatusResponse"},"LlamaCppPathPayload":{"properties":{"path":{"anyOf":[{"type":"string","maxLength":32767},{"type":"null"}],"title":"Path"}},"type":"object","title":"LlamaCppPathPayload"},"LlamaCppPathResponse":{"properties":{"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"source":{"type":"string","enum":["default","studio","environment"],"title":"Source"},"editable":{"type":"boolean","title":"Editable"},"available":{"type":"boolean","title":"Available"},"resolved_binary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Binary"},"environment_variable":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment Variable"},"reload_required":{"type":"boolean","title":"Reload Required","default":false}},"type":"object","required":["source","editable","available"],"title":"LlamaCppPathResponse"},"LlamaFlagCatalogResponse":{"properties":{"flags":{"additionalProperties":{"type":"string"},"type":"object","title":"Flags","description":"Flag name -> its help text, e.g. {'--top-k': 'top-k sampling ...'}"},"managed":{"items":{"type":"string"},"type":"array","title":"Managed","description":"Flags Unsloth Studio owns; validate_extra_args rejects these outright"},"switch_flags":{"items":{"type":"string"},"type":"array","title":"Switch Flags","description":"Flags this build documents as taking no value, so an editor can tell '--verbose foo' (which llama-server refuses) from '--numa distribute'"},"max_bytes":{"type":"integer","title":"Max Bytes","description":"Size limit validate_extra_args applies on THIS host; smaller on Windows, where the whole command line shares one 32767-character budget","default":0},"windows_command_budget":{"type":"integer","title":"Windows Command Budget","description":"Characters the quoted command may take on Windows, or 0 elsewhere. An editor mirrors it because the quoting can double a backslash-heavy value.","default":0},"default_parallel_slots":{"type":"integer","title":"Default Parallel Slots","description":"Serving slots a load gets when it names none, the server-wide --parallel. An editor needs it to judge a pass-through --batch-size: llama-server aborts on a batch below the slots it serves, and with the Slots field blank this is the number the launch will use.","default":1},"parallel_slots_clamped":{"type":"boolean","title":"Parallel Slots Clamped","description":"True when this build serves ONE slot however many are asked for, because it has no --kv-unified and load_model falls back. The default above is already effective, but an EXPLICIT Slots value is not: without this an editor sizes its batch floor from a count the launch will not use, and refuses a --batch-size the backend accepts.","default":false},"probe_ok":{"type":"boolean","title":"Probe Ok","description":"False when --help could not be read. `flags` is then empty and callers must not report a flag as unknown, only as unverified.","default":false}},"type":"object","title":"LlamaFlagCatalogResponse","description":"Every llama-server flag THIS build documents, for validating pass-through args.\n\nRead from the installed binary's ``--help`` rather than a list bundled with\nUnsloth: a custom or newer llama.cpp is exactly the case where a bundled list\nwould reject a flag that works, or accept one that does not exist."},"LlamaUpdateActionResponse":{"properties":{"started":{"type":"boolean","title":"Started"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"job":{"$ref":"#/components/schemas/LlamaUpdateJob"}},"type":"object","required":["started"],"title":"LlamaUpdateActionResponse"},"LlamaUpdateChange":{"properties":{"summary":{"type":"string","title":"Summary"},"links":{"items":{"$ref":"#/components/schemas/LlamaUpdateChangeLink"},"type":"array","title":"Links"}},"type":"object","required":["summary"],"title":"LlamaUpdateChange"},"LlamaUpdateChangeLink":{"properties":{"label":{"type":"string","title":"Label"},"url":{"type":"string","title":"Url"}},"type":"object","required":["label","url"],"title":"LlamaUpdateChangeLink"},"LlamaUpdateChangelogResponse":{"properties":{"matched":{"type":"boolean","title":"Matched","description":"True when both releases were resolved and compared.","default":false},"installed_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installed Tag"},"latest_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Tag"},"changes":{"items":{"$ref":"#/components/schemas/LlamaUpdateChange"},"type":"array","title":"Changes"},"total_changes":{"type":"integer","title":"Total Changes","default":0},"truncated":{"type":"boolean","title":"Truncated","default":false},"release_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Url"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","title":"LlamaUpdateChangelogResponse"},"LlamaUpdateJob":{"properties":{"state":{"type":"string","title":"State","description":"idle | running | success | error","default":"idle"},"operation":{"anyOf":[{"type":"string","enum":["update","switch"]},{"type":"null"}],"title":"Operation"},"requested_backend":{"anyOf":[{"type":"string","enum":["auto","cpu","cuda","rocm","vulkan"]},{"type":"null"}],"title":"Requested Backend"},"message":{"type":"string","title":"Message","default":""},"from_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Tag"},"to_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Tag"},"reload_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reload Required"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"progress":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Progress","description":"0..1 while running, 1 on success."},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"phases":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Phases","description":"Per-phase breakdown of a chained llama+whisper job (name -> state/progress/to_tag/...); None for pre-chaining jobs."}},"type":"object","title":"LlamaUpdateJob"},"LlamaUpdateStatusResponse":{"properties":{"supported":{"type":"boolean","title":"Supported","description":"True when the install came from an Unsloth prebuilt (has a marker).","default":false},"update_available":{"type":"boolean","title":"Update Available","description":"True when an update would do something: llama.cpp is behind OR the whisper piggyback is behind OR audio.cpp is not the pinned release.","default":false},"llama_update_available":{"type":"boolean","title":"Llama Update Available","description":"True when the latest llama.cpp release is newer than the install.","default":false},"update_component":{"anyOf":[{"type":"string","enum":["llama","whisper","audio"]},{"type":"null"}],"title":"Update Component","description":"Component whose versions the combined update banner should display."},"stale":{"type":"boolean","title":"Stale","description":"Update available AND install older than the staleness threshold.","default":false},"installed_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installed Tag"},"latest_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Tag"},"published_repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published Repo"},"installed_at_utc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installed At Utc"},"age_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Days"},"source_build":{"type":"boolean","title":"Source Build","description":"True when there is no marker (source build) but a prebuilt is offered.","default":false},"update_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Update Size Bytes","description":"Download size of the prebuilt Update would fetch, in bytes."},"backend_migration_available":{"type":"boolean","title":"Backend Migration Available","description":"True when the install recorded an AUTOMATIC backend choice and detection now resolves elsewhere, so Update would move it. Independent of update_available: the release can be current while the backend has drifted.","default":false},"from_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Backend","description":"Installed backend, when a migration is available."},"to_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Backend","description":"Backend a re-applied automatic selection would install."},"whisper":{"anyOf":[{"$ref":"#/components/schemas/WhisperSubStatus"},{"type":"null"}],"description":"Whisper piggyback sub-status; None when the probe is unavailable."},"audio":{"anyOf":[{"$ref":"#/components/schemas/AudioCppSubStatus"},{"type":"null"}],"description":"audio.cpp phase sub-status; None when the probe is unavailable."},"job":{"$ref":"#/components/schemas/LlamaUpdateJob"}},"type":"object","title":"LlamaUpdateStatusResponse"},"LlmCompressorExportProbeResponse":{"properties":{"ready":{"type":"boolean","title":"Ready"},"needs_consent":{"type":"boolean","title":"Needs Consent"},"consent_kind":{"anyOf":[{"type":"string","enum":["shadow","workspace"]},{"type":"null"}],"title":"Consent Kind"},"install_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Install Summary"},"workspace_install_command":{"type":"string","title":"Workspace Install Command"},"shadow_path":{"type":"string","title":"Shadow Path"},"autoinstall_disabled":{"type":"boolean","title":"Autoinstall Disabled"},"shadow_disabled":{"type":"boolean","title":"Shadow Disabled"},"offline":{"type":"boolean","title":"Offline"},"blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Reason"},"python_executable":{"type":"string","title":"Python Executable"},"has_pip":{"type":"boolean","title":"Has Pip"},"has_uv":{"type":"boolean","title":"Has Uv"}},"type":"object","required":["ready","needs_consent","workspace_install_command","shadow_path","autoinstall_disabled","shadow_disabled","offline","python_executable","has_pip","has_uv"],"title":"LlmCompressorExportProbeResponse"},"LoRABaseModelResponse":{"properties":{"lora_path":{"type":"string","title":"Lora Path","description":"Path to the LoRA adapter"},"base_model":{"type":"string","title":"Base Model","description":"Base model identifier"}},"type":"object","required":["lora_path","base_model"],"title":"LoRABaseModelResponse","description":"Response for getting a LoRA's base model"},"LoadCheckpointRequest":{"properties":{"checkpoint_path":{"type":"string","title":"Checkpoint Path","description":"Path to the checkpoint directory"},"max_seq_length":{"type":"integer","maximum":32768.0,"minimum":128.0,"title":"Max Seq Length","description":"Maximum sequence length for loading the model","default":2048},"load_in_4bit":{"type":"boolean","title":"Load In 4Bit","description":"Whether to load the model in 4-bit quantization","default":true},"offload_layers":{"anyOf":[{"type":"string","const":"auto"},{"type":"integer","maximum":1024.0,"minimum":0.0}],"title":"Offload Layers","description":"Decoder layers kept in host RAM and streamed to the GPU during export (0 = off; 'auto' = only when a 4-bit load does not fit in GPU memory).","default":"auto"},"trust_remote_code":{"type":"boolean","title":"Trust Remote Code","description":"Allow loading models with custom code. Only enable for checkpoints/base models you trust.","default":false},"approved_remote_code_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved Remote Code Fingerprint","description":"sha256 fingerprint from the remote-code scan, pinning user approval of this exact custom-code version."},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Hugging Face token used to scan/load gated checkpoints and their base models."},"op_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Op Id","description":"Caller's id for this operation; POST /api/export/cancel with it as expected_op_id stops only it."}},"type":"object","required":["checkpoint_path"],"title":"LoadCheckpointRequest","description":"Request for loading a checkpoint into the export backend."},"LoadProgressResponse":{"properties":{"phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase","description":"Load phase: 'fit' (llama-server's --fit is searching for a layer placement and reads no weights yet), 'mmap' (weights paging into RAM via mmap), 'ready' (llama-server reported healthy), or null when no load is in flight."},"bytes_loaded":{"type":"integer","title":"Bytes Loaded","description":"Bytes of the model already resident in the llama-server process (VmRSS on Linux).","default":0},"bytes_total":{"type":"integer","title":"Bytes Total","description":"Total bytes across all GGUF shards for the active model.","default":0},"fraction":{"type":"number","title":"Fraction","description":"bytes_loaded / bytes_total, clamped to 0..1.","default":0.0}},"type":"object","title":"LoadProgressResponse","description":"Progress of the active GGUF load, sampled on demand.\n\nDrives a real progress bar during the post-download warmup (mmap + CUDA upload)\ninstead of a spinner that freezes for minutes on large MoE models."},"LoadRequest":{"properties":{"engine_parallelism":{"type":"string","enum":["tensor","pipeline","data"],"title":"Engine Parallelism","default":"tensor"},"engine_precision":{"type":"string","enum":["auto","bf16","fp16","int4","int8","fp8"],"title":"Engine Precision","default":"auto"},"engine_kv_cache_dtype":{"type":"string","enum":["auto","fp8"],"title":"Engine Kv Cache Dtype","description":"Managed engine KV cache dtype; 'fp8' halves KV cache memory (vLLM --kv-cache-dtype).","default":"auto"},"engine_seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Engine Seed","description":"Managed engine seed (vLLM --seed)."},"engine_gpu_memory_utilization":{"anyOf":[{"type":"number","maximum":0.99,"minimum":0.05},{"type":"null"}],"title":"Engine Gpu Memory Utilization","description":"Upper bound on the share of each selected GPU the managed engine may claim (vLLM --gpu-memory-utilization). Unset lets Unsloth size it from free memory."},"engine":{"type":"string","enum":["auto","vllm","sglang"],"title":"Engine","description":"Inference engine to use. 'auto' selects Unsloth's default backend; 'vllm' and 'sglang' require an installed optional engine.","default":"auto"},"model_path":{"type":"string","title":"Model Path","description":"Model identifier or local path"},"load_request_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},{"type":"null"}],"title":"Load Request Id","description":"Opaque client attempt ID for scoped in-flight cancellation"},"force_reload":{"type":"boolean","title":"Force Reload","description":"Start a fresh runtime even when the active settings already match","default":false},"use_saved_settings":{"type":"boolean","title":"Use Saved Settings","description":"Take every load setting this request leaves unset from the model's saved launch settings","default":false},"alongside":{"type":"boolean","title":"Alongside","description":"Keep the loaded model and serve this one next to it","default":false},"force_alongside":{"type":"boolean","title":"Force Alongside","description":"Load alongside even when it only partly fits the free GPU memory","default":false},"native_path_lease":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Native Path Lease","description":"Frontend-visible signed native path grant"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"HuggingFace token for gated models"},"max_seq_length":{"type":"integer","maximum":1048576.0,"minimum":0.0,"title":"Max Seq Length","description":"Maximum sequence length. Send 0 to let a backend that sizes its own window (llama.cpp or MLX) choose the context itself.","default":0},"max_seq_length_auto_derived":{"type":"boolean","title":"Max Seq Length Auto Derived","description":"max_seq_length is the previous load's fitted context, not a user choice","default":false},"load_in_4bit":{"type":"boolean","title":"Load In 4Bit","description":"Load model in 4-bit quantization","default":true},"is_lora":{"type":"boolean","title":"Is Lora","description":"Whether this is a LoRA adapter","default":false},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant","description":"GGUF quantization variant (e.g. 'Q4_K_M')"},"trust_remote_code":{"type":"boolean","title":"Trust Remote Code","description":"Allow loading models with custom code (e.g. NVIDIA Nemotron). Only enable for repos you trust.","default":false},"approved_remote_code_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved Remote Code Fingerprint","description":"sha256 fingerprint from the remote-code scan, pinning user approval of this exact custom-code version."},"chat_template_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template Override","description":"Custom Jinja2 chat template to use instead of the model's default"},"cache_type_kv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Type Kv","description":"KV cache data type for both K and V (e.g. 'f16', 'bf16', 'q8_0', 'q4_0', 'q4_1', 'q5_0', 'q5_1', 'iq4_nl', 'f32')"},"mlx_kv_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant","description":"MLX KV cache quantization: 'auto' for an unquantized cache, '8'/'6'/'5'/'4'/'3'/'2' for an mx.quantize width, or 'tq-4'/'tq-3.5'/'tq-3'/'tq-2' for TurboQuant. MLX names a width rather than a llama.cpp dtype, so this is separate from cache_type_kv. Ignored by non-MLX backends; a model whose cache layout cannot be quantized reports the reason instead of applying it."},"mlx_kv_bits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mlx Kv Bits","description":"Superseded by mlx_kv_quant; read only when mlx_kv_quant is omitted."},"mlx_int8_prefill":{"type":"boolean","title":"Mlx Int8 Prefill","description":"Experimental, MLX only: run quantized projections with int8 activations on Apple neural accelerators for faster prompt processing. Lossy: outputs change and accuracy drops. Applied only when the model supports it; the status reports the reason otherwise.","default":false},"mlx_ane_prefill":{"type":"boolean","title":"Mlx Ane Prefill","description":"Experimental, MLX only: run part of each MLP on the Apple Neural Engine alongside the GPU for faster prompt processing. Lossy: the Neural Engine uses int8 weights, so outputs change slightly. Applied only when the model supports it and the split is measured faster here; the status reports the reason otherwise.","default":false},"mlx_fast_verify":{"type":"boolean","title":"Mlx Fast Verify","description":"Experimental, MLX only: verify a drafter's tokens on faster kernels during speculative decoding. Changes decode output slightly against plain greedy decoding, repeatably. Applied only when the load attaches a drafter and the model supports it; the status reports the reason otherwise. Decided at load: changing it reloads the model.","default":false},"mlx_ple_offload":{"anyOf":[{"type":"string","enum":["auto","off"]},{"type":"number"},{"type":"null"}],"title":"Mlx Ple Offload","description":"MLX only: the fraction of the per-layer embedding (PLE) tables read from the checkpoint on disk instead of held in memory, 'off', or 'auto' (also null): read from disk only when the load would otherwise leave less than half the memory past the weights for context. Applied only to a model with PLE tables; the status reports the reason otherwise."},"mlx_expert_offload":{"anyOf":[{"type":"string","enum":["auto","off"]},{"type":"number"},{"type":"null"}],"title":"Mlx Expert Offload","description":"MLX only: the fraction of each MoE layer's routed experts read from the checkpoint on disk on demand instead of held in memory, 'off', or 'auto' (also null): as mlx_ple_offload, after the PLE tables. Slower decode; applied only to quantized routed experts."},"npu_power_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npu Power Mode","description":"AMD NPU only: FastFlowLM power mode, one of default, powersaver, balanced, performance or turbo. Null or default leaves FastFlowLM's own. Changing it reloads."},"npu_prefill_chunk_len":{"anyOf":[{},{"type":"null"}],"title":"Npu Prefill Chunk Len","description":"AMD NPU only: tokens FastFlowLM reads per prefill step, capped at the context length. Null leaves FastFlowLM's default. Changing it reloads."},"npu_img_pre_resize":{"anyOf":[{},{"type":"null"}],"title":"Npu Img Pre Resize","description":"AMD NPU vision models only: FastFlowLM image pre-resize level, 0 (original size) to 4. Null leaves FastFlowLM's default. Changing it reloads."},"gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Gpu Ids","description":"GPU placement pool, for example [0, 1]. Omit or pass [] to use automatic selection. CUDA/ROCm values are physical GPU indices; Vulkan values are ggml device ordinals. Explicit selection is not supported on XPU, and physical IDs are unsupported when the parent visibility mask uses non-numeric or subdevice entries, including CUDA_VISIBLE_DEVICES with MIG or unresolvable UUID entries and ZE_AFFINITY_MASK with subdevice tokens (for example '0.0,0.1') or FLAT-hierarchy tile handles. For GGUF models the fitter may pin the smallest subset of this pool that fits."},"speculative_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speculative Type","description":"Speculative decoding mode for GGUF models. Canonical values: 'auto' (platform-aware: DSpark when the model ships a sidecar, else DFlash when it ships one, else MTP on MTP GGUFs, ngram-mod fallback for sub-3B), 'mtp' (force draft-mtp only on both GPU and CPU), 'dspark' (force a draft-dspark sidecar), 'dflash' (force a draft-dflash sidecar), 'ngram' (force ngram-mod only), 'mtp+ngram' (force ngram-mod+draft-mtp chain on both platforms), 'off' (disabled). Legacy values 'default' (-> auto), 'draft-mtp' (-> mtp), 'draft-dspark' (-> dspark), 'draft-dflash' (-> dflash), 'ngram-mod' (-> ngram), and 'ngram-simple' (kept as-is) are still accepted. MLX models read 'auto', 'mtp', 'dflash', 'dspark', 'eagle3', 'ngram' and 'off'; every drafter kind also copies repeated text (n-gram), so 'mtp+ngram' reads as 'mtp'. On MLX, 'auto' attaches the first cached drafter (an MTP head or assistant, then DFlash2, DFlash, DSpark, EAGLE-3) that costs no context, on loads served through mlx-vlm. Ignored for other non-GGUF models."},"spec_draft_n_max":{"anyOf":[{"type":"integer","maximum":16.0,"minimum":1.0},{"type":"null"}],"title":"Spec Draft N Max","description":"Max draft tokens per step for MTP, DSpark or DFlash speculative decoding (--spec-draft-n-max). Defaults to 2 on GPU and 3 on CPU/Mac when unset (upstream-bench sweet spot for dense Qwen3.6 MTP quants, and the measured sweet spot for DFlash too). Only applied when speculative_type resolves to 'mtp', 'mtp+ngram', 'dspark' or 'dflash'. On MLX, up to the drafter's trained depth (3 for MTP heads and assistants) every step drafts exactly this many (or takes an n-gram copy expected to yield more), even when plain decoding would be faster; above it, or for n-gram copies alone, it is a ceiling and the controller decides when to draft."},"spec_draft_model":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Spec Draft Model","description":"MLX only: a companion drafter (DFlash, DFlash2, DSpark, EAGLE-3 or Gemma assistant) to speculate with, as a local directory or an already-cached repo id; never downloaded. Tried before the model's own MTP head and the cached companions discovery would pick."},"n_parallel":{"anyOf":[{"type":"integer","maximum":64.0,"minimum":1.0},{"type":"null"}],"title":"N Parallel","description":"Replies this load may decode at once (1..64). For GGUF these are llama-server's --parallel slots, and the VRAM fitter may launch fewer to keep the model fully on GPU; omit for the server-wide default set at launch. Elsewhere it is a ceiling, not a promise: a runtime that decodes replies together commits its memory to this width and spends it on both the replies to one turn and the concurrent chats joining a batch already decoding, while one that does not answers every reply on its own whatever this says. The load reply's parallel_slots is what it came to."},"n_batch":{"anyOf":[{"type":"integer","maximum":65536.0,"minimum":1.0},{"type":"null"}],"title":"N Batch","description":"Logical prompt batch size for llama-server (--batch-size) for this load (1..65536). Omit for the llama.cpp default (2048). On MLX it caps the tokens one batched prefill forward takes across replies (never below one reply); omit to prefill every waiting reply together. Ignored for other non-GGUF models."},"n_ubatch":{"anyOf":[{"type":"integer","maximum":65536.0,"minimum":1.0},{"type":"null"}],"title":"N Ubatch","description":"Physical prompt micro-batch size for llama-server (--ubatch-size) for this load (1..65536). Omit for the llama.cpp default (512), raised to a projector's own per-image ceiling when its images would abort the server at 512: 1120 for Gemma 4, and 2048 for a projector whose family cannot be read. Every other vision model keeps the 512 default. llama.cpp caps it at the batch size. Larger values speed up prompt processing at the cost of compute-buffer VRAM. On MLX it is the prefill step, tokens per prefill forward (default 2048); an expert-offload plan's own chunk caps it. Ignored for other non-GGUF models."},"load_mode":{"anyOf":[{"type":"string","enum":["auto","none","mmap","mlock","mmap+mlock","dio"]},{"type":"null"}],"title":"Load Mode","description":"How llama-server reads the weights off disk (--load-mode). 'auto' memory-maps unless a device cannot, 'mmap' forces the mapping, 'mlock' keeps the model in RAM rather than letting it swap or compress, 'mmap+mlock' does both, 'dio' uses DirectIO where available and 'none' asks for no special mode. Omit for the llama.cpp default. The Model Memory settings own host placement, so 'Keep model in GPU memory' replaces this with mmap+mlock and 'Don't reserve system RAM' drops a mode that would hold a full host copy. Ignored for non-GGUF models."},"spec_draft_cache_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec Draft Cache Type","description":"KV cache dtype for the DRAFT model's context (--spec-draft-type-k / --spec-draft-type-v), for example 'q8_0'. Separate from cache_type_kv, which is the target model's. Only reaches the command line when the load attaches a separate draft model; omit for the llama.cpp default (f16). Ignored for non-GGUF models."},"ctx_checkpoints":{"anyOf":[{"type":"integer","maximum":256.0,"minimum":0.0},{"type":"null"}],"title":"Ctx Checkpoints","description":"Context checkpoints kept per slot (--ctx-checkpoints), which let a sliding-window model rewind instead of re-processing the prompt. Omit for the llama.cpp default (32); 0 disables them. Each costs host memory, and a model without a sliding window ignores it. Ignored for non-GGUF models."},"cache_ram":{"anyOf":[{"type":"integer","maximum":1048576.0,"minimum":-1.0},{"type":"null"}],"title":"Cache Ram","description":"Host memory in MiB llama-server may spend caching prompt state it has evicted from a slot (--cache-ram). Omit for the llama.cpp default (8192); 0 disables the cache and -1 lifts the limit. On MLX it sizes the prompt cache, which shares memory with the model: omit (or -1) for 15% of the GPU working set, 0 disables it. Ignored for other non-GGUF models."},"tensor_parallel":{"type":"boolean","title":"Tensor Parallel","description":"Split the model across GPUs by tensor (--split-mode tensor) instead of by layer for GGUF models. Only affects multi-GPU setups, where it can make generation significantly faster. No effect on a single GPU. Ignored for non-GGUF models.","default":false},"disable_vision":{"type":"boolean","title":"Disable Vision","description":"Load a vision-capable GGUF without its multimodal projector, as a text-only model. Frees the VRAM the projector would hold, at the cost of image input, which is off for the session; text generation is unaffected. On MLX, stops image input and frees the vision weights (an adapter or audio-input model keeps them). Ignored for models with no vision input, and for other non-GGUF models.","default":false},"engram_precision":{"anyOf":[{"type":"string","maxLength":32,"pattern":"^[A-Za-z0-9_]*$"},{"type":"null"}],"title":"Engram Precision","description":"Load a Hub GGUF quant with the repo's standalone Engram table of this precision (engram/*-engram-<PRECISION>.gguf_file, e.g. 'Q8_0') in place of the table the quant ships with. The table is downloaded on first use; the quant's own table shard is then not needed. None or empty keeps the quant's table. A precision the repo does not publish is an error."},"audio_device":{"anyOf":[{"type":"string","enum":["auto","cpu","gpu"]},{"type":"null"}],"title":"Audio Device","description":"Native audio (TTS / music) models only: where to hold the weights. 'cpu' keeps them in CPU RAM rather than the GPU -- slower generation, but it leaves VRAM for other models and runs checkpoints too large for the card. 'gpu' prefers the accelerator; 'auto' (default) detects. Ignored for every non-audio model, and for GGUF audio: llama.cpp placement comes from gpu_memory_mode and gpu_layers, which are decided before anything can know a GGUF is audio. Send gpu_memory_mode='manual' with gpu_layers=0 and speculative_type='off' to hold a GGUF TTS in RAM."},"gpu_memory_mode":{"type":"string","enum":["auto","manual"],"title":"Gpu Memory Mode","description":"GPU memory strategy for GGUF models. 'auto' (default): Unsloth selects GPUs and caps context to fit VRAM. 'manual': you own the offload. Leave gpu_layers at -1 (Auto) to hand memory management to llama.cpp's --fit (no device masking, no context auto-reduce, no gpu-layer/tensor-split planning); set gpu_layers >= 0 to pin layers and n_cpu_moe yourself (--fit off), with tensor_parallel still applying (split by free VRAM unless tensor_split is set, no planner). Ignored for non-GGUF.","default":"auto"},"gpu_layers":{"type":"integer","minimum":-1.0,"title":"Gpu Layers","description":"Manual mode only: number of layers to offload to the GPU (--gpu-layers, with --fit off). A value >= the model's layer count offloads all of them. -1 = Auto: hand layer + context sizing to llama.cpp's --fit. Ignored unless gpu_memory_mode is 'manual'.","default":-1},"cpu_fallback":{"type":"boolean","title":"Cpu Fallback","description":"Replay a previously recovered automatic Vulkan load in its managed CPU-only runtime. Used when restoring that model after a failed switch.","default":false},"n_cpu_moe":{"type":"integer","minimum":0.0,"title":"N Cpu Moe","description":"Manual mode only: keep the first N MoE expert layers on the CPU (--n-cpu-moe) to save VRAM on MoE models. 0 = none, N = number of MoE layers offloaded (the backend offsets past any leading dense layers). Ignored unless gpu_memory_mode is 'manual' with gpu_layers >= 0.","default":0},"tensor_split":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Tensor Split","description":"Relative share of the model per GPU (--tensor-split), in the order of the GPUs in use, e.g. [2, 1] for 2:1. Omit it to let llama.cpp use its default, which splits by free VRAM. Values are relative, so [1, 1] forces an even split and [3, 1] and [75, 25] mean the same thing. In manual mode (gpu_layers >= 0) the list is passed through as-is. In auto mode it applies only with tensor_parallel, and only when the placement planner did not size the split itself; a ratio that does not fit the planner's per-GPU budget is dropped rather than forwarded. Ignored entirely when gpu_memory_mode is 'manual' with gpu_layers < 0."},"llama_extra_args":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Llama Extra Args","description":"Extra arguments forwarded verbatim to llama-server for GGUF models. One token per list entry, e.g. ['--top-k', '20', '--seed', '42']. Unsloth-managed flags (model identity, port, context length, GPU placement, auth, UI/server mode) are rejected. Ignored for non-GGUF models."},"reasoning_budget":{"type":"integer","maximum":2147483647.0,"minimum":-1.0,"title":"Reasoning Budget","description":"llama-server reasoning token budget (-1 = model/default behavior).","default":-1},"reasoning_budget_message":{"type":"string","title":"Reasoning Budget Message","description":"Message emitted by llama-server when the reasoning budget is exhausted.","default":""},"force_cancel_active":{"type":"boolean","title":"Force Cancel Active","description":"Stop chats still generating instead of refusing with 409. A load replaces the llama-server every open conversation decodes on.","default":false}},"type":"object","required":["model_path"],"title":"LoadRequest","description":"Request to load a model for inference"},"LoadResponse":{"properties":{"engine_parallelism":{"type":"string","enum":["tensor","pipeline","data"],"title":"Engine Parallelism","default":"tensor"},"engine_precision":{"type":"string","enum":["auto","bf16","fp16","int4","int8","fp8"],"title":"Engine Precision","default":"auto"},"engine_kv_cache_dtype":{"type":"string","enum":["auto","fp8"],"title":"Engine Kv Cache Dtype","default":"auto"},"engine_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Engine Seed"},"engine_gpu_memory_utilization":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engine Gpu Memory Utilization"},"engine":{"type":"string","enum":["auto","vllm","sglang"],"title":"Engine","description":"Active inference engine. 'auto' denotes Unsloth's default backend; 'vllm' and 'sglang' denote optional managed engines.","default":"auto"},"is_vision":{"type":"boolean","title":"Is Vision","description":"Whether model is a vision model","default":false},"is_diffusion":{"type":"boolean","title":"Is Diffusion","description":"Whether model is a block-diffusion model (DiffusionGemma)","default":false},"diffusion_requested_ngl":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Diffusion Requested Ngl","description":"GPU-layer count the diffusion runner was ASKED for, when that differs from what it applied: an unsloth_zoo shim without --ngl drops the split and runs Auto, so gpu_layers reports -1 while this reports the standing request. None for non-diffusion models and whenever the ask and the applied split agree."},"is_audio":{"type":"boolean","title":"Is Audio","description":"Whether model is a TTS audio model","default":false},"audio_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Type","description":"Audio codec or native generation architecture."},"has_audio_input":{"type":"boolean","title":"Has Audio Input","description":"Whether model accepts audio input (ASR)","default":false},"speaks":{"type":"boolean","title":"Speaks","description":"Whether model can answer a spoken question in its own voice","default":false},"audio_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Family","description":"Loader family of an audio GGUF model (e.g. kokoro_tts, minimax_music3)."},"audio_options":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Audio Options","description":"Request options an audio GGUF model accepts: {name, type (bool|int|float|string|enum), description, default, min, max, values, required}. Send chosen values as audio_options."},"audio_workflows":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Audio Workflows","description":"Audio page workflows (speak, clone, music, transcribe) the loaded model serves; [] for a model that is not an audio model. Derived from is_audio and audio_type when not given."},"audio_reference_text":{"anyOf":[{"type":"string","enum":["required","optional","unused"]},{"type":"null"}],"title":"Audio Reference Text","description":"For a model that clones: whether a request needs the reference clip's transcript. None for a model that does not clone."},"audio_required_inputs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Audio Required Inputs","description":"Request fields the model refuses to run without (Maya1: ['instruct'], a voice description sent as instructions)."},"audio_request_inputs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Audio Request Inputs","description":"instruct/instruction/language fields a strict audio.cpp model reads, else None."},"audio_device_fallback":{"anyOf":[{"type":"string","const":"cpu"},{"type":"null"}],"title":"Audio Device Fallback","description":"'cpu' when the audio.cpp model could not start on the GPU and runs on the CPU."},"audio_music":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio Music","description":"Music studio capabilities of an audio.cpp music model: {modes: [{id: song|sfx|edit, ...}]} with lyrics, description, instrumental, section_case, duration and variations for song and sfx, and actions, max_ranges and max_source_s for edit. None for a model the Music studio does not drive (and native MiniMax)."},"audio_options_by_workflow":{"anyOf":[{"additionalProperties":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Audio Options By Workflow","description":"Options per Audio workflow where they differ from audio_options."},"audio_workflow_tasks":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Audio Workflow Tasks","description":"audio.cpp server task per workflow, e.g. {'convert:singing': 'svc'}."},"audio_server_task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Server Task","description":"audio.cpp server task the running server was started with."},"audio_convert":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio Convert","description":"What the model offers on Convert; None when it does not convert."},"audio_convert_route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Convert Route","description":"Seed-VC route the running server was started with."},"audio_clone":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audio Clone","description":"Clone rules (transcript, emotion clip, voice description); None when it does not clone."},"has_video_input":{"type":"boolean","title":"Has Video Input","description":"Whether llama-server accepts video input for this model, from its /props modalities. False unless the mmproj, the build and ffmpeg all support it.","default":false},"requires_trust_remote_code":{"type":"boolean","title":"Requires Trust Remote Code","description":"Whether the model defaults require trust_remote_code to be enabled for loading.","default":false},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length","description":"Runtime context length in tokens for the loaded model"},"npu_context_fit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Npu Context Fit","description":"Token window estimated to fit free RAM at NPU load time, before the Auto minimum."},"max_context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Context Length","description":"The ceiling to show for this model: llama.cpp estimates what the machine can hold, while MLX reports the model's own window. Neither reserves memory, and an explicit request above it is still honored."},"native_context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Native Context Length","description":"Model's native context length, from GGUF metadata or the MLX model config"},"context_length_enforced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Context Length Enforced","description":"Whether context_length bounds the runtime's KV cache for a reply decoded on its own. True confirmed, false confirmed unbounded, null the backend does not answer. MLX builds a cache to check, since a model with its own make_cache ignores the requested size. Replies decoded together are answered for by context_unbounded_when_batched, not by this."},"context_unbounded_when_batched":{"type":"boolean","title":"Context Unbounded When Batched","description":"Whether replies this load decodes together escape the window this reports. mlx-vlm's batch generator takes no window control, so a vision load able to run either batch reports true; everything else, llama.cpp included, reports false. Which batch a given reply gets is a per-request question this cannot settle, so it errs towards not promising a window. Both fields describe the load as it was loaded and neither changes afterwards, so a client combines them with parallel_slots to decide what to tell a user: a load reporting true and more than one slot cannot promise a window. That is the load's answer, not the reply's -- a load whose release keeps no batch open decodes a plain chat bounded while still reporting true -- so read it as the weaker claim it is.","default":false},"context_length_fitted":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length Fitted","description":"The window MLX fitted to this machine's memory, where that is shorter than the model's own and no Context Length was requested. Null means context_length was not chosen for this machine: a pin, or the model's own window."},"mlx_context_budget":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mlx Context Budget","description":"Token limit enforced per request rather than by the KV cache, set where a requested cache width took the cache and context_length could not bound it. A request over it is refused; null where context_length bounds the cache itself."},"supports_reasoning":{"type":"boolean","title":"Supports Reasoning","description":"Whether model supports thinking/reasoning mode (enable_thinking or reasoning_effort)","default":false},"reasoning_style":{"type":"string","enum":["enable_thinking","reasoning_effort","enable_thinking_effort"],"title":"Reasoning Style","description":"Reasoning control style: 'enable_thinking' (boolean), 'reasoning_effort' (low|medium|high), or 'enable_thinking_effort' (on/off gate plus an effort level, e.g. GLM-5.2 high|max)","default":"enable_thinking"},"reasoning_effort_levels":{"items":{"type":"string"},"type":"array","title":"Reasoning Effort Levels","description":"Discrete reasoning_effort levels the template offers when reasoning_style is 'enable_thinking_effort' (e.g. ['high', 'max']); empty otherwise"},"reasoning_always_on":{"type":"boolean","title":"Reasoning Always On","description":"Whether reasoning is always on (hardcoded <think> tags, not toggleable)","default":false},"reasoning_budget":{"type":"integer","title":"Reasoning Budget","description":"Effective llama-server reasoning token budget.","default":-1},"reasoning_budget_message":{"type":"string","title":"Reasoning Budget Message","description":"Effective llama-server reasoning-budget exhaustion message.","default":""},"requested_reasoning_budget":{"type":"integer","title":"Requested Reasoning Budget","description":"Reasoning token budget this load requested, before the environment.","default":-1},"requested_reasoning_budget_message":{"type":"string","title":"Requested Reasoning Budget Message","description":"Reasoning-budget message this load requested, before the environment.","default":""},"supports_preserve_thinking":{"type":"boolean","title":"Supports Preserve Thinking","description":"Whether the template understands the optional preserve_thinking kwarg","default":false},"preserve_thinking_default":{"type":"boolean","title":"Preserve Thinking Default","description":"Default preserve_thinking value resolved for the active model family","default":false},"supports_tools":{"type":"boolean","title":"Supports Tools","description":"Whether model supports tool calling (web search, etc.)","default":false},"cache_type_kv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Type Kv","description":"KV cache data type for K and V (e.g. 'f16', 'bf16', 'q8_0', 'q4_0', 'q4_1', 'q5_0', 'q5_1', 'iq4_nl', 'f32')"},"is_mlx":{"type":"boolean","title":"Is Mlx","description":"Whether the active model is served by the MLX backend","default":false},"is_npu":{"type":"boolean","title":"Is Npu","description":"Whether the active model runs on the AMD Ryzen AI NPU (FastFlowLM through Lemonade)","default":false},"npu_power_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Npu Power Mode","description":"FastFlowLM power mode the NPU load asked for; null is FastFlowLM's default"},"npu_prefill_chunk_len":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Npu Prefill Chunk Len","description":"FastFlowLM prefill chunk length the NPU load used"},"npu_img_pre_resize":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Npu Img Pre Resize","description":"FastFlowLM image pre-resize level the NPU load asked for"},"mlx_kv_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant","description":"MLX KV cache quantization actually applied, in mlx_kv_quant's vocabulary"},"mlx_kv_quant_requested":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant Requested","description":"MLX KV cache quantization the load asked for. Differs from mlx_kv_quant when the model could not honor it, which is exactly when the reason matters."},"mlx_kv_bits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mlx Kv Bits","description":"mlx_kv_quant as a bare width, kept for clients reading the older field"},"mlx_kv_bits_requested":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mlx Kv Bits Requested","description":"mlx_kv_quant_requested as a bare width, kept for the same reason"},"chat_template_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template Override","description":"Chat template override this model was loaded with. llama.cpp reports what it applied; MLX reports what was requested, since a refusal applies nothing and the reason accompanies it"},"chat_template_override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template Override Reason","description":"Why a requested chat template override was not applied: the runtime supplies the template as code, the model ships a named set rather than one template, it renders without a template, or the override could not render a conversation."},"mlx_kv_quant_eligibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant Eligibility","description":"Whether this model's KV cache could be quantized: full, partial, none or refused. Describes eligibility, not the exact set of converted layers, which the runtime decides."},"mlx_kv_quant_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant Reason","description":"Why KV quantization was not applied in full: the model's cache layout, or the layers it could not cover when eligibility is partial"},"mlx_kv_quant_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Kv Quant Note","description":"Caveat that applies when KV quantization is active"},"mlx_int8_prefill":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Int8 Prefill","description":"Whether MLX int8 prefill is active for the loaded model"},"mlx_int8_prefill_requested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Int8 Prefill Requested","description":"Whether the load asked for MLX int8 prefill"},"mlx_int8_prefill_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Int8 Prefill Reason","description":"Why requested int8 prefill is not active, as unsloth_zoo reports it (for example nax_unavailable or no_eligible_projections)"},"mlx_ane_prefill":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Ane Prefill","description":"Whether MLX Neural Engine prefill is active for the loaded model"},"mlx_ane_prefill_requested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Ane Prefill Requested","description":"Whether the load asked for MLX Neural Engine prefill"},"mlx_ane_prefill_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Ane Prefill Reason","description":"Why requested Neural Engine prefill is not active, as unsloth_zoo reports it (for example no_neural_engine, no_eligible_mlps, no_gain, not_enough_memory or released)"},"mlx_fast_verify":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Fast Verify","description":"Whether MLX Fast Verify is active for the loaded model"},"mlx_fast_verify_requested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mlx Fast Verify Requested","description":"Whether the load asked for MLX Fast Verify"},"mlx_fast_verify_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Fast Verify Reason","description":"Why requested Fast Verify is not active: no_drafter, unsupported_zoo, or unsloth_zoo's reason"},"mlx_offload":{"anyOf":[{"$ref":"#/components/schemas/MlxOffloadStatus"},{"type":"null"}],"description":"MLX: weights read from disk"},"chat_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template","description":"Jinja2 chat template string (from GGUF metadata or tokenizer)"},"speculative_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speculative Type","description":"Canonical UI-facing requested speculative decoding mode ('auto' / 'mtp' / 'dspark' / 'ngram' / 'mtp+ngram' / 'off' / 'ngram-simple'), round-tripped from the original LoadRequest via _canonicalize_spec_mode. None when no model is loaded."},"spec_draft_n_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Spec Draft N Max","description":"Active --spec-draft-n-max for MTP or DSpark speculative decoding, or None when the platform default is in effect."},"spec_draft_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec Draft Model","description":"The companion drafter an MLX load was asked for; None elsewhere."},"spec_drafter_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec Drafter Kind","description":"Which drafter the resolution was about: 'mtp', 'dspark' or 'dflash' ('eagle3' or 'ngram' too on MLX, where 'mtp' also names a Gemma assistant). Needed because Auto resolves the kind itself, so speculative_type still reads 'auto', and a fallback leaves the engaged type at 'default': neither still says which file the UI should tell the user to fix."},"spec_fallback_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec Fallback Reason","description":"Why a speculative drafter was disabled despite being requested. 'binary_no_mtp' / 'binary_outdated' -> a newer prebuilt would re-enable it (show the update affordance); 'runtime_error' -> the current build could not run it; 'drafter_not_found' -> the model's separate MTP or DSpark drafter could not be resolved; 'drafter_no_vram' -> an Auto-mode fit downgrade: the model pins on GPU but the drafter's reserve does not, and Auto keeps the context rather than shrink it; select the drafter in Settings to force it. 'mla_mtp_disabled' -> an Auto-mode policy downgrade: the model is MLA (GLM-5.2 et al.) whose llama.cpp MTP path runs slower than no speculation, so Auto used ngram-mod or spec-off instead -- updating won't help; choose MTP in Settings (or set UNSLOTH_MLA_MTP_ENABLED=1) to force it. 'mtp_partial_offload' -> an Auto-mode policy downgrade: the model has an embedded Hybrid Mamba MTP head and the placement offloads only part of it, where the recurrent rollback copies cost more layers than the drafting wins back -- updating won't help; choose MTP in Settings to force it. MLX loads report 'drafter_not_found' (no drafter of the requested kind is cached), 'drafter_incompatible' (the named or found drafter does not fit this model), 'drafter_no_memory' (a drafter whose weights and cache leave no context that fits was passed over; a chosen mode still attaches one that fits by spending the prompt cache's share of memory), 'kv_quant' (KV cache quantization is on) or 'runtime_error' (the installed MLX packages cannot speculate, or cannot load this model the way speculation needs), also when a later drafter or n-gram copies stood in for the one asked for. Under auto an MLX load reports no refusal; it reports 'auto_context_cost' (a found drafter would shrink the fitted context) or the drafter codes above for a named or unbuildable drafter. None when the requested strategy engaged or was not requested."},"tensor_parallel":{"type":"boolean","title":"Tensor Parallel","description":"Whether tensor-parallel split (--split-mode tensor) is active.","default":false},"disable_vision":{"type":"boolean","title":"Disable Vision","description":"Whether the load ran with the vision projector deliberately left unloaded. Echoes the request, so the Advanced Settings switch can reseed from it even on a GGUF that never had a projector.","default":false},"engram_precision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engram Precision","description":"Precision of the standalone Engram table the loaded GGUF runs with, as the repo labels it; None when it runs with the table its quant ships with."},"vision_disabled_by_user":{"type":"boolean","title":"Vision Disabled By User","description":"Whether image input is off because the user asked, rather than because the model has no usable mmproj. The two look identical to a client otherwise and need different guidance, so this stays False for a model that never had a projector to switch off.","default":false},"gpu_memory_mode":{"type":"string","enum":["auto","manual"],"title":"Gpu Memory Mode","description":"Active GPU memory strategy ('auto' or 'manual').","default":"auto"},"gpu_layers":{"type":"integer","title":"Gpu Layers","description":"Manual mode: requested --gpu-layers value (-1 = Auto/--fit, or when not manual).","default":-1},"offloaded_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offloaded Layers","description":"Layers llama.cpp actually placed on a GPU, when it reported the count. In Auto mode the placement is llama.cpp's own (--fit on), so this is the only account of what happened; gpu_layers above is the REQUEST."},"offload_total_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offload Total Layers","description":"Total layers in the model, alongside offloaded_layers."},"overflow_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overflow Layers","description":"Layers with MoE expert weights that llama.cpp's --fit left in system memory: their routed experts, or part of the FFN for the first partial layer on a device. offloaded_layers still counts them as on the GPU, so a spill shows only here. Every MoE layer when expert_cache_mib is set. None when --fit did not run."},"expert_cache_mib":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expert Cache Mib","description":"--moe-cache-mib auto: every routed expert is in system memory and this many MiB of the most used ones are cached on the GPU. None when no MoE cache is in use."},"gpu_weights_mib":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gpu Weights Mib","description":"MiB of model weights llama.cpp placed in GPU buffers, from its load log."},"host_weights_mib":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Host Weights Mib","description":"MiB of model weights in system memory (CPU, memory-mapped or pinned host buffers). Token embeddings stay here even when every layer is on the GPU."},"gpu_backend_unavailable":{"type":"boolean","title":"Gpu Backend Unavailable","description":"Unsloth detected a GPU for this load but llama.cpp's own device table reported none, meaning its GPU backend did not initialise. Separates a backend failure from a fit that placed no layers; both log 0/M.","default":false},"offload_overridden":{"type":"boolean","title":"Offload Overridden","description":"Whether the user's own llama-server extras pinned the layer split. Auto mode respects an inherited -ngl instead of stripping it, so a deliberate placement can arrive with gpu_memory_mode still 'auto'.","default":false},"cpu_fallback_reason":{"anyOf":[{"type":"string","enum":["vulkan_startup_crash","vulkan_startup_stall","vulkan_no_device"]},{"type":"null"}],"title":"Cpu Fallback Reason","description":"Why an automatic GGUF load was downgraded to CPU. 'vulkan_startup_crash' means a managed, auto-selected Vulkan launch hard-crashed and the same launch became healthy with GPU devices disabled. 'vulkan_startup_stall' means that launch stopped making startup progress. 'vulkan_no_device' means the Vulkan probe found no usable device, so the load started on CPU without initialising the Vulkan runtime."},"mmproj_fallback_reason":{"anyOf":[{"type":"string","enum":["cpu_offload","projector_incompatible","projector_startup_failure"]},{"type":"null"}],"title":"Mmproj Fallback Reason","description":"How an automatic GGUF multimodal-projector recovery changed the load. 'cpu_offload' keeps vision with the projector on CPU; 'projector_incompatible' and 'projector_startup_failure' mean the model recovered text-only."},"n_cpu_moe":{"type":"integer","title":"N Cpu Moe","description":"Manual mode: MoE expert layers pinned to CPU (--n-cpu-moe); 0 = none.","default":0},"tensor_split":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Tensor Split","description":"Relative model share per GPU (--tensor-split) used by the active load; None = default (split by free VRAM)."},"n_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Layers","description":"Model's layer count (GGUF block_count), for the manual gpu-layers ceiling."},"n_moe_layers":{"type":"integer","title":"N Moe Layers","description":"Model's MoE expert-layer count (the n_cpu_moe ceiling); 0 if not an MoE model.","default":0},"gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Gpu Ids","description":"Effective GPU indices the model is using after fit-time narrowing, or None for automatic selection."},"requested_gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Requested Gpu Ids","description":"GPU placement pool requested by the user before fit-time narrowing, or None for automatic selection."},"requested_parallel_slots":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested Parallel Slots","description":"Replies the load was invoked with (per-load n_parallel, else the default; for GGUF, the server-wide --parallel set at launch). None for the diffusion runner, which ignores --parallel."},"parallel_slots":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parallel Slots","description":"Replies the loaded model is configured to decode at once. Not what any one reply is running under: a batch already decoding keeps the width it opened at until it drains, since resizing it would drop the replies inside it, and a request submitted before a change carries the width it was submitted with. For GGUF these are llama-server's --parallel slots after any fit-time reduction; elsewhere it is 1 when the runtime has no batched generation, or its settings rule it out. None for the diffusion runner, which ignores --parallel, and when the runtime did not say."},"requested_n_batch":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested N Batch","description":"Batch size (--batch-size) the load was invoked with, or None when the load left it at the llama.cpp default (or to extra args / env)."},"requested_n_ubatch":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested N Ubatch","description":"Micro-batch size (--ubatch-size) the load was invoked with, or None when the load left it at the llama.cpp default (or to extra args / env)."},"requested_load_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Load Mode","description":"Load mode (--load-mode) the load was invoked with, or None when the load left it at the llama.cpp default. This is what was REQUESTED: the Model Memory settings can replace it, and what they emit is reported by the model-memory settings route instead."},"requested_spec_draft_cache_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Spec Draft Cache Type","description":"Draft KV cache dtype the load was invoked with, or None when the load left it at the llama.cpp default (or attached no drafter)."},"requested_ctx_checkpoints":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested Ctx Checkpoints","description":"Checkpoints (--ctx-checkpoints) the load was invoked with, or None when the load left it at the llama.cpp default."},"requested_cache_ram":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested Cache Ram","description":"Host prompt cache size in MiB (--cache-ram) the load was invoked with, or None when the load left it at the llama.cpp default."},"requested_llama_extra_args":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Requested Llama Extra Args","description":"Pass-through llama-server arguments the running load was INVOKED with, or None for a non-GGUF load and for a load that passed none. Published so a client that attached to an already-running server (a fresh tab, or another browser) knows what it is running: without it, a rollback after a failed switch restores the previous model without the arguments it had."},"status":{"type":"string","title":"Status","description":"Load status"},"model":{"type":"string","title":"Model","description":"Model identifier"},"display_name":{"type":"string","title":"Display Name","description":"Display name of the model"},"is_lora":{"type":"boolean","title":"Is Lora","description":"Whether model is a LoRA adapter","default":false},"is_gguf":{"type":"boolean","title":"Is Gguf","description":"Whether model is a GGUF model (llama.cpp)","default":false},"is_local_model":{"type":"boolean","title":"Is Local Model","description":"Whether the loaded model came from a local filesystem path","default":false},"inference":{"additionalProperties":true,"type":"object","title":"Inference","description":"Inference parameters (temperature, top_p, top_k, min_p)"},"memory_warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Warning","description":"Non-blocking advisory about this load, or null. Set when the weights do not fit in free VRAM plus available system RAM, so llama.cpp pages them in from disk and generation will be slow, or when the requested GGUF quant did not fit on disk and a smaller one was loaded. The model still loaded."},"carveout_advice":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Carveout Advice","description":"Non-blocking advisory, or null: this machine's integrated GPU has less memory dedicated to it than this model's weights need, so they run from shared system memory and generation is slower than it could be. Carries current_gb, needed_gb, suggested_gb, machine_gb, host_left_gb and a prose message. Null once the user has dismissed it at this allocation, and on every load where enlarging the allocation would not help. The model still loaded."},"evicted":{"items":{"type":"string"},"type":"array","title":"Evicted","description":"Models unloaded to make room for this one: chat models loaded alongside, the replaced chat model, and any image or video model this load freed."},"evicted_slots":{"items":{"$ref":"#/components/schemas/EvictedSlot"},"type":"array","title":"Evicted Slots","description":"The same models as evicted, each with its kind and public model id."}},"type":"object","required":["status","model","display_name","inference"],"title":"LoadResponse","description":"Response after loading a model"},"LocalDatasetOptionsRequest":{"properties":{"dataset_name":{"type":"string","title":"Dataset Name"},"local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Path"}},"type":"object","required":["dataset_name"],"title":"LocalDatasetOptionsRequest"},"LocalDatasetOptionsResponse":{"properties":{"cache_available":{"type":"boolean","title":"Cache Available","default":false},"splits":{"items":{"$ref":"#/components/schemas/DatasetSplitOption"},"type":"array","title":"Splits"}},"type":"object","title":"LocalDatasetOptionsResponse"},"LocalModelCapabilities":{"properties":{"can_train":{"type":"boolean","title":"Can Train","default":false},"can_chat":{"type":"boolean","title":"Can Chat","default":false},"can_delete":{"type":"boolean","title":"Can Delete","default":false},"can_download":{"type":"boolean","title":"Can Download","default":false},"requires_variant":{"type":"boolean","title":"Requires Variant","default":false},"supports_lora":{"type":"boolean","title":"Supports Lora","default":false},"supports_vision":{"type":"boolean","title":"Supports Vision","default":false}},"type":"object","title":"LocalModelCapabilities"},"LocalizedEditSpec":{"properties":{"mode":{"type":"string","enum":["annotate","paint","mask"],"title":"Mode","description":"annotate: `image` is an RGBA layer of marks composited over the source. paint: `image` is a mask whose white area is painted white onto the source. mask: `image` is a white-on-black mask sent as Image 2, right after the source."},"image":{"type":"string","maxLength":33554432,"title":"Image","description":"Base64/data-URL layer at the source image's geometry"}},"type":"object","required":["mode","image"],"title":"LocalizedEditSpec","description":"A localized edit for the unified-edit workflow (Qwen-Image-2.1). It guides a generative edit;\nunlike inpainting it does not keep the pixels outside the region."},"LocationMove":{"properties":{"key":{"type":"string","maxLength":32,"title":"Key"},"path":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Path"}},"type":"object","required":["key"],"title":"LocationMove"},"LocationRef":{"properties":{"key":{"type":"string","maxLength":32,"title":"Key"}},"type":"object","required":["key"],"title":"LocationRef"},"LoraSpec":{"properties":{"id":{"type":"string","maxLength":512,"minLength":1,"title":"Id","description":"LoRA discovery id (repo id or local stem)"},"weight":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Weight","description":"Adapter strength; 0 disables, 1.0 is full strength","default":1.0}},"type":"object","required":["id"],"title":"LoraSpec","description":"One LoRA adapter to apply for a generation, referenced by its discovery id.\n\nThe id is resolved against the backend's own LoRA catalog + local scan (see\ncore/inference/diffusion_lora.py); the client never supplies a raw filesystem\npath, so an arbitrary file can't be loaded. Weight 0 disables the adapter."},"ManagedEngineOffer":{"properties":{"quantization":{"type":"string","title":"Quantization","description":"quant_method from the checkpoint's config.json"},"engines":{"items":{"type":"string","enum":["vllm","sglang"]},"type":"array","title":"Engines","description":"Engines this host can run, in the order to offer them"}},"type":"object","required":["quantization","engines"],"title":"ManagedEngineOffer","description":"Optional engines that can run a checkpoint the Default engine cannot."},"ManagedProviderUrlsPayload":{"properties":{"allowed":{"type":"boolean","title":"Allowed"}},"type":"object","required":["allowed"],"title":"ManagedProviderUrlsPayload"},"ManagedProviderUrlsResponse":{"properties":{"allowed":{"type":"boolean","title":"Allowed"},"default_allowed":{"type":"boolean","title":"Default Allowed","default":false},"locked_by_environment":{"type":"boolean","title":"Locked By Environment","default":false}},"type":"object","required":["allowed"],"title":"ManagedProviderUrlsResponse"},"MaskSegmentRequest":{"properties":{"image":{"type":"string","maxLength":33554432,"minLength":1,"title":"Image","description":"Base64/data-URL source image (as init_image on /images/generate)"},"prompt":{"type":"string","maxLength":2000,"minLength":1,"title":"Prompt","description":"Comma-separated concepts; a trailing :N keeps up to N of that concept (default 1), e.g. 'sofa, red lamp, pillow:2'"},"threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Threshold","description":"Detection score threshold (ComfyUI SAM3 Detect's default 0.5)","default":0.5}},"type":"object","required":["image","prompt"],"title":"MaskSegmentRequest","description":"Make an inpaint / localized-edit mask from text with SAM 3."},"MaskSegmenterDownloadRequest":{"properties":{"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Hugging Face token, needed only for a gated segmenter variant (facebook/sam3)"}},"type":"object","title":"MaskSegmenterDownloadRequest","description":"Body of POST /images/segment/download (optional)."},"MaterialPrefsPayload":{"properties":{"material":{"anyOf":[{"type":"string","enum":["solid","transparent","frosted","blurred","liquid","liquid-3d","macos"]},{"type":"null"}],"title":"Material"},"style":{"anyOf":[{"type":"string","enum":["transparent","frosted","blurred","liquid","liquid-3d","macos"]},{"type":"null"}],"title":"Style"},"menus":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Menus"},"strength":{"anyOf":[{"$ref":"#/components/schemas/GlassStrengthPayload"},{"type":"null"}]},"lens":{"anyOf":[{"type":"string","enum":["off","magnify","shrink"]},{"type":"null"}],"title":"Lens"},"scope":{"anyOf":[{"type":"string","enum":["newChat","chats","all"]},{"type":"null"}],"title":"Scope"}},"type":"object","title":"MaterialPrefsPayload"},"McpAccessPayload":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"disabled_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Disabled Tools"},"tool_states":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Tool States"}},"type":"object","title":"McpAccessPayload"},"McpAccessResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"forced_by_env":{"type":"boolean","title":"Forced By Env"},"url":{"type":"string","title":"Url"},"tools":{"anyOf":[{"items":{"$ref":"#/components/schemas/McpToolSetting"},"type":"array"},{"type":"null"}],"title":"Tools"}},"type":"object","required":["enabled","forced_by_env","url","tools"],"title":"McpAccessResponse"},"McpBuiltinResponse":{"properties":{"builtin_id":{"type":"string","title":"Builtin Id","default":"blender"},"display_name":{"type":"string","title":"Display Name","default":"Blender"},"server_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Id"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":false},"available":{"type":"boolean","title":"Available"},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"},"port":{"type":"integer","title":"Port","default":9876},"blender_path":{"type":"string","title":"Blender Path","default":""},"min_blender_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Blender Version"},"project_path":{"type":"string","title":"Project Path","default":""},"installed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Installed"}},"type":"object","required":["available"],"title":"McpBuiltinResponse"},"McpImageInputMapping":{"properties":{"tool":{"type":"string","maxLength":256,"minLength":1,"title":"Tool"},"field":{"type":"string","maxLength":256,"minLength":1,"title":"Field"},"encoding":{"type":"string","enum":["base64","data_url"],"title":"Encoding","default":"base64"}},"type":"object","required":["tool","field"],"title":"McpImageInputMapping","description":"A top-level string field of ``tool`` that receives the user's approved image."},"McpServerCreate":{"properties":{"display_name":{"type":"string","title":"Display Name"},"url":{"type":"string","title":"Url"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true},"use_oauth":{"type":"boolean","title":"Use Oauth","default":false},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Id"},"oauth_client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Secret"},"image_input_mappings":{"items":{"$ref":"#/components/schemas/McpImageInputMapping"},"type":"array","maxItems":64,"title":"Image Input Mappings"}},"type":"object","required":["display_name","url"],"title":"McpServerCreate"},"McpServerImportRequest":{"properties":{"config":{"additionalProperties":true,"type":"object","title":"Config"}},"type":"object","required":["config"],"title":"McpServerImportRequest"},"McpServerImportResult":{"properties":{"created":{"items":{"$ref":"#/components/schemas/McpServerResponse"},"type":"array","title":"Created"},"skipped":{"items":{"type":"string"},"type":"array","title":"Skipped"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","title":"McpServerImportResult"},"McpServerProbeResult":{"properties":{"ok":{"type":"boolean","title":"Ok"},"tool_count":{"type":"integer","title":"Tool Count","default":0},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"blender_ready":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Blender Ready"},"blender_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blender Error"},"blender_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blender Path"},"editor_ready":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Editor Ready"},"editor_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Editor Error"}},"type":"object","required":["ok"],"title":"McpServerProbeResult"},"McpServerResponse":{"properties":{"id":{"type":"string","title":"Id"},"builtin_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Builtin Id"},"display_name":{"type":"string","title":"Display Name"},"url":{"type":"string","title":"Url"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true},"use_oauth":{"type":"boolean","title":"Use Oauth","default":false},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Id"},"has_oauth_client_secret":{"type":"boolean","title":"Has Oauth Client Secret","default":false},"image_input_mappings":{"items":{"$ref":"#/components/schemas/McpImageInputMapping"},"type":"array","title":"Image Input Mappings"},"image_mappings_active":{"type":"boolean","title":"Image Mappings Active","default":false},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","display_name","url","created_at","updated_at"],"title":"McpServerResponse"},"McpServerTestRequest":{"properties":{"url":{"type":"string","title":"Url"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"use_oauth":{"type":"boolean","title":"Use Oauth","default":false},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Id"},"oauth_client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Secret"},"server_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Id"}},"type":"object","required":["url"],"title":"McpServerTestRequest"},"McpServerUpdate":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"is_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enabled"},"use_oauth":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Oauth"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Id"},"oauth_client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Client Secret"},"image_input_mappings":{"anyOf":[{"items":{"$ref":"#/components/schemas/McpImageInputMapping"},"type":"array","maxItems":64},{"type":"null"}],"title":"Image Input Mappings"}},"type":"object","title":"McpServerUpdate"},"McpStdioCommand":{"properties":{"command":{"type":"string","title":"Command"},"arguments":{"items":{"type":"string"},"type":"array","title":"Arguments"}},"type":"object","required":["command"],"title":"McpStdioCommand"},"McpStdioDecodeRequest":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"McpStdioDecodeRequest"},"McpStdioEncodeResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"McpStdioEncodeResponse"},"McpToolSetting":{"properties":{"name":{"type":"string","title":"Name"},"area":{"type":"string","title":"Area"},"enabled":{"type":"boolean","title":"Enabled"},"chat":{"type":"boolean","title":"Chat"}},"type":"object","required":["name","area","enabled","chat"],"title":"McpToolSetting"},"McpToolsListRequest":{"properties":{"mcp_providers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Mcp Providers"},"timeout_sec":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Timeout Sec"}},"type":"object","title":"McpToolsListRequest"},"McpToolsListResponse":{"properties":{"providers":{"items":{"$ref":"#/components/schemas/McpToolsProviderResult"},"type":"array","title":"Providers"},"duplicate_tools":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Duplicate Tools"}},"type":"object","title":"McpToolsListResponse"},"McpToolsProviderResult":{"properties":{"name":{"type":"string","title":"Name"},"tools":{"items":{"type":"string"},"type":"array","title":"Tools"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["name"],"title":"McpToolsProviderResult"},"McpUiResourceResponse":{"properties":{"uri":{"type":"string","title":"Uri"},"mime_type":{"type":"string","title":"Mime Type"},"text":{"type":"string","title":"Text"},"blob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blob"},"ui":{"additionalProperties":true,"type":"object","title":"Ui"},"contents":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Contents"}},"type":"object","required":["uri","mime_type","text"],"title":"McpUiResourceResponse"},"McpUiToolCallRequest":{"properties":{"tool_name":{"type":"string","title":"Tool Name"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments"},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"permission_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permission Mode"},"approved":{"type":"boolean","title":"Approved","default":false}},"type":"object","required":["tool_name"],"title":"McpUiToolCallRequest"},"McpUiToolCallResult":{"properties":{"content":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Content"},"structured_content":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Structured Content"},"is_error":{"type":"boolean","title":"Is Error","default":false},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"}},"type":"object","title":"McpUiToolCallResult"},"MediaUnloadOutcome":{"properties":{"unloaded":{"type":"boolean","const":false,"title":"Unloaded","description":"Always false: nothing was unloaded"},"outcome":{"type":"string","enum":["superseded","cancelled"],"title":"Outcome","description":"superseded: that load ended or a newer one replaced it. cancelled: it has not started yet, and is refused when it arrives."}},"type":"object","required":["unloaded","outcome"],"title":"MediaUnloadOutcome","description":"POST /images/unload or /video/unload with expected_load_id that touched nothing.\n\nNothing of the slot is described: the load in it may be another account's."},"MediaUnloadRequest":{"properties":{"expected_load_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Expected Load Id","description":"Unload only the load started with this load_token, and only while it is in flight or resident. A load that ended or was replaced is left alone (outcome superseded); one that has not started yet is refused when it arrives (outcome cancelled). Omit to unload whatever is loaded."}},"type":"object","title":"MediaUnloadRequest","description":"Optional body of POST /images/unload and /video/unload."},"Metadata":{"properties":{"actual_num_records":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actual Num Records"},"target_num_records":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Num Records"},"total_num_batches":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Num Batches"},"num_completed_batches":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Completed Batches"},"columns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Columns"}},"type":"object","title":"Metadata"},"MlWarmupPayload":{"properties":{"features":{"items":{"type":"string","enum":["hardware","text","datasets","media","quantization"]},"type":"array","title":"Features"}},"type":"object","required":["features"],"title":"MlWarmupPayload"},"MlWarmupResponse":{"properties":{"features":{"items":{"type":"string","enum":["hardware","text","datasets","media","quantization"]},"type":"array","title":"Features"},"effective_features":{"items":{"type":"string","enum":["hardware","text","datasets","media","quantization"]},"type":"array","title":"Effective Features"},"disabled_by_env":{"type":"boolean","title":"Disabled By Env"}},"type":"object","required":["features","effective_features","disabled_by_env"],"title":"MlWarmupResponse"},"MlxDrafter":{"properties":{"repo_id":{"type":"string","title":"Repo Id","description":"Cached Hugging Face repo, usable as spec_draft_model"},"kind":{"type":"string","title":"Kind","description":"'mtp', 'dflash', 'dspark' or 'eagle3'"},"named":{"type":"boolean","title":"Named","description":"Whether the repo is named for this model. False: it fits the model's architecture only (another generation or a fine-tune), so Auto does not use it.","default":true}},"type":"object","required":["repo_id","kind"],"title":"MlxDrafter"},"MlxDraftersRequest":{"properties":{"model_path":{"type":"string","title":"Model Path","description":"Model identifier or local path of the target"}},"type":"object","required":["model_path"],"title":"MlxDraftersRequest"},"MlxDraftersResponse":{"properties":{"drafters":{"items":{"$ref":"#/components/schemas/MlxDrafter"},"type":"array","title":"Drafters"}},"type":"object","title":"MlxDraftersResponse","description":"Cached drafters an MLX load of the target could name: those named for it first, in Auto's order."},"MlxOffloadEstimate":{"properties":{"ple":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ple","description":"Fraction of the PLE tables read from disk; null for none"},"experts":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Experts","description":"Fraction of the routed experts read from disk; null for none"},"offloadable":{"items":{"type":"string","enum":["ple","experts"]},"type":"array","title":"Offloadable","description":"What the load can read from disk at all"}},"type":"object","title":"MlxOffloadEstimate","description":"What an MLX load reads from disk instead of holding in memory, \"auto\" decided."},"MlxOffloadPart":{"properties":{"applied":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Applied","description":"Fraction read from disk; null for none"},"requested":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}],"title":"Requested","description":"As the load asked for it"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why a requested offload is not applied"}},"type":"object","title":"MlxOffloadPart"},"MlxOffloadStatus":{"properties":{"ple":{"$ref":"#/components/schemas/MlxOffloadPart"},"experts":{"$ref":"#/components/schemas/MlxOffloadPart"},"disk_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Disk Bytes","description":"Weight bytes the loaded model reads from the checkpoint on demand"}},"type":"object","required":["ple","experts"],"title":"MlxOffloadStatus","description":"The PLE tables and routed experts an MLX load reads from disk instead of memory."},"ModelAliasEntry":{"properties":{"name":{"type":"string","title":"Name"},"model":{"type":"string","title":"Model"},"load_settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Load Settings"}},"type":"object","required":["name","model"],"title":"ModelAliasEntry"},"ModelAliasesPayload":{"properties":{"aliases":{"items":{"$ref":"#/components/schemas/ModelAliasEntry"},"type":"array","title":"Aliases"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision"}},"type":"object","title":"ModelAliasesPayload"},"ModelAliasesResponse":{"properties":{"aliases":{"items":{"$ref":"#/components/schemas/ModelAliasEntry"},"type":"array","title":"Aliases"},"revision":{"type":"string","title":"Revision"}},"type":"object","required":["aliases","revision"],"title":"ModelAliasesResponse"},"ModelCatalogResponse":{"properties":{"fetched_at":{"type":"number","title":"Fetched At"},"providers":{"additionalProperties":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},"type":"object","title":"Providers"}},"type":"object","required":["fetched_at","providers"],"title":"ModelCatalogResponse"},"ModelCheckpoints":{"properties":{"name":{"type":"string","title":"Name","description":"Training run folder name"},"checkpoints":{"items":{"$ref":"#/components/schemas/CheckpointInfo"},"type":"array","title":"Checkpoints","description":"List of checkpoints for this training run (final + intermediate)"},"base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model","description":"Base model name from adapter_config.json or config.json"},"peft_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Peft Type","description":"PEFT type (e.g. LORA) if adapter training, None for full fine-tune"},"lora_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lora Rank","description":"LoRA rank (r) if applicable"},"is_quantized":{"type":"boolean","title":"Is Quantized","description":"Whether the model uses BNB quantization (e.g. bnb-4bit)","default":false},"adapter_features":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Adapter Features","description":"Compact adapter capabilities parsed from the adapter config (dora / full_state / moe_target_parameters / non_uniform); None for non-adapter runs. A None VALUE means unverified (e.g. full_state without a weight-header probe)."}},"type":"object","required":["name"],"title":"ModelCheckpoints","description":"A training run and its associated checkpoints."},"ModelMemoryPayload":{"properties":{"keep_resident":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Keep Resident"},"no_ram_reserve":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"No Ram Reserve"}},"type":"object","title":"ModelMemoryPayload"},"ModelMemoryResponse":{"properties":{"keep_resident":{"type":"boolean","title":"Keep Resident"},"no_ram_reserve":{"type":"boolean","title":"No Ram Reserve"},"default_keep_resident":{"type":"boolean","title":"Default Keep Resident","default":false},"default_no_ram_reserve":{"type":"boolean","title":"Default No Ram Reserve","default":false},"mlock_active":{"type":"boolean","title":"Mlock Active"},"mlock_applicable":{"type":"boolean","title":"Mlock Applicable","default":true},"reload_required":{"type":"boolean","title":"Reload Required"},"memlock_limit_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Memlock Limit Bytes"}},"type":"object","required":["keep_resident","no_ram_reserve","mlock_active","reload_required"],"title":"ModelMemoryResponse"},"ModelOverridePayload":{"properties":{"model_id":{"type":"string","maxLength":4161,"minLength":1,"title":"Model Id"},"engine_parallelism":{"anyOf":[{"type":"string","enum":["tensor","pipeline","data"]},{"type":"null"}],"title":"Engine Parallelism"},"engine_precision":{"anyOf":[{"type":"string","enum":["auto","bf16","fp16","int4","int8","fp8"]},{"type":"null"}],"title":"Engine Precision"},"engine":{"anyOf":[{"type":"string","enum":["auto","vllm","sglang"]},{"type":"null"}],"title":"Engine"},"engine_kv_cache_dtype":{"anyOf":[{"type":"string","enum":["auto","fp8"]},{"type":"null"}],"title":"Engine Kv Cache Dtype"},"engine_seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Engine Seed"},"engine_gpu_memory_utilization":{"anyOf":[{"type":"number","maximum":0.99,"minimum":0.05},{"type":"null"}],"title":"Engine Gpu Memory Utilization"},"llama_extra_args":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Llama Extra Args"},"max_seq_length":{"anyOf":[{"type":"integer","maximum":1048576.0,"minimum":1.0},{"type":"null"}],"title":"Max Seq Length"},"custom_context_length":{"anyOf":[{"type":"integer","maximum":1048576.0,"minimum":1.0},{"type":"null"}],"title":"Custom Context Length"},"kv_cache_dtype":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Kv Cache Dtype"},"mlx_kv_quant":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Mlx Kv Quant"},"mlx_kv_bits":{"anyOf":[{"type":"number","maximum":8.0,"minimum":2.0},{"type":"null"}],"title":"Mlx Kv Bits"},"speculative_type":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Speculative Type"},"spec_draft_n_max":{"anyOf":[{"type":"integer","maximum":16.0,"minimum":1.0},{"type":"null"}],"title":"Spec Draft N Max"},"spec_draft_model":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Spec Draft Model"},"n_parallel":{"anyOf":[{"type":"integer","maximum":64.0,"minimum":1.0},{"type":"null"}],"title":"N Parallel"},"reasoning_budget":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":-1.0},{"type":"null"}],"title":"Reasoning Budget"},"reasoning_budget_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Budget Message"},"n_batch":{"anyOf":[{"type":"integer","maximum":65536.0,"minimum":1.0},{"type":"null"}],"title":"N Batch"},"n_ubatch":{"anyOf":[{"type":"integer","maximum":65536.0,"minimum":1.0},{"type":"null"}],"title":"N Ubatch"},"load_mode":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Load Mode"},"spec_draft_cache_type":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Spec Draft Cache Type"},"ctx_checkpoints":{"anyOf":[{"type":"integer","maximum":256.0,"minimum":0.0},{"type":"null"}],"title":"Ctx Checkpoints"},"cache_ram":{"anyOf":[{"type":"integer","maximum":1048576.0,"minimum":-1.0},{"type":"null"}],"title":"Cache Ram"},"mirrors_server_tuning":{"type":"boolean","title":"Mirrors Server Tuning","default":false},"mirrors_reasoning_budget":{"type":"boolean","title":"Mirrors Reasoning Budget","default":false},"mirrors_spec_draft_model":{"type":"boolean","title":"Mirrors Spec Draft Model","default":false},"engram_precision":{"anyOf":[{"type":"string","maxLength":32,"pattern":"^[A-Za-z0-9_]*$"},{"type":"null"}],"title":"Engram Precision"},"mirrors_engram_precision":{"type":"boolean","title":"Mirrors Engram Precision","default":false},"tensor_parallel":{"type":"boolean","title":"Tensor Parallel","default":false},"disable_vision":{"type":"boolean","title":"Disable Vision","default":false},"mlx_int8_prefill":{"type":"boolean","title":"Mlx Int8 Prefill","default":false},"mlx_ane_prefill":{"type":"boolean","title":"Mlx Ane Prefill","default":false},"mlx_fast_verify":{"type":"boolean","title":"Mlx Fast Verify","default":false},"npu_power_mode":{"anyOf":[{"type":"string","enum":["default","powersaver","balanced","performance","turbo"]},{"type":"null"}],"title":"Npu Power Mode"},"npu_prefill_chunk_len":{"anyOf":[{"type":"integer","maximum":1048576.0,"minimum":1.0},{"type":"null"}],"title":"Npu Prefill Chunk Len"},"npu_img_pre_resize":{"anyOf":[{"type":"integer","maximum":4.0,"minimum":0.0},{"type":"null"}],"title":"Npu Img Pre Resize"},"mlx_ple_offload":{"anyOf":[{"type":"string","enum":["auto","off"]},{"type":"number"},{"type":"null"}],"title":"Mlx Ple Offload"},"mlx_expert_offload":{"anyOf":[{"type":"string","enum":["auto","off"]},{"type":"number"},{"type":"null"}],"title":"Mlx Expert Offload"},"load_in_4bit":{"type":"boolean","title":"Load In 4Bit","default":true},"chat_template_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template Override"},"gpu_memory_mode":{"anyOf":[{"type":"string","enum":["auto","manual"]},{"type":"null"}],"title":"Gpu Memory Mode"},"gpu_layers":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":-1.0},{"type":"null"}],"title":"Gpu Layers"},"n_cpu_moe":{"anyOf":[{"type":"integer","maximum":1024.0,"minimum":0.0},{"type":"null"}],"title":"N Cpu Moe"},"tensor_split":{"anyOf":[{"items":{"type":"number"},"type":"array","maxItems":1025,"minItems":2},{"type":"null"}],"title":"Tensor Split"},"gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":1025},{"type":"null"}],"title":"Gpu Ids"},"gpu_index_kind":{"anyOf":[{"type":"string","enum":["physical","vulkan","cuda_device"]},{"type":"null"}],"title":"Gpu Index Kind"},"remove":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Remove"},"fill_absent_fields":{"type":"boolean","title":"Fill Absent Fields","default":false}},"type":"object","required":["model_id"],"title":"ModelOverridePayload","description":"One model's saved launch config, applied when the API loads that model.\n\nEverything past ``model_id`` is optional and omitted means \"app default\", so a\npayload carrying only ``model_id`` clears the entry. The bounds here mirror\n``LoadRequest`` so a bad value is rejected at the boundary instead of being\nsilently dropped by the normalizer; the enum-ish fields (KV dtype, speculative\nmode) are left to it, since their valid sets follow the llama.cpp build."},"ModelOverridesResponse":{"properties":{"overrides":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Overrides"},"resolved":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Resolved"},"resolved_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Key"},"removed_keys":{"items":{"type":"string"},"type":"array","title":"Removed Keys","default":[]}},"type":"object","required":["overrides"],"title":"ModelOverridesResponse"},"ModelSamplingDefaultsPayload":{"properties":{"model_id":{"type":"string","maxLength":4161,"minLength":1,"title":"Model Id"},"sampling":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Sampling"}},"type":"object","required":["model_id"],"title":"ModelSamplingDefaultsPayload","description":"One model's saved sampling defaults. A null or missing field follows the model's recommendation;\nall of them null forgets the model."},"ModelSamplingDefaultsResponse":{"properties":{"defaults":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Defaults"},"resolved":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Resolved"}},"type":"object","required":["defaults"],"title":"ModelSamplingDefaultsResponse"},"ModelTemplateResponse":{"properties":{"model_name":{"type":"string","title":"Model Name"},"chat_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template"}},"type":"object","required":["model_name"],"title":"ModelTemplateResponse"},"ModelsFolderResponse":{"properties":{"path":{"type":"string","title":"Path","description":"Path to the model download directory."}},"type":"object","required":["path"],"title":"ModelsFolderResponse","description":"The directory where downloaded models are stored (the active HF hub\ncache, honoring ``HF_HOME`` / ``HF_HUB_CACHE``)."},"MoeInfoResponse":{"properties":{"model":{"type":"string","title":"Model"},"num_experts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Experts"},"top_k":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top K"},"n_group":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Group","description":"Router groups (group-limited routing)."},"topk_group":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Topk Group","description":"Groups each token may route into."}},"type":"object","required":["model"],"title":"MoeInfoResponse","description":"Routed-expert counts for a model, or None when it is not a routed MoE."},"MonthlySchedule":{"properties":{"kind":{"type":"string","const":"monthly","title":"Kind"},"time":{"type":"string","title":"Time"},"day":{"type":"integer","maximum":31.0,"minimum":1.0,"title":"Day"}},"additionalProperties":false,"type":"object","required":["kind","time","day"],"title":"MonthlySchedule"},"MultiModelPayload":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"mode":{"anyOf":[{"type":"string","enum":["off","fit","always"]},{"type":"null"}],"title":"Mode"}},"type":"object","title":"MultiModelPayload"},"MultiModelResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"default_enabled":{"type":"boolean","title":"Default Enabled","default":false},"mode":{"type":"string","enum":["off","fit","always"],"title":"Mode","default":"off"},"default_mode":{"type":"string","enum":["off","fit","always"],"title":"Default Mode","default":"off"}},"type":"object","required":["enabled"],"title":"MultiModelResponse"},"OAuthCompleteRequest":{"properties":{"callback_url":{"type":"string","maxLength":8192,"minLength":1,"title":"Callback Url"}},"type":"object","required":["callback_url"],"title":"OAuthCompleteRequest"},"OAuthStartRequest":{"properties":{"method":{"type":"string","enum":["browser","device"],"title":"Method"}},"type":"object","required":["method"],"title":"OAuthStartRequest"},"OfflineDocsPayload":{"properties":{"path":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Path"},"auto_update":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Update"}},"type":"object","title":"OfflineDocsPayload"},"OfflineDocsResponse":{"properties":{"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"auto_update":{"type":"boolean","title":"Auto Update"},"file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"release":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release"},"current_release":{"type":"string","title":"Current Release"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"refreshing":{"type":"boolean","title":"Refreshing","default":false}},"type":"object","required":["auto_update","current_release"],"title":"OfflineDocsResponse"},"OnboardingPayload":{"properties":{"pages":{"items":{"type":"string","pattern":"^[a-z0-9-]{1,40}$"},"type":"array","maxItems":32,"title":"Pages"},"completed":{"type":"boolean","title":"Completed","default":false}},"type":"object","title":"OnboardingPayload"},"OnboardingResponse":{"properties":{"saved":{"type":"boolean","title":"Saved","default":false},"pages":{"items":{"type":"string"},"type":"array","title":"Pages"},"completedAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completedat"},"hasHistory":{"type":"boolean","title":"Hashistory","default":false}},"type":"object","title":"OnboardingResponse"},"OnceSchedule":{"properties":{"kind":{"type":"string","const":"once","title":"Kind"},"at":{"type":"string","title":"At"}},"additionalProperties":false,"type":"object","required":["kind","at"],"title":"OnceSchedule"},"OpenAIAutoSwitchPayload":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"auto_unload_idle_seconds":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Auto Unload Idle Seconds"},"auto_unload_keep_kv":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Unload Keep Kv"},"auto_download_model":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Download Model"},"auto_unload_api_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Unload Api Only"},"media_auto_unload_idle_seconds":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Media Auto Unload Idle Seconds"},"media_auto_switch_model":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Media Auto Switch Model"}},"type":"object","title":"OpenAIAutoSwitchPayload"},"OpenAIAutoSwitchResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"auto_unload_idle_seconds":{"type":"integer","title":"Auto Unload Idle Seconds"},"default_enabled":{"type":"boolean","title":"Default Enabled","default":false},"idle_unload_active":{"type":"boolean","title":"Idle Unload Active","default":false},"auto_unload_keep_kv":{"type":"boolean","title":"Auto Unload Keep Kv","default":true},"auto_download_model":{"type":"boolean","title":"Auto Download Model","default":false},"auto_unload_api_only":{"type":"boolean","title":"Auto Unload Api Only","default":false},"media_auto_unload_idle_seconds":{"type":"integer","title":"Media Auto Unload Idle Seconds","default":0},"media_idle_unload_active":{"type":"boolean","title":"Media Idle Unload Active","default":false},"media_auto_switch_model":{"type":"boolean","title":"Media Auto Switch Model","default":false}},"type":"object","required":["enabled","auto_unload_idle_seconds"],"title":"OpenAIAutoSwitchResponse"},"OpenAIContainerRequest":{"properties":{"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id","description":"[x-unsloth] Saved OpenAI provider config whose stored key may be used."},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key","description":"[x-unsloth] Optional RSA-encrypted OpenAI API key override."},"provider_base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Base Url","description":"[x-unsloth] OpenAI base URL. Only api.openai.com is supported; non-cloud bases are rejected with 400."}},"type":"object","title":"OpenAIContainerRequest","description":"Shared body for the OpenAI container endpoints (list / create / delete).\n\nCarries a saved provider ID or one-time encrypted API key plus base URL so\nthe route can proxy to the user's account."},"OpenAIContainerSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"created_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created At"},"last_active_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Active At"},"expires_after_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires After Minutes"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id"],"title":"OpenAIContainerSummary","description":"One row from GET /v1/containers, reshaped for the UI."},"OpenAIReasoningContentPart":{"properties":{"type":{"type":"string","const":"reasoning","title":"Type"},"id":{"type":"string","title":"Id","description":"OpenAI reasoning output item id."},"summary":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Summary"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"type":"object","required":["type","id"],"title":"OpenAIReasoningContentPart","description":"OpenAI Responses reasoning item paired with a tool output.\n\nReasoning models may require this replayed before an ``image_generation_call``\nid. OpenAI-only; routes strip it for other providers before proxying."},"OrphanCompanionInfo":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"size_bytes":{"type":"integer","title":"Size Bytes","default":0},"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path"},"cache_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Ref"}},"type":"object","required":["repo_id"],"title":"OrphanCompanionInfo"},"OrphanCompanionsResponse":{"properties":{"companions":{"items":{"$ref":"#/components/schemas/OrphanCompanionInfo"},"type":"array","title":"Companions"},"total_bytes":{"type":"integer","title":"Total Bytes","default":0}},"type":"object","title":"OrphanCompanionsResponse"},"OwnerLoginAliasRequest":{"properties":{"login_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Alias","description":"Owner sign-in name; null, empty or \"unsloth\" clears it"}},"type":"object","title":"OwnerLoginAliasRequest"},"ParallelPlanRequest":{"properties":{"model_name":{"type":"string","maxLength":512,"title":"Model Name"},"training_type":{"type":"string","enum":["LoRA/QLoRA","Full Finetuning","Continued Pretraining"],"title":"Training Type","default":"LoRA/QLoRA"},"load_in_4bit":{"type":"boolean","title":"Load In 4Bit","default":true},"batch_size":{"type":"integer","minimum":1.0,"title":"Batch Size","default":1},"max_seq_length":{"type":"integer","minimum":1.0,"title":"Max Seq Length","default":2048},"lora_r":{"type":"integer","minimum":1.0,"title":"Lora R","default":16},"target_modules":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Modules"},"gradient_checkpointing":{"type":"string","title":"Gradient Checkpointing","default":""},"optim":{"type":"string","title":"Optim","default":"adamw_8bit"},"gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Gpu Ids"},"parallel_mode":{"anyOf":[{"type":"string","enum":["auto","single","layer_split","ddp","fsdp2","tp","pp","cp","ep","custom"]},{"type":"null"}],"title":"Parallel Mode","default":"auto"},"parallel_spec":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Parallel Spec"},"offload_layers":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Offload Layers"},"packing":{"type":"boolean","title":"Packing","default":true},"is_dataset_image":{"type":"boolean","title":"Is Dataset Image","default":false},"is_dataset_audio":{"type":"boolean","title":"Is Dataset Audio","default":false},"is_embedding":{"type":"boolean","title":"Is Embedding","default":false},"is_decision":{"type":"boolean","title":"Is Decision","default":false},"drafter":{"anyOf":[{"$ref":"#/components/schemas/DrafterTrainingConfig"},{"type":"null"}]}},"type":"object","required":["model_name"],"title":"ParallelPlanRequest","description":"POST /api/train/parallel/plan body."},"PersonalizationAppearance":{"properties":{"theme":{"type":"string","enum":["light","dark","system"],"title":"Theme","default":"system"},"palette":{"type":"string","enum":["standard","blueberry","butterfly-pea","cherry","cinnamon","cotton-candy","dragon-fruit","earl-grey","espresso","honey","licorice","macaron","matcha","mint","neon-cyberpunk","oat-milk","peach","pina-paraiso","plum","tangerine","taro","wasabi","yuzu","trick-or-treat"],"title":"Palette","default":"standard"},"language":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Language"},"customization":{"$ref":"#/components/schemas/PersonalizationCustomization"}},"type":"object","title":"PersonalizationAppearance"},"PersonalizationCustomColorModes":{"properties":{"light":{"$ref":"#/components/schemas/PersonalizationCustomColors"},"dark":{"$ref":"#/components/schemas/PersonalizationCustomColors"}},"type":"object","title":"PersonalizationCustomColorModes"},"PersonalizationCustomColors":{"properties":{"accent":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Accent"},"background":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Background"},"foreground":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Foreground"}},"type":"object","title":"PersonalizationCustomColors"},"PersonalizationCustomization":{"properties":{"colors":{"$ref":"#/components/schemas/PersonalizationCustomColorModes"},"uiFont":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Uifont"},"headingFont":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Headingfont"},"chatFont":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Chatfont"},"codeFont":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Codefont"},"importedFonts":{"items":{"$ref":"#/components/schemas/PersonalizationImportedFont"},"type":"array","maxItems":3,"title":"Importedfonts"},"uiFontSize":{"anyOf":[{"type":"integer","maximum":20.0,"minimum":12.0},{"type":"null"}],"title":"Uifontsize"},"codeFontSize":{"anyOf":[{"type":"integer","maximum":20.0,"minimum":10.0},{"type":"null"}],"title":"Codefontsize"},"chatWidth":{"type":"string","enum":["standard","wide","full"],"title":"Chatwidth","default":"standard"},"sentAttachments":{"type":"string","enum":["auto","list","chips"],"title":"Sentattachments","default":"auto"},"contrast":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Contrast","default":50},"composerOutline":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Composeroutline"},"elementOutline":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Elementoutline"},"pointerCursors":{"type":"boolean","title":"Pointercursors","default":false},"reduceMotion":{"type":"string","enum":["system","on","off"],"title":"Reducemotion","default":"on"},"fontSmoothing":{"type":"boolean","title":"Fontsmoothing","default":true},"codeLineNumbers":{"type":"boolean","title":"Codelinenumbers","default":false},"codeWordWrap":{"type":"boolean","title":"Codewordwrap","default":false},"codeLigatures":{"type":"boolean","title":"Codeligatures","default":true},"sidebarMenu":{"items":{"$ref":"#/components/schemas/PersonalizationSidebarMenuItem"},"type":"array","maxItems":32,"title":"Sidebarmenu"},"sidebarNav":{"items":{"$ref":"#/components/schemas/PersonalizationSidebarNavItem"},"type":"array","maxItems":48,"title":"Sidebarnav"},"sidebarNavAuto":{"anyOf":[{"items":{"type":"string","enum":["hub","projects","library","images","video","audio","train","recipes","export","api","tasks","translate"]},"type":"array","maxItems":48},{"type":"null"}],"title":"Sidebarnavauto"}},"type":"object","title":"PersonalizationCustomization"},"PersonalizationImportedFont":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"dataUrl":{"type":"string","maxLength":2200000,"title":"Dataurl"}},"type":"object","required":["name","dataUrl"],"title":"PersonalizationImportedFont"},"PersonalizationPayload":{"properties":{"version":{"type":"integer","title":"Version","default":1},"profile":{"$ref":"#/components/schemas/PersonalizationProfile"},"appearance":{"$ref":"#/components/schemas/PersonalizationAppearance"}},"type":"object","title":"PersonalizationPayload"},"PersonalizationProfile":{"properties":{"displayName":{"type":"string","maxLength":200,"title":"Displayname","default":""},"nickname":{"type":"string","maxLength":200,"title":"Nickname","default":""},"avatarDataUrl":{"anyOf":[{"type":"string","maxLength":524288},{"type":"null"}],"title":"Avatardataurl"},"avatarShape":{"type":"string","enum":["circle","rounded"],"title":"Avatarshape","default":"circle"},"showGreetingSloth":{"type":"boolean","title":"Showgreetingsloth","default":true},"greetingStyle":{"type":"string","enum":["text","image"],"title":"Greetingstyle","default":"text"},"greetingIcon":{"type":"string","enum":["sloth","custom","none"],"title":"Greetingicon","default":"sloth"},"greetingIconDataUrl":{"anyOf":[{"type":"string","maxLength":98304,"pattern":"^data:image/(?:png|jpeg|webp|gif);base64,[A-Za-z0-9+/=]+$"},{"type":"null"}],"title":"Greetingicondataurl"},"greetingText":{"type":"string","maxLength":100,"title":"Greetingtext","default":""},"greetingImageDataUrl":{"anyOf":[{"type":"string","maxLength":524288,"pattern":"^data:image/(?:png|jpeg|webp|gif);base64,[A-Za-z0-9+/=]+$"},{"type":"null"}],"title":"Greetingimagedataurl"}},"type":"object","title":"PersonalizationProfile"},"PersonalizationResponse":{"properties":{"version":{"type":"integer","title":"Version","default":1},"profile":{"$ref":"#/components/schemas/PersonalizationProfile"},"appearance":{"$ref":"#/components/schemas/PersonalizationAppearance"},"saved":{"type":"boolean","title":"Saved","default":false},"customizationSaved":{"type":"boolean","title":"Customizationsaved","default":false},"chatWidthSaved":{"type":"boolean","title":"Chatwidthsaved","default":false},"sentAttachmentsSaved":{"type":"boolean","title":"Sentattachmentssaved","default":false},"paletteSaved":{"type":"boolean","title":"Palettesaved","default":false},"greetingSlothSaved":{"type":"boolean","title":"Greetingslothsaved","default":false},"greetingCustomSaved":{"type":"boolean","title":"Greetingcustomsaved","default":false}},"type":"object","title":"PersonalizationResponse"},"PersonalizationSidebarMenuItem":{"properties":{"id":{"type":"string","enum":["api","darkMode","guidedTour","profile","appearance","resources","chat","connections"],"title":"Id"},"visible":{"type":"boolean","title":"Visible","default":true}},"type":"object","required":["id"],"title":"PersonalizationSidebarMenuItem"},"PersonalizationSidebarNavItem":{"properties":{"id":{"type":"string","enum":["hub","projects","library","images","video","audio","train","recipes","export","api","tasks","translate"],"title":"Id"},"pinned":{"type":"boolean","title":"Pinned","default":true}},"type":"object","required":["id"],"title":"PersonalizationSidebarNavItem"},"PinnedModelsPayload":{"properties":{"pinned":{"anyOf":[{"items":{"type":"string","maxLength":4673,"minLength":1},"type":"array","maxItems":512},{"type":"null"}],"title":"Pinned"},"connected":{"anyOf":[{"items":{"type":"string","maxLength":4673,"minLength":1},"type":"array","maxItems":512},{"type":"null"}],"title":"Connected"},"embedding":{"anyOf":[{"items":{"type":"string","maxLength":4673,"minLength":1},"type":"array","maxItems":512},{"type":"null"}],"title":"Embedding"}},"additionalProperties":false,"type":"object","title":"PinnedModelsPayload","description":"Either list may be omitted; only what is sent is replaced."},"PinnedModelsResponse":{"properties":{"pinned":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Pinned"},"connected":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Connected"},"embedding":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Embedding"}},"type":"object","title":"PinnedModelsResponse"},"PlusMenuPrefsPayload":{"properties":{"pins":{"anyOf":[{"additionalProperties":{"type":"boolean"},"propertyNames":{"maxLength":64},"type":"object","maxProperties":64},{"type":"null"}],"title":"Pins"},"order":{"anyOf":[{"items":{"type":"string","maxLength":64},"type":"array","maxItems":64},{"type":"null"}],"title":"Order"},"pinnedPromptIds":{"anyOf":[{"items":{"type":"string","maxLength":256},"type":"array","maxItems":500},{"type":"null"}],"title":"Pinnedpromptids"},"pinnedListIds":{"anyOf":[{"items":{"type":"string","maxLength":256},"type":"array","maxItems":500},{"type":"null"}],"title":"Pinnedlistids"}},"type":"object","title":"PlusMenuPrefsPayload"},"PreviewLinkRotateResponse":{"properties":{"rotated":{"type":"boolean","title":"Rotated","default":true}},"type":"object","title":"PreviewLinkRotateResponse"},"PreviewSharingPayload":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"PreviewSharingPayload"},"PreviewSharingResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"default_enabled":{"type":"boolean","title":"Default Enabled","default":true}},"type":"object","required":["enabled"],"title":"PreviewSharingResponse"},"ProjectChange":{"properties":{"path":{"type":"string","title":"Path"},"status":{"type":"string","enum":["modified","added","deleted","renamed","untracked","conflicted"],"title":"Status"}},"type":"object","required":["path","status"],"title":"ProjectChange"},"ProjectChanges":{"properties":{"repo":{"type":"boolean","title":"Repo"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"changes":{"items":{"$ref":"#/components/schemas/ProjectChange"},"type":"array","title":"Changes"},"truncated":{"type":"boolean","title":"Truncated"}},"type":"object","required":["repo","changes","truncated"],"title":"ProjectChanges"},"ProjectCopy":{"properties":{"id":{"type":"string","maxLength":4096,"title":"Id"},"projectId":{"type":"string","maxLength":256,"title":"Projectid"}},"type":"object","required":["id","projectId"],"title":"ProjectCopy"},"ProjectFileEntry":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","enum":["dir","file"],"title":"Kind"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"hidden":{"type":"boolean","title":"Hidden","default":false}},"type":"object","required":["name","kind"],"title":"ProjectFileEntry"},"ProjectFileListing":{"properties":{"root":{"type":"string","title":"Root"},"path":{"type":"string","title":"Path"},"entries":{"items":{"$ref":"#/components/schemas/ProjectFileEntry"},"type":"array","title":"Entries"},"truncated":{"type":"boolean","title":"Truncated"},"chosen":{"type":"boolean","title":"Chosen"}},"type":"object","required":["root","path","entries","truncated","chosen"],"title":"ProjectFileListing"},"ProjectFileMatch":{"properties":{"path":{"type":"string","title":"Path"},"name":{"type":"string","title":"Name"}},"type":"object","required":["path","name"],"title":"ProjectFileMatch"},"ProjectFileSearch":{"properties":{"results":{"items":{"$ref":"#/components/schemas/ProjectFileMatch"},"type":"array","title":"Results"},"truncated":{"type":"boolean","title":"Truncated"}},"type":"object","required":["results","truncated"],"title":"ProjectFileSearch"},"PromptEntry":{"properties":{"id":{"type":"string","maxLength":128,"title":"Id"},"name":{"type":"string","maxLength":500,"title":"Name"},"text":{"type":"string","maxLength":100000,"title":"Text"},"createdAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Createdat"},"updatedAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Updatedat"}},"type":"object","required":["id","name","text","createdAt","updatedAt"],"title":"PromptEntry"},"PromptList":{"properties":{"id":{"type":"string","maxLength":128,"title":"Id"},"name":{"type":"string","maxLength":500,"title":"Name"},"items":{"items":{"type":"string"},"type":"array","maxItems":10000,"title":"Items"},"createdAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Createdat"},"updatedAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Updatedat"}},"type":"object","required":["id","name","items","createdAt","updatedAt"],"title":"PromptList"},"PromptUpsamplerDownloadRequest":{"properties":{"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Hugging Face token for the download"}},"type":"object","title":"PromptUpsamplerDownloadRequest","description":"Body of POST /images/prompt-upsampler/download (optional)."},"PromptUpsamplerPreviewRequest":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"The prompt as typed"},"reference_images":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Reference Images","description":"Reference images (base64/data-URL, as /images/generate) for an edit, in order"},"variant":{"anyOf":[{"type":"string","enum":["distilled","base"]},{"type":"null"}],"title":"Variant","description":"Sampling variant; null = the loaded FLUX.3 family's (distilled when none is loaded)"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family","description":"Image family whose enhancer runs (minimax-h3-image: its Qwen3.5-9B enhancer); null = the loaded family's, FLUX.3's upsampler for every other family"}},"type":"object","required":["prompt"],"title":"PromptUpsamplerPreviewRequest","description":"Enhance one prompt with the FLUX.3 prompt upsampler without generating."},"PromptUpsamplerPreviewResponse":{"properties":{"enhanced_prompt":{"type":"string","title":"Enhanced Prompt","description":"The caption the upsampler wrote"}},"type":"object","required":["enhanced_prompt"],"title":"PromptUpsamplerPreviewResponse"},"ProviderCreate":{"properties":{"auto_compact_percent":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":10.0},{"type":"null"}],"title":"Auto Compact Percent","description":"Optional share of the model's context window, in percent, after which chats on this connection compact; replaces auto_compact_tokens and the 75% default"},"auto_compact_percent_by_model":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Auto Compact Percent By Model","description":"Optional per-model auto_compact_percent, keyed by model ID; a model without one uses the connection's"},"extra_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Extra Headers","description":"Optional request headers. Values may include {{CHAT_SESSION_ID}}."},"api_type":{"type":"string","enum":["chat_completions","responses","systemone"],"title":"Api Type","default":"chat_completions"},"reasoning_config":{"anyOf":[{"$ref":"#/components/schemas/ProviderReasoningConfig"},{"type":"null"}]},"provider_type":{"type":"string","title":"Provider Type","description":"Provider type from the registry"},"display_name":{"type":"string","title":"Display Name","description":"User-chosen label (e.g. 'My OpenAI Key')"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url","description":"Custom base URL (overrides registry default). Omit to use the default."},"models":{"items":{"type":"string"},"type":"array","title":"Models","description":"Enabled model IDs for this connection"},"available_models":{"items":{"type":"string"},"type":"array","title":"Available Models","description":"Discovered catalog model IDs last fetched for this connection"},"max_output_tokens":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":64.0},{"type":"null"}],"title":"Max Output Tokens","description":"Optional maximum Max Tokens cap for this connection"},"auto_compact_tokens":{"anyOf":[{"type":"integer","maximum":1200000.0,"minimum":1000.0},{"type":"null"}],"title":"Auto Compact Tokens","description":"Optional token count after which chats on this connection compact, instead of the default three quarters of the model's context window"},"compaction_mode":{"anyOf":[{"type":"string","enum":["summary","rolling","checkpoint"]},{"type":"null"}],"title":"Compaction Mode","description":"What chats on this connection do once they pass the auto-compact trigger: 'summary' (the default) asks the same model to summarise the older turns; 'rolling' drops just enough whole oldest turns on each request; 'checkpoint' resets to the latest turn. Neither makes a summary call, and dropped turns go to the thread's archive, where search_conversation finds them"},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key","description":"Optional RSA-encrypted API key to persist for this connection"},"shared":{"type":"boolean","title":"Shared","description":"Let every account on this installation use this connection (owner only)","default":false}},"type":"object","required":["provider_type","display_name"],"title":"ProviderCreate","description":"Request to create a saved provider configuration."},"ProviderCredentialMigration":{"properties":{"encrypted_api_key":{"type":"string","minLength":1,"title":"Encrypted Api Key","description":"RSA-encrypted legacy API key to insert only when no key exists"}},"type":"object","required":["encrypted_api_key"],"title":"ProviderCredentialMigration","description":"One-time browser credential migration that never replaces a saved key."},"ProviderModelCapabilityInfo":{"properties":{"id":{"type":"string","title":"Id"},"input_modalities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Input Modalities"},"reasoning":{"anyOf":[{"$ref":"#/components/schemas/ProviderModelReasoningInfo"},{"type":"null"}]},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"supported_parameters":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Supported Parameters"}},"type":"object","required":["id"],"title":"ProviderModelCapabilityInfo"},"ProviderModelInfo":{"properties":{"id":{"type":"string","title":"Id","description":"Model ID as expected by the provider API"},"display_name":{"type":"string","title":"Display Name","description":"Human-readable model name","default":""},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length","description":"Maximum context length in tokens"},"owned_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owned By","description":"Model owner/organization"},"capabilities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Capabilities","description":"Per-model capability names (Ollama /api/tags: thinking, tools, vision, ...)"}},"type":"object","required":["id"],"title":"ProviderModelInfo","description":"A model available from an external provider."},"ProviderModelReasoningInfo":{"properties":{"supported_efforts":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Supported Efforts"},"mandatory":{"type":"boolean","title":"Mandatory","default":false},"default_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Effort"},"default_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Default Enabled"}},"type":"object","title":"ProviderModelReasoningInfo"},"ProviderModelsRequest":{"properties":{"extra_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Extra Headers","description":"Optional request headers. Values may include {{CHAT_SESSION_ID}}."},"api_type":{"type":"string","enum":["chat_completions","responses","systemone"],"title":"Api Type","default":"chat_completions"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id","description":"Saved provider config whose stored key may be used"},"provider_type":{"type":"string","title":"Provider Type","description":"Provider type from the registry"},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key","description":"RSA-encrypted, base64-encoded API key (optional for local providers)"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url","description":"Custom base URL (overrides registry default)"}},"type":"object","required":["provider_type"],"title":"ProviderModelsRequest","description":"Request to list models from an external provider."},"ProviderReasoningConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"style":{"type":"string","enum":["reasoning_effort","reasoning","thinking","chat_template_kwargs.enable_thinking"],"title":"Style"}},"additionalProperties":false,"type":"object","required":["enabled","style"],"title":"ProviderReasoningConfig","description":"Explicit Custom Chat Completions wire dialect, never inferred from the URL."},"ProviderRegistryEntry":{"properties":{"provider_type":{"type":"string","title":"Provider Type","description":"Provider identifier (e.g. 'openai', 'mistral')"},"display_name":{"type":"string","title":"Display Name","description":"Human-readable provider name"},"base_url":{"type":"string","title":"Base Url","description":"Default API base URL"},"default_models":{"items":{"type":"string"},"type":"array","title":"Default Models","description":"Well-known model IDs for this provider"},"model_capabilities":{"additionalProperties":{"additionalProperties":{"type":"boolean"},"type":"object"},"type":"object","title":"Model Capabilities"},"supports_streaming":{"type":"boolean","title":"Supports Streaming","description":"Whether this provider supports SSE streaming","default":true},"supports_vision":{"type":"boolean","title":"Supports Vision","description":"Whether this provider supports vision/image input","default":false},"supports_tool_calling":{"type":"boolean","title":"Supports Tool Calling","description":"Whether this provider supports tool/function calling","default":false},"supports_studio_tools":{"type":"boolean","title":"Supports Studio Tools","description":"Whether Unsloth runs its own tool loop (search/code/MCP/RAG) against this provider","default":false},"hidden":{"type":"boolean","title":"Hidden","description":"Backend-only entry; the UI surfaces it via a custom preset, not the dropdown","default":false},"auth_kind":{"type":"string","enum":["api_key","chatgpt_oauth"],"title":"Auth Kind","default":"api_key"},"api_key_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Url","description":"Provider console page where an API key is created"},"base_url_editable":{"type":"boolean","title":"Base Url Editable","default":true},"model_ids_editable":{"type":"boolean","title":"Model Ids Editable","default":true},"model_list_mode":{"type":"string","enum":["remote","curated"],"title":"Model List Mode","description":"remote = fetch /models; curated = huge catalogs — UI uses defaults + manual IDs only","default":"remote"}},"type":"object","required":["provider_type","display_name","base_url"],"title":"ProviderRegistryEntry","description":"A supported provider type with its default configuration."},"ProviderResponse":{"properties":{"api_type":{"type":"string","enum":["chat_completions","responses","systemone"],"title":"Api Type","default":"chat_completions"},"reasoning_config":{"anyOf":[{"$ref":"#/components/schemas/ProviderReasoningConfig"},{"type":"null"}]},"id":{"type":"string","title":"Id","description":"Unique provider config ID"},"provider_type":{"type":"string","title":"Provider Type","description":"Provider type (e.g. 'openai')"},"display_name":{"type":"string","title":"Display Name","description":"User-chosen label"},"base_url":{"type":"string","title":"Base Url","description":"API base URL"},"is_enabled":{"type":"boolean","title":"Is Enabled","description":"Whether this provider is enabled","default":true},"has_api_key":{"type":"boolean","title":"Has Api Key","description":"Whether this caller has a saved API key","default":false},"auth_kind":{"type":"string","enum":["api_key","chatgpt_oauth"],"title":"Auth Kind","default":"api_key"},"auth_status":{"type":"string","enum":["disconnected","connected","reauthorization_required"],"title":"Auth Status","default":"disconnected"},"models":{"items":{"type":"string"},"type":"array","title":"Models","description":"Enabled model IDs for this connection"},"available_models":{"items":{"type":"string"},"type":"array","title":"Available Models","description":"Discovered catalog model IDs last fetched for this connection"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens","description":"Configured maximum Max Tokens cap for this connection"},"auto_compact_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Compact Tokens","description":"Configured auto-compact trigger for this connection, in tokens"},"auto_compact_percent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Compact Percent","description":"Configured auto-compact share of the model's window, in percent"},"auto_compact_percent_by_model":{"additionalProperties":{"type":"integer"},"type":"object","title":"Auto Compact Percent By Model","description":"Configured per-model auto-compact percent, keyed by model ID"},"compaction_mode":{"anyOf":[{"type":"string","enum":["summary","rolling","checkpoint"]},{"type":"null"}],"title":"Compaction Mode","description":"Configured compaction mode for this connection; null is 'summary'"},"extra_headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Extra Headers","description":"Optional request headers. Values may include {{CHAT_SESSION_ID}}."},"shared":{"type":"boolean","title":"Shared","description":"Whether every account on this installation can use it","default":false},"shared_by_owner":{"type":"boolean","title":"Shared By Owner","description":"The installation owner shared this connection; this account can use but not edit it","default":false},"created_at":{"type":"string","title":"Created At","description":"ISO 8601 creation timestamp"},"updated_at":{"type":"string","title":"Updated At","description":"ISO 8601 last-update timestamp"}},"type":"object","required":["id","provider_type","display_name","base_url","created_at","updated_at"],"title":"ProviderResponse","description":"A saved provider configuration (returned by list/get endpoints)."},"ProviderTestRequest":{"properties":{"extra_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Extra Headers","description":"Optional request headers. Values may include {{CHAT_SESSION_ID}}."},"api_type":{"type":"string","enum":["chat_completions","responses","systemone"],"title":"Api Type","default":"chat_completions"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id","description":"Saved provider config whose stored key may be used"},"provider_type":{"type":"string","title":"Provider Type","description":"Provider type from the registry"},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key","description":"RSA-encrypted, base64-encoded API key (optional for local providers)"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url","description":"Custom base URL (overrides registry default)"},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id","description":"Model ID for providers that need a chat probe"}},"type":"object","required":["provider_type"],"title":"ProviderTestRequest","description":"Request to test connectivity to an external provider."},"ProviderTestResult":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the test succeeded"},"message":{"type":"string","title":"Message","description":"Human-readable result message"},"models_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Models Count","description":"Number of models found (if test succeeded)"},"error_kind":{"anyOf":[{"type":"string","enum":["auth","billing","rate_limit","not_found","unreachable","timeout","invalid_url","other"]},{"type":"null"}],"title":"Error Kind","description":"Why a failed test failed, for the UI to point at the fix"}},"type":"object","required":["success","message"],"title":"ProviderTestResult","description":"Result of a provider connectivity test."},"ProviderUpdate":{"properties":{"auto_compact_percent":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":10.0},{"type":"null"}],"title":"Auto Compact Percent","description":"Optional share of the model's context window, in percent, after which chats on this connection compact; replaces auto_compact_tokens and the 75% default"},"auto_compact_percent_by_model":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Auto Compact Percent By Model","description":"Optional per-model auto_compact_percent, keyed by model ID; a model without one uses the connection's"},"extra_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Extra Headers","description":"Optional request headers. Values may include {{CHAT_SESSION_ID}}."},"api_type":{"anyOf":[{"type":"string","enum":["chat_completions","responses","systemone"]},{"type":"null"}],"title":"Api Type"},"reasoning_config":{"anyOf":[{"$ref":"#/components/schemas/ProviderReasoningConfig"},{"type":"null"}]},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name","description":"New display name"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url","description":"New base URL"},"is_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enabled","description":"Enable or disable this provider"},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models","description":"Enabled model IDs for this connection"},"available_models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Available Models","description":"Discovered catalog model IDs last fetched for this connection"},"max_output_tokens":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":64.0},{"type":"null"}],"title":"Max Output Tokens","description":"Optional maximum Max Tokens cap for this connection"},"auto_compact_tokens":{"anyOf":[{"type":"integer","maximum":1200000.0,"minimum":1000.0},{"type":"null"}],"title":"Auto Compact Tokens","description":"Optional token count after which chats on this connection compact, instead of the default three quarters of the model's context window"},"compaction_mode":{"anyOf":[{"type":"string","enum":["summary","rolling","checkpoint"]},{"type":"null"}],"title":"Compaction Mode","description":"What chats on this connection do once they pass the auto-compact trigger: 'summary' (the default) asks the same model to summarise the older turns; 'rolling' drops just enough whole oldest turns on each request; 'checkpoint' resets to the latest turn. Neither makes a summary call, and dropped turns go to the thread's archive, where search_conversation finds them"},"encrypted_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Api Key","description":"Optional RSA-encrypted replacement API key; omission preserves the saved key"},"clear_api_key":{"type":"boolean","title":"Clear Api Key","description":"Explicitly remove the saved API key","default":false},"shared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Shared","description":"Let every account on this installation use this connection (owner only)"}},"type":"object","title":"ProviderUpdate","description":"Request to update a saved provider configuration."},"PublishDatasetRequest":{"properties":{"repo_id":{"type":"string","minLength":3,"title":"Repo Id","description":"Hugging Face dataset repo ID"},"description":{"type":"string","maxLength":4000,"minLength":1,"title":"Description","description":"Short dataset description for the dataset card"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"Optional Hugging Face token for private or write-protected repos"},"private":{"type":"boolean","title":"Private","description":"Create or update the dataset repo as private","default":false},"artifact_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Path","description":"Execution artifact path captured by the UI for completed runs"}},"type":"object","required":["repo_id","description"],"title":"PublishDatasetRequest"},"PublishDatasetResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"url":{"type":"string","title":"Url"},"message":{"type":"string","title":"Message"}},"type":"object","required":["url","message"],"title":"PublishDatasetResponse"},"QuestionIn":{"properties":{"type":{"type":"string","title":"Type"},"instructions":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Instructions"},"criteria":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Criteria"}},"additionalProperties":false,"type":"object","required":["type"],"title":"QuestionIn"},"ReapOptions":{"properties":{"sparsity":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Sparsity","description":"Fraction of the routed experts to remove in every MoE layer.","default":0.25},"num_calibration_samples":{"type":"integer","maximum":4096.0,"minimum":8.0,"title":"Num Calibration Samples","description":"Calibration conversations used to score the experts.","default":512},"dataset":{"anyOf":[{"type":"string","maxLength":200,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*(/[A-Za-z0-9][A-Za-z0-9._-]*)?$"},{"type":"null"}],"title":"Dataset","description":"Hugging Face dataset id for calibration (default mlabonne/open-perfectblend)."}},"type":"object","title":"ReapOptions","description":"Opt-in REAP expert pruning (arXiv:2510.13999) applied to an MoE model before it is exported."},"RecipePayload":{"properties":{"recipe":{"additionalProperties":true,"type":"object","title":"Recipe"},"run":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Run"},"ui":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ui"}},"type":"object","title":"RecipePayload"},"RecipeRecord":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id"},"name":{"type":"string","maxLength":10000,"title":"Name"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"createdAt":{"type":"integer","maximum":9007199254740992.0,"minimum":0.0,"title":"Createdat"},"updatedAt":{"type":"integer","maximum":9007199254740992.0,"minimum":0.0,"title":"Updatedat"},"learningRecipeId":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Learningrecipeid"},"learningRecipeTitle":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Learningrecipetitle"}},"type":"object","required":["id","name","payload","createdAt","updatedAt"],"title":"RecipeRecord"},"RefreshTokenRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token","description":"Refresh token from a previous login or refresh"}},"type":"object","required":["refresh_token"],"title":"RefreshTokenRequest","description":"Refresh token payload to obtain new access + refresh tokens."},"RemoteAccessAutoStartPayload":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"RemoteAccessAutoStartPayload"},"RemoteAccessResponse":{"properties":{"state":{"type":"string","enum":["off","starting","online","stopping","error"],"title":"State"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"auto_start":{"type":"boolean","title":"Auto Start"},"default_auto_start":{"type":"boolean","title":"Default Auto Start","default":false},"available":{"type":"boolean","title":"Available"},"managed_by":{"anyOf":[{"type":"string","enum":["launch","settings","colab"]},{"type":"null"}],"title":"Managed By"},"can_start":{"type":"boolean","title":"Can Start"},"can_stop":{"type":"boolean","title":"Can Stop"},"block_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Reason"},"password_pending":{"type":"boolean","title":"Password Pending","default":false},"streaming_supported":{"type":"boolean","title":"Streaming Supported","default":true}},"type":"object","required":["state","auto_start","available","can_start","can_stop"],"title":"RemoteAccessResponse"},"RemoveScanFolderResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"}},"type":"object","required":["ok"],"title":"RemoveScanFolderResponse"},"ResearchMcpSource":{"properties":{"serverId":{"type":"string","maxLength":200,"minLength":1,"title":"Serverid"},"tool":{"type":"string","maxLength":500,"minLength":1,"title":"Tool"}},"additionalProperties":false,"type":"object","required":["serverId","tool"],"title":"ResearchMcpSource"},"ResearchPlan":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"steps":{"items":{"$ref":"#/components/schemas/ResearchPlanStep"},"type":"array","maxItems":30,"minItems":1,"title":"Steps"}},"additionalProperties":false,"type":"object","required":["title","steps"],"title":"ResearchPlan"},"ResearchPlanStep":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"query":{"type":"string","maxLength":500,"minLength":1,"title":"Query"}},"additionalProperties":false,"type":"object","required":["title","query"],"title":"ResearchPlanStep"},"ResponsesCustomToolCallInputItem":{"properties":{"type":{"type":"string","const":"custom_tool_call","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"call_id":{"type":"string","title":"Call Id"},"name":{"type":"string","title":"Name"},"input":{"type":"string","title":"Input","description":"Raw freeform input the model produced."},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"type":"object","required":["type","call_id","name","input"],"title":"ResponsesCustomToolCallInputItem","description":"A prior assistant custom_tool_call replayed by a Responses client."},"ResponsesCustomToolCallOutputInputItem":{"properties":{"type":{"type":"string","const":"custom_tool_call_output","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"call_id":{"type":"string","title":"Call Id"},"output":{"anyOf":[{"type":"string"},{"items":{},"type":"array"}],"title":"Output"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"type":"object","required":["type","call_id","output"],"title":"ResponsesCustomToolCallOutputInputItem","description":"A client result for a prior custom_tool_call."},"ResponsesFunctionCallInputItem":{"properties":{"type":{"type":"string","const":"function_call","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Item id assigned by the server (e.g. fc_...)"},"call_id":{"type":"string","title":"Call Id","description":"Correlation id matching a function_call_output on the next turn."},"name":{"type":"string","title":"Name"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace"},"arguments":{"type":"string","title":"Arguments","description":"JSON string of the arguments the model produced."},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"type":"object","required":["type","call_id","name","arguments"],"title":"ResponsesFunctionCallInputItem","description":"A prior assistant function_call replayed in a multi-turn Responses input.\n\nTool calls are top-level input items (not nested), correlated by ``call_id``."},"ResponsesFunctionCallOutputInputItem":{"properties":{"type":{"type":"string","const":"function_call_output","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"call_id":{"type":"string","title":"Call Id"},"output":{"anyOf":[{"type":"string"},{"items":{},"type":"array"}],"title":"Output","description":"String or content-array result of the tool call."},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"type":"object","required":["type","call_id","output"],"title":"ResponsesFunctionCallOutputInputItem","description":"A tool result supplied by the client for a prior function_call.\n\nReplaces Chat Completions' ``role=\"tool\"`` message. Correlated to its\noriginating call by ``call_id``."},"ResponsesInputImagePart":{"properties":{"type":{"type":"string","const":"input_image","title":"Type"},"image_url":{"type":"string","title":"Image Url","description":"data:image/png;base64,... or https://..."},"detail":{"anyOf":[{"type":"string","enum":["auto","low","high","original"]},{"type":"null"}],"title":"Detail","default":"auto"}},"type":"object","required":["type","image_url"],"title":"ResponsesInputImagePart","description":"Image content part in a Responses API message (type=input_image)."},"ResponsesInputMessage":{"properties":{"type":{"anyOf":[{"type":"string","const":"message"},{"type":"null"}],"title":"Type"},"role":{"type":"string","enum":["system","user","assistant","developer"],"title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponsesInputTextPart"},{"$ref":"#/components/schemas/ResponsesInputImagePart"},{"$ref":"#/components/schemas/ResponsesOutputTextPart"},{"$ref":"#/components/schemas/ResponsesUnknownContentPart"}]},"type":"array"}],"title":"Content"}},"additionalProperties":true,"type":"object","required":["role","content"],"title":"ResponsesInputMessage","description":"A single message in the Responses API input array."},"ResponsesInputTextPart":{"properties":{"type":{"type":"string","const":"input_text","title":"Type"},"text":{"type":"string","title":"Text"}},"type":"object","required":["type","text"],"title":"ResponsesInputTextPart","description":"Text content part in a Responses API message (type=input_text)."},"ResponsesOutputTextPart":{"properties":{"type":{"type":"string","const":"output_text","title":"Type"},"text":{"type":"string","title":"Text"},"annotations":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Annotations"},"logprobs":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Logprobs"}},"additionalProperties":true,"type":"object","required":["type","text"],"title":"ResponsesOutputTextPart","description":"Assistant ``output_text`` content part replayed on subsequent turns.\n\nClients looping on a stateless Responses endpoint round-trip prior assistant\nmessages as ``output_text`` parts; we keep the text and ignore the\nannotations/logprobs when flattening into Chat Completions."},"ResponsesRequest":{"properties":{"model":{"type":"string","title":"Model","description":"Model identifier","default":"default"},"input":{"anyOf":[{"type":"string"},{"items":{"oneOf":[{"$ref":"#/components/schemas/ResponsesInputMessage"},{"$ref":"#/components/schemas/ResponsesFunctionCallInputItem"},{"$ref":"#/components/schemas/ResponsesFunctionCallOutputInputItem"},{"$ref":"#/components/schemas/ResponsesCustomToolCallInputItem"},{"$ref":"#/components/schemas/ResponsesCustomToolCallOutputInputItem"},{"$ref":"#/components/schemas/ResponsesUnknownInputItem"}]},"type":"array"}],"title":"Input","description":"Input text or list of messages / function_call / function_call_output items","default":[]},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions","description":"System / developer instructions"},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P"},"seed":{"anyOf":[{"type":"integer","maximum":1.8446744073709552e+19,"minimum":-9.223372036854776e+18},{"type":"null"}],"title":"Seed","description":"[x-unsloth] Best-effort deterministic sampling seed."},"max_output_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Output Tokens"},"stream":{"type":"boolean","title":"Stream","description":"Whether to stream the response via SSE","default":false},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools","description":"Responses-shape tool definitions. Function tools and Codex's custom `apply_patch` are translated to the Chat Completions nested shape before being forwarded to llama-server; other tool types (built-in web_search, file_search, mcp, ...) are accepted for SDK compatibility but ignored on the llama-server passthrough."},"tool_choice":{"anyOf":[{},{"type":"null"}],"title":"Tool Choice","description":"'auto' | 'required' | 'none' | {'type': 'function', 'name': ...} — the Responses-shape forcing object is translated to the Chat Completions nested shape internally."},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls"},"previous_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Response Id"},"store":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Store"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"truncation":{"anyOf":[{},{"type":"null"}],"title":"Truncation"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"text":{"anyOf":[{},{"type":"null"}],"title":"Text"},"reasoning":{"anyOf":[{},{"type":"null"}],"title":"Reasoning"}},"additionalProperties":true,"type":"object","title":"ResponsesRequest","description":"OpenAI Responses API request."},"ResponsesUnknownContentPart":{"properties":{"type":{"type":"string","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ResponsesUnknownContentPart","description":"Catch-all for unmodelled content-part types.\n\nKeeps validation green for newer part types (e.g. ``input_audio``) so an unrelated turn\nis never answered with a 422 schema dump. Normalisation then refuses the part by name,\nthe way ``UnknownContentPart`` is refused on the Chat Completions side: landing here\nmeans the part was understood well enough to say what it is, not that it can be served."},"ResponsesUnknownInputItem":{"properties":{"type":{"type":"string","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ResponsesUnknownInputItem","description":"Catch-all for unmodelled Responses input item types.\n\nCovers ``reasoning`` items and future types, so unrelated turns don't 422.\nNormalisation replays reasoning text, refuses ``item_reference``, drops the rest."},"RestyleSetupRequest":{"properties":{"hf_token":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Hf Token"}},"type":"object","title":"RestyleSetupRequest"},"RetryResearchRun":{"properties":{"budgets":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Budgets"},"websitePolicy":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Websitepolicy"}},"type":"object","title":"RetryResearchRun"},"RunNowRequest":{"properties":{"loadModel":{"type":"boolean","title":"Loadmodel","default":false}},"additionalProperties":false,"type":"object","title":"RunNowRequest"},"S3Config":{"properties":{"bucket":{"type":"string","title":"Bucket","description":"S3 bucket name"},"region":{"type":"string","title":"Region","description":"AWS region","default":"us-east-1"},"prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefix","description":"Optional path prefix within bucket"},"accessKeyId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accesskeyid","description":"AWS access key ID (optional if using IAM role)"},"secretAccessKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secretaccesskey","description":"AWS secret access key (optional if using IAM role)"},"useIamRole":{"type":"boolean","title":"Useiamrole","description":"Use IAM role credentials instead of access keys","default":false}},"type":"object","required":["bucket"],"title":"S3Config","description":"S3 bucket configuration for loading datasets from AWS S3"},"SandboxAttachment":{"properties":{"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Sha256"},"name":{"type":"string","maxLength":1024,"title":"Name"}},"type":"object","required":["sha256","name"],"title":"SandboxAttachment"},"SandboxCapabilityResponse":{"properties":{"platform":{"type":"string","title":"Platform"},"python_os_isolated":{"type":"boolean","title":"Python Os Isolated"},"terminal_os_isolated":{"type":"boolean","title":"Terminal Os Isolated"},"backend":{"type":"string","title":"Backend"},"reason":{"type":"string","title":"Reason"},"setup_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setup Action"},"manual_command":{"type":"string","title":"Manual Command","default":""},"can_run_setup":{"type":"boolean","title":"Can Run Setup","default":false},"setup_blocked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setup Blocked"},"needs_consent":{"type":"boolean","title":"Needs Consent","default":false}},"type":"object","required":["platform","python_os_isolated","terminal_os_isolated","backend","reason"],"title":"SandboxCapabilityResponse"},"SandboxMemoryStatus":{"properties":{"limit_gb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit Gb"},"saved_gb":{"type":"integer","title":"Saved Gb"},"default_gb":{"type":"integer","title":"Default Gb"},"auto":{"type":"boolean","title":"Auto","default":true},"min_gb":{"type":"integer","title":"Min Gb"},"max_gb":{"type":"integer","title":"Max Gb"},"locked_by_environment":{"type":"boolean","title":"Locked By Environment"}},"type":"object","required":["saved_gb","default_gb","min_gb","max_gb","locked_by_environment"],"title":"SandboxMemoryStatus"},"SandboxPrepareJob":{"properties":{"state":{"type":"string","enum":["idle","running","succeeded","declined","failed"],"title":"State"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"started_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Finished At"},"exit_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exit Code"},"output_tail":{"items":{"type":"string"},"type":"array","title":"Output Tail"},"steps":{"items":{"type":"string"},"type":"array","title":"Steps"}},"type":"object","required":["state"],"title":"SandboxPrepareJob"},"SandboxSettingsPayload":{"properties":{"allow_dacl_fallback":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Dacl Fallback"},"persistent_read_grants":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Persistent Read Grants"},"memory_limit_gb":{"anyOf":[{"type":"integer","maximum":4096.0,"minimum":1.0},{"type":"null"}],"title":"Memory Limit Gb"},"memory_limit_auto":{"anyOf":[{"type":"boolean","const":true},{"type":"null"}],"title":"Memory Limit Auto"}},"additionalProperties":false,"type":"object","title":"SandboxSettingsPayload"},"SandboxSetupJob":{"properties":{"state":{"type":"string","enum":["idle","running","succeeded","declined","failed"],"title":"State"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"operation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operation"},"started_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Finished At"},"exit_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exit Code"},"output_tail":{"items":{"type":"string"},"type":"array","title":"Output Tail"},"steps":{"items":{"type":"string"},"type":"array","title":"Steps"},"manual_command":{"type":"string","title":"Manual Command","default":""},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["state"],"title":"SandboxSetupJob"},"SandboxSetupPayload":{"properties":{"operation":{"type":"string","enum":["linux-install","windows-setup","windows-runtime"],"title":"Operation"},"consent_dacl_fallback":{"type":"boolean","title":"Consent Dacl Fallback","default":false}},"additionalProperties":false,"type":"object","required":["operation"],"title":"SandboxSetupPayload"},"SandboxSetupStatus":{"properties":{"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"},"elevation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Elevation"},"manual_command":{"type":"string","title":"Manual Command","default":""},"reason":{"type":"string","title":"Reason","default":""},"needs_consent":{"type":"boolean","title":"Needs Consent","default":false},"can_run":{"type":"boolean","title":"Can Run","default":false}},"type":"object","title":"SandboxSetupStatus"},"SandboxStatusResponse":{"properties":{"platform":{"type":"string","title":"Platform"},"python":{"$ref":"#/components/schemas/SandboxToolStatus"},"terminal":{"$ref":"#/components/schemas/SandboxToolStatus"},"terminal_shell":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terminal Shell"},"windows":{"anyOf":[{"$ref":"#/components/schemas/SandboxWindowsStatus"},{"type":"null"}]},"memory":{"anyOf":[{"$ref":"#/components/schemas/SandboxMemoryStatus"},{"type":"null"}]},"setup":{"anyOf":[{"$ref":"#/components/schemas/SandboxSetupStatus"},{"type":"null"}]},"checked_at":{"type":"number","title":"Checked At"},"grants_restored":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grants Restored"}},"type":"object","required":["platform","python","terminal","checked_at"],"title":"SandboxStatusResponse"},"SandboxToolStatus":{"properties":{"backend":{"type":"string","title":"Backend"},"available":{"type":"boolean","title":"Available"},"reason":{"type":"string","title":"Reason"},"protection_state":{"type":"string","title":"Protection State","default":"unavailable"},"limitations":{"items":{"type":"string"},"type":"array","title":"Limitations"},"remediation":{"type":"string","title":"Remediation","default":""}},"type":"object","required":["backend","available","reason"],"title":"SandboxToolStatus"},"SandboxWindowsStatus":{"properties":{"runtime_installed":{"type":"boolean","title":"Runtime Installed"},"runtime_unsupported":{"anyOf":[{"type":"string","enum":["arch","build"]},{"type":"null"}],"title":"Runtime Unsupported"},"allow_dacl_fallback":{"type":"boolean","title":"Allow Dacl Fallback"},"allow_dacl_fallback_saved":{"type":"boolean","title":"Allow Dacl Fallback Saved"},"dacl_locked_by_environment":{"type":"boolean","title":"Dacl Locked By Environment"},"persistent_read_grants":{"type":"boolean","title":"Persistent Read Grants"},"persistent_read_grants_saved":{"type":"boolean","title":"Persistent Read Grants Saved"},"grants_locked_by_environment":{"type":"boolean","title":"Grants Locked By Environment"},"host_prep_missing":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Host Prep Missing"},"prepare_repeats_after_restart":{"type":"boolean","title":"Prepare Repeats After Restart","default":true},"builtin_container":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Builtin Container"},"windows_build":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Windows Build"},"builtin_container_build":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Builtin Container Build"}},"type":"object","required":["runtime_installed","allow_dacl_fallback","allow_dacl_fallback_saved","dacl_locked_by_environment","persistent_read_grants","persistent_read_grants_saved","grants_locked_by_environment"],"title":"SandboxWindowsStatus"},"SaveRecipeRequest":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id"},"name":{"type":"string","maxLength":10000,"title":"Name"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"createdAt":{"type":"integer","maximum":9007199254740992.0,"minimum":0.0,"title":"Createdat"},"updatedAt":{"type":"integer","maximum":9007199254740992.0,"minimum":0.0,"title":"Updatedat"},"learningRecipeId":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Learningrecipeid"},"learningRecipeTitle":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Learningrecipetitle"},"baseUpdatedAt":{"anyOf":[{"type":"integer","maximum":9007199254740992.0,"minimum":0.0},{"type":"null"}],"title":"Baseupdatedat"}},"type":"object","required":["id","name","payload","createdAt","updatedAt"],"title":"SaveRecipeRequest"},"ScanFoldersResponse":{"properties":{"folders":{"items":{"$ref":"#/components/schemas/hub__schemas__inventory__ScanFolderInfo"},"type":"array","title":"Folders"}},"type":"object","title":"ScanFoldersResponse"},"ScheduledTask":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"prompt":{"type":"string","title":"Prompt"},"schedule":{"oneOf":[{"$ref":"#/components/schemas/OnceSchedule"},{"$ref":"#/components/schemas/HourlySchedule"},{"$ref":"#/components/schemas/DailySchedule"},{"$ref":"#/components/schemas/WeeklySchedule"},{"$ref":"#/components/schemas/MonthlySchedule"}],"title":"Schedule","discriminator":{"propertyName":"kind","mapping":{"daily":"#/components/schemas/DailySchedule","hourly":"#/components/schemas/HourlySchedule","monthly":"#/components/schemas/MonthlySchedule","once":"#/components/schemas/OnceSchedule","weekly":"#/components/schemas/WeeklySchedule"}}},"timezone":{"type":"string","title":"Timezone"},"enabled":{"type":"boolean","title":"Enabled"},"notify":{"type":"string","enum":["all","failures","none"],"title":"Notify"},"named":{"type":"boolean","title":"Named"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"reasoningEffort":{"anyOf":[{"type":"string","enum":["off","lowest","highest","minimal","low","medium","high","xhigh","max"]},{"type":"null"}],"title":"Reasoningeffort"},"allowModelLoad":{"type":"boolean","title":"Allowmodelload","default":false},"archiveSuccessful":{"type":"boolean","title":"Archivesuccessful","default":false},"projectId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Projectid"},"webSearch":{"type":"boolean","title":"Websearch","default":false},"mcpServerIds":{"items":{"type":"string","maxLength":128},"type":"array","maxItems":64,"title":"Mcpserverids"},"threadId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threadid"},"status":{"type":"string","enum":["active","paused","completed"],"title":"Status"},"nextRunAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nextrunat"},"createdAt":{"type":"integer","title":"Createdat"},"updatedAt":{"type":"integer","title":"Updatedat"},"lastRun":{"anyOf":[{"$ref":"#/components/schemas/ScheduledTaskRun"},{"type":"null"}]}},"type":"object","required":["id","title","prompt","schedule","timezone","enabled","notify","named","status","createdAt","updatedAt"],"title":"ScheduledTask"},"ScheduledTaskActivity":{"properties":{"now":{"type":"integer","title":"Now"},"runs":{"items":{"$ref":"#/components/schemas/FinishedScheduledTaskRun"},"type":"array","title":"Runs"},"more":{"type":"boolean","title":"More","default":false},"activeRuns":{"type":"integer","title":"Activeruns"},"nextRunAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nextrunat"}},"type":"object","required":["now","runs","activeRuns"],"title":"ScheduledTaskActivity"},"ScheduledTaskCreate":{"properties":{"title":{"type":"string","maxLength":120,"title":"Title"},"prompt":{"type":"string","maxLength":20000,"title":"Prompt"},"schedule":{"oneOf":[{"$ref":"#/components/schemas/OnceSchedule"},{"$ref":"#/components/schemas/HourlySchedule"},{"$ref":"#/components/schemas/DailySchedule"},{"$ref":"#/components/schemas/WeeklySchedule"},{"$ref":"#/components/schemas/MonthlySchedule"}],"title":"Schedule","discriminator":{"propertyName":"kind","mapping":{"daily":"#/components/schemas/DailySchedule","hourly":"#/components/schemas/HourlySchedule","monthly":"#/components/schemas/MonthlySchedule","once":"#/components/schemas/OnceSchedule","weekly":"#/components/schemas/WeeklySchedule"}}},"timezone":{"type":"string","maxLength":64,"title":"Timezone"},"enabled":{"type":"boolean","title":"Enabled","default":true},"notify":{"type":"string","enum":["all","failures","none"],"title":"Notify","default":"all"},"named":{"type":"boolean","title":"Named","default":true},"model":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Model"},"reasoningEffort":{"anyOf":[{"type":"string","enum":["off","lowest","highest","minimal","low","medium","high","xhigh","max"]},{"type":"null"}],"title":"Reasoningeffort"},"allowModelLoad":{"type":"boolean","title":"Allowmodelload","default":false},"archiveSuccessful":{"type":"boolean","title":"Archivesuccessful","default":false},"projectId":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Projectid"},"webSearch":{"type":"boolean","title":"Websearch","default":false},"mcpServerIds":{"items":{"type":"string","maxLength":128},"type":"array","maxItems":64,"title":"Mcpserverids"},"threadId":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Threadid"}},"additionalProperties":false,"type":"object","required":["title","prompt","schedule","timezone"],"title":"ScheduledTaskCreate"},"ScheduledTaskList":{"properties":{"tasks":{"items":{"$ref":"#/components/schemas/ScheduledTask"},"type":"array","title":"Tasks"},"now":{"type":"integer","title":"Now"}},"type":"object","required":["tasks","now"],"title":"ScheduledTaskList"},"ScheduledTaskRun":{"properties":{"id":{"type":"string","title":"Id"},"taskId":{"type":"string","title":"Taskid"},"source":{"type":"string","enum":["schedule","manual"],"title":"Source"},"status":{"type":"string","enum":["queued","running","succeeded","failed"],"title":"Status"},"scheduledFor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scheduledfor"},"createdAt":{"type":"integer","title":"Createdat"},"startedAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Startedat"},"finishedAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Finishedat"},"threadId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threadid"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errorcode"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["id","taskId","source","status","createdAt"],"title":"ScheduledTaskRun"},"ScheduledTaskUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Title"},"prompt":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Prompt"},"schedule":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/OnceSchedule"},{"$ref":"#/components/schemas/HourlySchedule"},{"$ref":"#/components/schemas/DailySchedule"},{"$ref":"#/components/schemas/WeeklySchedule"},{"$ref":"#/components/schemas/MonthlySchedule"}],"discriminator":{"propertyName":"kind","mapping":{"daily":"#/components/schemas/DailySchedule","hourly":"#/components/schemas/HourlySchedule","monthly":"#/components/schemas/MonthlySchedule","once":"#/components/schemas/OnceSchedule","weekly":"#/components/schemas/WeeklySchedule"}}},{"type":"null"}],"title":"Schedule"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"notify":{"anyOf":[{"type":"string","enum":["all","failures","none"]},{"type":"null"}],"title":"Notify"},"named":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Named"},"model":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Model"},"reasoningEffort":{"anyOf":[{"type":"string","enum":["off","lowest","highest","minimal","low","medium","high","xhigh","max"]},{"type":"null"}],"title":"Reasoningeffort"},"allowModelLoad":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allowmodelload"},"archiveSuccessful":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archivesuccessful"},"projectId":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Projectid"},"webSearch":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Websearch"},"mcpServerIds":{"anyOf":[{"items":{"type":"string","maxLength":128},"type":"array","maxItems":64},{"type":"null"}],"title":"Mcpserverids"},"threadId":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Threadid"}},"additionalProperties":false,"type":"object","title":"ScheduledTaskUpdate"},"SearchImagesLookupRequest":{"properties":{"subjects":{"items":{"type":"string"},"type":"array","maxItems":5,"minItems":1,"title":"Subjects","description":"Specific things to fetch one picture each for."}},"type":"object","required":["subjects"],"title":"SearchImagesLookupRequest"},"SearchRequest":{"properties":{"query":{"type":"string","title":"Query"},"kb_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kb Id"},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"top_k":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Top K","default":10},"min_score":{"type":"number","title":"Min Score","default":0.0},"mode":{"type":"string","title":"Mode","default":"hybrid"}},"type":"object","required":["query"],"title":"SearchRequest"},"SeedInspectRequest":{"properties":{"dataset_name":{"type":"string","minLength":1,"title":"Dataset Name"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token"},"subset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subset"},"split":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Split","default":"train"},"preview_size":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Preview Size","default":10}},"type":"object","required":["dataset_name"],"title":"SeedInspectRequest"},"SeedInspectResponse":{"properties":{"dataset_name":{"type":"string","title":"Dataset Name"},"resolved_path":{"type":"string","title":"Resolved Path"},"columns":{"items":{"type":"string"},"type":"array","title":"Columns"},"preview_rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Preview Rows"},"split":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Split"},"subset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subset"},"resolved_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Resolved Paths"},"total_rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Rows"}},"type":"object","required":["dataset_name","resolved_path"],"title":"SeedInspectResponse"},"SeedInspectUploadRequest":{"properties":{"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"content_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Base64"},"block_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Id"},"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids"},"file_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Names"},"preview_size":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Preview Size","default":10},"seed_source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seed Source Type"},"unstructured_chunk_size":{"anyOf":[{"type":"integer","maximum":20000.0,"minimum":1.0},{"type":"null"}],"title":"Unstructured Chunk Size"},"unstructured_chunk_overlap":{"anyOf":[{"type":"integer","maximum":20000.0,"minimum":0.0},{"type":"null"}],"title":"Unstructured Chunk Overlap"}},"type":"object","title":"SeedInspectUploadRequest"},"SkillCreateRequest":{"properties":{"description":{"type":"string","title":"Description"},"instructions":{"type":"string","title":"Instructions"},"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["description","instructions","name"],"title":"SkillCreateRequest"},"SkillDraft":{"properties":{"description":{"type":"string","title":"Description"},"instructions":{"type":"string","title":"Instructions"}},"additionalProperties":false,"type":"object","required":["description","instructions"],"title":"SkillDraft"},"SkillEnabledRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"additionalProperties":false,"type":"object","required":["enabled"],"title":"SkillEnabledRequest"},"SkillImportFailure":{"properties":{"name":{"type":"string","title":"Name"},"error":{"type":"string","title":"Error"}},"additionalProperties":false,"type":"object","required":["name","error"],"title":"SkillImportFailure"},"SkillImportResult":{"properties":{"imported":{"items":{"$ref":"#/components/schemas/SkillRecord"},"type":"array","title":"Imported"},"failed":{"items":{"$ref":"#/components/schemas/SkillImportFailure"},"type":"array","title":"Failed"}},"additionalProperties":false,"type":"object","required":["imported","failed"],"title":"SkillImportResult"},"SkillManifest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"source":{"type":"string","enum":["agents","claude","bundled"],"title":"Source"},"enabled":{"type":"boolean","title":"Enabled"},"valid":{"type":"boolean","title":"Valid"},"shadowed":{"type":"boolean","title":"Shadowed"},"linked":{"type":"boolean","title":"Linked","default":false},"shadowed_by":{"anyOf":[{"type":"string","enum":["agents","claude","bundled"]},{"type":"null"}],"title":"Shadowed By"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"license":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License"},"compatibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compatibility"},"metadata":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Metadata"},"allowed_tools":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Allowed Tools"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"instructions":{"type":"string","title":"Instructions"}},"additionalProperties":false,"type":"object","required":["name","description","source","enabled","valid","shadowed","instructions"],"title":"SkillManifest"},"SkillRecord":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"source":{"type":"string","enum":["agents","claude","bundled"],"title":"Source"},"enabled":{"type":"boolean","title":"Enabled"},"valid":{"type":"boolean","title":"Valid"},"shadowed":{"type":"boolean","title":"Shadowed"},"linked":{"type":"boolean","title":"Linked","default":false},"shadowed_by":{"anyOf":[{"type":"string","enum":["agents","claude","bundled"]},{"type":"null"}],"title":"Shadowed By"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"license":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License"},"compatibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compatibility"},"metadata":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Metadata"},"allowed_tools":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Allowed Tools"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"}},"additionalProperties":false,"type":"object","required":["name","description","source","enabled","valid","shadowed"],"title":"SkillRecord"},"SttDevicePayload":{"properties":{"device":{"type":"string","enum":["auto","cpu","gpu"],"title":"Device"},"only_if_unset":{"type":"boolean","title":"Only If Unset","default":false}},"type":"object","required":["device"],"title":"SttDevicePayload"},"SttDeviceResponse":{"properties":{"device":{"type":"string","enum":["auto","cpu","gpu"],"title":"Device","default":"auto"},"locked":{"type":"boolean","title":"Locked","default":false},"saved":{"type":"boolean","title":"Saved","default":false}},"type":"object","title":"SttDeviceResponse"},"SttLoadRequest":{"properties":{"context_length":{"type":"integer","maximum":65536.0,"minimum":0.0,"title":"Context Length","description":"Qwen3-ASR on llama.cpp only: 0 (Auto) sizes context for the recording; a multiple of 256 from 1024 to 65536 fixes the context limit. Ignored by other STT engines.","default":0},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"STT model id; defaults server-side"},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine","description":"STT engine: 'transformers' (default), 'gguf' (whisper.cpp), 'mtmd' (llama.cpp) or 'audiocpp' (audio.cpp)"},"device":{"anyOf":[{"type":"string","enum":["auto","cpu","gpu"]},{"type":"null"}],"title":"Device","description":"Where to hold the model: 'cpu' keeps it in CPU RAM rather than the GPU, 'gpu' prefers the accelerator, 'auto' (default) detects."},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant","description":"Variant of an audio GGUF dictation model (engine 'audiocpp'): a quant or a named sub-variant such as 'tiny'. Omitted picks the model's default."},"download_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Id","description":"Opaque identity of the download attempt being cancelled"}},"type":"object","title":"SttLoadRequest","description":"Warm the STT sidecar with a model without transcribing."},"SystemOneConnectionOption":{"properties":{"name":{"type":"string","title":"Name"},"provider_id":{"type":"string","title":"Provider Id"},"provider":{"type":"string","title":"Provider"},"model":{"type":"string","title":"Model"}},"type":"object","required":["name","provider_id","provider","model"],"title":"SystemOneConnectionOption"},"SystemOneDownloadPlan":{"properties":{"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo"},"files":{"items":{"type":"string"},"type":"array","title":"Files"},"size_bytes":{"type":"integer","title":"Size Bytes"},"cached":{"type":"boolean","title":"Cached"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["files","size_bytes","cached"],"title":"SystemOneDownloadPlan"},"SystemOneModelOption":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"download_bytes":{"type":"integer","title":"Download Bytes"},"kind":{"type":"string","enum":["catalog","fine_tune"],"title":"Kind","default":"catalog"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"available":{"type":"boolean","title":"Available","default":true},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"},"llama_cpp_only":{"type":"boolean","title":"Llama Cpp Only","default":false}},"type":"object","required":["name","description","download_bytes"],"title":"SystemOneModelOption"},"SystemOneRequest":{"properties":{"state":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"title":"State"},"model":{"type":"string","title":"Model"},"questions":{"additionalProperties":{"$ref":"#/components/schemas/QuestionIn"},"type":"object","minProperties":1,"title":"Questions"},"images":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Images"},"audio":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Audio"}},"additionalProperties":true,"type":"object","required":["state","model","questions"],"title":"SystemOneRequest"},"SystemOneSettingsPayload":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device"},"backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backend"},"native_ctx":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Native Ctx"},"expected_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Expected Enabled"},"expected_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Model"}},"type":"object","title":"SystemOneSettingsPayload"},"SystemOneSettingsResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"enabled_locked":{"type":"boolean","title":"Enabled Locked"},"model":{"type":"string","title":"Model"},"model_locked":{"type":"boolean","title":"Model Locked"},"device":{"type":"string","title":"Device"},"device_locked":{"type":"boolean","title":"Device Locked"},"gpu_available":{"type":"boolean","title":"Gpu Available"},"models":{"items":{"$ref":"#/components/schemas/SystemOneModelOption"},"type":"array","title":"Models"},"loaded_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loaded Model"},"loaded_device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loaded Device"},"loading_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loading Model"},"installing":{"type":"boolean","title":"Installing","default":false},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"mcp_url":{"type":"string","title":"Mcp Url"},"backend":{"type":"string","title":"Backend","default":"auto"},"mlx_available":{"type":"boolean","title":"Mlx Available","default":false},"native_ctx":{"type":"integer","title":"Native Ctx","default":16384},"effective_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Backend"},"loaded_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loaded Backend"},"fallback_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback Reason"},"input_modalities":{"items":{"type":"string"},"type":"array","title":"Input Modalities","default":["text"]},"layout":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layout"},"has_gguf_form":{"type":"boolean","title":"Has Gguf Form","default":false}},"type":"object","required":["enabled","enabled_locked","model","model_locked","device","device_locked","gpu_available","models","mcp_url"],"title":"SystemOneSettingsResponse"},"TextContent":{"properties":{"text":{"type":"string","maxLength":5000000,"title":"Text"},"encoding":{"type":"string","enum":["utf-8","utf-16le","utf-16be"],"title":"Encoding","default":"utf-8"}},"type":"object","required":["text"],"title":"TextContent"},"TextContentPart":{"properties":{"type":{"type":"string","const":"text","title":"Type"},"text":{"type":"string","title":"Text"}},"type":"object","required":["type","text"],"title":"TextContentPart","description":"Text content part in a multimodal message."},"ThinkingConfig":{"properties":{"type":{"type":"string","enum":["disabled","enabled"],"title":"Type","default":"disabled"}},"type":"object","title":"ThinkingConfig","description":"Anthropic-compatible thinking/reasoning configuration.\nUse type='disabled' to turn off thinking, or type='enabled' to turn it on.\nOnly type is read; extra fields (e.g. budget_tokens) are ignored, since\nUnsloth sets provider thinking budgets itself."},"Token":{"properties":{"access_token":{"type":"string","title":"Access Token","description":"Session access credential used for authenticated API requests"},"refresh_token":{"type":"string","title":"Refresh Token","description":"Session refresh credential used to renew an expired access credential"},"token_type":{"type":"string","title":"Token Type","description":"Credential type for the Authorization header, always 'bearer'"},"must_change_password":{"type":"boolean","title":"Must Change Password","description":"True when the user must change the seeded default password"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id","description":"Immutable id of the signed-in account, the same key storage is partitioned by. Usernames are reusable, so a client that keeps per-account state must compare this instead. Null only when an older server issued the credential."}},"type":"object","required":["access_token","refresh_token","token_type","must_change_password"],"title":"Token","description":"Authentication response model for session credentials."},"TokenPreviewRequest":{"properties":{"model_name":{"type":"string","minLength":1,"title":"Model Name"},"model_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Type"},"load_in_4bit":{"type":"boolean","title":"Load In 4Bit","default":true},"dataset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Name"},"subset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subset"},"train_split":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Train Split"},"dataset_local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Local Path"},"dataset_known_cached":{"type":"boolean","title":"Dataset Known Cached","default":false},"format_type":{"type":"string","title":"Format Type","default":"auto"},"custom_format_mapping":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Format Mapping"},"train_on_completions":{"type":"boolean","title":"Train On Completions","default":true},"is_cpt":{"type":"boolean","title":"Is Cpt","default":false},"max_seq_length":{"type":"integer","maximum":1048576.0,"minimum":1.0,"title":"Max Seq Length","default":2048},"num_samples":{"type":"integer","maximum":8.0,"minimum":1.0,"title":"Num Samples","default":3},"seed":{"type":"integer","title":"Seed","default":0},"text":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}],"title":"Text"},"final_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Format"}},"type":"object","required":["model_name"],"title":"TokenPreviewRequest","description":"How a training run would tokenize and mask a few dataset rows, or ``text`` when given. Only\nthe model's tokenizer is read, never its weights."},"ToolApprovalStatusRequest":{"properties":{"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"approval_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Id"}},"type":"object","title":"ToolApprovalStatusRequest","description":"Ask whether one approval is still waiting. Takes the id rather than listing them, so a\ncaller can only ask about an approval it already holds and cannot enumerate anyone else's."},"ToolConfirmRequest":{"properties":{"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"approval_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Id"},"decision":{"type":"string","enum":["allow","deny"],"title":"Decision","default":"deny"},"permission_mode":{"anyOf":[{"type":"string","const":"full"},{"type":"null"}],"title":"Permission Mode"}},"type":"object","title":"ToolConfirmRequest"},"ToolResultLimitPayload":{"properties":{"max_chars":{"type":"integer","maximum":200000.0,"minimum":2000.0,"title":"Max Chars"}},"type":"object","required":["max_chars"],"title":"ToolResultLimitPayload"},"ToolResultLimitResponse":{"properties":{"max_chars":{"type":"integer","title":"Max Chars"},"default_chars":{"type":"integer","title":"Default Chars","default":16000},"min_chars":{"type":"integer","title":"Min Chars","default":2000},"max_allowed_chars":{"type":"integer","title":"Max Allowed Chars","default":200000},"locked_by_environment":{"type":"boolean","title":"Locked By Environment","default":false}},"type":"object","required":["max_chars"],"title":"ToolResultLimitResponse"},"TrainingMetricsResponse":{"properties":{"job_id":{"type":"string","title":"Job Id","description":"Training job identifier"},"loss_history":{"items":{"type":"number"},"type":"array","title":"Loss History","description":"Loss values per step"},"lr_history":{"items":{"type":"number"},"type":"array","title":"Lr History","description":"Learning rate per step"},"step_history":{"items":{"type":"integer"},"type":"array","title":"Step History","description":"Step numbers"},"grad_norm_history":{"items":{"type":"number"},"type":"array","title":"Grad Norm History","description":"Gradient norm values"},"grad_norm_step_history":{"items":{"type":"integer"},"type":"array","title":"Grad Norm Step History","description":"Step numbers for gradient norm values"},"current_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Loss","description":"Most recent loss value"},"current_lr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Lr","description":"Most recent learning rate"},"current_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Step","description":"Most recent step number"}},"type":"object","required":["job_id"],"title":"TrainingMetricsResponse","description":"Response for training metrics history"},"TrainingPreset":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"params":{"$ref":"#/components/schemas/TrainingPresetParams"}},"additionalProperties":false,"type":"object","required":["name","params"],"title":"TrainingPreset"},"TrainingPresetParams":{"properties":{"familyName":{"type":"string","maxLength":80,"title":"Familyname","default":""},"baseChoice":{"type":"string","maxLength":1024,"title":"Basechoice","default":""},"customBase":{"type":"string","maxLength":4096,"title":"Custombase","default":""},"durationUnit":{"type":"string","enum":["steps","epochs"],"title":"Durationunit","default":"steps"},"steps":{"type":"number","title":"Steps","default":500},"epochs":{"type":"number","title":"Epochs","default":10},"learningRate":{"type":"number","title":"Learningrate","default":0.0001},"rank":{"type":"number","title":"Rank","default":16},"resolution":{"type":"number","title":"Resolution","default":768},"batchSize":{"type":"number","title":"Batchsize","default":1},"gradAccum":{"type":"number","title":"Gradaccum","default":1},"seed":{"type":"number","title":"Seed","default":42},"saveSteps":{"type":"number","title":"Savesteps","default":0},"sampleEvery":{"type":"number","title":"Sampleevery","default":0},"saveTotalLimit":{"type":"number","title":"Savetotallimit","default":2},"lrScheduler":{"type":"string","enum":["linear","cosine","cosine_with_restarts","polynomial","constant","constant_with_warmup"],"title":"Lrscheduler","default":"constant"},"lrWarmupSteps":{"type":"number","title":"Lrwarmupsteps","default":0},"gradCheckpoint":{"type":"boolean","title":"Gradcheckpoint","default":true},"bucketing":{"type":"boolean","title":"Bucketing","default":true},"randomFlip":{"type":"boolean","title":"Randomflip","default":false},"cfgDropout":{"type":"number","title":"Cfgdropout","default":0},"loraDropout":{"type":"number","title":"Loradropout","default":0},"flowShiftMode":{"type":"string","enum":["default","custom"],"title":"Flowshiftmode","default":"default"},"flowShift":{"type":"number","title":"Flowshift","default":3},"precision":{"type":"string","enum":["bf16","fp16","no"],"title":"Precision","default":"bf16"},"basePrecision":{"type":"string","enum":["nf4","bf16","int8","fp8","mxfp8","auto"],"title":"Baseprecision","default":"auto"},"compileTransformer":{"type":"string","enum":["off","on","auto"],"title":"Compiletransformer","default":"auto"}},"additionalProperties":false,"type":"object","title":"TrainingPresetParams","description":"Image LoRA training form. Numbers carry no bounds: the form autosaves mid-edit, and\nDiffusionTrainingStartRequest validates them on Start."},"TrainingPresetSettings":{"properties":{"activePreset":{"type":"string","maxLength":80,"minLength":1,"title":"Activepreset","default":"Default"},"currentParams":{"$ref":"#/components/schemas/TrainingPresetParams"},"customPresets":{"items":{"$ref":"#/components/schemas/TrainingPreset"},"type":"array","title":"Custompresets"},"saved":{"type":"boolean","title":"Saved","default":false}},"additionalProperties":false,"type":"object","title":"TrainingPresetSettings"},"TrainingPresetState":{"properties":{"activePreset":{"type":"string","maxLength":80,"minLength":1,"title":"Activepreset","default":"Default"},"currentParams":{"$ref":"#/components/schemas/TrainingPresetParams"}},"additionalProperties":false,"type":"object","title":"TrainingPresetState"},"TrainingResetRequest":{"properties":{"expected_job_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},{"type":"null"}],"title":"Expected Job Id"}},"type":"object","title":"TrainingResetRequest"},"TrainingRunDeleteResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"artifacts_deleted":{"type":"boolean","title":"Artifacts Deleted","default":false},"artifacts_kept_reason":{"anyOf":[{"type":"string","enum":["shared_output_dir","purge_failed"]},{"type":"null"}],"title":"Artifacts Kept Reason"}},"type":"object","required":["status","message"],"title":"TrainingRunDeleteResponse","description":"Response for deleting a training run."},"TrainingRunDetailResponse":{"properties":{"run":{"$ref":"#/components/schemas/TrainingRunSummary"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"metrics":{"$ref":"#/components/schemas/TrainingRunMetrics"}},"type":"object","required":["run","config","metrics"],"title":"TrainingRunDetailResponse","description":"Response for a single training run with config and metrics."},"TrainingRunListResponse":{"properties":{"runs":{"items":{"$ref":"#/components/schemas/TrainingRunSummary"},"type":"array","title":"Runs"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["runs","total"],"title":"TrainingRunListResponse","description":"Response for listing training runs."},"TrainingRunMetrics":{"properties":{"step_history":{"items":{"type":"integer"},"type":"array","title":"Step History"},"loss_history":{"items":{"type":"number"},"type":"array","title":"Loss History"},"loss_step_history":{"items":{"type":"integer"},"type":"array","title":"Loss Step History"},"lr_history":{"items":{"type":"number"},"type":"array","title":"Lr History"},"lr_step_history":{"items":{"type":"integer"},"type":"array","title":"Lr Step History"},"grad_norm_history":{"items":{"type":"number"},"type":"array","title":"Grad Norm History"},"grad_norm_step_history":{"items":{"type":"integer"},"type":"array","title":"Grad Norm Step History"},"eval_loss_history":{"items":{"type":"number"},"type":"array","title":"Eval Loss History"},"eval_step_history":{"items":{"type":"integer"},"type":"array","title":"Eval Step History"},"final_epoch":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Final Epoch"},"final_num_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Final Num Tokens"}},"type":"object","title":"TrainingRunMetrics","description":"Metrics arrays for a training run, using paired step arrays per metric."},"TrainingRunSummary":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","enum":["running","completed","stopped","error"],"title":"Status"},"model_name":{"type":"string","title":"Model Name"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"dataset_name":{"type":"string","title":"Dataset Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"started_at":{"type":"string","title":"Started At"},"ended_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ended At"},"total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Steps"},"final_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Final Step"},"final_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Final Loss"},"output_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Dir"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"loss_sparkline":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Loss Sparkline"},"can_resume":{"type":"boolean","title":"Can Resume","default":false},"resume_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Blocked Reason"},"resumed_later":{"type":"boolean","title":"Resumed Later","default":false},"artifacts_available":{"type":"boolean","title":"Artifacts Available","default":false},"has_preview_model":{"type":"boolean","title":"Has Preview Model","default":false},"preview_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Ref"},"preview_sig":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Sig"}},"type":"object","required":["id","status","model_name","dataset_name","started_at"],"title":"TrainingRunSummary","description":"Summary of a training run for list views."},"TrainingRunUpdateRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Display Name"}},"additionalProperties":false,"type":"object","title":"TrainingRunUpdateRequest","description":"Mutable fields on a training run."},"TrainingStartRequest":{"properties":{"model_name":{"type":"string","title":"Model Name","description":"Model identifier (e.g., 'unsloth/llama-3-8b-bnb-4bit')"},"project_name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Project Name","description":"Optional user-defined project name appended to run folders and shown in history"},"start_request_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},{"type":"null"}],"title":"Start Request Id","description":"Opaque client-generated identifier used to reconcile an ambiguous start response"},"training_type":{"type":"string","enum":["LoRA/QLoRA","Full Finetuning","Continued Pretraining"],"title":"Training Type","description":"Training type: 'LoRA/QLoRA', 'Full Finetuning', or 'Continued Pretraining'"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"HuggingFace token"},"load_in_4bit":{"type":"boolean","title":"Load In 4Bit","description":"Load model in 4-bit quantization","default":true},"max_seq_length":{"type":"integer","title":"Max Seq Length","description":"Maximum sequence length","default":2048},"vision_image_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vision Image Size","description":"Optional maximum image side length for VLM training. Null uses model default."},"trust_remote_code":{"type":"boolean","title":"Trust Remote Code","description":"Allow loading models with custom code (e.g. NVIDIA Nemotron). Only enable for repos you trust.","default":false},"approved_remote_code_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved Remote Code Fingerprint","description":"sha256 fingerprint from the remote-code scan, pinning user approval of this exact custom-code version."},"model_known_cached":{"type":"boolean","title":"Model Known Cached","description":"Whether the selected model is already present in the local HF cache","default":false},"model_local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Local Path","description":"Local HF cache path for the selected model, when known"},"model_format":{"anyOf":[{"type":"string","enum":["gguf","safetensors","adapter","checkpoint","unknown"]},{"type":"null"}],"title":"Model Format","description":"On-disk format of the selected model, when known"},"model_snapshot_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Snapshot Path","description":"Server-verified model snapshot directory pinned for this run"},"hf_dataset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Dataset","description":"HuggingFace dataset identifier"},"dataset_known_cached":{"type":"boolean","title":"Dataset Known Cached","description":"Whether the selected HF dataset is already present in the local cache","default":false},"dataset_local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Local Path","description":"Local HF cache path for the selected dataset, when known"},"dataset_snapshot_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Snapshot Path","description":"Server-verified dataset snapshot directory pinned for this run"},"local_datasets":{"items":{"type":"string"},"type":"array","title":"Local Datasets","description":"List of local dataset paths"},"local_eval_datasets":{"items":{"type":"string"},"type":"array","title":"Local Eval Datasets","description":"List of local eval dataset paths"},"format_type":{"type":"string","title":"Format Type","description":"Dataset format type"},"subset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subset"},"train_split":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Train Split","description":"Training split name","default":"train"},"eval_split":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eval Split","description":"Eval split name. None = auto-detect"},"dataset_streaming":{"type":"boolean","title":"Dataset Streaming","description":"Whether to load the Hugging Face dataset in streaming mode","default":false},"eval_steps":{"type":"number","title":"Eval Steps","description":"Fraction of total steps between evals (0-1)","default":0.0},"early_stopping_patience":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Early Stopping Patience","description":"Stop after this many evaluations without a lower eval loss and keep the best weights. 0 = off","default":0},"drafter":{"anyOf":[{"$ref":"#/components/schemas/DrafterTrainingConfig"},{"type":"null"}],"description":"Train a speculative-decoding drafter (MTP head or EAGLE-3) after the fine-tune"},"dataset_slice_start":{"anyOf":[{"type":"integer","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Dataset Slice Start","description":"Inclusive start row index for dataset slicing"},"dataset_slice_end":{"anyOf":[{"type":"integer","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Dataset Slice End","description":"Inclusive end row index for dataset slicing"},"custom_format_mapping":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Format Mapping","description":"User-provided column-to-role mapping, e.g. {'image': 'image', 'caption': 'text'} for VLM or {'instruction': 'user', 'output': 'assistant'} for LLM. Enhanced format includes __system_prompt, __user_template, __assistant_template, __label_mapping metadata keys."},"num_epochs":{"type":"integer","title":"Num Epochs","description":"Number of training epochs","default":1},"learning_rate":{"type":"string","title":"Learning Rate","description":"Learning rate","default":"2e-4"},"batch_size":{"type":"integer","title":"Batch Size","description":"Batch size","default":1},"gradient_accumulation_steps":{"type":"integer","title":"Gradient Accumulation Steps","description":"Gradient accumulation steps","default":1},"warmup_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Warmup Steps","description":"Warmup steps"},"warmup_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Warmup Ratio","description":"Warmup ratio"},"max_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Steps","description":"Maximum training steps"},"save_steps":{"type":"integer","title":"Save Steps","description":"Steps between checkpoints","default":100},"weight_decay":{"type":"number","title":"Weight Decay","description":"Weight decay","default":0.001},"max_grad_norm":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Max Grad Norm","description":"Global gradient norm clipping threshold. Unset keeps the training backend's own default; 0 turns global-norm clipping off, which on MLX leaves per-parameter clipping in force unless max_grad_leaf_norm is also 0. Honored on MLX; the CUDA path trains with its own fixed thresholds."},"max_grad_value":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Max Grad Value","description":"MLX-only elementwise gradient value clipping threshold. If unset, MLX uses its runtime default."},"max_grad_leaf_norm":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Max Grad Leaf Norm","description":"MLX-only proportional per-parameter gradient norm cap. Preserves each tensor's gradient direction without global norm clipping's memory overhead."},"cast_norm_output_to_input_dtype":{"type":"boolean","title":"Cast Norm Output To Input Dtype","description":"MLX-only: keep norm parameters in fp32 but cast norm outputs back to the incoming activation dtype.","default":true},"random_seed":{"type":"integer","maximum":4294967295.0,"minimum":0.0,"title":"Random Seed","description":"Random seed; matches the Unsloth backend / MLX worker default and unsloth's historical recommended value.","default":3407},"packing":{"type":"boolean","title":"Packing","description":"Enable sequence packing where supported","default":true},"optim":{"type":"string","title":"Optim","description":"Optimizer","default":"adamw_8bit"},"lr_scheduler_type":{"type":"string","title":"Lr Scheduler Type","description":"Learning rate scheduler type","default":"linear"},"embedding_learning_rate":{"anyOf":[{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Embedding Learning Rate","description":"Separate learning rate for embedding matrices (CPT). Must be in (0, 1). Should be 2-10x smaller than the main learning rate."},"use_lora":{"type":"boolean","title":"Use Lora","description":"Use LoRA (derived from training_type)","default":true},"lora_r":{"type":"integer","title":"Lora R","description":"LoRA rank","default":16},"lora_alpha":{"type":"integer","title":"Lora Alpha","description":"LoRA alpha","default":16},"lora_dropout":{"type":"number","title":"Lora Dropout","description":"LoRA dropout","default":0.0},"target_modules":{"items":{"type":"string"},"type":"array","title":"Target Modules","description":"Target modules for LoRA"},"gradient_checkpointing":{"type":"string","title":"Gradient Checkpointing","description":"Gradient checkpointing setting","default":""},"offload_layers":{"anyOf":[{"type":"string","const":"auto"},{"type":"integer","maximum":1024.0,"minimum":0.0}],"title":"Offload Layers","description":"Decoder layers kept in host RAM and streamed to the GPU during training (0 = off, 'auto' = as few as fit)","default":0},"offload_vram_gb":{"anyOf":[{"type":"number","maximum":4096.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Offload Vram Gb","description":"VRAM this run may use, in GiB; offload_layers = 'auto' sizes to it"},"offload_vram_gb_per_device":{"anyOf":[{"items":{"anyOf":[{"type":"number","maximum":4096.0,"exclusiveMinimum":0.0},{"type":"null"}]},"type":"array","maxItems":64},{"type":"null"}],"title":"Offload Vram Gb Per Device","description":"Per-GPU VRAM budget in GiB, entry i for the GPU /api/system lists as index i (null = no cap); replaces offload_vram_gb when given"},"prefetch_depth":{"anyOf":[{"type":"string","const":"auto"},{"type":"integer","maximum":8.0,"minimum":1.0}],"title":"Prefetch Depth","description":"Offloaded layers fetched ahead of the one running ('auto' = measured)","default":2},"use_rslora":{"type":"boolean","title":"Use Rslora","description":"Use RSLoRA","default":false},"use_loftq":{"type":"boolean","title":"Use Loftq","description":"Use LoftQ","default":false},"use_dora":{"type":"boolean","title":"Use Dora","description":"Use DoRA","default":false},"train_on_completions":{"type":"boolean","title":"Train On Completions","description":"Train on assistant completions where supported","default":true},"finetune_vision_layers":{"type":"boolean","title":"Finetune Vision Layers","description":"Finetune vision layers","default":false},"finetune_language_layers":{"type":"boolean","title":"Finetune Language Layers","description":"Finetune language layers","default":true},"finetune_attention_modules":{"type":"boolean","title":"Finetune Attention Modules","description":"Finetune attention modules","default":true},"finetune_mlp_modules":{"type":"boolean","title":"Finetune Mlp Modules","description":"Finetune MLP modules","default":true},"is_dataset_image":{"type":"boolean","title":"Is Dataset Image","description":"Whether the dataset contains image data","default":false},"is_dataset_audio":{"type":"boolean","title":"Is Dataset Audio","description":"Whether the dataset contains audio data","default":false},"is_embedding":{"type":"boolean","title":"Is Embedding","description":"Whether model is an embedding/sentence-transformer model","default":false},"is_decision":{"type":"boolean","title":"Is Decision","description":"Train a decision model: a Laya or Clef checkpoint, or an LLM with a new Clef head","default":false},"model_subfolder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Subfolder","description":"Checkpoint subfolder of a decision model repo"},"decision_layout":{"anyOf":[{"type":"string","enum":["laya","clef","llm"]},{"type":"null"}],"title":"Decision Layout","description":"Set by the server from the checkpoint files; a caller's value is replaced"},"decision_head":{"anyOf":[{"type":"string","enum":["clef","d1"]},{"type":"null"}],"title":"Decision Head","description":"What a language model trains into: a Clef head, or a d1 on MLX for LFM3-VL and LFM3-Omni, the default there"},"enable_wandb":{"type":"boolean","title":"Enable Wandb","description":"Enable Weights & Biases logging","default":false},"wandb_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wandb Token","description":"W&B token"},"wandb_project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wandb Project","description":"W&B project name"},"enable_tensorboard":{"type":"boolean","title":"Enable Tensorboard","description":"Enable TensorBoard logging","default":false},"tensorboard_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tensorboard Dir","description":"TensorBoard directory"},"resume_from_checkpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume From Checkpoint","description":"Saved training output directory to resume from"},"gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Gpu Ids","description":"Physical GPU indices to use, for example [0, 1]. Omit or pass [] to use automatic selection. Explicit gpu_ids are unsupported when the parent visibility mask uses non-numeric or subdevice entries -- this includes CUDA_VISIBLE_DEVICES with MIG or unresolvable UUID entries on NVIDIA, and ZE_AFFINITY_MASK with subdevice tokens (e.g. '0.0,0.1') or FLAT-hierarchy (default) tile handles on Intel XPU."},"parallel_mode":{"anyOf":[{"type":"string","enum":["auto","single","layer_split","ddp","fsdp2","tp","pp","cp","ep","custom"]},{"type":"null"}],"title":"Parallel Mode","description":"Multi-GPU layout. auto: Studio picks (DDP when the model fits each GPU, FSDP2 when it fits sharded, expert parallel for MoE where Unsloth has it, else layers split across GPUs). single / layer_split: one process. ddp / fsdp2 / tp / pp / cp / ep / custom: one process per GPU (Linux NVIDIA / AMD). Omit for the behaviour before this field existed."},"parallel_spec":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Parallel Spec","description":"With parallel_mode \"custom\": the UNSLOTH_PARALLEL layout, e.g. \"dp=2,tp=2\"."},"s3_config":{"anyOf":[{"$ref":"#/components/schemas/S3Config"},{"type":"null"}],"description":"S3 bucket configuration. Missing SDK installs on first use; preinstall offline support with: python -m pip install \"unsloth[s3]\""}},"type":"object","required":["model_name","training_type","format_type"],"title":"TrainingStartRequest","description":"Request schema for starting training"},"TrainingStartRequestStatus":{"properties":{"start_request_id":{"type":"string","title":"Start Request Id"},"job_id":{"type":"string","title":"Job Id"},"state":{"type":"string","enum":["pending","accepted","rejected"],"title":"State"},"message":{"type":"string","title":"Message"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["start_request_id","job_id","state","message"],"title":"TrainingStartRequestStatus"},"TrainingStopRequest":{"properties":{"save":{"type":"boolean","title":"Save","default":true},"expected_job_id":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$","title":"Expected Job Id"}},"type":"object","required":["expected_job_id"],"title":"TrainingStopRequest"},"TrainingStopResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Current status: 'stopped' or 'idle'"},"message":{"type":"string","title":"Message","description":"Human-readable status message"}},"type":"object","required":["status","message"],"title":"TrainingStopResponse","description":"Response for stopping a training job"},"TranscribeRequest":{"properties":{"context_length":{"type":"integer","maximum":65536.0,"minimum":0.0,"title":"Context Length","description":"Qwen3-ASR on llama.cpp only: 0 (Auto) sizes context for the recording; a multiple of 256 from 1024 to 65536 fixes the context limit. Ignored by other STT engines.","default":0},"audio":{"type":"string","title":"Audio","description":"Base64-encoded audio (any common format)"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"STT model id; defaults server-side"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"BCP-47 language, or 'auto'/None to detect"},"fast":{"type":"boolean","title":"Fast","description":"Use low-latency single-candidate decoding for dictation","default":false},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine","description":"STT engine: 'transformers' (default), 'gguf' (whisper.cpp), 'mtmd' (llama.cpp) or 'audiocpp' (audio.cpp)"},"device":{"anyOf":[{"type":"string","enum":["auto","cpu","gpu"]},{"type":"null"}],"title":"Device","description":"Where to hold the model: 'cpu' keeps it in CPU RAM, 'gpu' prefers the accelerator, 'auto' (default) detects. Applies when this request has to load the model; a resident model on another device is reloaded to honour it."}},"type":"object","required":["audio"],"title":"TranscribeRequest","description":"Speech-to-text request for the dictation STT sidecar."},"TranscribeSourceRef":{"properties":{"input_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},{"type":"null"}],"title":"Input Id"},"clip_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},{"type":"null"}],"title":"Clip Id"},"voice_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},{"type":"null"}],"title":"Voice Id"}},"additionalProperties":false,"type":"object","title":"TranscribeSourceRef","description":"The audio to transcribe, by id: an upload, a history clip or a saved voice. Exactly one."},"TranscribeSourceRequest":{"properties":{"context_length":{"type":"integer","maximum":65536.0,"minimum":0.0,"title":"Context Length","description":"Qwen3-ASR on llama.cpp only: 0 (Auto) sizes context for the recording; a multiple of 256 from 1024 to 65536 fixes the context limit. Ignored by other STT engines.","default":0},"source":{"$ref":"#/components/schemas/TranscribeSourceRef"},"model":{"type":"string","maxLength":512,"minLength":1,"title":"Model"},"engine":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Engine"},"device":{"anyOf":[{"type":"string","enum":["auto","cpu","gpu"]},{"type":"null"}],"title":"Device"},"language":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Language"},"timestamps":{"type":"boolean","title":"Timestamps","description":"Ask for segment and word timestamps","default":false},"speakers":{"type":"boolean","title":"Speakers","description":"Keep who spoke each segment, when the model tells","default":false},"speaker_accent":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Speaker Accent","description":"Optional accent of the speaker, such as 'Chinese-accented English'. Sent as a text hint to models that take one (stt capabilities 'accent_hint'); the transcript stays in the spoken language."},"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title","description":"Defaults to the source's name"},"provider_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Provider Id","description":"Saved connection ID. When set, the audio goes to that connection's /audio/transcriptions as `model`; engine and device are ignored."}},"additionalProperties":false,"type":"object","required":["source","model"],"title":"TranscribeSourceRequest","description":"``POST /audio/transcribe/source``: Audio page audio named by id, transcribed and saved."},"TranscriptPatch":{"properties":{"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived"},"speaker_names":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Speaker Names"}},"additionalProperties":false,"type":"object","title":"TranscriptPatch","description":"``PATCH /audio/transcripts/{id}``: archive or restore, and name speakers (None clears)."},"TranscriptRequest":{"properties":{"url":{"type":"string","maxLength":2048,"title":"Url"},"languages":{"items":{"type":"string","maxLength":64},"type":"array","maxItems":8,"title":"Languages"}},"type":"object","required":["url"],"title":"TranscriptRequest"},"TranscriptResponse":{"properties":{"videoId":{"type":"string","title":"Videoid"},"url":{"type":"string","title":"Url"},"title":{"type":"string","title":"Title"},"author":{"type":"string","title":"Author"},"lengthSeconds":{"type":"integer","title":"Lengthseconds"},"language":{"type":"string","title":"Language"},"languageCode":{"type":"string","title":"Languagecode"},"isGenerated":{"type":"boolean","title":"Isgenerated"},"text":{"type":"string","title":"Text"},"truncated":{"type":"boolean","title":"Truncated"}},"type":"object","required":["videoId","url","title","author","lengthSeconds","language","languageCode","isGenerated","text","truncated"],"title":"TranscriptResponse"},"TransformersUpgradeCheckRequest":{"properties":{"model_name":{"type":"string","maxLength":1024,"minLength":1,"title":"Model Name","description":"Model identifier, local path or checkpoint directory to check."},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"HuggingFace token, so gated repos resolve their config.json"},"prefer_local_cache":{"type":"boolean","title":"Prefer Local Cache","description":"Inspect the cached snapshot rather than the Hub repo, when one is pinned.","default":false},"model_local_path":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Model Local Path","description":"Cache directory the caller selected for this model, if any."},"model_snapshot_path":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Model Snapshot Path","description":"Exact snapshot the load is pinned to; takes precedence over model_local_path, as it does for the remote-code scan."},"model_snapshot_repo_id":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Model Snapshot Repo Id","description":"Repository the pinned snapshot belongs to, when it differs from model_name."},"resume_run_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Resume Run Id","description":"Run this check precedes a resume of. Lets the answer say whether installing would strand that checkpoint's exact 4-bit resume."}},"type":"object","required":["model_name"],"title":"TransformersUpgradeCheckRequest","description":"Ask whether loading a model needs a newer transformers than any installed overlay."},"TransformersUpgradeCheckResponse":{"properties":{"model_name":{"type":"string","title":"Model Name","description":"The identifier that was checked"},"requires_transformers_upgrade":{"type":"boolean","title":"Requires Transformers Upgrade","description":"True when the architecture is unknown to every installed transformers but a newer transformers ships it; the caller should raise the install consent dialog before starting the load.","default":false},"transformers_upgrade":{"anyOf":[{"$ref":"#/components/schemas/TransformersUpgradeInfo"},{"type":"null"}],"description":"Details for the consent dialog; set only when requires_transformers_upgrade is true."},"requires_trust_remote_code":{"type":"boolean","title":"Requires Trust Remote Code","description":"Whether the model can load on the CURRENT transformers through its own repo code, so a declined (or unavailable) install still has a path forward.","default":false},"latest_tier_active":{"type":"boolean","title":"Latest Tier Active","description":"Whether the latest-transformers sidecar already routes this model.","default":false},"forces_16bit":{"type":"boolean","title":"Forces 16Bit","description":"Whether a run started now would load 16-bit rather than bnb 4-bit: true when the latest sidecar already routes the model, and when an install-only upgrade would put it there. Lets the UI state the real precision before the run starts.","default":false},"sidecar_keeps_4bit":{"type":"boolean","title":"Sidecar Keeps 4Bit","description":"Whether a load on the latest sidecar stays bnb 4-bit for this model: an architecture validated in 4-bit there, or a checkpoint already quantized with bitsandbytes. When true, installing the offered release does not switch the run to 16-bit.","default":false},"install_breaks_exact_resume":{"type":"boolean","title":"Install Breaks Exact Resume","description":"Set only for a resume_run_id: installing the offered release would activate the latest sidecar, which permanently refuses that checkpoint's attested 4-bit model load mode. The caller must not offer the install when the run can start without it.","default":false}},"type":"object","required":["model_name"],"title":"TransformersUpgradeCheckResponse","description":"Upgrade + quantization preflight for a load that does not run /validate.\n\n/validate answers this for a chat load as part of a much larger check (GGUF\nplacement, VRAM coexistence, security review). Training needs the same two answers\non their own, before starting a worker that would die at model load with an\nunrecognized-architecture error."},"TransformersUpgradeInfo":{"properties":{"model_type":{"type":"string","title":"Model Type","description":"config.json model_type unknown to every installed transformers"},"pypi_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pypi Version","description":"Latest transformers release on PyPI at check time"},"supported_in_pypi":{"type":"boolean","title":"Supported In Pypi","description":"True if the latest PyPI release ships this model_type; Unsloth can install it into a persistent sidecar after user consent.","default":false},"supported_in_main":{"type":"boolean","title":"Supported In Main","description":"True if transformers GitHub main ships this model_type; with main_version set, Unsloth can install main into the persistent sidecar after user consent.","default":false},"main_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Version","description":"transformers main __version__ (a .devN string) at check time"}},"type":"object","required":["model_type"],"title":"TransformersUpgradeInfo","description":"A model architecture no installed transformers ships, but a newer release does."},"TransportCapabilities":{"properties":{"http":{"$ref":"#/components/schemas/TransportCapability"},"xet":{"$ref":"#/components/schemas/TransportCapability"},"auto_resolves_to":{"type":"string","enum":["xet","http"],"title":"Auto Resolves To","default":"xet"},"auto_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Reason"},"partials_resumable":{"type":"boolean","title":"Partials Resumable","default":true},"speed_limited":{"type":"boolean","title":"Speed Limited","default":false}},"type":"object","required":["http","xet"],"title":"TransportCapabilities"},"TransportCapability":{"properties":{"available":{"type":"boolean","title":"Available"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["available"],"title":"TransportCapability"},"TransportStatusResponse":{"properties":{"has_partial":{"type":"boolean","title":"Has Partial"},"last_transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Transport"},"resumable":{"type":"boolean","title":"Resumable"}},"type":"object","required":["has_partial","resumable"],"title":"TransportStatusResponse"},"TrustedToolFoldersPayload":{"properties":{"folders":{"items":{"type":"string"},"type":"array","maxItems":32,"title":"Folders"}},"additionalProperties":false,"type":"object","required":["folders"],"title":"TrustedToolFoldersPayload"},"TrustedToolFoldersResponse":{"properties":{"folders":{"items":{"type":"string"},"type":"array","title":"Folders"}},"type":"object","required":["folders"],"title":"TrustedToolFoldersResponse"},"UnknownContentPart":{"properties":{"type":{"type":"string","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"UnknownContentPart"},"UnloadRequest":{"properties":{"model_path":{"type":"string","title":"Model Path","description":"Model identifier to unload"},"cancel_load_request_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$"},{"type":"null"}],"title":"Cancel Load Request Id","description":"Cancel only this in-flight load attempt; never unload a resident model"},"force_cancel_active":{"type":"boolean","title":"Force Cancel Active","description":"Stop chats still generating instead of refusing with 409. An unload takes away the llama-server they are decoding on.","default":false}},"type":"object","required":["model_path"],"title":"UnloadRequest","description":"Request to unload a model"},"UnloadResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Unload status"},"model":{"type":"string","title":"Model","description":"Model identifier that was unloaded"}},"type":"object","required":["status","model"],"title":"UnloadResponse","description":"Response after unloading a model"},"UnrealToolsInstall":{"properties":{"project_path":{"type":"string","maxLength":4096,"minLength":1,"pattern":"^[^\\x00]*$","title":"Project Path"}},"additionalProperties":false,"type":"object","required":["project_path"],"title":"UnrealToolsInstall"},"UnrealToolsInstallResult":{"properties":{"files":{"items":{"type":"string"},"type":"array","title":"Files"},"restart_required":{"type":"boolean","title":"Restart Required","default":true}},"type":"object","required":["files"],"title":"UnrealToolsInstallResult"},"UnstructuredFileUploadResponse":{"properties":{"file_id":{"type":"string","title":"File Id"},"filename":{"type":"string","title":"Filename"},"size_bytes":{"type":"integer","title":"Size Bytes"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["file_id","filename","size_bytes","status"],"title":"UnstructuredFileUploadResponse"},"UpdateApiKeyRequest":{"properties":{"access":{"type":"string","enum":["full","inference"],"title":"Access"}},"type":"object","required":["access"],"title":"UpdateApiKeyRequest"},"UpdateFolderRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"autoSync":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autosync"}},"type":"object","title":"UpdateFolderRequest"},"UpdateKbRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"UpdateKbRequest"},"UpdatePlan":{"properties":{"plan":{"$ref":"#/components/schemas/ResearchPlan"},"expectedRevision":{"type":"integer","minimum":0.0,"title":"Expectedrevision"}},"additionalProperties":false,"type":"object","required":["plan","expectedRevision"],"title":"UpdatePlan"},"UploadLimitPayload":{"properties":{"max_upload_size_mb":{"type":"integer","maximum":8192.0,"minimum":1.0,"title":"Max Upload Size Mb"}},"type":"object","required":["max_upload_size_mb"],"title":"UploadLimitPayload"},"UploadLimitResponse":{"properties":{"max_upload_size_mb":{"type":"integer","title":"Max Upload Size Mb"},"max_upload_size_bytes":{"type":"integer","title":"Max Upload Size Bytes"},"max_upload_size_label":{"type":"string","title":"Max Upload Size Label"},"default_upload_size_mb":{"type":"integer","title":"Default Upload Size Mb"},"min_upload_size_mb":{"type":"integer","title":"Min Upload Size Mb","default":1},"max_allowed_upload_size_mb":{"type":"integer","title":"Max Allowed Upload Size Mb","default":8192},"audio_input_max_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Audio Input Max Bytes"}},"type":"object","required":["max_upload_size_mb","max_upload_size_bytes","max_upload_size_label","default_upload_size_mb"],"title":"UploadLimitResponse"},"ValidateChatTemplateRequest":{"properties":{"template":{"type":"string","title":"Template","default":""}},"type":"object","title":"ValidateChatTemplateRequest"},"ValidateChatTemplateResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["valid"],"title":"ValidateChatTemplateResponse"},"ValidateError":{"properties":{"message":{"type":"string","title":"Message"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},"type":"object","required":["message"],"title":"ValidateError"},"ValidateModelRequest":{"properties":{"engine_parallelism":{"type":"string","enum":["tensor","pipeline","data"],"title":"Engine Parallelism","default":"tensor"},"engine_precision":{"type":"string","enum":["auto","bf16","fp16","int4","int8","fp8"],"title":"Engine Precision","default":"auto"},"engine_kv_cache_dtype":{"type":"string","enum":["auto","fp8"],"title":"Engine Kv Cache Dtype","description":"Managed engine KV cache dtype; 'fp8' halves KV cache memory (vLLM --kv-cache-dtype).","default":"auto"},"engine_seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Engine Seed","description":"Managed engine seed (vLLM --seed)."},"engine_gpu_memory_utilization":{"anyOf":[{"type":"number","maximum":0.99,"minimum":0.05},{"type":"null"}],"title":"Engine Gpu Memory Utilization","description":"Upper bound on the share of each selected GPU the managed engine may claim (vLLM --gpu-memory-utilization). Unset lets Unsloth size it from free memory."},"engine":{"type":"string","enum":["auto","vllm","sglang"],"title":"Engine","default":"auto"},"model_path":{"type":"string","title":"Model Path","description":"Model identifier or local path"},"native_path_lease":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Native Path Lease","description":"Frontend-visible signed native path grant"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"HuggingFace token for gated models"},"llama_extra_args":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Llama Extra Args","description":"Pass-through llama-server args the follow-up /load will send. Sized with, not validated here: a --ctx-size or cache override changes the memory this preflight estimates, so omitting it would approve a different command from the one that runs."},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant","description":"GGUF quantization variant (e.g. 'Q4_K_M')"},"max_seq_length":{"type":"integer","maximum":1048576.0,"minimum":0.0,"title":"Max Seq Length","default":0},"load_in_4bit":{"type":"boolean","title":"Load In 4Bit","default":true},"cache_type_kv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Type Kv"},"tensor_parallel":{"type":"boolean","title":"Tensor Parallel","default":false},"disable_vision":{"type":"boolean","title":"Disable Vision","default":false},"gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Gpu Ids"},"audio_device":{"anyOf":[{"type":"string","enum":["auto","cpu","gpu"]},{"type":"null"}],"title":"Audio Device","description":"Native audio placement intended for the follow-up load. 'cpu' skips the GPU-memory preflight, which that load would not use."},"gpu_memory_mode":{"type":"string","enum":["auto","manual"],"title":"Gpu Memory Mode","description":"GGUF GPU-memory strategy intended for the follow-up load. Manual placement bypasses the training coexistence estimate: Auto layers delegate fitting to llama.cpp, while explicit layers are user-owned.","default":"auto"},"gpu_layers":{"type":"integer","minimum":-1.0,"title":"Gpu Layers","description":"Layer count intended for the follow-up load, so the coexistence estimate sizes like /load. Only 0 changes the verdict: a zero-layer DiffusionGemma split places no layers on any device, so it cannot compete with training for VRAM. -1 (Auto) keeps the previous behaviour for callers that omit it.","default":-1},"tensor_split":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Tensor Split","description":"Per-GPU share (--tensor-split) intended for the follow-up load. Manual mode promotes an explicit -ts from llama_extra_args into this field before stripping the raw flag, so the preflight strips exactly the tokens /load strips and judges the command /load will run (#11330). No sizing here reads the ratio itself: _guard_chat_load_against_training and _estimate_gguf_required_gb budget per device, not per share."},"n_parallel":{"anyOf":[{"type":"integer","maximum":64.0,"minimum":1.0},{"type":"null"}],"title":"N Parallel","description":"Parallel decode slots intended for the follow-up load, so the coexistence estimate sizes the KV cache like /load. Omit for the server-wide --parallel default."},"n_batch":{"anyOf":[{"type":"integer","maximum":65536.0,"minimum":1.0},{"type":"null"}],"title":"N Batch","description":"Batch size (--batch-size) intended for the follow-up load, so the coexistence estimate sizes the compute buffer like /load."},"n_ubatch":{"anyOf":[{"type":"integer","maximum":65536.0,"minimum":1.0},{"type":"null"}],"title":"N Ubatch","description":"Micro-batch size (--ubatch-size) intended for the follow-up load, so the coexistence estimate sizes the compute buffer like /load."},"speculative_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speculative Type","description":"Speculative mode intended for the follow-up load. The estimate is mode-dependent -- the drafter it charges differs by kind, and a DSpark sidecar is ~11 GB -- so omitting it makes this preflight disagree with /load in both directions."},"spec_draft_n_max":{"anyOf":[{"type":"integer","maximum":16.0,"minimum":1.0},{"type":"null"}],"title":"Spec Draft N Max","description":"Draft depth intended for the follow-up load; sizes the draft KV."},"spec_draft_cache_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec Draft Cache Type","description":"Draft KV cache dtype intended for the follow-up load. Sent so this preflight strips the same inherited draft-cache flags /load would, and so approves the command the load actually runs. The coexistence estimate prices the drafter's weights but not its KV, so the value itself does not move the number."},"ctx_checkpoints":{"anyOf":[{"type":"integer","maximum":256.0,"minimum":0.0},{"type":"null"}],"title":"Ctx Checkpoints","description":"Checkpoints (--ctx-checkpoints) intended for the follow-up load, so the coexistence estimate sizes the SWA cache like /load. Each one is a per-slot snapshot that scales with the slot's context, so a load asking for them needs materially more memory than one that does not."},"reasoning_budget":{"type":"integer","maximum":2147483647.0,"minimum":-1.0,"title":"Reasoning Budget","default":-1},"reasoning_budget_message":{"type":"string","title":"Reasoning Budget Message","default":""},"include_context_length":{"type":"boolean","title":"Include Context Length","description":"Also read the native context length from the local GGUF header. Opt-in so the normal load preflight doesn't pay for a cache scan it doesn't need.","default":false},"include_chat_template":{"type":"boolean","title":"Include Chat Template","description":"Also read the embedded chat template from the local GGUF header, so a native (picked / drag-drop) file's default template can be shown before it is loaded. Opt-in and, like include_context_length, a metadata-only probe that skips the training guard. Only the leased file's own embedded template is read, never sibling sidecars.","default":false}},"type":"object","required":["model_path"],"title":"ValidateModelRequest","description":"Check whether an identifier resolves to a ModelConfig; does NOT load weights."},"ValidateModelResponse":{"properties":{"valid":{"type":"boolean","title":"Valid","description":"Whether the model identifier looks valid"},"message":{"type":"string","title":"Message","description":"Human-readable validation message"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier","description":"Resolved model identifier"},"resident":{"type":"boolean","title":"Resident","description":"Whether the weights this identifier names are the ones already loaded. Decided from the files, so an Ollama tag answers for whichever of its spellings loaded it.","default":false},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name","description":"Display name derived from identifier"},"is_gguf":{"type":"boolean","title":"Is Gguf","description":"Whether this is a GGUF model (llama.cpp)","default":false},"is_diffusion":{"type":"boolean","title":"Is Diffusion","description":"Whether this is a block-diffusion model (DiffusionGemma)","default":false},"diffusion_unknown":{"type":"boolean","title":"Diffusion Unknown","description":"Whether the diffusion check came back inconclusive: the GGUF is not downloaded yet (or its header is unreadable) and its name does not carry the DiffusionGemma family, so is_diffusion == False here means 'not known to be diffusion', NOT 'known to be an ordinary GGUF'. Callers that choose a GPU-layer split before the load must treat this as possibly-diffusion.","default":false},"is_lora":{"type":"boolean","title":"Is Lora","description":"Whether this is a LoRA adapter","default":false},"is_vision":{"type":"boolean","title":"Is Vision","description":"Whether this is a vision-capable model","default":false},"requires_trust_remote_code":{"type":"boolean","title":"Requires Trust Remote Code","description":"Whether the model defaults require trust_remote_code to be enabled for loading.","default":false},"requires_security_review":{"type":"boolean","title":"Requires Security Review","description":"Whether Hugging Face's security scan flagged unsafe files (e.g. a malicious pickle), so the load is hard-blocked pending review.","default":false},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length","description":"Native training context length, read from the GGUF header when the file is already downloaded locally; None for non-GGUF, gated, or not-yet-downloaded models."},"layer_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Layer Count","description":"Total layer count (GGUF block_count), the manual gpu-layers ceiling, read from the header alongside context_length; None when not read."},"moe_layer_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Moe Layer Count","description":"MoE expert-layer count (the manual --n-cpu-moe ceiling), read from the GGUF header alongside context_length; 0 for dense models, None when not read."},"chat_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template","description":"Embedded GGUF chat template, read from the header when include_chat_template is set (native lease-backed picks); None for non-GGUF, over-cap, or not-read templates."},"requires_transformers_upgrade":{"type":"boolean","title":"Requires Transformers Upgrade","description":"True when the model's architecture is unknown to every installed transformers but a newer transformers ships it; the UI should offer the install-transformers consent dialog (a PyPI release, else transformers main).","default":false},"transformers_upgrade":{"anyOf":[{"$ref":"#/components/schemas/TransformersUpgradeInfo"},{"type":"null"}],"description":"Details for the transformers-upgrade dialog; set only when requires_transformers_upgrade is true."},"mlx_loads_base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mlx Loads Base Model","description":"On an MLX host, the full-precision repo that will be downloaded and loaded in place of the requested unsloth bnb-4bit repo (or of a LoRA's bnb base), because MLX cannot read bitsandbytes weights. None when the pick loads as asked."},"managed_engine_offer":{"anyOf":[{"$ref":"#/components/schemas/ManagedEngineOffer"},{"type":"null"}],"description":"Set when the Default engine cannot run this checkpoint's quantization but an optional engine can on this host; the UI offers to load it there."}},"type":"object","required":["valid","message"],"title":"ValidateModelResponse","description":"Result of model validation.\n\nvalid == True means from_identifier() succeeded and GGUF/LoRA/vision flags are available."},"ValidateResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"errors":{"items":{"$ref":"#/components/schemas/ValidateError"},"type":"array","title":"Errors"},"raw_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Detail"}},"type":"object","required":["valid"],"title":"ValidateResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VideoContentPart":{"properties":{"type":{"type":"string","const":"video_url","title":"Type"},"video_url":{"$ref":"#/components/schemas/VideoUrl"}},"type":"object","required":["type","video_url"],"title":"VideoContentPart","description":"Video content part for llama-server or a custom OpenAI-compatible connection."},"VideoGalleryListResponse":{"properties":{"videos":{"items":{"$ref":"#/components/schemas/GalleryVideo"},"type":"array","title":"Videos"},"has_more":{"type":"boolean","title":"Has More","description":"Whether older videos remain past this page","default":false}},"type":"object","title":"VideoGalleryListResponse","description":"A newest-first page of persisted videos, for infinite scroll."},"VideoGenerateProgressResponse":{"properties":{"active":{"type":"boolean","title":"Active","description":"Whether a generation is running","default":false},"phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase","description":"Current phase: queued | encode | denoise | decode | export | completed | failed | null"},"step":{"type":"integer","title":"Step","description":"Denoising steps completed so far","default":0},"total":{"type":"integer","title":"Total","description":"Total denoising steps for this run","default":0},"total_steps":{"type":"integer","title":"Total Steps","description":"Total denoising steps (alias of total)","default":0},"fraction":{"type":"number","title":"Fraction","description":"step / total, clamped to [0,1]","default":0.0},"eta_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eta Seconds","description":"Estimated seconds remaining"},"preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview","description":"Live latent preview of the first frame being denoised, as a JPEG data URL"},"preview_seq":{"type":"integer","title":"Preview Seq","description":"Moves each time a new preview is published","default":0},"video":{"anyOf":[{"$ref":"#/components/schemas/GalleryVideo"},{"type":"null"}],"description":"Saved gallery record when phase is 'completed'"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Client-safe failure detail when phase is 'failed'"}},"type":"object","title":"VideoGenerateProgressResponse","description":"Live progress for an in-flight video generation, plus the terminal outcome\nof the background job POST /video/generate started."},"VideoGenerateRequest":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"Text prompt"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt","description":"What to avoid (if the model supports it)"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Video model to generate on. Only read when media auto-switch is on, where a downloaded model that is not the resident one is loaded first; omit to use whatever is loaded. The Video page never sends it."},"live_preview":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Live Preview","description":"Stream a small live preview of the first frame while the clip denoises (generate-progress 'preview'). Null = the server default (on unless UNSLOTH_DIFFUSION_PREVIEW=0)."},"draft_decode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Draft Decode","description":"Wan families only: decode the finished latent with the tiny Wan VAE instead of the full one (much faster and lighter, visibly softer; for drafts on CPU, Apple Silicon or small GPUs). Falls back to the full decode when the tiny decoder is unavailable. Null = the server default (off unless UNSLOTH_VIDEO_DRAFT_DECODE=1)."},"width":{"anyOf":[{"type":"integer","maximum":2048.0,"minimum":32.0},{"type":"null"}],"title":"Width","description":"Frame width in pixels (a multiple of the loaded family's resolution_multiple near its presets)"},"height":{"anyOf":[{"type":"integer","maximum":2048.0,"minimum":32.0},{"type":"null"}],"title":"Height","description":"Frame height in pixels (see width)"},"num_frames":{"anyOf":[{"type":"integer","maximum":1024.0,"minimum":1.0},{"type":"null"}],"title":"Num Frames","description":"Number of frames; must lie on the family's temporal lattice (k * frame_step + frame_offset)"},"fps":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":1.0},{"type":"null"}],"title":"Fps","description":"Playback frame rate (default per family)"},"steps":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Steps","description":"Number of denoising steps (default per model)"},"guidance":{"anyOf":[{"type":"number","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Guidance","description":"Classifier-free guidance scale (default per model)"},"guidance_2":{"anyOf":[{"type":"number","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Guidance 2","description":"Low-noise-stage guidance scale for a dual-expert MoE family (Wan2.2-A14B): the guidance the second transformer uses on the low-noise denoise steps. null lets the pipeline default it to the main guidance. Ignored by single-DiT families (their pipeline signature has no second guidance kwarg)."},"seed":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":-1.0},{"type":"null"}],"title":"Seed","description":"Seed for reproducibility (random if omitted or -1)"},"first_frame":{"anyOf":[{"type":"string","maxLength":33554432},{"type":"null"}],"title":"First Frame","description":"Base64/data-URL image the clip starts from (image-to-video). With width and height omitted it picks the canvas: MiniMax-H3 keeps its default 1344x768 (as the reference workflow does) and stretches the frame on; Wan2.2-TI2V-5B and LTX-2 take the resolution preset nearest its aspect and centre-crop it on. Omit for text-to-video. Rejected by a family that takes no first frame (status supports_first_frame)."},"last_frame":{"anyOf":[{"type":"string","maxLength":33554432},{"type":"null"}],"title":"Last Frame","description":"Base64/data-URL image the clip ends on (MiniMax-H3 only, status supports_last_frame). Valid on its own (generate up TO a frame) or with first_frame (first-and-last-frame video), in which case it follows the first and is centre cover-cropped onto the canvas."},"continuation_video":{"anyOf":[{"type":"string","maxLength":100663296},{"type":"null"}],"title":"Continuation Video","description":"Base64/data-URL video to continue (Cosmos3-Nano only, status supports_video_continuation): the clip keeps 5 frames from one end of it and generates what follows. At most 15 seconds; frames are resampled onto fps and centre-cropped to the canvas aspect. With width and height omitted the canvas is the preset nearest the clip's aspect. Cannot be combined with keyframes or references."},"continuation_keep":{"anyOf":[{"type":"string","enum":["last","first"]},{"type":"null"}],"title":"Continuation Keep","description":"Which end of continuation_video to keep: last (default) continues the clip from its final frames; first keeps its opening frames and generates on from there."},"reference_images":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":9},{"type":"null"}],"title":"Reference Images","description":"Subject / style / scene reference images (base64/data-URL), at most 9. The prompt refers to them as <Picture 1>, <Picture 2>, ... in this order."},"reference_videos":{"anyOf":[{"items":{"$ref":"#/components/schemas/VideoReferenceVideo"},"type":"array","maxItems":3},{"type":"null"}],"title":"Reference Videos","description":"Motion / camera reference videos, at most 3. The prompt refers to them as <Video 1>, <Video 2>, ... in this order."},"reference_audios":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Reference Audios","description":"Standalone reference audio (base64/data-URL), at most 3, for voice or score. The prompt refers to them as <Audio 1>, <Audio 2>, ... in this order. Audio cannot be the only kind of reference a request carries."},"flow_shift":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Flow Shift","description":"Sigma shift of the video schedule (MiniMax-H3 ships 12.0). Higher spends more of the schedule at high noise, which reads as more motion and less detail. null keeps the released value."},"audio_flow_shift":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Audio Flow Shift","description":"Sigma shift of the audio schedule (MiniMax-H3 ships 3.0). Needs the Diffusers engine: stable-diffusion.cpp derives the audio schedule against a hardcoded 3.0, so it has no flag to map this onto. null keeps the released value."},"reference_image_size":{"anyOf":[{"type":"string","enum":["match","max"]},{"type":"null"}],"title":"Reference Image Size","description":"How reference images are sized: match (default) scales each down to the generation's pixel area; max uses the reference pipeline's 2048px short edge for stronger identity fidelity, several times slower. max needs the Diffusers engine -- stable-diffusion.cpp rescales every reference to the generation area regardless."}},"type":"object","required":["prompt"],"title":"VideoGenerateRequest","description":"Request to generate one clip from the loaded video model."},"VideoGenerateResponse":{"properties":{"status":{"type":"string","const":"started","title":"Status","description":"Discriminator: the generation job was started","default":"started"},"video":{"anyOf":[{"$ref":"#/components/schemas/GalleryVideo"},{"type":"null"}],"description":"Always null (kept for response-shape compatibility); the saved record is delivered by generate-progress on completion"}},"type":"object","title":"VideoGenerateResponse","description":"Acknowledgement that a generation was accepted and started.\n\nGeneration runs as a background job (a clip takes minutes, and secure mode's\ntunnel caps the origin response window near 100 seconds, so the POST cannot\nspan it). The saved gallery record arrives via GET /video/generate-progress\nwhen its phase reaches \"completed\"."},"VideoGenerationDefaults":{"properties":{"steps":{"type":"integer","title":"Steps","description":"Default denoising steps"},"guidance":{"type":"number","title":"Guidance","description":"Default guidance scale"},"num_frames":{"type":"integer","title":"Num Frames","description":"Default frame count"},"fps":{"type":"integer","title":"Fps","description":"Default playback frame rate"},"fps_range":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Fps Range","description":"Inclusive [min, max] frame rate a request may pick, or null (see fps_choices)"},"fps_choices":{"items":{"type":"integer"},"type":"array","title":"Fps Choices","description":"Frame rates a request may pick; with neither this nor fps_range the rate is fixed"},"min_num_frames":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Num Frames","description":"Smallest frame count the family takes"},"max_num_frames":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Num Frames","description":"Largest frame count the family takes, or null for no family cap"},"frame_step":{"type":"integer","title":"Frame Step","description":"Temporal lattice stride"},"frame_offset":{"type":"integer","title":"Frame Offset","description":"Temporal lattice offset: valid counts are k * frame_step + frame_offset","default":1},"duration_presets":{"items":{"type":"number"},"type":"array","title":"Duration Presets","description":"Clip durations in seconds the UI offers"},"resolution_multiple":{"type":"integer","title":"Resolution Multiple","description":"Width/height must be divisible by this"},"resolution_presets":{"items":{"items":{"type":"integer"},"type":"array"},"type":"array","title":"Resolution Presets","description":"(width, height) presets the UI offers, default first"},"custom_size_min_pixels":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Custom Size Min Pixels","description":"Smallest width * height accepted off the presets, or null when only the snap applies"},"custom_size_max_pixels":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Custom Size Max Pixels","description":"Largest width * height accepted off the presets (see custom_size_min_pixels)"},"custom_size_max_aspect":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Custom Size Max Aspect","description":"Widest long:short ratio accepted off the presets (see custom_size_min_pixels)"},"canvas_short_edge":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Canvas Short Edge","description":"Short edge a source-derived canvas aims for, or null when the family has no keyframe canvas rule. With canvas_max_pixels and resolution_multiple this is the whole rule: short edge, then cap the area, then round both axes."},"canvas_max_pixels":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Canvas Max Pixels","description":"Area budget of a source-derived canvas, or null (see canvas_short_edge)"},"canvas_from_presets":{"type":"boolean","title":"Canvas From Presets","description":"True when a first frame without width/height takes the resolution preset nearest its aspect ratio (a declared image-to-video pipeline), instead of the canvas_short_edge rule","default":false},"keyframe_keeps_canvas":{"type":"boolean","title":"Keyframe Keeps Canvas","description":"True when a keyframe without width/height renders at the family default canvas (stretched / centre-cropped on, as MiniMax-H3's reference workflow does) rather than a canvas matched to its aspect","default":false},"default_resolution":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Default Resolution","description":"(width, height) of the page's Default preset when it differs from resolution_presets[0] (MiniMax-H3: the reference templates' 864x480); a request without a size still takes resolution_presets[0]"},"flow_shift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Flow Shift","description":"Released video-schedule sigma shift, or null when the family does not expose the control"},"audio_flow_shift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Audio Flow Shift","description":"Released audio-schedule sigma shift, or null (see flow_shift)"},"supports_audio_flow_shift":{"type":"boolean","title":"Supports Audio Flow Shift","description":"Whether the ACTIVE engine can honour audio_flow_shift; false on stable-diffusion.cpp, which pins the audio schedule at its released value","default":false}},"type":"object","required":["steps","guidance","num_frames","fps","frame_step","resolution_multiple"],"title":"VideoGenerationDefaults","description":"Per-family generation defaults + shape constraints for the loaded video model."},"VideoGenerationPreset":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"params":{"$ref":"#/components/schemas/VideoGenerationPresetParams"}},"additionalProperties":false,"type":"object","required":["name","params"],"title":"VideoGenerationPreset"},"VideoGenerationPresetParams":{"properties":{"negativePrompt":{"type":"string","title":"Negativeprompt","default":""},"width":{"type":"integer","maximum":2048.0,"minimum":32.0,"title":"Width","default":768},"height":{"type":"integer","maximum":2048.0,"minimum":32.0,"title":"Height","default":512},"durationSeconds":{"type":"number","maximum":3600.0,"exclusiveMinimum":0.0,"title":"Durationseconds","default":3},"steps":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Steps","default":8},"guidance":{"type":"number","maximum":20.0,"minimum":0.0,"title":"Guidance","default":1},"flowShift":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Flowshift"},"audioFlowShift":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Audioflowshift"},"fps":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":1.0},{"type":"null"}],"title":"Fps"}},"additionalProperties":false,"type":"object","title":"VideoGenerationPresetParams","description":"Bounds track VideoGenerateRequest, as the image params track theirs."},"VideoGenerationPresetSettings":{"properties":{"activePreset":{"type":"string","maxLength":80,"minLength":1,"title":"Activepreset","default":"Default"},"currentParams":{"$ref":"#/components/schemas/VideoGenerationPresetParams"},"customPresets":{"items":{"$ref":"#/components/schemas/VideoGenerationPreset"},"type":"array","title":"Custompresets"},"saved":{"type":"boolean","title":"Saved","default":false}},"additionalProperties":false,"type":"object","title":"VideoGenerationPresetSettings"},"VideoGenerationPresetState":{"properties":{"activePreset":{"type":"string","maxLength":80,"minLength":1,"title":"Activepreset","default":"Default"},"currentParams":{"$ref":"#/components/schemas/VideoGenerationPresetParams"}},"additionalProperties":false,"type":"object","title":"VideoGenerationPresetState"},"VideoJob":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"video","title":"Object","default":"video"},"model":{"type":"string","title":"Model"},"status":{"type":"string","enum":["queued","in_progress","completed","failed"],"title":"Status"},"progress":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Progress","default":0},"created_at":{"type":"integer","title":"Created At"},"completed_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completed At"},"expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires At"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"size":{"type":"string","title":"Size"},"seconds":{"type":"string","title":"Seconds"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"error":{"anyOf":[{"$ref":"#/components/schemas/VideoJobError"},{"type":"null"}]},"remixed_from_video_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remixed From Video Id"}},"type":"object","required":["id","model","status","created_at","size","seconds"],"title":"VideoJob"},"VideoJobDeleteResponse":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","const":"video.deleted","title":"Object","default":"video.deleted"},"deleted":{"type":"boolean","title":"Deleted","default":true}},"type":"object","required":["id"],"title":"VideoJobDeleteResponse"},"VideoJobError":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"VideoJobError"},"VideoJobListResponse":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/VideoJob"},"type":"array","title":"Data"},"first_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Id"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","title":"VideoJobListResponse"},"VideoLoadProgressResponse":{"properties":{"phase":{"anyOf":[{"type":"string","enum":["downloading","finalizing","saving_chat_context","ready","error"]},{"type":"null"}],"title":"Phase","description":"Load phase; null when idle"},"downloaded_bytes":{"type":"integer","title":"Downloaded Bytes","description":"Bytes present in the HF cache so far","default":0},"expected_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Bytes","description":"Estimated total bytes to download (null = unknown)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Failure message when phase is 'error'"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code","description":"Stable code for error: 'unified-memory-load' when the unified-memory check refused the load (retry with allow_oversized_load to attempt it anyway); null otherwise."}},"type":"object","title":"VideoLoadProgressResponse","description":"Download/finalize progress for an in-flight video load."},"VideoLoadRequest":{"properties":{"load_token":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Load Token","description":"Opaque id the client picks for this load; POST /video/unload with expected_load_id set to it unloads this load only, and cancels it if it has not started yet."},"model_path":{"type":"string","title":"Model Path","description":"Video repo id or local path"},"display_repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Repo Id","description":"Logical Hub id of a local snapshot"},"gguf_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Filename","description":"The chosen single-file checkpoint (GGUF or safetensors) inside model_path. Required for the gguf / single_file kinds; omit for a full pipeline."},"model_kind":{"anyOf":[{"type":"string","enum":["gguf","single_file","pipeline"]},{"type":"null"}],"title":"Model Kind","description":"How to load the model (null = auto-detect from gguf_filename): gguf (single-file GGUF transformer, dequantised on-device), single_file (single-file safetensors transformer, e.g. fp8), or pipeline (a full diffusers repo via from_pretrained). A single_file .safetensors loads from any repo; pipeline loads are restricted to unsloth/* repos, the official family base repos, or a local path."},"base_repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Repo","description":"Companion diffusers repo for VAE/text-encoders (default: family base)"},"family_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Override","description":"Force a family when it can't be inferred from the repo id"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token","description":"HuggingFace token for gated repos"},"memory_mode":{"anyOf":[{"type":"string","enum":["auto","fast","balanced","low_vram"]},{"type":"null"}],"title":"Memory Mode","description":"Memory policy: auto (measured), fast (resident), balanced (stream the transformer, near-resident speed, moderate VRAM cut), low_vram (stream the transformer and text encoders block by block, tiled VAE decode; lowest VRAM, slowest)."},"allow_oversized_load":{"type":"boolean","title":"Allow Oversized Load","description":"Attempt the load even when the unified-memory check (Apple Silicon, integrated GPUs) estimates its weights will not fit. The check stays on by default; an oversized load can exhaust memory, swap heavily, stop the server or make the computer unresponsive. Same effect as the server's UNSLOTH_DIFFUSION_ALLOW_OVERSIZED_LOAD=1, for this load only.","default":false},"loras":{"anyOf":[{"items":{"$ref":"#/components/schemas/LoraSpec"},"type":"array","maxItems":8},{"type":"null"}],"title":"Loras","description":"LoRA adapters to BAKE into the denoiser at load time, by discovery id (the same catalog the Images load reads, family-gated by the adapter's sidecar). Each is merged into the dense bfloat16 DiT before any quantisation, compile or offload, so changing the set or a weight needs a reload. Needs a full diffusers pipeline load (no gguf_filename); skips any hosted pre-quantized denoiser (the dense load peak is paid) and, on MiniMax-H3, pins the released bfloat16 denoiser. null / empty / all weights 0 = a plain load."},"speed_mode":{"anyOf":[{"type":"string","enum":["off","eager","default","max"]},{"type":"null"}],"title":"Speed Mode","description":"Speed optims. Unset: default for every video load, dense or GGUF (regional torch.compile where eligible; output is close to, not bit-identical with, off). off (bit-identical output; a quantized transformer still compiles), eager (channels_last + cudnn + attention + fused norm patches, NO torch.compile), default (also regional torch.compile where eligible), max (also TF32 + fused QKV)."},"attention_backend":{"anyOf":[{"type":"string","enum":["auto","native","sdpa","cudnn","flash","flash2","flash3","flash4","sage","xformers","aiter","unsloth_int8","flash_sdpa"]},{"type":"null"}],"title":"Attention Backend","description":"Attention kernel via the diffusers dispatcher. auto picks the best exact backend for the device (cuDNN fused attention on NVIDIA when a speed profile is active; native SDPA elsewhere and when speed=off). native (alias sdpa) forces default SDPA; cudnn/flash/flash3/flash4 are exact (kernel/arch-gated); sage is INT8 attention; unsloth_int8 is Studio's own INT8 attention kernel on the families with strided attention processors; xformers/aiter are memory-efficient (NVIDIA) / AMD ROCm (aiter needs diffusers' local AITER backend, gone in 0.41+; without it ROCm runs the auto pick); flash_sdpa pins torch SDPA's flash kernel. diffusers dispatcher names (_native_flash, _native_cudnn, _flash_3_hub, flash_4_hub, sage_hub) are accepted as the matching alias. An unavailable kernel falls back to the auto pick (native SDPA when speed=off)."},"int8_attention":{"anyOf":[{"type":"string","enum":["auto","on","off"]},{"type":"null"}],"title":"Int8 Attention","description":"Studio's own INT8 attention kernel for this load. auto (the default, also when unset) engages it where it is measured accurate and faster for this model and GPU (it passes the per-card accuracy check against fp32 attention and wins a timed race against the selected attention); the UNSLOTH_DIFFUSION_INT8_ATTENTION_KERNEL environment switch still applies. on engages it wherever it passes the accuracy check, over the env switch (attention_backend=unsloth_int8 is the same). off never engages it on this load, over the env switch; it does not change an explicit attention_backend such as sage. The status record reports what engaged under resolved.int8_attention."},"transformer_cache":{"anyOf":[{"type":"string","enum":["off","fbcache","static"]},{"type":"null"}],"title":"Transformer Cache","description":"Step caching. fbcache = First-Block-Cache: reuse the transformer tail across denoise steps when the first block's residual barely changes. Unset = auto: engages only on speed_mode=max with a 20+ step schedule, otherwise uncached. An explicit fbcache engages on every speed tier; incompatible models run uncached. static = skip denoiser calls on a fixed schedule (first 20% and last 10% of the steps always run, every other middle step is extrapolated from the last two computed outputs; 12+ steps only), which keeps compile fullgraph and the CUDA graph. Single-denoiser video-only families: a two-expert MoE (Wan2.2 A14B), a joint audio + video denoiser (LTX-2) and the MiniMax-H3 modular workflow run uncached. Never picked automatically."},"transformer_cache_threshold":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Transformer Cache Threshold","description":"FBCache residual threshold (higher = skips more steps = faster, lower quality). null auto-picks the family default. Ignored by static."},"transformer_quant":{"anyOf":[{"type":"string","enum":["auto","none","off","int8","fp8","nvfp4","mxfp8"]},{"type":"null"}],"title":"Transformer Quant","description":"Quantise the dense DiT(s) on a full-pipeline load. On a diffusers pipeline load the dense bf16 transformer(s) are torchao-quantised in place onto the low-precision tensor cores (int8 first on every tier, then fp8 on sm_89+), which is faster than running dense bf16. For a dual-expert MoE family (Wan2.2-A14B) BOTH experts are quantised with the same scheme. null/none/off keeps the DiT(s) at their loaded precision; an explicit scheme forces it. Needs CUDA + bf16; ignored on gguf/single_file loads (they carry their own precision). Mirrors the image backend's transformer_quant field."},"text_encoder_quant":{"anyOf":[{"type":"string","enum":["auto","none","off","fp8","fp8_dynamic","int8","nvfp4"]},{"type":"null"}],"title":"Text Encoder Quant","description":"Quantise the dense companion text encoder (Gemma3 / UMT5 / Qwen2.5-VL), which loads bf16 from the base repo regardless of how the DiT was sourced and is often the largest resident component. fp8 = diffusers layerwise casting (memory only, cc >= 8.9); fp8_dynamic = torchao per-row fp8 COMPUTE on the tensor cores (cc >= 8.9); int8 = torchao int8 COMPUTE with per-family keep-bf16 selection (cc >= 8.0; falls back to fp8 for a family without a measured schedule); nvfp4 = torchao 4-bit weight-only, dequantised to bf16 per forward (cc >= 8.0). null/auto leaves the choice to the backend, which takes the hosted pre-quantized encoder matching ComfyUI's template for the family: fp8 for Wan, LTX-2 / LTX-2.3 and HunyuanVideo-1.5, int8 ConvRot for LTX-2.5, and the hosted quantized conditioner on MiniMax-H3; a host that cannot run it keeps the dense encoder. none/off always keeps the released bf16 encoder. Mirrors the image backend's field."},"h3_task":{"anyOf":[{"type":"string","enum":["fl2va","ref2va"]},{"type":"null"}],"title":"H3 Task","description":"Which MiniMax-H3 denoiser partition to bring up: fl2va (text-to-video and first/last-frame video, the default) or ref2va (omni-reference video). They are separate ~62 GB partitions, so a load serves one of them. Ignored for a GGUF pick, whose filename already names the partition; rejected if it contradicts that filename."},"gpu_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Gpu Ids","description":"CUDA / ROCm physical indices this load may use, or null for automatic. Neither engine shards a video checkpoint, so a selection of several cards resolves to the one with the most free VRAM. Refused with a 400 when an index does not exist here; ignored on XPU / MPS / CPU, which have no applicator for a physical index. Mirrors the image backend's field."}},"type":"object","required":["model_path"],"title":"VideoLoadRequest","description":"Request to load a local text-to-video checkpoint."},"VideoLoadUnloadedResponse":{"properties":{"load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Id","description":"The load_token of the load in flight or resident (one Studio made up for a load sent without one); POST unload with expected_load_id set to it unloads that load only."},"resident_load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resident Load Id","description":"The load_token of the model resident in the slot, also while another load is in flight over it (equal to load_id when none is); a failed replacement leaves this model loaded."},"resident_mib":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resident Mib","description":"Best-effort memory the resident model holds, in MiB; null when unknown."},"multi_gpu":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Multi Gpu","description":"Multi-GPU placement (component -> card, primary, secondary) and CFG-parallel state (armed, call counts, or why it declined); null when the load had one card to use. A multi-card load that kept everything on its primary card reports why it declined."},"graph_engagement":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Graph Engagement","description":"Compile / CUDA-graph engagement counters: this load's graph captures, replays and ungraphed denoiser calls (whole-step, per block, per-card segments, and the per-block graphs a whole-step graph falls back to), and the process's dynamo frame and graph-break totals; null when nothing is loaded."},"loaded":{"type":"boolean","title":"Loaded","description":"Whether a video model is loaded","default":false},"evicted":{"items":{"type":"string"},"type":"array","title":"Evicted","description":"Models this load unloaded to make room. Filled only on the load answer."},"evicted_slots":{"items":{"$ref":"#/components/schemas/EvictedSlot"},"type":"array","title":"Evicted Slots","description":"The same models as evicted, each with its kind and public model id."},"repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Id","description":"Loaded repo id or local path"},"display_repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Repo Id","description":"Logical Hub id of a local snapshot"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family","description":"Detected video family"},"supported_families":{"items":{"type":"string"},"type":"array","title":"Supported Families","description":"Loadable families"},"modular_families":{"items":{"type":"string"},"type":"array","title":"Modular Families","description":"Modular families"},"base_repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Repo","description":"Companion diffusers base repo"},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device","description":"Device the pipeline is on"},"dtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dtype","description":"Compute dtype"},"model_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Kind","description":"Resolved load kind: gguf | single_file | pipeline (gates GGUF-only UI)"},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine","description":"Active video engine: diffusers | sd_cpp"},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant","description":"Selected GGUF quantisation variant (for example Q8_0)"},"offload_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offload Policy","description":"Resolved offload policy: none | group | model | sequential"},"vae_tiling":{"type":"boolean","title":"Vae Tiling","description":"Whether VAE tiling is enabled","default":false},"memory_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Mode","description":"Requested memory mode"},"speed_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speed Mode","description":"Requested speed mode"},"speed_optims":{"items":{"type":"string"},"type":"array","title":"Speed Optims","description":"Speed optimisations actually engaged"},"attention_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attention Backend","description":"Attention backend engaged via the diffusers dispatcher (e.g. _native_cudnn), or null for the default SDPA"},"sd_cpp_cudnn_attention":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sd Cpp Cudnn Attention","description":"MiniMax-H3 on stable-diffusion.cpp only: cuDNN fused attention state. ready (a CUDA 12 cuDNN is named to sd.cpp, no render yet) | engaged | fallback (sd.cpp kept its own kernels) | unavailable (no CUDA 12 cuDNN could be provided) | off (switched off) | null (not applicable: the build has no cuDNN attention, or the card, platform or engine is not eligible)."},"sd_cpp_cudnn_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sd Cpp Cudnn Reason","description":"Why sd_cpp_cudnn_attention is not engaged or ready, when known"},"transformer_cache":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Cache","description":"Step cache engaged: fbcache | static | null"},"transformer_cache_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Transformer Cache Stats","description":"Static step skip only: the schedule (mode, head, tail, every, planned_skips) and the denoiser call counts (calls, computed, skipped) of the clip in flight, else of the last one. null for any other step cache."},"render_engagement":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Render Engagement","description":"What the last clip actually ran: vae_decode = {untiled, tiled, wide, oom_fallback} decodes of the untiled-when-fits VAE wrapper (null when it is not installed), fbcache = {computed, skipped} First-Block-Cache decisions (null when it is not installed). null before the first clip."},"transformer_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant","description":"Dense transformer quant engaged on a pipeline load: int8 | fp8 | nvfp4 | mxfp8 | null (null = the DiT(s) run at their loaded bf16 precision). For a dual-expert MoE family both experts share the reported scheme."},"transformer_quant_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant Backend","description":"Which NVFP4 kernel path the loaded DiT(s) run: flashinfer | torchao | null (null for every scheme but nvfp4)."},"transformer_quant_backend_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant Backend Reason","description":"Why flashinfer is not serving an NVFP4 load that runs torchao: the on-demand install was refused (offline, opt-out, ineligible host) or failed and was rolled back. null when the backend is flashinfer, the scheme is not nvfp4, or no reason was recorded."},"baked_loras":{"items":{"type":"string"},"type":"array","title":"Baked Loras","description":"Adapters baked into the denoiser at load time (VideoLoadRequest.loras), by adapter name; empty when the load baked none"},"baked_lora_specs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Baked Lora Specs","description":"The baked adapters as the load requested them, [{id, weight}]; empty when none"},"lora_refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lora Refusal","description":"Why a reload of this model with VideoLoadRequest.loras would be refused (GGUF or single-file checkpoint, two-expert family); null when it can bake LoRAs or nothing is loaded"},"text_encoder_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Encoder Quant","description":"Text-encoder quant engaged: fp8 | fp8_dynamic | int8 | nvfp4 | null (null = the dense bf16 encoder is loaded). An int8 request without a per-family keep-bf16 schedule is reported as the fp8 it fell back to."},"has_audio":{"type":"boolean","title":"Has Audio","description":"Whether the loaded family produces a synchronized audio track","default":false},"supports_keyframes":{"type":"boolean","title":"Supports Keyframes","description":"Whether the LOADED checkpoint takes first/last-frame conditioning images (gates the image-to-video controls)","default":false},"supports_first_frame":{"type":"boolean","title":"Supports First Frame","description":"Whether the LOADED checkpoint takes a first_frame (image-to-video): MiniMax-H3 keyframes, or a family's declared image-to-video pipeline (Wan2.2-TI2V-5B, LTX-2 / LTX-2.3) built over the loaded components","default":false},"supports_last_frame":{"type":"boolean","title":"Supports Last Frame","description":"Whether the LOADED checkpoint takes a last_frame. Only MiniMax-H3's keyframe partition does; the image-to-video pipelines condition on a first frame alone","default":false},"supports_references":{"type":"boolean","title":"Supports References","description":"Whether the LOADED checkpoint takes reference images / videos / audio (gates the reference-to-video controls). Never true at the same time as supports_keyframes: MiniMax-H3 serves the two from different denoiser partitions.","default":false},"supports_video_continuation":{"type":"boolean","title":"Supports Video Continuation","description":"Whether the LOADED checkpoint takes continuation_video (Cosmos3-Nano only): it keeps frames from one end of a clip and generates what happens next","default":false},"h3_task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"H3 Task","description":"The MiniMax-H3 denoiser partition that is up: fl2va | ref2va, or null for any other family"},"supports_cfg":{"type":"boolean","title":"Supports Cfg","description":"Whether guidance and negative prompts apply to this family","default":true},"defaults":{"anyOf":[{"$ref":"#/components/schemas/VideoGenerationDefaults"},{"type":"null"}],"description":"Per-family generation defaults + shape constraints; null when unloaded"},"prompt_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Hint","description":"How the loaded model reads prompts, in one or two sentences; null when it has no tip."},"resolved":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/DiffusionResolvedControl"},"type":"object"},{"type":"null"}],"title":"Resolved","description":"Per-control resolved value + provenance (source auto|explicit + reason), keyed by Advanced control name; null when unloaded or unavailable."},"unloaded":{"type":"boolean","const":true,"title":"Unloaded","description":"Always true: that load was unloaded"},"outcome":{"type":"string","const":"unloaded","title":"Outcome","description":"Always unloaded"}},"type":"object","required":["unloaded","outcome"],"title":"VideoLoadUnloadedResponse","description":"POST /video/unload with expected_load_id that unloaded that load: the state it left behind."},"VideoReferenceVideo":{"properties":{"video":{"type":"string","maxLength":100663296,"title":"Video","description":"Base64/data-URL video file, 2 to 15 seconds. Resampled onto the model's 24 fps and onto the canvas its own aspect ratio resolves to."},"audio":{"anyOf":[{"type":"string","maxLength":33554432},{"type":"null"}],"title":"Audio","description":"Base64/data-URL soundtrack for THIS video. Omitted takes the track embedded in the file, if it has one; sent explicitly it replaces it."},"trim_start_seconds":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Trim Start Seconds","description":"Inclusive start of an explicit video trim, in seconds."},"trim_end_seconds":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Trim End Seconds","description":"Exclusive end of an explicit video trim, in seconds."}},"type":"object","required":["video"],"title":"VideoReferenceVideo","description":"One reference video, with the soundtrack MiniMax-H3 conditions on alongside it."},"VideoStatusResponse":{"properties":{"load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Id","description":"The load_token of the load in flight or resident (one Studio made up for a load sent without one); POST unload with expected_load_id set to it unloads that load only."},"resident_load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resident Load Id","description":"The load_token of the model resident in the slot, also while another load is in flight over it (equal to load_id when none is); a failed replacement leaves this model loaded."},"resident_mib":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resident Mib","description":"Best-effort memory the resident model holds, in MiB; null when unknown."},"multi_gpu":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Multi Gpu","description":"Multi-GPU placement (component -> card, primary, secondary) and CFG-parallel state (armed, call counts, or why it declined); null when the load had one card to use. A multi-card load that kept everything on its primary card reports why it declined."},"graph_engagement":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Graph Engagement","description":"Compile / CUDA-graph engagement counters: this load's graph captures, replays and ungraphed denoiser calls (whole-step, per block, per-card segments, and the per-block graphs a whole-step graph falls back to), and the process's dynamo frame and graph-break totals; null when nothing is loaded."},"loaded":{"type":"boolean","title":"Loaded","description":"Whether a video model is loaded","default":false},"evicted":{"items":{"type":"string"},"type":"array","title":"Evicted","description":"Models this load unloaded to make room. Filled only on the load answer."},"evicted_slots":{"items":{"$ref":"#/components/schemas/EvictedSlot"},"type":"array","title":"Evicted Slots","description":"The same models as evicted, each with its kind and public model id."},"repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Id","description":"Loaded repo id or local path"},"display_repo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Repo Id","description":"Logical Hub id of a local snapshot"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family","description":"Detected video family"},"supported_families":{"items":{"type":"string"},"type":"array","title":"Supported Families","description":"Loadable families"},"modular_families":{"items":{"type":"string"},"type":"array","title":"Modular Families","description":"Modular families"},"base_repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Repo","description":"Companion diffusers base repo"},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device","description":"Device the pipeline is on"},"dtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dtype","description":"Compute dtype"},"model_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Kind","description":"Resolved load kind: gguf | single_file | pipeline (gates GGUF-only UI)"},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine","description":"Active video engine: diffusers | sd_cpp"},"gguf_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gguf Variant","description":"Selected GGUF quantisation variant (for example Q8_0)"},"offload_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offload Policy","description":"Resolved offload policy: none | group | model | sequential"},"vae_tiling":{"type":"boolean","title":"Vae Tiling","description":"Whether VAE tiling is enabled","default":false},"memory_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Mode","description":"Requested memory mode"},"speed_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speed Mode","description":"Requested speed mode"},"speed_optims":{"items":{"type":"string"},"type":"array","title":"Speed Optims","description":"Speed optimisations actually engaged"},"attention_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attention Backend","description":"Attention backend engaged via the diffusers dispatcher (e.g. _native_cudnn), or null for the default SDPA"},"sd_cpp_cudnn_attention":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sd Cpp Cudnn Attention","description":"MiniMax-H3 on stable-diffusion.cpp only: cuDNN fused attention state. ready (a CUDA 12 cuDNN is named to sd.cpp, no render yet) | engaged | fallback (sd.cpp kept its own kernels) | unavailable (no CUDA 12 cuDNN could be provided) | off (switched off) | null (not applicable: the build has no cuDNN attention, or the card, platform or engine is not eligible)."},"sd_cpp_cudnn_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sd Cpp Cudnn Reason","description":"Why sd_cpp_cudnn_attention is not engaged or ready, when known"},"transformer_cache":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Cache","description":"Step cache engaged: fbcache | static | null"},"transformer_cache_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Transformer Cache Stats","description":"Static step skip only: the schedule (mode, head, tail, every, planned_skips) and the denoiser call counts (calls, computed, skipped) of the clip in flight, else of the last one. null for any other step cache."},"render_engagement":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Render Engagement","description":"What the last clip actually ran: vae_decode = {untiled, tiled, wide, oom_fallback} decodes of the untiled-when-fits VAE wrapper (null when it is not installed), fbcache = {computed, skipped} First-Block-Cache decisions (null when it is not installed). null before the first clip."},"transformer_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant","description":"Dense transformer quant engaged on a pipeline load: int8 | fp8 | nvfp4 | mxfp8 | null (null = the DiT(s) run at their loaded bf16 precision). For a dual-expert MoE family both experts share the reported scheme."},"transformer_quant_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant Backend","description":"Which NVFP4 kernel path the loaded DiT(s) run: flashinfer | torchao | null (null for every scheme but nvfp4)."},"transformer_quant_backend_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformer Quant Backend Reason","description":"Why flashinfer is not serving an NVFP4 load that runs torchao: the on-demand install was refused (offline, opt-out, ineligible host) or failed and was rolled back. null when the backend is flashinfer, the scheme is not nvfp4, or no reason was recorded."},"baked_loras":{"items":{"type":"string"},"type":"array","title":"Baked Loras","description":"Adapters baked into the denoiser at load time (VideoLoadRequest.loras), by adapter name; empty when the load baked none"},"baked_lora_specs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Baked Lora Specs","description":"The baked adapters as the load requested them, [{id, weight}]; empty when none"},"lora_refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lora Refusal","description":"Why a reload of this model with VideoLoadRequest.loras would be refused (GGUF or single-file checkpoint, two-expert family); null when it can bake LoRAs or nothing is loaded"},"text_encoder_quant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Encoder Quant","description":"Text-encoder quant engaged: fp8 | fp8_dynamic | int8 | nvfp4 | null (null = the dense bf16 encoder is loaded). An int8 request without a per-family keep-bf16 schedule is reported as the fp8 it fell back to."},"has_audio":{"type":"boolean","title":"Has Audio","description":"Whether the loaded family produces a synchronized audio track","default":false},"supports_keyframes":{"type":"boolean","title":"Supports Keyframes","description":"Whether the LOADED checkpoint takes first/last-frame conditioning images (gates the image-to-video controls)","default":false},"supports_first_frame":{"type":"boolean","title":"Supports First Frame","description":"Whether the LOADED checkpoint takes a first_frame (image-to-video): MiniMax-H3 keyframes, or a family's declared image-to-video pipeline (Wan2.2-TI2V-5B, LTX-2 / LTX-2.3) built over the loaded components","default":false},"supports_last_frame":{"type":"boolean","title":"Supports Last Frame","description":"Whether the LOADED checkpoint takes a last_frame. Only MiniMax-H3's keyframe partition does; the image-to-video pipelines condition on a first frame alone","default":false},"supports_references":{"type":"boolean","title":"Supports References","description":"Whether the LOADED checkpoint takes reference images / videos / audio (gates the reference-to-video controls). Never true at the same time as supports_keyframes: MiniMax-H3 serves the two from different denoiser partitions.","default":false},"supports_video_continuation":{"type":"boolean","title":"Supports Video Continuation","description":"Whether the LOADED checkpoint takes continuation_video (Cosmos3-Nano only): it keeps frames from one end of a clip and generates what happens next","default":false},"h3_task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"H3 Task","description":"The MiniMax-H3 denoiser partition that is up: fl2va | ref2va, or null for any other family"},"supports_cfg":{"type":"boolean","title":"Supports Cfg","description":"Whether guidance and negative prompts apply to this family","default":true},"defaults":{"anyOf":[{"$ref":"#/components/schemas/VideoGenerationDefaults"},{"type":"null"}],"description":"Per-family generation defaults + shape constraints; null when unloaded"},"prompt_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Hint","description":"How the loaded model reads prompts, in one or two sentences; null when it has no tip."},"resolved":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/DiffusionResolvedControl"},"type":"object"},{"type":"null"}],"title":"Resolved","description":"Per-control resolved value + provenance (source auto|explicit + reason), keyed by Advanced control name; null when unloaded or unavailable."}},"type":"object","title":"VideoStatusResponse","description":"Current video backend state."},"VideoUrl":{"properties":{"url":{"type":"string","title":"Url","description":"data:video/mp4;base64,... (inline only)"}},"type":"object","required":["url"],"title":"VideoUrl","description":"Video URL object: an inline data URI. Remote URLs are not fetched."},"VisionCheckResponse":{"properties":{"model_name":{"type":"string","title":"Model Name","description":"Model identifier"},"is_vision":{"type":"boolean","title":"Is Vision","description":"Whether the model is a vision model"}},"type":"object","required":["model_name","is_vision"],"title":"VisionCheckResponse","description":"Response for checking if a model is a vision model"},"VramBudgetPayload":{"properties":{"fraction":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.1},{"type":"null"}],"title":"Fraction"}},"type":"object","required":["fraction"],"title":"VramBudgetPayload"},"VramBudgetResponse":{"properties":{"fraction":{"type":"number","title":"Fraction"},"is_stored":{"type":"boolean","title":"Is Stored"},"default_fraction":{"type":"number","title":"Default Fraction","default":0.97},"min_fraction":{"type":"number","title":"Min Fraction","default":0.1},"max_fraction":{"type":"number","title":"Max Fraction","default":1.0},"reload_required":{"type":"boolean","title":"Reload Required"}},"type":"object","required":["fraction","is_stored","reload_required"],"title":"VramBudgetResponse"},"WeeklySchedule":{"properties":{"kind":{"type":"string","const":"weekly","title":"Kind"},"time":{"type":"string","title":"Time"},"days":{"items":{"type":"integer"},"type":"array","maxItems":7,"minItems":1,"title":"Days"}},"additionalProperties":false,"type":"object","required":["kind","time","days"],"title":"WeeklySchedule"},"WhisperSubStatus":{"properties":{"update_available":{"type":"boolean","title":"Update Available","description":"True when the chained apply would run a whisper phase.","default":false},"installed_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installed Tag"},"latest_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Tag"},"update_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Update Size Bytes"},"skip_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skip Reason","description":"Why the whisper phase would be skipped (up_to_date | local_link | source_build | not_installed | ...)."}},"type":"object","title":"WhisperSubStatus","description":"The whisper piggyback inside the llama update item."},"WhisperUpdateJob":{"properties":{"state":{"type":"string","title":"State","description":"idle | running | success | error","default":"idle"},"message":{"type":"string","title":"Message","default":""},"from_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Tag"},"to_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Tag"},"reload_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reload Required"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"progress":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Progress","description":"0..1 while running, 1 on success."},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"}},"type":"object","title":"WhisperUpdateJob"},"WhisperUpdateStatusResponse":{"properties":{"supported":{"type":"boolean","title":"Supported","description":"True when the install came from an Unsloth prebuilt (has a marker).","default":false},"update_available":{"type":"boolean","title":"Update Available","description":"True when the latest release is genuinely newer than the install.","default":false},"stale":{"type":"boolean","title":"Stale","description":"Update available AND install older than the staleness threshold.","default":false},"installed_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installed Tag"},"latest_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Tag"},"published_repo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published Repo"},"installed_at_utc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installed At Utc"},"age_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Days"},"source_build":{"type":"boolean","title":"Source Build","description":"True when there is no marker (source build) but a prebuilt is offered.","default":false},"update_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Update Size Bytes","description":"Download size of the prebuilt an update would fetch, in bytes."},"job":{"$ref":"#/components/schemas/WhisperUpdateJob"}},"type":"object","title":"WhisperUpdateStatusResponse"},"XYAxisSpec":{"properties":{"field":{"type":"string","enum":["seed","steps","guidance","sampler","schedule_type","shift","base_shift","max_shift","strength","clip_skip","cfg_rescale","variation_seed","variation_strength","lora_weight","prompt_sr"],"title":"Field","description":"Request field the axis varies. lora_weight sets the weight of loras[index]; prompt_sr (AUTOMATIC1111 Prompt S/R) replaces the first value in the prompt and negative prompt with each value in turn, so the first cell keeps the prompt as typed."},"values":{"items":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"string"}]},"type":"array","maxItems":64,"minItems":1,"title":"Values","description":"Values, one column (X) or row (Y) each"},"index":{"anyOf":[{"type":"integer","maximum":7.0,"minimum":0.0},{"type":"null"}],"title":"Index","description":"lora_weight only: which `loras` entry the axis weights"}},"type":"object","required":["field","values"],"title":"XYAxisSpec","description":"One axis of an X/Y grid: a request field and the values its cells take."},"XYGridSpec":{"properties":{"x":{"$ref":"#/components/schemas/XYAxisSpec","description":"Column axis"},"y":{"anyOf":[{"$ref":"#/components/schemas/XYAxisSpec"},{"type":"null"}],"description":"Row axis; omitted = a single row"}},"type":"object","required":["x"],"title":"XYGridSpec","description":"X/Y grid: every combination of the axes' values renders as its own gallery image, plus one\nlabelled grid image (X values across the top, Y values down the left)."},"XetNoticeReservePayload":{"properties":{"seen_hint":{"type":"integer","title":"Seen Hint","default":0}},"type":"object","title":"XetNoticeReservePayload"},"XetNoticeResponse":{"properties":{"granted":{"type":"boolean","title":"Granted"},"shown":{"type":"integer","title":"Shown"},"limit":{"type":"integer","title":"Limit"}},"type":"object","required":["granted","shown","limit"],"title":"XetNoticeResponse"},"_VideoAudioInput":{"properties":{"start_s":{"type":"number","maximum":3600.0,"minimum":0.0,"title":"Start S","default":0.0},"end_s":{"anyOf":[{"type":"number","maximum":3600.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"End S"}},"additionalProperties":false,"type":"object","title":"_VideoAudioInput"},"hub__schemas__datasets__AiAssistMappingRequest":{"properties":{"columns":{"items":{"type":"string"},"type":"array","title":"Columns"},"samples":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Samples"},"dataset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Name"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"model_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Type"}},"type":"object","required":["columns","samples"],"title":"AiAssistMappingRequest"},"hub__schemas__datasets__CheckFormatRequest":{"properties":{"dataset_name":{"type":"string","title":"Dataset Name"},"is_vlm":{"type":"boolean","title":"Is Vlm","default":false},"subset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subset"},"train_split":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Train Split","default":"train"},"prefer_local_cache":{"type":"boolean","title":"Prefer Local Cache","default":false},"local_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Local Path"}},"type":"object","required":["dataset_name"],"title":"CheckFormatRequest"},"hub__schemas__datasets__LocalDatasetItem":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"path":{"type":"string","title":"Path"},"source":{"type":"string","enum":["recipe","upload"],"title":"Source"},"rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rows"},"updated_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Updated At"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/Metadata"},{"type":"null"}]}},"type":"object","required":["id","label","path","source"],"title":"LocalDatasetItem"},"hub__schemas__datasets__LocalDatasetsResponse":{"properties":{"datasets":{"items":{"$ref":"#/components/schemas/hub__schemas__datasets__LocalDatasetItem"},"type":"array","title":"Datasets"}},"type":"object","title":"LocalDatasetsResponse"},"hub__schemas__datasets__UploadDatasetResponse":{"properties":{"filename":{"type":"string","title":"Filename","description":"Original filename"},"stored_path":{"type":"string","title":"Stored Path","description":"Absolute path stored on backend"}},"type":"object","required":["filename","stored_path"],"title":"UploadDatasetResponse"},"hub__schemas__inventory__AddScanFolderRequest":{"properties":{"path":{"type":"string","title":"Path","description":"Absolute or relative folder path, or a model weight file path"},"recursive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recursive","description":"Also scan sub-folders. Omitted keeps the stored setting of an already registered folder."}},"type":"object","required":["path"],"title":"AddScanFolderRequest","description":"Request body for adding a custom scan folder."},"hub__schemas__inventory__CachedModelRepo":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"size_bytes":{"type":"integer","title":"Size Bytes","default":0},"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path"},"cache_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Ref"},"last_modified":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Modified"},"partial":{"type":"boolean","title":"Partial","default":false},"partial_transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partial Transport"},"partial_resumable":{"type":"boolean","title":"Partial Resumable","default":false},"inventory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inventory Id"},"load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Id"},"model_format":{"type":"string","enum":["gguf","safetensors","adapter","checkpoint","unknown"],"title":"Model Format","default":"unknown"},"artifact_kind":{"type":"string","enum":["diffusers_pipeline","diffusers_modular_pipeline","diffusers_dual_pipeline","transformers_model","single_file_checkpoint","gguf","adapter","unknown"],"title":"Artifact Kind","default":"unknown"},"runtime":{"type":"string","enum":["llama_cpp","transformers","adapter","unknown"],"title":"Runtime","default":"unknown"},"format_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format Variant"},"capabilities":{"$ref":"#/components/schemas/LocalModelCapabilities"},"task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task"},"audio_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Type"},"audio_workflows":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Audio Workflows"},"quant_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quant Method"},"pipeline_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Tag"},"library_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Name"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"single_file":{"type":"boolean","title":"Single File","default":false},"companion":{"type":"boolean","title":"Companion","default":false},"companion_prefetch":{"type":"boolean","title":"Companion Prefetch","default":false},"diffusers":{"type":"boolean","title":"Diffusers","default":false}},"type":"object","required":["repo_id"],"title":"CachedModelRepo"},"hub__schemas__inventory__CachedModelsResponse":{"properties":{"cached":{"items":{"$ref":"#/components/schemas/hub__schemas__inventory__CachedModelRepo"},"type":"array","title":"Cached"},"scan_confirmed":{"type":"boolean","title":"Scan Confirmed","default":true}},"type":"object","title":"CachedModelsResponse"},"hub__schemas__inventory__EngramTableDetail":{"properties":{"precision":{"type":"string","title":"Precision","description":"Precision label from the file name, e.g. 'Q8_0'"},"filename":{"type":"string","title":"Filename","description":"Repo path of the table file"},"size_bytes":{"type":"integer","title":"Size Bytes","description":"File size in bytes","default":0},"downloaded":{"type":"boolean","title":"Downloaded","description":"Whether the table is in the local HF cache","default":false}},"type":"object","required":["precision","filename"],"title":"EngramTableDetail","description":"A standalone Engram table a GGUF repo publishes (engram/*-engram-<PRECISION>.gguf_file)."},"hub__schemas__inventory__GgufVariantDetail":{"properties":{"filename":{"type":"string","title":"Filename","description":"GGUF filename (e.g., 'gemma-3-4b-it-Q4_K_M.gguf')"},"quant":{"type":"string","title":"Quant","description":"Quantization label or internal GGUF variant key"},"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path","description":"Owning cache repository for this complete variant"},"cache_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Ref","description":"Opaque stand-in for cache_path, stable for the server's life"},"display_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Label","description":"Optional user-facing label when quant is an internal key"},"size_bytes":{"type":"integer","title":"Size Bytes","description":"File size in bytes","default":0},"download_size_bytes":{"type":"integer","title":"Download Size Bytes","description":"Total bytes needed to download this variant","default":0},"estimated_resident_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Resident Gb","description":"audio.cpp only: GiB of GPU memory the load check requires for this variant"},"lookup_table_bytes":{"type":"integer","title":"Lookup Table Bytes","description":"Bytes of lazily read lookup tables (per-layer embeddings / Engram) llama.cpp streams from disk by default. Part of size_bytes; 0 when none or unknown.","default":0},"pending_drafter_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Drafter Filename","description":"The sole missing MTP/DSpark/DFlash companion when the main GGUF and any vision projector are already cached. Lets the download UI name the artifact it is actually transferring instead of presenting it as the whole model."},"pending_drafter_size_bytes":{"type":"integer","title":"Pending Drafter Size Bytes","description":"Remote size of pending_drafter_filename","default":0},"download_remaining_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Download Remaining Bytes","description":"Bytes a resume still has to fetch: the total minus what is already on disk and reusable. Set only on a partial variant; null when not partial or when the plan cannot be resolved."},"downloaded":{"type":"boolean","title":"Downloaded","description":"Whether this variant is already in the local HF cache: with its own Engram table, or with a cached standalone one in its place (engram_ready)","default":false},"update_available":{"type":"boolean","title":"Update Available","description":"Whether a newer main GGUF blob is available on Hugging Face","default":false},"partial":{"type":"boolean","title":"Partial","description":"Whether this variant has an in-progress (.incomplete) blob in cache","default":false},"cleanable":{"type":"boolean","title":"Cleanable","description":"Row exists only to offer deleting an empty leftover <quant>/ folder; the listing has no such weights, so it never proves a load would find any","default":false},"partial_transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partial Transport","description":"Transport recorded for the partial state (\"http\" or \"xet\"), or null if not partial / unknown."},"partial_resumable":{"type":"boolean","title":"Partial Resumable","description":"Whether THIS partial can be continued byte for byte, which is what picks Resume over Continue. False for a Xet partial, and for an HTTP one no installed writer can reopen.","default":false},"engram_precision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engram Precision","description":"Precision of the Engram table this quant ships in its own split shard, when the repo publishes standalone tables to swap it for; None otherwise"},"engram_ready":{"items":{"type":"string"},"type":"array","title":"Engram Ready","description":"Engram table precisions this quant loads with without downloading anything: its own when downloaded, and each cached standalone table when every other file is cached"},"dependency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dependency Key","description":"Opaque grouping key: variants sharing a key share one companion download footprint (text encoders, VAE, tokenizer, configs), so a footprint resolved for one of them is correct for all of them. The companion set is NOT repository-wide -- one repo can hold GGUFs of different diffusion families, and FLUX.2-klein picks its text encoder per checkpoint size -- so a client must group by this key rather than per repo. Null means unknown (no family resolved); clients should then treat the repo as a single group."}},"type":"object","required":["filename","quant"],"title":"GgufVariantDetail","description":"A single GGUF quantization variant in a HuggingFace repo."},"hub__schemas__inventory__GgufVariantsResponse":{"properties":{"repo_id":{"type":"string","title":"Repo Id","description":"HuggingFace repo ID"},"variants":{"items":{"$ref":"#/components/schemas/hub__schemas__inventory__GgufVariantDetail"},"type":"array","title":"Variants","description":"Available GGUF variants"},"has_vision":{"type":"boolean","title":"Has Vision","description":"Whether the model has vision support (mmproj files)","default":false},"default_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Variant","description":"Recommended default quantization variant"},"resolved_locally":{"type":"boolean","title":"Resolved Locally","description":"Whether this answer came from resolving repo_id as a local path","default":false},"dependencies_resolved":{"type":"boolean","title":"Dependencies Resolved","description":"Whether Hub metadata was available to resolve the variant's required companion files","default":false},"loadable_variants":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Loadable Variants","description":"Quants the load resolver resolves for this identifier; None when unanswered (remote answers, or a server that predates the field)"},"loadable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Loadable","description":"Whether a variantless load resolves GGUF weights; None when unanswered"},"variant_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Format","description":"'mlx' when the variants are precision folders of an MLX repo rather than GGUF quants; None for GGUF"},"engram_tables":{"items":{"$ref":"#/components/schemas/hub__schemas__inventory__EngramTableDetail"},"type":"array","title":"Engram Tables","description":"Standalone Engram tables a load can use in place of a quant's own (engram_precision), most precise first"},"engram_supported":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Engram Supported","description":"Whether this server's llama.cpp loads a standalone Engram table (--ple); None when the repo publishes none or the build could not be probed"}},"type":"object","required":["repo_id"],"title":"GgufVariantsResponse","description":"Response for listing GGUF quantization variants in a HuggingFace repo."},"hub__schemas__inventory__LocalModelInfo":{"properties":{"id":{"type":"string","title":"Id","description":"Identifier to use for loading/training"},"inventory_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inventory Id","description":"Stable semantic inventory row identifier"},"load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Id","description":"Identifier/path to pass to load or train APIs"},"display_name":{"type":"string","title":"Display Name","description":"Display label"},"path":{"type":"string","title":"Path","description":"Local path where model data was discovered"},"size_bytes":{"type":"integer","title":"Size Bytes","description":"Observed model artifact size in bytes","default":0},"model_format":{"type":"string","enum":["gguf","safetensors","adapter","checkpoint","unknown"],"title":"Model Format","description":"Model file format","default":"unknown"},"artifact_kind":{"type":"string","enum":["diffusers_pipeline","diffusers_modular_pipeline","diffusers_dual_pipeline","transformers_model","single_file_checkpoint","gguf","adapter","unknown"],"title":"Artifact Kind","description":"Structural contract, e.g. a Diffusers pipeline root vs a Transformers dir","default":"unknown"},"runtime":{"type":"string","enum":["llama_cpp","transformers","adapter","unknown"],"title":"Runtime","description":"Expected runtime backend","default":"unknown"},"format_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format Variant","description":"Format variant label, for example a GGUF quant"},"capabilities":{"$ref":"#/components/schemas/LocalModelCapabilities","description":"Declared capabilities for this inventory row"},"source":{"type":"string","enum":["models_dir","hf_cache","lmstudio","omlx","ollama","hermes","custom","unsloth"],"title":"Source","description":"Discovery source"},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id","description":"HF repo id for cached models, e.g. org/model"},"active_cache":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active Cache","description":"Whether this HF entry belongs to the current download cache."},"task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task","description":"Inferred pipeline task. The task-scoped pickers filter On Device rows on it and the chat picker routes a diffusion pick by it, so a row without one is dropped from those lists."},"audio_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Type","description":"Detected output-audio architecture or codec used by Audio runtime policy"},"audio_workflows":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Audio Workflows","description":"Audio page workflows (speak, clone, music, transcribe) this row serves; null when not audio"},"base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model","description":"Base model from adapter_config.json when this is an adapter"},"base_model_source":{"anyOf":[{"type":"string","enum":["huggingface","local","unknown"]},{"type":"null"}],"title":"Base Model Source","description":"Whether the adapter base model is a HF repo id or local path"},"adapter_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adapter Type","description":"Adapter type from adapter_config.json, e.g. LORA"},"training_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Method","description":"Training method hint from adapter_config.json"},"updated_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Updated At","description":"Unix timestamp of latest observed update"},"partial":{"type":"boolean","title":"Partial","description":"True when this hf_cache entry has incomplete blobs","default":false},"partial_transport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partial Transport","description":"Transport recorded for the partial state (\"http\" or \"xet\"), or null if not partial / unknown."},"partial_resumable":{"type":"boolean","title":"Partial Resumable","description":"Whether THIS partial can be continued byte for byte.","default":false},"companion_prefetch":{"type":"boolean","title":"Companion Prefetch","description":"Pipeline repo holding only what a GGUF load borrowed (VAE, text encoder): partial for loading, not an unfinished download.","default":false}},"type":"object","required":["id","display_name","path","source"],"title":"LocalModelInfo","description":"Discovered local model candidate."},"hub__schemas__inventory__LocalModelListResponse":{"properties":{"models_dir":{"type":"string","title":"Models Dir","description":"Directory scanned for custom local models"},"hf_cache_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Cache Dir","description":"HF cache root that was scanned"},"lmstudio_dirs":{"items":{"type":"string"},"type":"array","title":"Lmstudio Dirs","description":"LM Studio model directories that were scanned"},"ollama_dirs":{"items":{"type":"string"},"type":"array","title":"Ollama Dirs","description":"Ollama model directories that were scanned"},"hermes_dirs":{"items":{"type":"string"},"type":"array","title":"Hermes Dirs","description":"Hermes model directories that were scanned"},"models":{"items":{"$ref":"#/components/schemas/hub__schemas__inventory__LocalModelInfo"},"type":"array","title":"Models","description":"Discovered local/cached models"}},"type":"object","required":["models_dir"],"title":"LocalModelListResponse","description":"Response schema for listing local/cached models."},"hub__schemas__inventory__ScanFolderInfo":{"properties":{"id":{"type":"integer","title":"Id","description":"Database row ID"},"path":{"type":"string","title":"Path","description":"Normalized absolute path"},"created_at":{"type":"string","title":"Created At","description":"ISO 8601 creation timestamp"},"recursive":{"type":"boolean","title":"Recursive","description":"Sub-folders are scanned too","default":false},"status":{"type":"string","title":"Status","description":"Last scan result: ok, permission_denied, missing, unreadable, partial, or slow","default":"ok"}},"type":"object","required":["id","path","created_at"],"title":"ScanFolderInfo","description":"A registered custom model scan folder."},"models__datasets__AiAssistMappingRequest":{"properties":{"columns":{"items":{"type":"string"},"type":"array","title":"Columns"},"samples":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Samples"},"dataset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Name"},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"model_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Type"}},"type":"object","required":["columns","samples"],"title":"AiAssistMappingRequest"},"models__datasets__CheckFormatRequest":{"properties":{"dataset_name":{"type":"string","title":"Dataset Name"},"is_vlm":{"type":"boolean","title":"Is Vlm","default":false},"hf_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Token"},"subset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subset"},"train_split":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Train Split","default":"train"}},"type":"object","required":["dataset_name"],"title":"CheckFormatRequest"},"models__datasets__LocalDatasetItem":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"path":{"type":"string","title":"Path"},"rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rows"},"updated_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Updated At"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/Metadata"},{"type":"null"}]}},"type":"object","required":["id","label","path"],"title":"LocalDatasetItem"},"models__datasets__LocalDatasetsResponse":{"properties":{"datasets":{"items":{"$ref":"#/components/schemas/models__datasets__LocalDatasetItem"},"type":"array","title":"Datasets"}},"type":"object","title":"LocalDatasetsResponse"},"models__datasets__UploadDatasetResponse":{"properties":{"filename":{"type":"string","title":"Filename","description":"Original filename"},"stored_path":{"type":"string","title":"Stored Path","description":"Absolute path stored on backend"}},"type":"object","required":["filename","stored_path"],"title":"UploadDatasetResponse","description":"Response with stored dataset path for training."},"models__inference__ChatMessage":{"properties":{"role":{"type":"string","enum":["system","user","assistant","tool","developer"],"title":"Role","description":"Message role"},"content":{"anyOf":[{"type":"string"},{"items":{"oneOf":[{"$ref":"#/components/schemas/TextContentPart"},{"$ref":"#/components/schemas/ImageContentPart"},{"$ref":"#/components/schemas/VideoContentPart"},{"$ref":"#/components/schemas/InputAudioContentPart"},{"$ref":"#/components/schemas/InputDocumentContentPart"},{"$ref":"#/components/schemas/OpenAIReasoningContentPart"},{"$ref":"#/components/schemas/ImageGenerationCallContentPart"},{"$ref":"#/components/schemas/CompactionContentPart"},{"$ref":"#/components/schemas/UnknownContentPart"}]},"type":"array"},{"type":"null"}],"title":"Content","description":"Message content (string or multimodal parts)"},"reasoning_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Content","description":"Assistant reasoning from an earlier turn, replayed to local chat templates that consume the OpenAI-compatible reasoning_content field."},"tool_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id","description":"OpenAI tool-result messages: id of the tool call this result belongs to."},"tool_calls":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tool Calls","description":"OpenAI assistant messages: structured tool calls the model decided to make."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Participant name, or the tool name on tool-result messages."},"extra_content":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra Content","description":"Provider-specific extra fields the translator may read. Gemini reads `extra_content.google.thought_signature` from assistant messages to replay text-part signatures."}},"type":"object","required":["role"],"title":"ChatMessage","description":"Single message in a chat conversation.\n\n``content`` is a string or list of multimodal parts. Assistant messages with\nonly ``tool_calls`` may set ``content=None``. Missing ``tool_call_id`` on\n``role=\"tool\"`` is resolved at the ``ChatCompletionRequest`` layer."},"models__models__AddScanFolderRequest":{"properties":{"path":{"type":"string","title":"Path","description":"Absolute or relative directory path to scan for models"},"recursive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recursive","description":"Also scan sub-folders. Omitted keeps the stored setting of an already registered folder."}},"type":"object","required":["path"],"title":"AddScanFolderRequest","description":"Request body for adding a custom scan folder."},"models__models__EngramTableDetail":{"properties":{"precision":{"type":"string","title":"Precision","description":"Precision label from the file name, e.g. 'Q8_0'"},"filename":{"type":"string","title":"Filename","description":"Repo path of the table file"},"size_bytes":{"type":"integer","title":"Size Bytes","description":"File size in bytes","default":0},"downloaded":{"type":"boolean","title":"Downloaded","description":"Whether the table is in the local HF cache","default":false}},"type":"object","required":["precision","filename"],"title":"EngramTableDetail","description":"Mirrors hub.schemas.inventory.EngramTableDetail."},"models__models__GgufVariantDetail":{"properties":{"filename":{"type":"string","title":"Filename","description":"GGUF filename (e.g., 'gemma-3-4b-it-Q4_K_M.gguf')"},"quant":{"type":"string","title":"Quant","description":"Quantization label or internal GGUF variant key"},"cache_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Path","description":"Owning cache repository for this complete variant"},"cache_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Ref","description":"Opaque stand-in for cache_path, stable for the server's life"},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length","description":"Native context limit from this variant's cached source"},"display_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Label","description":"Optional user-facing label when quant is an internal key"},"size_bytes":{"type":"integer","title":"Size Bytes","description":"File size in bytes","default":0},"download_size_bytes":{"type":"integer","title":"Download Size Bytes","description":"Total bytes needed to download this variant","default":0},"estimated_resident_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Resident Gb","description":"audio.cpp only: GiB of GPU memory the load check requires for this variant"},"lookup_table_bytes":{"type":"integer","title":"Lookup Table Bytes","description":"Bytes of lazily read lookup tables (per-layer embeddings / Engram) llama.cpp streams from disk by default. Part of size_bytes; 0 when none or unknown.","default":0},"pending_drafter_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Drafter Filename","description":"Missing separate drafter when the main GGUF is already cached"},"pending_drafter_size_bytes":{"type":"integer","title":"Pending Drafter Size Bytes","description":"Remote size of pending_drafter_filename","default":0},"downloaded":{"type":"boolean","title":"Downloaded","description":"Whether this variant is already in the local HF cache","default":false},"update_available":{"type":"boolean","title":"Update Available","description":"Whether a newer version of this variant is available on HF","default":false},"partial":{"type":"boolean","title":"Partial","description":"Whether this variant is an interrupted download. The hub service already computes it; carry it through so callers can hide a quant whose shards are incomplete instead of offering one that cannot load.","default":false},"cleanable":{"type":"boolean","title":"Cleanable","description":"Row exists only to offer deleting an empty leftover <quant>/ folder; the listing has no such weights, so it never proves a load would find any.","default":false},"engram_precision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engram Precision","description":"Precision of the Engram table this quant ships with, if swappable"},"engram_ready":{"items":{"type":"string"},"type":"array","title":"Engram Ready","description":"Engram table precisions this quant loads with without downloading"}},"type":"object","required":["filename","quant"],"title":"GgufVariantDetail","description":"A single GGUF quantization variant in a HuggingFace repo."},"models__models__GgufVariantsResponse":{"properties":{"repo_id":{"type":"string","title":"Repo Id","description":"HuggingFace repo ID"},"variants":{"items":{"$ref":"#/components/schemas/models__models__GgufVariantDetail"},"type":"array","title":"Variants","description":"Available GGUF variants"},"has_vision":{"type":"boolean","title":"Has Vision","description":"Whether the model has vision support (mmproj files)","default":false},"default_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Variant","description":"Recommended default quantization variant"},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length","description":"Native max context from GGUF metadata; set once a variant is downloaded"},"resolved_locally":{"type":"boolean","title":"Resolved Locally","description":"Whether this answer came from resolving repo_id as a local path","default":false},"dependencies_resolved":{"type":"boolean","title":"Dependencies Resolved","description":"Whether Hub metadata was available to resolve the variant's required companion files","default":false},"loadable_variants":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Loadable Variants","description":"Quants the load resolver resolves for this identifier; None when unanswered (remote answers, or a server that predates the field)"},"loadable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Loadable","description":"Whether a variantless load resolves GGUF weights; None when unanswered"},"variant_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Format","description":"'mlx' when the variants are precision folders of an MLX repo rather than GGUF quants; None for GGUF"},"engram_tables":{"items":{"$ref":"#/components/schemas/models__models__EngramTableDetail"},"type":"array","title":"Engram Tables","description":"Standalone Engram tables a load can use in place of a quant's own"},"engram_supported":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Engram Supported","description":"Whether this server's llama.cpp loads a standalone Engram table"}},"type":"object","required":["repo_id"],"title":"GgufVariantsResponse","description":"Response for listing GGUF quantization variants in a HuggingFace repo."},"models__models__LocalModelInfo":{"properties":{"id":{"type":"string","title":"Id","description":"Identifier to use for loading/training"},"display_name":{"type":"string","title":"Display Name","description":"Display label"},"path":{"type":"string","title":"Path","description":"Local path where model data was discovered"},"source":{"type":"string","enum":["models_dir","hf_cache","lmstudio","omlx","ollama","hermes","custom","unsloth"],"title":"Source","description":"Discovery source"},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id","description":"HF repo id for cached models, e.g. org/model"},"active_cache":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active Cache","description":"Whether an HF model belongs to the current download cache."},"partial":{"type":"boolean","title":"Partial","description":"Whether the cached model has an incomplete download.","default":false},"model_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Format","description":"Detected weights format ('gguf' when known). Lets the UI classify scanned folders whose name lacks a -GGUF suffix."},"updated_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Updated At","description":"Unix timestamp of latest observed update"},"task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task","description":"HF pipeline task inferred from a GGUF's architecture ('text-to-image' for diffusion, 'text-generation' otherwise). Lets the Images picker show only diffusion GGUFs."},"audio_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Type","description":"Detected output-audio architecture or codec used by Audio runtime policy"}},"type":"object","required":["id","display_name","path","source"],"title":"LocalModelInfo","description":"Discovered local model candidate."},"models__models__LocalModelListResponse":{"properties":{"models_dir":{"type":"string","title":"Models Dir","description":"Directory scanned for custom local models"},"hf_cache_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Cache Dir","description":"HF cache root that was scanned"},"lmstudio_dirs":{"items":{"type":"string"},"type":"array","title":"Lmstudio Dirs","description":"LM Studio model directories that were scanned"},"hermes_dirs":{"items":{"type":"string"},"type":"array","title":"Hermes Dirs","description":"Hermes model directories that were scanned"},"models":{"items":{"$ref":"#/components/schemas/models__models__LocalModelInfo"},"type":"array","title":"Models","description":"Discovered local/cached models"}},"type":"object","required":["models_dir"],"title":"LocalModelListResponse","description":"Response schema for listing local/cached models."},"models__models__ScanFolderInfo":{"properties":{"id":{"type":"integer","title":"Id","description":"Database row ID"},"path":{"type":"string","title":"Path","description":"Normalized absolute path"},"created_at":{"type":"string","title":"Created At","description":"ISO 8601 creation timestamp"},"recursive":{"type":"boolean","title":"Recursive","description":"Sub-folders are scanned too","default":false},"status":{"type":"string","title":"Status","description":"Last scan result: ok, permission_denied, missing, or unreadable","default":"ok"}},"type":"object","required":["id","path","created_at"],"title":"ScanFolderInfo","description":"A registered custom model scan folder."},"routes__chat_history__ChatMessage":{"properties":{"id":{"type":"string","title":"Id"},"threadId":{"type":"string","title":"Threadid"},"parentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parentid"},"role":{"type":"string","title":"Role"},"content":{"title":"Content"},"attachments":{"anyOf":[{},{"type":"null"}],"title":"Attachments"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"createdAt":{"type":"integer","maximum":9.223372036854776e+18,"minimum":-9.223372036854776e+18,"title":"Createdat"}},"type":"object","required":["id","threadId","role","createdAt"],"title":"ChatMessage"},"routes__models__CachedModelRepo":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"size_bytes":{"type":"integer","title":"Size Bytes"},"last_modified":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Modified"},"task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task"},"audio_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Type"},"partial":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Partial"},"single_file":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Single File"},"companion":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Companion"},"load_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Id"},"model_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Format"},"artifact_kind":{"anyOf":[{"type":"string","enum":["diffusers_pipeline","diffusers_modular_pipeline","diffusers_dual_pipeline","transformers_model","single_file_checkpoint","gguf","adapter","unknown"]},{"type":"null"}],"title":"Artifact Kind"},"can_chat":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Chat"},"diffusers":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Diffusers"}},"type":"object","required":["repo_id","size_bytes"],"title":"CachedModelRepo"},"routes__models__CachedModelsResponse":{"properties":{"cached":{"items":{"$ref":"#/components/schemas/routes__models__CachedModelRepo"},"type":"array","title":"Cached"}},"type":"object","required":["cached"],"title":"CachedModelsResponse"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}