{"openapi":"3.1.0","info":{"title":"oMLX API","description":"LLM inference, optimized for your Mac","version":"0.7.3"},"paths":{"/v1/mcp/tools":{"get":{"tags":["mcp"],"summary":"List Mcp Tools","description":"List all available MCP tools.","operationId":"list_mcp_tools_v1_mcp_tools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPToolsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/mcp/servers":{"get":{"tags":["mcp"],"summary":"List Mcp Servers","description":"Get status of all MCP servers.","operationId":"list_mcp_servers_v1_mcp_servers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServersResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/mcp/execute":{"post":{"tags":["mcp"],"summary":"Execute Mcp Tool","description":"Execute an MCP tool.","operationId":"execute_mcp_tool_v1_mcp_execute_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPExecuteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPExecuteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/web/search":{"post":{"tags":["web"],"summary":"Web Search","description":"Run a web search and return an {\"ok\": bool, ...} payload.","operationId":"web_search_v1_web_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Web Search V1 Web Search Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/web/fetch":{"post":{"tags":["web"],"summary":"Web Fetch","description":"Fetch a public page and return an {\"ok\": bool, ...} payload.","operationId":"web_fetch_v1_web_fetch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebFetchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Web Fetch V1 Web Fetch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/audio/transcriptions":{"post":{"summary":"Create Transcription","description":"OpenAI-compatible audio transcription endpoint (Speech-to-Text).\n\nNote: ``response_format`` and ``temperature`` are accepted for OpenAI API\ncompatibility but are not yet implemented — they are silently ignored.\n\n``stream=true`` switches the response to OpenAI's transcription SSE\nformat: ``transcript.text.delta`` events with incremental text followed\nby a final ``transcript.text.done`` event with the full transcription\n(#1066). Models whose mlx-audio backend lacks native streaming still\nrespond in SSE format, with the full text arriving in a single delta.\n\n``prompt`` follows the OpenAI spec: optional text to guide recognition\ntoward specific vocabulary, spellings, or style. Mapped onto the\nbackend's biasing hook — Qwen3-ASR receives it as trained context\ninjection (``system_prompt``, strong biasing), Whisper models as a\ndecoder-prefix soft prior (``initial_prompt``, ~224-token window).\nBackends without a biasing hook ignore it; it never fails a request.\n\n``max_tokens`` is an oMLX extension that raises the underlying model's\noutput cap. Useful for long audio with models like VibeVoice-ASR whose\nmlx-audio default (8192) truncates ~24 min files. When omitted, the\nmodel's own default applies.\n\n``word_timestamps`` is an oMLX extension that exposes mlx-audio's native\nword-level alignment for Whisper models. When True, each segment in the\nresponse includes a ``words`` array of\n``{word, start, end, probability}`` objects. Default False preserves the\nexisting response shape for every current caller.","operationId":"create_transcription_v1_audio_transcriptions_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_transcription_v1_audio_transcriptions_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioTranscriptionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/audio/voices":{"get":{"summary":"List Model Voices","description":"List built-in speaker/voice names for a TTS model.\n\nWith ``realtime=true`` it lists the voices a /v1/realtime session on the\nmodel can pick, which can differ from its TTS voices, and adds the\nsession's default ``instructions`` and its ``capabilities``.\n\nReads static metadata only — a ``voices/`` directory (Kokoro-style)\nor the speaker table in ``config.json`` (Qwen3-TTS CustomVoice's\n``talker_config.spk_id``) — so the model does not need to be loaded.\nReturns ``{\"model\": ..., \"voices\": [...]}``; an empty list means the\nmodel has no named speakers (e.g. voice-cloning base models).","operationId":"list_model_voices_v1_audio_voices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"realtime","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Realtime"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/audio/speech":{"post":{"summary":"Create Speech","description":"OpenAI-compatible text-to-speech endpoint.","operationId":"create_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/process":{"post":{"summary":"Process Audio","description":"Audio processing endpoint (speech enhancement, source separation, STS).\n\nAccepts a multipart audio file upload and a model identifier, processes\nthe audio through an STS engine (e.g. DeepFilterNet, MossFormer2,\nSAMAudio, LFM2.5-Audio), and returns WAV bytes of the processed audio.","operationId":"process_audio_v1_audio_process_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_process_audio_v1_audio_process_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":[]}]}},"/admin/":{"get":{"tags":["admin"],"summary":"Login Page","description":"Render the admin login page or setup page.\n\nIf no API key is configured, the page will show the initial setup form.\nOtherwise, it shows the standard login form.\n\nReturns:\n    HTML login/setup page.","operationId":"login_page_admin__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin":{"get":{"tags":["admin"],"summary":"Login Page","description":"Render the admin login page or setup page.\n\nIf no API key is configured, the page will show the initial setup form.\nOtherwise, it shows the standard login form.\n\nReturns:\n    HTML login/setup page.","operationId":"login_page_admin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/dashboard":{"get":{"tags":["admin"],"summary":"Dashboard Page","description":"Render the admin dashboard page.\n\nRequires admin authentication via session cookie.\n\nReturns:\n    HTML dashboard page with server status and model list.","operationId":"dashboard_page_admin_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/chat":{"get":{"tags":["admin"],"summary":"Chat Page","description":"Render the chat page for interacting with models.\n\nRequires admin authentication via session cookie.\nThe API key is injected into the template context so that\nthe chat page can auto-set it in localStorage, bypassing\nthe manual API key entry modal.\n\nReturns:\n    HTML chat page.","operationId":"chat_page_admin_chat_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/static/{path}":{"get":{"tags":["admin"],"summary":"Admin Static","description":"Serve static files for admin panel (CSS, JS, fonts, logos, etc.).","operationId":"admin_static_admin_static__path__get","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"}}}}}}},"/admin/api/login":{"post":{"tags":["admin"],"summary":"Login","description":"Authenticate with API key and create session.\n\nRequires an API key to be configured on the server. If no API key\nis configured, returns 400 directing the user to set one up first.\n\nArgs:\n    request: LoginRequest containing the API key.\n    response: FastAPI response object for setting cookies.\n    http_request: Incoming request, used for the client's key budget.\n\nReturns:\n    JSON response with success status.\n\nRaises:\n    HTTPException: 400 if no API key configured, 401 if invalid,\n        429 while the client is locked out.","operationId":"login_admin_api_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/setup-api-key":{"post":{"tags":["admin"],"summary":"Setup Api Key","description":"Set up the initial API key when none is configured.\n\nThis endpoint is only available when no API key is currently set.\nAfter successful setup, a session is created so the user is\nimmediately logged in.\n\nArgs:\n    request: SetupApiKeyRequest with api_key and api_key_confirm.\n    response: FastAPI response object for setting cookies.\n    http_request: Incoming request used to verify the peer address.\n\nReturns:\n    JSON response with success status.\n\nRaises:\n    HTTPException: 400 if key already configured, validation fails,\n                  or keys don't match.","operationId":"setup_api_key_admin_api_setup_api_key_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupApiKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/logout":{"post":{"tags":["admin"],"summary":"Logout","description":"Clear session cookie and logout.\n\nArgs:\n    response: FastAPI response object for clearing cookies.\n\nReturns:\n    JSON response with success status.","operationId":"logout_admin_api_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/auto-login":{"get":{"tags":["admin"],"summary":"Auto Login","description":"Auto-login using API key and redirect to the target admin page.\n\nUsed by the macOS menubar app to open admin pages with automatic\nauthentication, bypassing the manual login form.\n\nArgs:\n    http_request: Incoming request, used for the client's key budget.\n    key: The API key for authentication.\n    redirect: The path to redirect to after login. Must start with /admin.\n\nReturns:\n    HTTP 302 redirect with session cookie set.","operationId":"auto_login_admin_auto_login_get","parameters":[{"name":"key","in":"query","required":false,"schema":{"type":"string","default":"","title":"Key"}},{"name":"redirect","in":"query","required":false,"schema":{"type":"string","default":"/admin/dashboard","title":"Redirect"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/sub-keys":{"post":{"tags":["admin"],"summary":"Create Sub Key","description":"Create a new sub API key.\n\nSub keys can only be used for API authentication, not admin login.\n\nArgs:\n    request: CreateSubKeyRequest with key and optional name.\n\nReturns:\n    JSON with the created sub key entry.\n\nRaises:\n    HTTPException: 400 if validation fails or key already exists.","operationId":"create_sub_key_admin_api_sub_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Sub Key","description":"Delete a sub API key.\n\nArgs:\n    request: DeleteSubKeyRequest with the key to delete.\n\nReturns:\n    JSON with success status.\n\nRaises:\n    HTTPException: 404 if key not found.","operationId":"delete_sub_key_admin_api_sub_keys_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSubKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/grammar/parsers":{"get":{"tags":["admin"],"summary":"List Grammar Parsers","operationId":"list_grammar_parsers_admin_api_grammar_parsers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/models":{"get":{"tags":["admin"],"summary":"List Models","description":"List all models with their settings.\n\nReturns model information from the engine pool combined with\nper-model settings from the settings manager.\n\nReturns:\n    JSON list of models with their status and settings.\n\nRaises:\n    HTTPException: 401 if not authenticated, 503 if server not initialized.","operationId":"list_models_admin_api_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/models/{model_id}/unload":{"post":{"tags":["admin"],"summary":"Unload Model","description":"Manually unload a model from memory.","operationId":"unload_model_admin_api_models__model_id__unload_post","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"}}}}}}},"/admin/api/models/{model_id}/load":{"post":{"tags":["admin"],"summary":"Load Model","description":"Manually load a model into memory.","operationId":"load_model_admin_api_models__model_id__load_post","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"}}}}}}},"/admin/api/models/{model_id}/moe-offload-fit":{"get":{"tags":["admin"],"summary":"Get Moe Offload Fit","description":"Largest expert-offload residency that leaves prompt room on this machine.\n\nThe query flags override saved settings that change the size estimate, so\nunsaved edits in the dashboard are sized too.","operationId":"get_moe_offload_fit_admin_api_models__model_id__moe_offload_fit_get","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}},{"name":"mtp_enabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mtp Enabled"}},{"name":"qwen4_ple_ssd_offload","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Qwen4 Ple Ssd Offload"}},{"name":"deepseek_v41_engram_ssd_offload","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deepseek V41 Engram Ssd Offload"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/models/{model_id}/import-mtplx":{"post":{"tags":["admin"],"summary":"Import Mtplx","description":"Import an MTPLX side-car MTP head into the model's checkpoint index.","operationId":"import_mtplx_admin_api_models__model_id__import_mtplx_post","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"}}}}}}},"/admin/api/reload":{"post":{"tags":["admin"],"summary":"Reload Models","description":"Reload models: re-read model settings, re-discover models, preload pinned.","operationId":"reload_models_admin_api_reload_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/models/{model_id}/settings":{"put":{"tags":["admin"],"summary":"Update Model Settings","description":"Update settings for a specific model.\n\nUpdates are persisted to the settings file and applied immediately\nto the engine pool where applicable (e.g., pinned status).\n\nArgs:\n    model_id: The model identifier.\n    request: ModelSettingsRequest with the new settings.\n\nReturns:\n    JSON response with success status and updated settings.\n\nRaises:\n    HTTPException: 401 if not authenticated, 404 if model not found.","operationId":"update_model_settings_admin_api_models__model_id__settings_put","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/models/{model_id}/profiles":{"get":{"tags":["admin"],"summary":"List Model Profiles","operationId":"list_model_profiles_admin_api_models__model_id__profiles_get","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"}}}}}},"post":{"tags":["admin"],"summary":"Create Model Profile","operationId":"create_model_profile_admin_api_models__model_id__profiles_post","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/models/{model_id}/profiles/{name}":{"put":{"tags":["admin"],"summary":"Update Model Profile","operationId":"update_model_profile_admin_api_models__model_id__profiles__name__put","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Model Profile","operationId":"delete_model_profile_admin_api_models__model_id__profiles__name__delete","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/models/{model_id}/profiles/{name}/apply":{"post":{"tags":["admin"],"summary":"Apply Model Profile","operationId":"apply_model_profile_admin_api_models__model_id__profiles__name__apply_post","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/models/{model_id}/profile-templates/{name}/apply":{"post":{"tags":["admin"],"summary":"Apply Model Template","operationId":"apply_model_template_admin_api_models__model_id__profile_templates__name__apply_post","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/models/{model_id}/settings/reset":{"post":{"tags":["admin"],"summary":"Reset Model Settings","description":"Return every setting of a model to the value it starts with.","operationId":"reset_model_settings_admin_api_models__model_id__settings_reset_post","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"}}}}}}},"/admin/api/models/{model_id}/settings/recipe":{"post":{"tags":["admin"],"summary":"Apply Settings Recipe","description":"Decode a pasted recipe and apply it, dropping features this install lacks.","operationId":"apply_settings_recipe_admin_api_models__model_id__settings_recipe_post","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyRecipeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/models/{model_id}/settings/optimal":{"get":{"tags":["admin"],"summary":"List Optimal Candidates","description":"Best omlx.ai benchmarks for this chip and model, by PP and by TG.\n\nRows from the same chip with the same or less memory qualify, since they\nreproduce on this machine. The lookup is proxied through the server like\nthe preset refresh so the browser does not depend on omlx.ai CORS\nheaders. Only rows carrying a settings snapshot are returned; the user\npicks one to apply.","operationId":"list_optimal_candidates_admin_api_models__model_id__settings_optimal_get","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"}}}}}},"post":{"tags":["admin"],"summary":"Apply Optimal Settings","description":"Apply the settings snapshot of one omlx.ai benchmark result.","operationId":"apply_optimal_settings_admin_api_models__model_id__settings_optimal_post","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyOptimalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/profile-fields":{"get":{"tags":["admin"],"summary":"Get Profile Fields","operationId":"get_profile_fields_admin_api_profile_fields_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/profile-templates":{"get":{"tags":["admin"],"summary":"List Templates","operationId":"list_templates_admin_api_profile_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["admin"],"summary":"Create Template","operationId":"create_template_admin_api_profile_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/profile-templates/{name}":{"put":{"tags":["admin"],"summary":"Update Template","operationId":"update_template_admin_api_profile_templates__name__put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTemplateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Template","operationId":"delete_template_admin_api_profile_templates__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/presets/refresh":{"post":{"tags":["admin"],"summary":"Refresh Presets","description":"Fetch the latest preset bundle from omlx.ai and return it.\n\nThe client uses this instead of fetching omlx.ai directly so we do not\ndepend on CORS headers on the remote host. Any failure is surfaced as 502\nso the client can silently fall back to the bundled presets.","operationId":"refresh_presets_admin_api_presets_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/models/{model_id}/generation_config":{"get":{"tags":["admin"],"summary":"Get Generation Config","description":"Read model config files and return recommended defaults.\n\nReturns the sampling settings a new model starts with (see\nEnginePool.recommended_sampling_settings) and reads config.json for\nmax_context_window (max_position_embeddings).\n\nArgs:\n    model_id: The model identifier.\n\nReturns:\n    JSON with recommended parameters from the model's config files.\n\nRaises:\n    HTTPException: 404 if model not found or no config files exist.","operationId":"get_generation_config_admin_api_models__model_id__generation_config_get","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"}}}}}}},"/admin/api/server-info":{"get":{"tags":["admin"],"summary":"Get Server Info","description":"Return server connectivity metadata for the dashboard.\n\nProvides the configured host, port, and the list of user-facing\naliases (hostnames/IPs) that the dashboard can use to render\nselectable API URL hints.\n\nReturns:\n    JSON object with ``host``, ``port``, and ``aliases``.\n\nRaises:\n    HTTPException: 401 if not authenticated, 503 if server not initialized.","operationId":"get_server_info_admin_api_server_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/server/restart":{"post":{"tags":["admin"],"summary":"Restart Server","description":"Trigger a server restart via the menubar supervisor.\n\nThe handler does not perform the restart itself — it returns 202 and\nschedules ``os.kill(os.getpid(), SIGTERM)`` 500ms after the response\nis queued. The menubar app's ``ServerManager._health_check_loop``\ndetects the process exit and respawns the server with a short\nbackoff (~5s).\n\nGated by the ``OMLX_SUPERVISED`` environment variable so plain\n``omlx serve`` (no supervisor) returns 503 rather than killing the\nserver with no respawn path.","operationId":"restart_server_admin_api_server_restart_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/global-settings":{"get":{"tags":["admin"],"summary":"Get Global Settings","description":"Get current global server settings.\n\nReturns the full global settings including server, model, scheduler,\ncache, and MCP configurations.\n\nReturns:\n    JSON object with global settings.\n\nRaises:\n    HTTPException: 401 if not authenticated, 503 if server not initialized.","operationId":"get_global_settings_admin_api_global_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["admin"],"summary":"Update Global Settings","description":"Update global server settings.\n\nUpdates are persisted to the global settings file. Some settings,\nincluding the MCP exposure toggle, are applied immediately, while network\nbinding and MCP config path changes require a server restart.\n\nArgs:\n    request: GlobalSettingsRequest with the new settings.\n\nReturns:\n    JSON response with success status, message, and list of runtime-applied settings.\n\nRaises:\n    HTTPException: 401 if not authenticated, 503 if server not initialized,\n                  400 if validation fails.","operationId":"update_global_settings_admin_api_global_settings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalSettingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/global-settings/defaults":{"get":{"tags":["admin"],"summary":"Get Global Settings Defaults","description":"Return factory defaults without reading overrides or changing saved settings.","operationId":"get_global_settings_defaults_admin_api_global_settings_defaults_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/claude-desktop/status":{"get":{"tags":["admin"],"summary":"Claude Desktop Status","description":"Return whether the oMLX Claude Desktop gateway profile is applied.","operationId":"claude_desktop_status_admin_api_claude_desktop_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/claude-desktop/configure":{"post":{"tags":["admin"],"summary":"Claude Desktop Configure","description":"(Re-)apply the oMLX Claude Desktop gateway profile (macOS only).\n\nWrites the user's Claude Desktop JSON configs — this side effect is\nshown explicitly in the admin panel. Restarting the Claude app is\nopt-in via ``restart_desktop`` and never automatic.","operationId":"claude_desktop_configure_admin_api_claude_desktop_configure_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaudeDesktopConfigureRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/claude-desktop/restore":{"post":{"tags":["admin"],"summary":"Claude Desktop Restore","description":"Restore the pre-oMLX Claude Desktop configuration (macOS only).","operationId":"claude_desktop_restore_admin_api_claude_desktop_restore_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaudeDesktopRestoreRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/web-search/test":{"post":{"tags":["admin"],"summary":"Test Web Search","description":"Run one real search with the pending (unsaved) web search settings.\n\nNothing is persisted here; saving stays with POST /api/global-settings.\nAlways answers HTTP 200 with an {\"ok\": bool, ...} payload so the UI\ncan show the provider's error message verbatim.","operationId":"test_web_search_admin_api_web_search_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebSearchTestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/logs":{"get":{"tags":["admin"],"summary":"Get Logs","description":"Get server logs.\n\nReturns the last N lines of the specified log file (or current log).\nSupports viewing historical rotated log files.\n\nArgs:\n    lines: Number of lines to return (default: 100, max: 10000).\n    file: Optional specific log file name. If not specified, uses current log.\n\nReturns:\n    JSON response with log content and metadata:\n    - logs: The log content string\n    - total_lines: Total number of lines in the file\n    - log_file: Name of the log file being read\n    - available_files: List of available log files\n\nRaises:\n    HTTPException: 401 if not authenticated, 503 if server not initialized,\n                  400 if invalid file name, 404 if log file not found.","operationId":"get_logs_admin_api_logs_get","parameters":[{"name":"lines","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Lines"}},{"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"}}}}}}},"/admin/api/usage":{"get":{"tags":["admin"],"summary":"Get Usage History","description":"Local hourly serving history. Sync route keeps SQLite off the event loop.","operationId":"get_usage_history_admin_api_usage_get","parameters":[{"name":"range","in":"query","required":false,"schema":{"enum":["today","yesterday","7d","30d","90d","month"],"type":"string","default":"today","title":"Range"}},{"name":"model","in":"query","required":false,"schema":{"type":"string","default":"","title":"Model"}},{"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"}}}}}}},"/admin/api/stats":{"get":{"tags":["admin"],"summary":"Get Server Stats","description":"Get server serving stats for the Status dashboard.\n\nArgs:\n    model: Filter by model ID. Empty string returns global aggregate.\n    scope: \"session\" for current session, \"alltime\" for persisted totals.","operationId":"get_server_stats_admin_api_stats_get","parameters":[{"name":"model","in":"query","required":false,"schema":{"type":"string","default":"","title":"Model"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"session","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/activity":{"get":{"tags":["admin"],"summary":"Get Server Activity","description":"Return lightweight current model and request activity for live displays.","operationId":"get_server_activity_admin_api_activity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/stats/clear":{"post":{"tags":["admin"],"summary":"Clear Server Stats","description":"Clear session server metrics.","operationId":"clear_server_stats_admin_api_stats_clear_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/stats/clear-alltime":{"post":{"tags":["admin"],"summary":"Clear Alltime Stats","description":"Clear all-time server metrics and delete persisted stats file.","operationId":"clear_alltime_stats_admin_api_stats_clear_alltime_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/ssd-cache/clear":{"post":{"tags":["admin"],"summary":"Clear Ssd Cache","description":"Clear all SSD cache files for all loaded models.\n\nUses loaded models' SSD cache managers when available.  Falls back to\ndirect filesystem deletion so caches can be wiped even when no model\nis loaded.","operationId":"clear_ssd_cache_admin_api_ssd_cache_clear_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/hot-cache/clear":{"post":{"tags":["admin"],"summary":"Clear Hot Cache","description":"Clear the in-memory hot cache and release the buffers it held.\n\nDropping hot cache entries releases Python references, but MLX may keep\nnow-unused buffers in its allocator pool. Reclaim through the scheduler's\nsynchronized clear path so active engine streams and async store-cache\nworkers keep the same Metal safety barriers used by generation.","operationId":"clear_hot_cache_admin_api_hot_cache_clear_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/cache/probe":{"post":{"tags":["admin"],"summary":"Probe Cache","description":"Probe cache state for a chat message list.\n\nClassifies each block of the rendered prompt into one of three buckets:\n- ``blocks_ssd_hot``: in the SSD manager's hot cache (RAM copy of cold\n  blocks, ready to mount without disk read)\n- ``blocks_ssd_disk``: only in the SSD index on disk\n- ``blocks_cold``: not cached anywhere (requires full prefill)\n\nThe split is computed via a walk of the chain-hashed block sequence — the\nsame hashing the scheduler uses at prefill time. The model must be loaded\nfor the probe to run; unloaded models return ``model_loaded: false``.","operationId":"probe_cache_admin_api_cache_probe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheProbeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/hf/download":{"post":{"tags":["admin"],"summary":"Start Hf Download","description":"Start downloading a model from HuggingFace.","operationId":"start_hf_download_admin_api_hf_download_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HFDownloadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/hf/tasks":{"get":{"tags":["admin"],"summary":"List Hf Tasks","description":"List all download tasks.","operationId":"list_hf_tasks_admin_api_hf_tasks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/hf/cancel/{task_id}":{"post":{"tags":["admin"],"summary":"Cancel Hf Download","description":"Cancel an active download.","operationId":"cancel_hf_download_admin_api_hf_cancel__task_id__post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/hf/retry/{task_id}":{"post":{"tags":["admin"],"summary":"Retry Hf Download","description":"Retry a failed or cancelled download, resuming from existing files.","operationId":"retry_hf_download_admin_api_hf_retry__task_id__post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HFRetryRequest","default":{"hf_token":""}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/hf/task/{task_id}":{"delete":{"tags":["admin"],"summary":"Remove Hf Task","description":"Remove a completed, failed, or cancelled task.","operationId":"remove_hf_task_admin_api_hf_task__task_id__delete","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/hf/recommended":{"get":{"tags":["admin"],"summary":"Get Recommended Models","description":"Get recommended models filtered by system memory.","operationId":"get_recommended_models_admin_api_hf_recommended_get","parameters":[{"name":"mlx_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Mlx Only"}},{"name":"model_format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/hf/recommendations":{"get":{"tags":["admin"],"summary":"Get Model Recommendations","description":"oQ models that fit this Mac, grouped for the downloader's Recommended tab.","operationId":"get_model_recommendations_admin_api_hf_recommendations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/hf/search":{"get":{"tags":["admin"],"summary":"Search Hf Models","description":"Search HuggingFace models by query with filtering and sorting.\n\nQuery Parameters:\n    q: Search query string (required)\n    sort: Sort order - trending/downloads/created/updated/most_params/least_params/largest/smallest\n    limit: Maximum results (max 100)\n    mlx_only: Restrict to MLX library models (older spelling of model_format)\n    model_format: mlx, gguf or all\n    min_params: Minimum parameter count\n    max_params: Maximum parameter count\n    min_size: Minimum model size in bytes\n    max_size: Maximum model size in bytes\n    sort_by_size: Sort results by size instead of default sort\n    sort_ascending: Sort in ascending order","operationId":"search_hf_models_admin_api_hf_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"trending","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"mlx_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Mlx Only"}},{"name":"model_format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Format"}},{"name":"min_params","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Params"}},{"name":"max_params","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Params"}},{"name":"min_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Size"}},{"name":"max_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Size"}},{"name":"sort_by_size","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sort By Size"}},{"name":"sort_ascending","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sort Ascending"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/hf/model-info":{"get":{"tags":["admin"],"summary":"Get Hf Model Info","description":"Get detailed model information from HuggingFace.\n\nAn ``X-HF-Token`` header carries a token for a gated or private repo.","operationId":"get_hf_model_info_admin_api_hf_model_info_get","parameters":[{"name":"repo_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Repo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/hf/updates":{"post":{"tags":["admin"],"summary":"Check Hf Updates","description":"Report downloaded models whose files changed on HuggingFace.","operationId":"check_hf_updates_admin_api_hf_updates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HFUpdateCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/hf/models":{"get":{"tags":["admin"],"summary":"List Hf Models","description":"List models in the discovery directories with disk size info.","operationId":"list_hf_models_admin_api_hf_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/hf/models/{model_name}":{"delete":{"tags":["admin"],"summary":"Delete Hf Model","description":"Delete a model or HF cache entry from disk and refresh the model pool.","operationId":"delete_hf_model_admin_api_hf_models__model_name__delete","parameters":[{"name":"model_name","in":"path","required":true,"schema":{"type":"string","title":"Model Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ms/status":{"get":{"tags":["admin"],"summary":"Ms Status","description":"Check if ModelScope downloader is available.","operationId":"ms_status_admin_api_ms_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/ms/download":{"post":{"tags":["admin"],"summary":"Start Ms Download","description":"Start downloading a model from ModelScope.","operationId":"start_ms_download_admin_api_ms_download_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MSDownloadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ms/tasks":{"get":{"tags":["admin"],"summary":"List Ms Tasks","description":"List all ModelScope download tasks.","operationId":"list_ms_tasks_admin_api_ms_tasks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/ms/cancel/{task_id}":{"post":{"tags":["admin"],"summary":"Cancel Ms Download","description":"Cancel an active ModelScope download.","operationId":"cancel_ms_download_admin_api_ms_cancel__task_id__post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ms/retry/{task_id}":{"post":{"tags":["admin"],"summary":"Retry Ms Download","description":"Retry a failed or cancelled ModelScope download.","operationId":"retry_ms_download_admin_api_ms_retry__task_id__post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MSRetryRequest","default":{"ms_token":""}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ms/task/{task_id}":{"delete":{"tags":["admin"],"summary":"Remove Ms Task","description":"Remove a completed, failed, or cancelled ModelScope task.","operationId":"remove_ms_task_admin_api_ms_task__task_id__delete","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ms/recommended":{"get":{"tags":["admin"],"summary":"Get Ms Recommended Models","description":"Get recommended models from ModelScope filtered by system memory.","operationId":"get_ms_recommended_models_admin_api_ms_recommended_get","parameters":[{"name":"mlx_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Mlx Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ms/search":{"get":{"tags":["admin"],"summary":"Search Ms Models","description":"Search ModelScope models by query.","operationId":"search_ms_models_admin_api_ms_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"trending","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"mlx_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Mlx Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ms/model-info":{"get":{"tags":["admin"],"summary":"Get Ms Model Info","description":"Get detailed model information from ModelScope.","operationId":"get_ms_model_info_admin_api_ms_model_info_get","parameters":[{"name":"model_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/bench/accuracy/queue/add":{"post":{"tags":["admin"],"summary":"Add To Accuracy Queue","description":"Add a model to the accuracy benchmark queue and start if idle.","operationId":"add_to_accuracy_queue_admin_api_bench_accuracy_queue_add_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/bench/accuracy/queue/status":{"get":{"tags":["admin"],"summary":"Get Accuracy Queue Status","description":"Get accuracy benchmark queue status.","operationId":"get_accuracy_queue_status_admin_api_bench_accuracy_queue_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/bench/accuracy/queue/{idx}":{"delete":{"tags":["admin"],"summary":"Remove From Accuracy Queue","description":"Remove an item from the accuracy benchmark queue.","operationId":"remove_from_accuracy_queue_admin_api_bench_accuracy_queue__idx__delete","parameters":[{"name":"idx","in":"path","required":true,"schema":{"type":"integer","title":"Idx"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/bench/accuracy/results":{"get":{"tags":["admin"],"summary":"Get Accumulated Accuracy Results","description":"Get all accumulated accuracy benchmark results.","operationId":"get_accumulated_accuracy_results_admin_api_bench_accuracy_results_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/bench/accuracy/results/reset":{"post":{"tags":["admin"],"summary":"Reset Accuracy Results","description":"Clear all accumulated accuracy benchmark results.","operationId":"reset_accuracy_results_admin_api_bench_accuracy_results_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/bench/accuracy/cancel":{"post":{"tags":["admin"],"summary":"Cancel Accuracy Queue","description":"Cancel the current run and clear the queue.","operationId":"cancel_accuracy_queue_admin_api_bench_accuracy_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/bench/accuracy/{bench_id}/stream":{"get":{"tags":["admin"],"summary":"Stream Accuracy Benchmark","description":"Stream accuracy benchmark progress via Server-Sent Events.","operationId":"stream_accuracy_benchmark_admin_api_bench_accuracy__bench_id__stream_get","parameters":[{"name":"bench_id","in":"path","required":true,"schema":{"type":"string","title":"Bench Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/bench/ane-tune/start":{"post":{"tags":["admin"],"summary":"Start Ane Tuning","description":"Tune the model’s ANE/GPU split without changing persisted settings.","operationId":"start_ane_tuning_admin_api_bench_ane_tune_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/bench/ane-tune/{tuning_id}/results":{"get":{"tags":["admin"],"summary":"Get Ane Tuning Results","operationId":"get_ane_tuning_results_admin_api_bench_ane_tune__tuning_id__results_get","parameters":[{"name":"tuning_id","in":"path","required":true,"schema":{"type":"string","title":"Tuning Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/bench/ane-tune/{tuning_id}/cancel":{"post":{"tags":["admin"],"summary":"Cancel Ane Tuning","operationId":"cancel_ane_tuning_admin_api_bench_ane_tune__tuning_id__cancel_post","parameters":[{"name":"tuning_id","in":"path","required":true,"schema":{"type":"string","title":"Tuning Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/bench/context/active":{"get":{"tags":["admin"],"summary":"Get Active Context Benchmark","description":"Return the currently-running context benchmark, if any.","operationId":"get_active_context_benchmark_admin_api_bench_context_active_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/bench/context/start":{"post":{"tags":["admin"],"summary":"Start Context Benchmark","description":"Start a context window benchmark run.\n\nRejects with 409 while any benchmark (context, throughput, accuracy)\nis running — they all unload/load models and would corrupt each\nother. Rejects with 400 when the memory guard is off: there is no\nadmission boundary to measure and an unguarded probe prefill can\ngenuinely exhaust the machine.","operationId":"start_context_benchmark_admin_api_bench_context_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/bench/context/{bench_id}/stream":{"get":{"tags":["admin"],"summary":"Stream Context Benchmark","description":"Stream context benchmark progress via Server-Sent Events.","operationId":"stream_context_benchmark_admin_api_bench_context__bench_id__stream_get","parameters":[{"name":"bench_id","in":"path","required":true,"schema":{"type":"string","title":"Bench Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/bench/context/{bench_id}/cancel":{"post":{"tags":["admin"],"summary":"Cancel Context Benchmark","description":"Cancel a running context benchmark.","operationId":"cancel_context_benchmark_admin_api_bench_context__bench_id__cancel_post","parameters":[{"name":"bench_id","in":"path","required":true,"schema":{"type":"string","title":"Bench Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/bench/context/{bench_id}/results":{"get":{"tags":["admin"],"summary":"Get Context Benchmark Results","description":"Get status and result of a context benchmark (REST poll surface).","operationId":"get_context_benchmark_results_admin_api_bench_context__bench_id__results_get","parameters":[{"name":"bench_id","in":"path","required":true,"schema":{"type":"string","title":"Bench Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/bench/active":{"get":{"tags":["admin"],"summary":"Get Active Benchmark","description":"Return the currently-running throughput benchmark, if any.\n\nSymmetric to `/api/bench/accuracy/queue/status` — lets a fresh page\nload or a second tab discover an in-flight run so it can attach to\nthe SSE stream. Combined with the replay-on-subscribe stream this\nis what makes the multi-tab + page-refresh story actually work.","operationId":"get_active_benchmark_admin_api_bench_active_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/bench/start":{"post":{"tags":["admin"],"summary":"Start Benchmark","description":"Start a benchmark run.\n\nValidates the model, creates a benchmark run, and starts it\nas an asyncio background task. Rejects with 409 if another\nthroughput bench is already running — two concurrent runs on\nthe same engine produce mutually-corrupted measurements.","operationId":"start_benchmark_admin_api_bench_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/bench/{bench_id}/stream":{"get":{"tags":["admin"],"summary":"Stream Benchmark","description":"Stream benchmark progress via Server-Sent Events.","operationId":"stream_benchmark_admin_api_bench__bench_id__stream_get","parameters":[{"name":"bench_id","in":"path","required":true,"schema":{"type":"string","title":"Bench Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/bench/{bench_id}/cancel":{"post":{"tags":["admin"],"summary":"Cancel Benchmark","description":"Cancel a running benchmark.","operationId":"cancel_benchmark_admin_api_bench__bench_id__cancel_post","parameters":[{"name":"bench_id","in":"path","required":true,"schema":{"type":"string","title":"Bench Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/bench/{bench_id}/results":{"get":{"tags":["admin"],"summary":"Get Benchmark Results","description":"Get results from a completed benchmark.","operationId":"get_benchmark_results_admin_api_bench__bench_id__results_get","parameters":[{"name":"bench_id","in":"path","required":true,"schema":{"type":"string","title":"Bench Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/device-info":{"get":{"tags":["admin"],"summary":"Get Device Info","description":"Get device hardware info and owner_hash for omlx.ai integration.","operationId":"get_device_info_admin_api_device_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/update-check":{"get":{"tags":["admin"],"summary":"Check Update","description":"Check GitHub Releases for newer oMLX version (cached 24h).","operationId":"check_update_admin_api_update_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/oq/models":{"get":{"tags":["admin"],"summary":"List Oq Models","description":"List non-quantized models available for oQ quantization.","operationId":"list_oq_models_admin_api_oq_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/oq/estimate":{"get":{"tags":["admin"],"summary":"Estimate Oq","description":"Estimate effective bpw and output size for a model at given oQ level.","operationId":"estimate_oq_admin_api_oq_estimate_get","parameters":[{"name":"model_path","in":"query","required":true,"schema":{"type":"string","title":"Model Path"}},{"name":"oq_level","in":"query","required":true,"schema":{"type":"number","title":"Oq Level"}},{"name":"preserve_mtp","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Preserve Mtp"}},{"name":"preserve_ngram_table","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Preserve Ngram Table"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/oq/start":{"post":{"tags":["admin"],"summary":"Start Oq Quantization","description":"Start an oQ quantization task.","operationId":"start_oq_quantization_admin_api_oq_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OQStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/oq/tasks":{"get":{"tags":["admin"],"summary":"List Oq Tasks","description":"List all quantization tasks.","operationId":"list_oq_tasks_admin_api_oq_tasks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/oq/cancel/{task_id}":{"post":{"tags":["admin"],"summary":"Cancel Oq Task","description":"Cancel an active quantization task.","operationId":"cancel_oq_task_admin_api_oq_cancel__task_id__post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/oq/task/{task_id}":{"delete":{"tags":["admin"],"summary":"Remove Oq Task","description":"Remove a completed/failed/cancelled task.","operationId":"remove_oq_task_admin_api_oq_task__task_id__delete","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/upload/validate-token":{"post":{"tags":["admin"],"summary":"Validate Upload Token","description":"Validate a HuggingFace token and return user info.","operationId":"validate_upload_token_admin_api_upload_validate_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HFValidateTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/upload/oq-models":{"get":{"tags":["admin"],"summary":"List Upload Oq Models","description":"List local oQ models available for upload.","operationId":"list_upload_oq_models_admin_api_upload_oq_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/upload/start":{"post":{"tags":["admin"],"summary":"Start Upload","description":"Start an upload task to HuggingFace Hub.","operationId":"start_upload_admin_api_upload_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HFUploadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/upload/tasks":{"get":{"tags":["admin"],"summary":"List Upload Tasks","description":"List all upload tasks.","operationId":"list_upload_tasks_admin_api_upload_tasks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/api/upload/cancel/{task_id}":{"post":{"tags":["admin"],"summary":"Cancel Upload Task","description":"Cancel an active or pending upload task.","operationId":"cancel_upload_task_admin_api_upload_cancel__task_id__post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/upload/task/{task_id}":{"delete":{"tags":["admin"],"summary":"Remove Upload Task","description":"Remove a completed/failed/cancelled upload task.","operationId":"remove_upload_task_admin_api_upload_task__task_id__delete","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","description":"Health check endpoint.\n\nAnswers 503 with status \"loading\" while the startup pinned-model\npreload is still running: the port is already bound (liveness for\nwatchdogs, #2184) but the server is not ready to serve those models.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/status":{"get":{"summary":"Server Status","description":"Lightweight status endpoint for external tool polling (statuslines, scripts).","operationId":"server_status_api_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/models":{"get":{"summary":"List Models","description":"List all available models with load status.","operationId":"list_models_v1_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/models/status":{"get":{"summary":"List Models Status","description":"List all available models with detailed status.\n\nExtended endpoint that provides more information than /v1/models.","operationId":"list_models_status_v1_models_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/models/{model_id}/unload":{"post":{"summary":"Unload Model","description":"Manually unload a model from memory.","operationId":"unload_model_v1_models__model_id__unload_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"}}}}}}},"/v1/models/{model_id}/load":{"post":{"summary":"Load Model Public","description":"Load a discovered model into memory. Blocks until loading completes.","operationId":"load_model_public_v1_models__model_id__load_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"}}}}}}},"/v1/embeddings":{"post":{"summary":"Create Embeddings","description":"Create embeddings for input text(s).\n\nOpenAI-compatible endpoint for generating text embeddings.\n\nExample request:\n```json\n{\n    \"model\": \"all-MiniLM-L6-v2\",\n    \"input\": [\"Hello, world!\", \"How are you?\"],\n    \"encoding_format\": \"float\"\n}\n```\n\nSupports:\n- Single text or list of texts\n- float or base64 encoding format\n- Optional dimension reduction (with renormalization)","operationId":"create_embeddings_v1_embeddings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingRequest"}}},"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/rerank":{"post":{"summary":"Create Rerank","description":"Rerank documents by relevance to a query.\n\nCohere/Jina-compatible endpoint for document reranking.\n\nExample request:\n```json\n{\n    \"model\": \"bge-reranker-v2-m3\",\n    \"query\": \"What is machine learning?\",\n    \"documents\": [\n        \"Machine learning is a subset of AI...\",\n        \"The weather today is sunny...\",\n        \"Deep learning uses neural networks...\"\n    ],\n    \"top_n\": 2\n}\n```\n\nSupports:\n- String documents or dict documents with 'text' field\n- Optional top_n to limit results\n- Optional max_length to limit tokens per query-document pair\n- Optional return_documents to include document text in response","operationId":"create_rerank_v1_rerank_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RerankRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RerankResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/systemone":{"post":{"summary":"Create Systemone","description":"Answer typed questions about a state with a decision or chat model.\n\nTypeSafe System One compatible endpoint. Every answer carries a\nprobability for each option of a ``noul`` (yes/no), ``choice`` or\n``score`` question.\n\nExample request:\n```json\n{\n    \"model\": \"clef-flash-4bit\",\n    \"state\": \"Checkout fails for every customer since the last deploy.\",\n    \"questions\": {\n        \"urgent\": {\"type\": \"noul\", \"instructions\": \"Is this urgent?\"}\n    }\n}\n```","operationId":"create_systemone_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":[]}]}},"/v1/decisions":{"post":{"summary":"Create Decisions","description":"Answer typed questions about an input with option probabilities.\n\nOpenAI Decisions API compatible endpoint. Chat models answer each\n``predicate``, ``choice`` or ``score`` question from the next-token\nprobabilities of the option letters; decision models use their own heads.\n\nExample request:\n```json\n{\n    \"model\": \"qwen3-8b\",\n    \"input\": \"Checkout fails for every customer since the last deploy.\",\n    \"questions\": [\n        {\"type\": \"predicate\", \"name\": \"urgent\", \"instructions\": \"Is this urgent?\"}\n    ]\n}\n```","operationId":"create_decisions_v1_decisions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionRequest"}}},"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/completions":{"post":{"summary":"Create Completion","description":"Create a text completion.","operationId":"create_completion_v1_completions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionRequest"}}},"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/completions":{"post":{"summary":"Create Chat Completion","description":"Create a chat completion.\n\nStructured output (JSON mode):\n```json\nresponse_format={\"type\": \"json_object\"}\n```\n\nStructured output (JSON Schema):\n```json\nresponse_format={\n    \"type\": \"json_schema\",\n    \"json_schema\": {\n        \"name\": \"my_schema\",\n        \"schema\": {\"type\": \"object\", \"properties\": {...}}\n    }\n}\n```","operationId":"create_chat_completion_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/messages":{"post":{"summary":"Create Anthropic Message","description":"Create a message using Anthropic Messages API format.\n\nThis endpoint provides compatibility with Anthropic's Messages API,\nallowing clients that use Anthropic SDK to work with oMLX.\n\nExample request:\n```json\n{\n    \"model\": \"claude-3-sonnet\",\n    \"max_tokens\": 1024,\n    \"messages\": [\n        {\"role\": \"user\", \"content\": \"Hello, how are you?\"}\n    ]\n}\n```\n\nStreaming is supported with `stream: true`.","operationId":"create_anthropic_message_v1_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagesRequest"}}},"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":{"summary":"Count Anthropic Tokens","description":"Count tokens in a message request.\n\nUses the loaded model's tokenizer to accurately count tokens\nincluding system prompt, messages, and tools.\n\nThis is compatible with Anthropic's token counting API.","operationId":"count_anthropic_tokens_v1_messages_count_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCountRequest"}}},"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/tokenize":{"post":{"summary":"Tokenize","description":"Tokenize a prompt or chat messages (vLLM-compatible).\n\nA ``prompt`` is encoded like /v1/completions. ``messages`` go through the\n/v1/chat/completions preparation and the engine's own prompt rendering, so\nthe IDs are the ones generation would see. The context window is not\nenforced; ``max_model_len`` reports it instead.","operationId":"tokenize_v1_tokenize_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TokenizeChatRequest"},{"$ref":"#/components/schemas/TokenizeCompletionRequest"}],"title":"Request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tokenize":{"post":{"summary":"Tokenize","description":"Tokenize a prompt or chat messages (vLLM-compatible).\n\nA ``prompt`` is encoded like /v1/completions. ``messages`` go through the\n/v1/chat/completions preparation and the engine's own prompt rendering, so\nthe IDs are the ones generation would see. The context window is not\nenforced; ``max_model_len`` reports it instead.","operationId":"tokenize_tokenize_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TokenizeChatRequest"},{"$ref":"#/components/schemas/TokenizeCompletionRequest"}],"title":"Request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/detokenize":{"post":{"summary":"Detokenize","description":"Decode token IDs to text, keeping special tokens (vLLM-compatible).","operationId":"detokenize_v1_detokenize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetokenizeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetokenizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/detokenize":{"post":{"summary":"Detokenize","description":"Decode token IDs to text, keeping special tokens (vLLM-compatible).","operationId":"detokenize_detokenize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetokenizeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetokenizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/responses":{"post":{"summary":"Create Response","description":"Create a response (OpenAI Responses API).","operationId":"create_response_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/responses/{response_id}":{"get":{"summary":"Get Response","description":"Retrieve a stored response.","operationId":"get_response_v1_responses__response_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"response_id","in":"path","required":true,"schema":{"type":"string","title":"Response Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Response","description":"Delete a stored response.","operationId":"delete_response_v1_responses__response_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"response_id","in":"path","required":true,"schema":{"type":"string","title":"Response Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AnthropicMessage":{"properties":{"role":{"type":"string","enum":["user","assistant","system"],"title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{"oneOf":[{"anyOf":[{"$ref":"#/components/schemas/ContentBlockText"},{"$ref":"#/components/schemas/ContentBlockImage"},{"$ref":"#/components/schemas/ContentBlockToolUse"},{"$ref":"#/components/schemas/ContentBlockToolResult"},{"$ref":"#/components/schemas/ContentBlockThinking"},{"$ref":"#/components/schemas/ContentBlockDocument"},{"$ref":"#/components/schemas/ContentBlockInputAudio"}]},{"$ref":"#/components/schemas/ContentBlockText"},{"$ref":"#/components/schemas/ContentBlockImage"},{"$ref":"#/components/schemas/ContentBlockToolUse"},{"$ref":"#/components/schemas/ContentBlockToolResult"},{"$ref":"#/components/schemas/ContentBlockThinking"},{"$ref":"#/components/schemas/ContentBlockDocument"},{"$ref":"#/components/schemas/ContentBlockInputAudio"},{"$ref":"#/components/schemas/ContentBlockUnknown"}]},"type":"array"}],"title":"Content"}},"type":"object","required":["role","content"],"title":"AnthropicMessage","description":"A message in an Anthropic conversation."},"AnthropicTool":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"input_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Schema"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"cache_control":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Cache Control"}},"additionalProperties":true,"type":"object","required":["name"],"title":"AnthropicTool","description":"Tool definition in Anthropic format.\n\nSupports two shapes:\n  1. User-defined tool: requires ``input_schema``.\n  2. Anthropic server-side tool (web_search, code_execution, bash,\n     text_editor, computer): carries a versioned ``type`` like\n     ``web_search_20250305`` and no ``input_schema``. oMLX cannot execute\n     these locally; they are accepted for compatibility with clients such\n     as Claude for Excel/PowerPoint/Word and dropped before inference."},"ApplyOptimalRequest":{"properties":{"benchmark_id":{"type":"string","pattern":"^[a-z0-9]{1,16}$","title":"Benchmark Id"}},"additionalProperties":false,"type":"object","required":["benchmark_id"],"title":"ApplyOptimalRequest","description":"Request model for applying one omlx.ai benchmark candidate."},"ApplyRecipeRequest":{"properties":{"recipe":{"type":"string","maxLength":9000,"title":"Recipe"}},"additionalProperties":false,"type":"object","required":["recipe"],"title":"ApplyRecipeRequest","description":"Request model for applying a pasted settings recipe."},"AudioSpeechRequest":{"properties":{"model":{"type":"string","title":"Model"},"input":{"type":"string","title":"Input"},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Speed","default":1.0},"response_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Format","default":"wav"},"ref_audio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref Audio"},"ref_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref Text"},"temperature":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Temperature"},"top_k":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Top K"},"top_p":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Top P"},"repetition_penalty":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Repetition Penalty"},"max_tokens":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Tokens"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","default":false},"streaming_interval":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Streaming Interval"}},"type":"object","required":["model","input"],"title":"AudioSpeechRequest"},"AudioTranscriptionResponse":{"properties":{"text":{"type":"string","title":"Text"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"},"segments":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Segments"}},"type":"object","required":["text"],"title":"AudioTranscriptionResponse"},"Body_create_transcription_v1_audio_transcriptions_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"model":{"type":"string","title":"Model"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"response_format":{"type":"string","title":"Response Format","default":"json"},"temperature":{"type":"number","title":"Temperature","default":0.0},"stream":{"type":"boolean","title":"Stream","default":false},"max_tokens":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Tokens"},"word_timestamps":{"type":"boolean","title":"Word Timestamps","default":false}},"type":"object","required":["file","model"],"title":"Body_create_transcription_v1_audio_transcriptions_post"},"Body_process_audio_v1_audio_process_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"model":{"type":"string","title":"Model"}},"type":"object","required":["file","model"],"title":"Body_process_audio_v1_audio_process_post"},"CacheProbeRequest":{"properties":{"model_id":{"type":"string","title":"Model Id"},"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Messages"},"tools":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools"},"chat_template_kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Chat Template Kwargs"},"thinking_budget":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thinking Budget"}},"type":"object","required":["model_id","messages"],"title":"CacheProbeRequest","description":"Request model for probing per-prompt cache state.\n\nTokenizes a chat message list with the target model's tokenizer, then\nclassifies each block's location in the cache hierarchy:\n- Hot SSD (in-RAM copy of SSD cache, ready to mount without disk read)\n- Disk SSD (persisted only, needs disk read to reuse)\n- Cold (fully uncached — would require full prefill)"},"ChatCompletionRequest":{"properties":{"model":{"type":"string","title":"Model"},"messages":{"items":{"$ref":"#/components/schemas/Message"},"type":"array","title":"Messages"},"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"},"repetition_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Repetition Penalty"},"repetition_context_size":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Repetition Context Size"},"no_repeat_ngram_size":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"No Repeat Ngram Size"},"ngram_window":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Ngram Window"},"ignore_eos":{"type":"boolean","title":"Ignore Eos","default":false},"max_tokens":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Tokens"},"stream":{"type":"boolean","title":"Stream","default":false},"stream_options":{"anyOf":[{"$ref":"#/components/schemas/StreamOptions"},{"type":"null"}]},"return_progress":{"type":"boolean","title":"Return Progress","default":false},"stop":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop"},"min_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min P"},"xtc_probability":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Xtc Probability"},"xtc_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Xtc Threshold"},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presence Penalty"},"frequency_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Frequency Penalty"},"tools":{"anyOf":[{"items":{"$ref":"#/components/schemas/ToolDefinition"},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice"},"response_format":{"anyOf":[{"$ref":"#/components/schemas/ResponseFormat"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Format"},"structured_outputs":{"anyOf":[{"$ref":"#/components/schemas/StructuredOutputOptions"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Structured Outputs"},"guided_grammar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guided Grammar"},"chat_template_kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Chat Template Kwargs"},"enable_thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Thinking"},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Reasoning Effort"},"thinking_budget":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Thinking Budget"},"gpu_power_limit_w":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":2.0},{"type":"null"}],"title":"Gpu Power Limit W"},"specprefill":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Specprefill"},"specprefill_keep_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Specprefill Keep Pct"},"specprefill_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Specprefill Threshold"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"logprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Logprobs"},"top_logprobs":{"anyOf":[{"type":"integer","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Top Logprobs"}},"type":"object","required":["model","messages"],"title":"ChatCompletionRequest","description":"Request for chat completion."},"ChoiceQuestion":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"instructions":{"type":"string","minLength":1,"title":"Instructions"},"type":{"type":"string","const":"choice","title":"Type"},"choices":{"items":{"$ref":"#/components/schemas/DecisionChoiceOption"},"type":"array","maxItems":255,"minItems":2,"title":"Choices"}},"type":"object","required":["name","instructions","type","choices"],"title":"ChoiceQuestion","description":"One value out of unordered options."},"ClaudeDesktopConfigureRequest":{"properties":{"restart_desktop":{"type":"boolean","title":"Restart Desktop","default":false},"port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Port"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},"type":"object","title":"ClaudeDesktopConfigureRequest","description":"Request model for (re-)applying the Claude Desktop gateway profile."},"ClaudeDesktopRestoreRequest":{"properties":{"restart_desktop":{"type":"boolean","title":"Restart Desktop","default":false}},"type":"object","title":"ClaudeDesktopRestoreRequest","description":"Request model for restoring the pre-oMLX Claude Desktop configuration."},"CompletionRequest":{"properties":{"model":{"type":"string","title":"Model"},"prompt":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Prompt"},"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"},"repetition_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Repetition Penalty"},"repetition_context_size":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Repetition Context Size"},"no_repeat_ngram_size":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"No Repeat Ngram Size"},"ngram_window":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Ngram Window"},"ignore_eos":{"type":"boolean","title":"Ignore Eos","default":false},"max_tokens":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Tokens"},"stream":{"type":"boolean","title":"Stream","default":false},"stream_options":{"anyOf":[{"$ref":"#/components/schemas/StreamOptions"},{"type":"null"}]},"return_progress":{"type":"boolean","title":"Return Progress","default":false},"stop":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop"},"min_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min P"},"xtc_probability":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Xtc Probability"},"xtc_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Xtc Threshold"},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presence Penalty"},"frequency_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Frequency Penalty"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"thinking_budget":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Thinking Budget"},"gpu_power_limit_w":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":2.0},{"type":"null"}],"title":"Gpu Power Limit W"}},"type":"object","required":["model","prompt"],"title":"CompletionRequest","description":"Request for text completion."},"ContentBlockDocument":{"properties":{"type":{"type":"string","const":"document","title":"Type","default":"document"},"source":{"additionalProperties":true,"type":"object","title":"Source"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"citations":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Citations"},"cache_control":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Cache Control"}},"type":"object","required":["source"],"title":"ContentBlockDocument","description":"Document content block (PDF, plain text)."},"ContentBlockImage":{"properties":{"type":{"type":"string","const":"image","title":"Type","default":"image"},"source":{"additionalProperties":true,"type":"object","title":"Source"}},"type":"object","required":["source"],"title":"ContentBlockImage","description":"Image content block with source data."},"ContentBlockInputAudio":{"properties":{"type":{"type":"string","const":"input_audio","title":"Type","default":"input_audio"},"input_audio":{"additionalProperties":true,"type":"object","title":"Input Audio"}},"type":"object","required":["input_audio"],"title":"ContentBlockInputAudio","description":"Audio input content block for multimodal audio models.\n\nUses the same shape as OpenAI's input_audio content part so that\nthe internal VLM engine receives a uniform representation regardless\nof which API endpoint the client used."},"ContentBlockText":{"properties":{"type":{"type":"string","const":"text","title":"Type","default":"text"},"text":{"type":"string","title":"Text"},"cache_control":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Cache Control"}},"type":"object","required":["text"],"title":"ContentBlockText","description":"Text content block."},"ContentBlockThinking":{"properties":{"type":{"type":"string","const":"thinking","title":"Type","default":"thinking"},"thinking":{"type":"string","title":"Thinking"},"signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature"}},"type":"object","required":["thinking"],"title":"ContentBlockThinking","description":"Thinking content block for reasoning models (e.g., Claude Opus 4.6)."},"ContentBlockToolResult":{"properties":{"type":{"type":"string","const":"tool_result","title":"Type","default":"tool_result"},"tool_use_id":{"type":"string","title":"Tool Use Id"},"content":{"anyOf":[{"type":"string"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{}],"title":"Content"},"is_error":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Error"},"cache_control":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Cache Control"}},"type":"object","required":["tool_use_id","content"],"title":"ContentBlockToolResult","description":"Tool result content block (user providing tool output)."},"ContentBlockToolUse":{"properties":{"type":{"type":"string","const":"tool_use","title":"Type","default":"tool_use"},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"input":{"additionalProperties":true,"type":"object","title":"Input"}},"type":"object","required":["id","name","input"],"title":"ContentBlockToolUse","description":"Tool use content block (model requesting a tool call)."},"ContentBlockUnknown":{"properties":{"type":{"type":"string","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ContentBlockUnknown","description":"Content block type this server does not model. Converters skip it."},"ContentPart":{"properties":{"type":{"type":"string","title":"Type"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"image_url":{"anyOf":[{"$ref":"#/components/schemas/ImageURL"},{"type":"null"}]},"video_url":{"anyOf":[{"$ref":"#/components/schemas/ImageURL"},{"type":"null"}]},"input_video":{"anyOf":[{"$ref":"#/components/schemas/ImageURL"},{"type":"string"},{"type":"null"}],"title":"Input Video"},"input_audio":{"anyOf":[{"$ref":"#/components/schemas/InputAudio"},{"type":"null"}]},"file":{"anyOf":[{"$ref":"#/components/schemas/FileContent"},{"type":"null"}]}},"type":"object","required":["type"],"title":"ContentPart","description":"A part of a message content array.\n\nSupports:\n- text: Plain text content\n- image_url: Image input for vision models\n- input_audio: Audio input for multimodal audio models\n- video_url: Video input for supported multimodal models\n- file: Document or text input for attachment preprocessing"},"CreateProfileRequest":{"properties":{"name":{"type":"string","title":"Name"},"display_name":{"type":"string","title":"Display Name"},"api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"also_save_as_template":{"type":"boolean","title":"Also Save As Template","default":false},"source_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Template"},"expose_as_model":{"type":"boolean","title":"Expose As Model","default":false}},"type":"object","required":["name","display_name"],"title":"CreateProfileRequest","description":"Request body for creating a per-model profile."},"CreateSubKeyRequest":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name","default":""}},"type":"object","required":["key"],"title":"CreateSubKeyRequest","description":"Request model for creating a sub API key."},"CreateTemplateRequest":{"properties":{"name":{"type":"string","title":"Name"},"display_name":{"type":"string","title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"}},"type":"object","required":["name","display_name"],"title":"CreateTemplateRequest","description":"Request body for creating a global template."},"DashboardLayoutBlock":{"properties":{"id":{"type":"string","title":"Id"},"x":{"type":"integer","exclusiveMaximum":24.0,"minimum":0.0,"title":"X"},"y":{"type":"integer","minimum":0.0,"title":"Y"},"w":{"type":"integer","maximum":24.0,"minimum":6.0,"title":"W"}},"type":"object","required":["id","x","y","w"],"title":"DashboardLayoutBlock","description":"One placed dashboard block in grid units."},"DashboardLayoutRequest":{"properties":{"version":{"type":"integer","const":1,"title":"Version","default":1},"width":{"type":"string","enum":["default","wide","wider","full"],"title":"Width","default":"default"},"blocks":{"items":{"$ref":"#/components/schemas/DashboardLayoutBlock"},"type":"array","title":"Blocks"},"serving_stats_tiles":{"items":{"type":"string"},"type":"array","title":"Serving Stats Tiles"}},"type":"object","title":"DashboardLayoutRequest","description":"Saved dashboard block layout."},"DecisionChoiceOption":{"properties":{"value":{"anyOf":[{"type":"boolean"},{"type":"string"}],"title":"Value"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["value"],"title":"DecisionChoiceOption"},"DecisionInputImage":{"properties":{"type":{"type":"string","const":"input_image","title":"Type"},"image_url":{"type":"string","title":"Image Url"}},"type":"object","required":["type","image_url"],"title":"DecisionInputImage"},"DecisionInputMessage":{"properties":{"role":{"type":"string","const":"user","title":"Role","default":"user"},"content":{"anyOf":[{"type":"string"},{"items":{"oneOf":[{"$ref":"#/components/schemas/DecisionInputText"},{"$ref":"#/components/schemas/DecisionInputImage"}],"discriminator":{"propertyName":"type","mapping":{"input_image":"#/components/schemas/DecisionInputImage","input_text":"#/components/schemas/DecisionInputText"}}},"type":"array"}],"title":"Content"}},"type":"object","required":["content"],"title":"DecisionInputMessage"},"DecisionInputText":{"properties":{"type":{"type":"string","const":"input_text","title":"Type"},"text":{"type":"string","title":"Text"}},"type":"object","required":["type","text"],"title":"DecisionInputText"},"DecisionRequest":{"properties":{"model":{"type":"string","title":"Model"},"input":{"anyOf":[{"type":"string"},{"items":{"$ref":"#/components/schemas/DecisionInputMessage"},"type":"array"}],"title":"Input"},"questions":{"items":{"oneOf":[{"$ref":"#/components/schemas/PredicateQuestion"},{"$ref":"#/components/schemas/ChoiceQuestion"},{"$ref":"#/components/schemas/ScoreQuestion"}],"discriminator":{"propertyName":"type","mapping":{"choice":"#/components/schemas/ChoiceQuestion","predicate":"#/components/schemas/PredicateQuestion","score":"#/components/schemas/ScoreQuestion"}}},"type":"array","maxItems":200,"minItems":1,"title":"Questions"}},"type":"object","required":["model","input","questions"],"title":"DecisionRequest","description":"Request for ``POST /v1/decisions``."},"DecisionScoreLevel":{"properties":{"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["label"],"title":"DecisionScoreLevel"},"DeleteSubKeyRequest":{"properties":{"key":{"type":"string","title":"Key"}},"type":"object","required":["key"],"title":"DeleteSubKeyRequest","description":"Request model for deleting a sub API key."},"DetokenizeRequest":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"tokens":{"items":{"type":"integer","minimum":0.0},"type":"array","title":"Tokens"}},"type":"object","required":["tokens"],"title":"DetokenizeRequest","description":"Request for /detokenize."},"DetokenizeResponse":{"properties":{"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["prompt"],"title":"DetokenizeResponse","description":"Response for /detokenize."},"EmbeddingInputItem":{"properties":{"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"audio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio"}},"additionalProperties":false,"type":"object","title":"EmbeddingInputItem","description":"Structured input item for multimodal embeddings."},"EmbeddingRequest":{"properties":{"input":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"},{"type":"null"}],"title":"Input"},"items":{"anyOf":[{"items":{"$ref":"#/components/schemas/EmbeddingInputItem"},"type":"array"},{"type":"null"}],"title":"Items"},"model":{"type":"string","title":"Model"},"encoding_format":{"type":"string","enum":["float","base64"],"title":"Encoding Format","default":"float"},"dimensions":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Dimensions"},"max_length":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Length"},"truncation":{"type":"boolean","title":"Truncation","default":true}},"type":"object","required":["model"],"title":"EmbeddingRequest","description":"Request for creating embeddings.\n\nOpenAI-compatible request format for the /v1/embeddings endpoint."},"FileContent":{"properties":{"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"file_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Data"},"data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"}},"type":"object","title":"FileContent","description":"File input for attachment preprocessing.\n\n``file_data`` matches OpenAI Chat Completions file content parts.\n``data`` is accepted as an oMLX legacy alias for dashboard clients."},"GlobalSettingsRequest":{"properties":{"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Port"},"log_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Level"},"server_aliases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Server Aliases"},"sse_keepalive_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sse Keepalive Mode"},"auto_start_on_launch":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Start On Launch"},"burst_decode_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Burst Decode Mode"},"preserve_mid_system_cache":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preserve Mid System Cache"},"gpu_keep_warm_interval":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gpu Keep Warm Interval"},"distributed_inference_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Distributed Inference Enabled"},"max_audio_upload_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Audio Upload Size"},"model_dirs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Model Dirs"},"model_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Dir"},"model_fallback":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Model Fallback"},"hide_helper_models":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hide Helper Models"},"memory_prefill_memory_guard":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Memory Prefill Memory Guard"},"memory_guard_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Guard Tier"},"memory_guard_custom_ceiling_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Memory Guard Custom Ceiling Gb"},"max_concurrent_requests":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Concurrent Requests"},"embedding_batch_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Embedding Batch Size"},"chunked_prefill":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Chunked Prefill"},"prefill_priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefill Priority"},"decode_fairness":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Decode Fairness"},"cache_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cache Enabled"},"ssd_cache_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssd Cache Dir"},"ssd_cache_max_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssd Cache Max Size"},"hot_cache_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hot Cache Only"},"hot_cache_write_through":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hot Cache Write Through"},"ane_compile_cache":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ane Compile Cache"},"gdn_snapshot_storage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gdn Snapshot Storage"},"gdn_ssd_split_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Gdn Ssd Split Enabled"},"gdn_ssd_pending_max_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gdn Ssd Pending Max Size"},"gdn_sidecar_precision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gdn Sidecar Precision"},"hot_cache_max_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hot Cache Max Size"},"initial_cache_blocks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initial Cache Blocks"},"mcp_config":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mcp Config"},"mcp_expose_tools":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mcp Expose Tools"},"usage_history":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Usage History"},"hf_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hf Endpoint"},"hf_cache_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hf Cache Enabled"},"ms_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ms Endpoint"},"network_http_proxy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network Http Proxy"},"network_https_proxy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network Https Proxy"},"network_no_proxy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network No Proxy"},"network_ca_bundle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network Ca Bundle"},"sampling_max_context_window":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sampling Max Context Window"},"sampling_max_context_window_policy":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Sampling Max Context Window Policy"},"sampling_max_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Sampling Max Tokens"},"sampling_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sampling Temperature"},"sampling_top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sampling Top P"},"sampling_top_k":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sampling Top K"},"sampling_repetition_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sampling Repetition Penalty"},"claude_code_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claude Code Mode"},"claude_code_opus_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claude Code Opus Model"},"claude_code_sonnet_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claude Code Sonnet Model"},"claude_code_haiku_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claude Code Haiku Model"},"claude_code_desktop_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Claude Code Desktop Enabled"},"restart_desktop":{"type":"boolean","title":"Restart Desktop","default":false},"integrations_copilot_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integrations Copilot Model"},"integrations_codex_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integrations Codex Model"},"integrations_opencode_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integrations Opencode Model"},"integrations_openclaw_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integrations Openclaw Model"},"integrations_hermes_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integrations Hermes Model"},"integrations_pi_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integrations Pi Model"},"integrations_vibe_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integrations Vibe Model"},"integrations_dsh_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integrations Dsh Model"},"integrations_openclaw_tools_profile":{"anyOf":[{"type":"string","enum":["minimal","coding","messaging","full"]},{"type":"null"}],"title":"Integrations Openclaw Tools Profile"},"markitdown_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Markitdown Enabled"},"markitdown_expose_model":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Markitdown Expose Model"},"markitdown_max_file_size_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Markitdown Max File Size Mb"},"markitdown_max_files_per_request":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Markitdown Max Files Per Request"},"markitdown_pdf_processing_engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markitdown Pdf Processing Engine"},"web_search_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web Search Provider"},"web_search_brave_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web Search Brave Api Key"},"web_search_searxng_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web Search Searxng Url"},"web_search_ddgs_backends":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web Search Ddgs Backends"},"web_search_max_results":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Web Search Max Results"},"web_search_content_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web Search Content Mode"},"web_search_content_truncate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Web Search Content Truncate"},"web_search_content_max_chars":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Web Search Content Max Chars"},"splash_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Splash Path"},"splash_kv_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Splash Kv Format"},"splash_max_memory_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Splash Max Memory Gb"},"splash_ssd_cache_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Splash Ssd Cache Gb"},"splash_ane_prefill":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Splash Ane Prefill"},"ui_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ui Language"},"ui_dashboard_layout":{"anyOf":[{"$ref":"#/components/schemas/DashboardLayoutRequest"},{"type":"null"}]},"idle_timeout_seconds":{"anyOf":[{"type":"integer","minimum":60.0},{"type":"null"}],"title":"Idle Timeout Seconds"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"skip_api_key_verification":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skip Api Key Verification"},"allow_unauthenticated_inference":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Unauthenticated Inference"}},"type":"object","title":"GlobalSettingsRequest","description":"Request model for updating global server settings."},"HFDownloadRequest":{"properties":{"repo_id":{"type":"string","title":"Repo Id"},"hf_token":{"type":"string","title":"Hf Token","default":""},"files":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Files"}},"type":"object","required":["repo_id"],"title":"HFDownloadRequest","description":"Request model for starting a HuggingFace model download."},"HFRetryRequest":{"properties":{"hf_token":{"type":"string","title":"Hf Token","default":""}},"type":"object","title":"HFRetryRequest","description":"Request model for retrying a HuggingFace model download."},"HFUpdateCheckRequest":{"properties":{"repo_ids":{"items":{"type":"string"},"type":"array","title":"Repo Ids"},"hf_token":{"type":"string","title":"Hf Token","default":""}},"type":"object","required":["repo_ids"],"title":"HFUpdateCheckRequest","description":"Request model for checking downloaded models for Hub updates."},"HFUploadRequest":{"properties":{"model_path":{"type":"string","title":"Model Path"},"repo_id":{"type":"string","title":"Repo Id"},"hf_token":{"type":"string","title":"Hf Token"},"readme_source_path":{"type":"string","title":"Readme Source Path","default":""},"auto_readme":{"type":"boolean","title":"Auto Readme","default":true},"redownload_notice":{"type":"boolean","title":"Redownload Notice","default":false},"private":{"type":"boolean","title":"Private","default":false}},"type":"object","required":["model_path","repo_id","hf_token"],"title":"HFUploadRequest","description":"Request model for starting a HuggingFace upload task."},"HFValidateTokenRequest":{"properties":{"hf_token":{"type":"string","title":"Hf Token"}},"type":"object","required":["hf_token"],"title":"HFValidateTokenRequest","description":"Request model for validating a HuggingFace token."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImageURL":{"properties":{"url":{"type":"string","title":"Url"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","default":"auto"}},"type":"object","required":["url"],"title":"ImageURL","description":"Base64 data URI for vision model input."},"InputAudio":{"properties":{"data":{"type":"string","title":"Data"},"format":{"type":"string","title":"Format","default":"wav"}},"type":"object","required":["data"],"title":"InputAudio","description":"Audio input data for multimodal models (OpenAI format)."},"InputItem":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{},"type":"array"},{"type":"null"}],"title":"Content"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"arguments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Arguments"},"output":{"anyOf":[{"type":"string"},{"items":{},"type":"array"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","title":"InputItem","description":"A single item in the Responses API input array.\n\nSupports EasyInputMessage (no type field), message, function_call,\nfunction_call_output, and many other types from the Responses API."},"LoginRequest":{"properties":{"api_key":{"type":"string","title":"Api Key"},"remember":{"type":"boolean","title":"Remember","default":false}},"type":"object","required":["api_key"],"title":"LoginRequest","description":"Request model for admin login."},"MCPExecuteRequest":{"properties":{"tool_name":{"type":"string","title":"Tool Name"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments"}},"type":"object","required":["tool_name"],"title":"MCPExecuteRequest","description":"Request to execute an MCP tool."},"MCPExecuteResponse":{"properties":{"tool_name":{"type":"string","title":"Tool Name"},"content":{"anyOf":[{"type":"string"},{"items":{},"type":"array"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Content"},"is_error":{"type":"boolean","title":"Is Error","default":false},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["tool_name"],"title":"MCPExecuteResponse","description":"Response from executing an MCP tool."},"MCPServerInfo":{"properties":{"name":{"type":"string","title":"Name"},"state":{"type":"string","title":"State"},"transport":{"type":"string","title":"Transport"},"tools_count":{"type":"integer","title":"Tools Count"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["name","state","transport","tools_count"],"title":"MCPServerInfo","description":"Information about an MCP server."},"MCPServersResponse":{"properties":{"servers":{"items":{"$ref":"#/components/schemas/MCPServerInfo"},"type":"array","title":"Servers"}},"type":"object","required":["servers"],"title":"MCPServersResponse","description":"Response for listing MCP servers."},"MCPToolInfo":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"server":{"type":"string","title":"Server"},"parameters":{"additionalProperties":true,"type":"object","title":"Parameters"}},"type":"object","required":["name","description","server"],"title":"MCPToolInfo","description":"Information about an MCP tool."},"MCPToolsResponse":{"properties":{"tools":{"items":{"$ref":"#/components/schemas/MCPToolInfo"},"type":"array","title":"Tools"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["tools","count"],"title":"MCPToolsResponse","description":"Response for listing MCP tools."},"MSDownloadRequest":{"properties":{"model_id":{"type":"string","title":"Model Id"},"ms_token":{"type":"string","title":"Ms Token","default":""}},"type":"object","required":["model_id"],"title":"MSDownloadRequest","description":"Request model for starting a ModelScope model download."},"MSRetryRequest":{"properties":{"ms_token":{"type":"string","title":"Ms Token","default":""}},"type":"object","title":"MSRetryRequest","description":"Request model for retrying a ModelScope model download."},"Message":{"properties":{"role":{"type":"string","title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{"$ref":"#/components/schemas/ContentPart"},"type":"array"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Content"},"reasoning_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Content"},"tool_calls":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tool Calls"},"tool_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"partial":{"type":"boolean","title":"Partial","default":false}},"type":"object","required":["role"],"title":"Message","description":"A message in a chat conversation.\n\nSupports:\n- Simple text messages (role + content string)\n- Content array messages (role + content list with text parts)\n- Tool call messages (assistant with tool_calls)\n- Tool response messages (role=\"tool\" with tool_call_id)"},"MessagesRequest":{"properties":{"model":{"type":"string","title":"Model"},"max_tokens":{"type":"integer","exclusiveMinimum":0.0,"title":"Max Tokens"},"messages":{"items":{"$ref":"#/components/schemas/AnthropicMessage"},"type":"array","title":"Messages"},"system":{"anyOf":[{"type":"string"},{"items":{"$ref":"#/components/schemas/SystemContent"},"type":"array"},{"type":"null"}],"title":"System"},"stop_sequences":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop Sequences"},"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"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"tools":{"anyOf":[{"items":{"$ref":"#/components/schemas/AnthropicTool"},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{"$ref":"#/components/schemas/ToolChoice"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice"},"thinking":{"anyOf":[{"$ref":"#/components/schemas/ThinkingConfig"},{"type":"null"}]},"chat_template_kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Chat Template Kwargs"}},"type":"object","required":["model","max_tokens","messages"],"title":"MessagesRequest","description":"Request for Anthropic Messages API."},"ModelSettingsRequest":{"properties":{"model_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Alias"},"model_type_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Type Override"},"max_context_window":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Context Window"},"max_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Tokens"},"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"},"repetition_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Repetition Penalty"},"min_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min P"},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presence Penalty"},"force_sampling":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Force Sampling"},"max_tool_result_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tool Result Tokens"},"chat_template_kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Chat Template Kwargs"},"forced_ct_kwargs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Forced Ct Kwargs"},"ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Seconds"},"index_cache_freq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Index Cache Freq"},"enable_thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Thinking"},"preserve_thinking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preserve Thinking"},"cache_reasoning_output":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cache Reasoning Output"},"qwen4_ple_ssd_offload":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Qwen4 Ple Ssd Offload"},"qwen4_gdn_decode_wide_proj":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Qwen4 Gdn Decode Wide Proj"},"deepseek_v41_engram_ssd_offload":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deepseek V41 Engram Ssd Offload"},"deepseek_v41_ced_prefill_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deepseek V41 Ced Prefill Enabled"},"thinking_budget_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thinking Budget Enabled"},"thinking_budget_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thinking Budget Tokens"},"gpu_power_limit_w":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gpu Power Limit W"},"mtp_adaptive_max_depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mtp Adaptive Max Depth"},"mtp_fixed_depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mtp Fixed Depth"},"activation_fp16_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Activation Fp16 Enabled"},"turboquant_kv_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Turboquant Kv Enabled"},"turboquant_kv_scheme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turboquant Kv Scheme"},"turboquant_kv_bits":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Turboquant Kv Bits"},"turboquant_skip_last":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Turboquant Skip Last"},"qwen35_ane_prefill_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Qwen35 Ane Prefill Enabled"},"qwen35_ane_prefill_sequence_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Qwen35 Ane Prefill Sequence Length"},"qwen35_ane_prefill_tail_padding_min_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Qwen35 Ane Prefill Tail Padding Min Tokens"},"qwen35_ane_prefill_fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Qwen35 Ane Prefill Fraction"},"qwen35_ane_prefill_shared_fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Qwen35 Ane Prefill Shared Fraction"},"qwen35_ane_prefill_fused_down":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Qwen35 Ane Prefill Fused Down"},"qwen35_ane_prefill_max_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Qwen35 Ane Prefill Max Layers"},"qwen35_ane_prefill_dual_ane":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Qwen35 Ane Prefill Dual Ane"},"qwen35_ane_prefill_gdn":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Qwen35 Ane Prefill Gdn"},"qwen35_ane_prefill_gdn_fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Qwen35 Ane Prefill Gdn Fraction"},"qwen35_ane_prefill_gdn_max_layers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Qwen35 Ane Prefill Gdn Max Layers"},"qwen35_ane_prefill_cpu_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Qwen35 Ane Prefill Cpu Enabled"},"qwen35_ane_prefill_cpu_fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Qwen35 Ane Prefill Cpu Fraction"},"qwen35_ane_prefill_cpu_down_fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Qwen35 Ane Prefill Cpu Down Fraction"},"qwen35_ane_prefill_cpu_gdn_fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Qwen35 Ane Prefill Cpu Gdn Fraction"},"qwen35_ane_prefill_cpu_threads":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Qwen35 Ane Prefill Cpu Threads"},"qwen35_ane_prefill_cpu_shared_resource":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Qwen35 Ane Prefill Cpu Shared Resource"},"a8_prefill_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"A8 Prefill Enabled"},"a8_prefill_min_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"A8 Prefill Min Tokens"},"moe_expert_offload_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Moe Expert Offload Enabled"},"moe_expert_offload_resident_fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Moe Expert Offload Resident Fraction"},"specprefill_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Specprefill Enabled"},"specprefill_draft_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specprefill Draft Model"},"specprefill_keep_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Specprefill Keep Pct"},"specprefill_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Specprefill Threshold"},"external_engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Engine"},"dflash_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dflash Enabled"},"dflash_draft_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dflash Draft Model"},"dflash_draft_quant_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dflash Draft Quant Enabled"},"dflash_draft_quant_weight_bits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dflash Draft Quant Weight Bits"},"dflash_draft_quant_group_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dflash Draft Quant Group Size"},"dflash_draft_window_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dflash Draft Window Size"},"dflash_block_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dflash Block Size"},"dflash_verify_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dflash Verify Mode"},"mtp_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mtp Enabled"},"vlm_mtp_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vlm Mtp Enabled"},"vlm_mtp_draft_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vlm Mtp Draft Model"},"vlm_mtp_draft_block_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vlm Mtp Draft Block Size"},"reasoning_parser":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Parser"},"guided_grammar_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Guided Grammar Enabled"},"guided_grammar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guided Grammar"},"is_pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Pinned"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"is_hidden":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Hidden"},"is_favorite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Favorite"},"trust_remote_code":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Trust Remote Code"},"embedding_audio_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Embedding Audio Enabled"},"embedding_audio_max_seconds":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Embedding Audio Max Seconds"}},"additionalProperties":false,"type":"object","title":"ModelSettingsRequest","description":"Request model for updating per-model settings."},"OQStartRequest":{"properties":{"model_path":{"type":"string","title":"Model Path"},"oq_level":{"type":"number","title":"Oq Level"},"group_size":{"type":"integer","title":"Group Size","default":64},"sensitivity_model_path":{"type":"string","title":"Sensitivity Model Path","default":""},"text_only":{"type":"boolean","title":"Text Only","default":false},"dtype":{"type":"string","title":"Dtype","default":"bfloat16"},"preserve_mtp":{"type":"boolean","title":"Preserve Mtp","default":false},"auto_proxy_sensitivity":{"type":"boolean","title":"Auto Proxy Sensitivity","default":true},"enhanced":{"type":"boolean","title":"Enhanced","default":false},"imatrix_cache_path":{"type":"string","title":"Imatrix Cache Path","default":""},"imatrix_reuse_cache":{"type":"boolean","title":"Imatrix Reuse Cache","default":true},"imatrix_strict":{"type":"boolean","title":"Imatrix Strict","default":false},"imatrix_num_samples":{"type":"integer","title":"Imatrix Num Samples","default":128},"imatrix_seq_length":{"type":"integer","title":"Imatrix Seq Length","default":512},"mtp_assistant_model_path":{"type":"string","title":"Mtp Assistant Model Path","default":""},"preserve_ngram_table":{"type":"boolean","title":"Preserve Ngram Table","default":false}},"type":"object","required":["model_path","oq_level"],"title":"OQStartRequest","description":"Request model for starting an oQ quantization task."},"PredicateQuestion":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"instructions":{"type":"string","minLength":1,"title":"Instructions"},"type":{"type":"string","const":"predicate","title":"Type"}},"type":"object","required":["name","instructions","type"],"title":"PredicateQuestion","description":"Probability that a statement about the input is true."},"RerankRequest":{"properties":{"model":{"type":"string","title":"Model"},"query":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Query"},"documents":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"}],"title":"Documents"},"instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instruction"},"top_n":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Top N"},"max_length":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Length"},"return_documents":{"type":"boolean","title":"Return Documents","default":true},"max_chunks_per_doc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Chunks Per Doc"}},"type":"object","required":["model","query","documents"],"title":"RerankRequest","description":"Request for reranking documents.\n\nCohere/Jina-compatible request format for the /v1/rerank endpoint."},"RerankResponse":{"properties":{"id":{"type":"string","title":"Id"},"results":{"items":{"$ref":"#/components/schemas/RerankResult"},"type":"array","title":"Results"},"model":{"type":"string","title":"Model"},"usage":{"anyOf":[{"$ref":"#/components/schemas/RerankUsage"},{"type":"null"}]}},"type":"object","required":["results","model"],"title":"RerankResponse","description":"Response from reranking documents.\n\nCohere/Jina-compatible response format for the /v1/rerank endpoint."},"RerankResult":{"properties":{"index":{"type":"integer","title":"Index"},"relevance_score":{"type":"number","title":"Relevance Score"},"document":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Document"}},"type":"object","required":["index","relevance_score"],"title":"RerankResult","description":"A single rerank result."},"RerankUsage":{"properties":{"total_tokens":{"type":"integer","title":"Total Tokens"}},"type":"object","required":["total_tokens"],"title":"RerankUsage","description":"Token usage statistics for rerank request."},"ResponseFormat":{"properties":{"type":{"type":"string","title":"Type","default":"text"},"json_schema":{"anyOf":[{"$ref":"#/components/schemas/ResponseFormatJsonSchema"},{"type":"null"}]}},"type":"object","title":"ResponseFormat","description":"Response format specification for structured output.\n\nSupports:\n- \"text\": Default text output (no structure enforcement)\n- \"json_object\": Forces valid JSON output\n- \"json_schema\": Forces JSON matching a specific schema"},"ResponseFormatJsonSchema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"schema":{"additionalProperties":true,"type":"object","title":"Schema"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict","default":false}},"type":"object","required":["name","schema"],"title":"ResponseFormatJsonSchema","description":"JSON Schema definition for structured output."},"ResponsesRequest":{"properties":{"model":{"type":"string","title":"Model"},"input":{"anyOf":[{"type":"string"},{"items":{"$ref":"#/components/schemas/InputItem"},"type":"array"},{"type":"null"}],"title":"Input"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"max_output_tokens":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Output Tokens"},"stream":{"type":"boolean","title":"Stream","default":false},"tools":{"anyOf":[{"items":{"$ref":"#/components/schemas/ResponsesTool"},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice"},"text":{"anyOf":[{"$ref":"#/components/schemas/TextConfig"},{"type":"null"}]},"previous_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Response Id"},"store":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Store"},"truncation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Truncation"},"metadata":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Metadata"},"reasoning":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Reasoning"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls"},"include":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Include"},"service_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Tier"},"prompt_cache_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Key"},"prompt_cache_retention":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Retention"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"top_logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Logprobs"},"background":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Background"},"conversation":{"anyOf":[{},{"type":"null"}],"title":"Conversation"},"max_tool_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tool Calls"},"stream_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Stream Options"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed"},"chat_template_kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Chat Template Kwargs"}},"additionalProperties":true,"type":"object","required":["model"],"title":"ResponsesRequest","description":"Request body for POST /v1/responses."},"ResponsesTool":{"properties":{"type":{"type":"string","title":"Type","default":"function"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parameters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parameters"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"}},"additionalProperties":true,"type":"object","title":"ResponsesTool","description":"Tool definition in Responses API format.\n\nSupports function, local_shell, mcp, web_search, and other tool types."},"ScoreQuestion":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"instructions":{"type":"string","minLength":1,"title":"Instructions"},"type":{"type":"string","const":"score","title":"Type"},"levels":{"items":{"$ref":"#/components/schemas/DecisionScoreLevel"},"type":"array","maxItems":10,"minItems":2,"title":"Levels"}},"type":"object","required":["name","instructions","type","levels"],"title":"ScoreQuestion","description":"A level on an ordered scale, indexed from 0."},"SetupApiKeyRequest":{"properties":{"api_key":{"type":"string","title":"Api Key"},"api_key_confirm":{"type":"string","title":"Api Key Confirm"}},"type":"object","required":["api_key","api_key_confirm"],"title":"SetupApiKeyRequest","description":"Request model for initial API key setup."},"StreamOptions":{"properties":{"include_usage":{"type":"boolean","title":"Include Usage","default":false}},"type":"object","title":"StreamOptions","description":"Options for streaming responses."},"StructuredOutputOptions":{"properties":{"json":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Json"},"regex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Regex"},"choice":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Choice"},"grammar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grammar"}},"type":"object","title":"StructuredOutputOptions","description":"vLLM-compatible structured output options.\n\nExactly one field should be set. When passed via ``extra_body`` in the\nOpenAI client, the key is ``structured_outputs``.\n\nSupports:\n- json: JSON schema (dict or string) for logit-level enforcement\n- regex: Regular expression the output must match\n- choice: List of allowed string values (output will be exactly one)\n- grammar: EBNF/GBNF context-free grammar string"},"SystemContent":{"properties":{"type":{"type":"string","const":"text","title":"Type","default":"text"},"text":{"type":"string","title":"Text"},"cache_control":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Cache Control"}},"type":"object","required":["text"],"title":"SystemContent","description":"System message content block."},"SystemOneQuestion":{"properties":{"type":{"type":"string","enum":["noul","choice","score"],"title":"Type"},"instructions":{"title":"Instructions"},"criteria":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Criteria"}},"type":"object","required":["type"],"title":"SystemOneQuestion","description":"One typed question about the state."},"SystemOneRequest":{"properties":{"model":{"type":"string","title":"Model"},"state":{"title":"State"},"questions":{"additionalProperties":{"$ref":"#/components/schemas/SystemOneQuestion"},"type":"object","minProperties":1,"title":"Questions"},"images":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Images"},"videos":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Videos"},"truncate":{"type":"boolean","title":"Truncate","default":true}},"type":"object","required":["model","state","questions"],"title":"SystemOneRequest","description":"Request for ``POST /v1/systemone``."},"TextConfig":{"properties":{"format":{"anyOf":[{"$ref":"#/components/schemas/TextFormatConfig"},{"type":"null"}]},"verbosity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verbosity"}},"additionalProperties":true,"type":"object","title":"TextConfig","description":"Text configuration wrapper."},"TextFormatConfig":{"properties":{"type":{"type":"string","title":"Type","default":"text"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schema"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"}},"additionalProperties":true,"type":"object","title":"TextFormatConfig","description":"Text format configuration."},"ThinkingConfig":{"properties":{"type":{"type":"string","enum":["enabled","disabled","adaptive"],"title":"Type","default":"enabled"},"budget_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Tokens"}},"type":"object","title":"ThinkingConfig","description":"Configuration for extended thinking/reasoning."},"TokenCountRequest":{"properties":{"model":{"type":"string","title":"Model"},"messages":{"items":{"$ref":"#/components/schemas/AnthropicMessage"},"type":"array","title":"Messages"},"system":{"anyOf":[{"type":"string"},{"items":{"$ref":"#/components/schemas/SystemContent"},"type":"array"},{"type":"null"}],"title":"System"},"tools":{"anyOf":[{"items":{"$ref":"#/components/schemas/AnthropicTool"},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{"$ref":"#/components/schemas/ToolChoice"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tool Choice"},"thinking":{"anyOf":[{"$ref":"#/components/schemas/ThinkingConfig"},{"type":"null"}]}},"type":"object","required":["model","messages"],"title":"TokenCountRequest","description":"Request for token counting (Anthropic format)."},"TokenizeChatRequest":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"messages":{"items":{"$ref":"#/components/schemas/Message"},"type":"array","title":"Messages"},"tools":{"anyOf":[{"items":{"$ref":"#/components/schemas/ToolDefinition"},"type":"array"},{"type":"null"}],"title":"Tools"},"add_generation_prompt":{"type":"boolean","title":"Add Generation Prompt","default":true},"continue_final_message":{"type":"boolean","title":"Continue Final Message","default":false},"add_special_tokens":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Add Special Tokens"},"return_token_strs":{"type":"boolean","title":"Return Token Strs","default":false},"chat_template_kwargs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Chat Template Kwargs"},"chat_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Template"}},"type":"object","required":["messages"],"title":"TokenizeChatRequest","description":"Tokenize chat messages the way /v1/chat/completions renders them."},"TokenizeCompletionRequest":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"prompt":{"type":"string","title":"Prompt"},"add_special_tokens":{"type":"boolean","title":"Add Special Tokens","default":true},"return_token_strs":{"type":"boolean","title":"Return Token Strs","default":false}},"type":"object","required":["prompt"],"title":"TokenizeCompletionRequest","description":"Tokenize a raw prompt the way /v1/completions does."},"TokenizeResponse":{"properties":{"count":{"type":"integer","title":"Count"},"max_model_len":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Model Len"},"tokens":{"items":{"type":"integer"},"type":"array","title":"Tokens"},"token_strs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Token Strs"}},"type":"object","required":["count","tokens"],"title":"TokenizeResponse","description":"Response for /tokenize."},"ToolChoice":{"properties":{"type":{"type":"string","enum":["auto","any","tool","none"],"title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["type"],"title":"ToolChoice","description":"Tool choice specification."},"ToolDefinition":{"properties":{"type":{"type":"string","title":"Type","default":"function"},"function":{"additionalProperties":true,"type":"object","title":"Function"}},"type":"object","required":["function"],"title":"ToolDefinition","description":"Definition of a tool that can be called by the model."},"UpdateProfileRequest":{"properties":{"new_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"api_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings"},"source_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Template"},"expose_as_model":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Expose As Model"},"also_save_as_template":{"type":"boolean","title":"Also Save As Template","default":false}},"type":"object","title":"UpdateProfileRequest","description":"Request body for updating/renaming a per-model profile."},"UpdateTemplateRequest":{"properties":{"new_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings"}},"type":"object","title":"UpdateTemplateRequest","description":"Request body for updating/renaming a global template."},"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"},"WebFetchRequest":{"properties":{"url":{"type":"string","title":"Url","default":""}},"type":"object","title":"WebFetchRequest"},"WebSearchRequest":{"properties":{"query":{"type":"string","title":"Query","default":""}},"type":"object","title":"WebSearchRequest"},"WebSearchTestRequest":{"properties":{"provider":{"type":"string","title":"Provider","default":"ddgs"},"brave_api_key":{"type":"string","title":"Brave Api Key","default":""},"searxng_url":{"type":"string","title":"Searxng Url","default":""},"ddgs_backends":{"type":"string","title":"Ddgs Backends","default":""},"max_results":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Max Results","default":3}},"type":"object","title":"WebSearchTestRequest","description":"Pending settings-form values to validate with one real search."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}