{
  "info": {
    "description": "Offline speech recognition. This description is generated from the dialects this server has mounted and lists every endpoint it serves; request and response schemas are deliberately absent rather than hand-written and wrong. The prose at /docs is the reference.",
    "title": "NanoASR",
    "version": "v1.4.2"
  },
  "openapi": "3.1.0",
  "paths": {
    "/": {
      "get": {
        "description": "Served without a credential.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Redirects to /docs.",
        "tags": [
          "server"
        ]
      }
    },
    "/api/v1/catalog": {
      "get": {
        "description": "",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "List the models available for download.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/config": {
      "get": {
        "description": "Requires an administrative API key.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "The effective configuration, with secrets redacted.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/hotwords": {
      "get": {
        "description": "q searches keys, names, descriptions and the phrases themselves; limit caps the page. Phrases are left out of a listing — fetch one dictionary for those — and policy says whether biasing is switched on at all, which models it can apply to being a separate question answered per model in /api/v1/models.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "List hotword dictionaries, with the server's biasing policy.",
        "tags": [
          "native"
        ]
      },
      "post": {
        "description": "JSON: key, name, description, score, and either phrases as a list or text as one block. Refuses a key that already exists; PUT replaces. Requires an administrative API key.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Create a dictionary.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/hotwords/{key}": {
      "delete": {
        "description": "Requires an administrative API key.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Delete a dictionary.",
        "tags": [
          "native"
        ]
      },
      "get": {
        "description": "response_format=text returns the plain file the import endpoint reads back.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "One dictionary and its phrases.",
        "tags": [
          "native"
        ]
      },
      "put": {
        "description": "Requires an administrative API key.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Replace a dictionary wholesale.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/hotwords/{key}/import": {
      "post": {
        "description": "multipart with a file field, or the file as the request body. One phrase per line with # comments, a one-column CSV, a JSON array of phrases, or a JSON dictionary as exported here. mode=append is the default; mode=replace swaps the phrase list. Requires an administrative API key.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Upload phrases into a dictionary, creating it if the key is new.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/isolation": {
      "get": {
        "description": "{enabled, formats, keep}. Every /api/v1/isolations route answers capability_unavailable on a server where it is off. The steps: upload (POST /isolations), wait for awaiting_selection, listen to the voices' samples, then keep one (extract), every one (extract-all) or transcribe them all by speaker (POST transcript); fetch tracks and the transcript once the isolation is done.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Say whether voice isolation is on, its download formats, and whether isolations may be kept.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/isolations": {
      "get": {
        "description": "{data: [isolation]}. An administrative key sees every one.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "List this key's isolations, the newest first.",
        "tags": [
          "native"
        ]
      },
      "post": {
        "description": "multipart/form-data with file, num_speakers if known, and keep=true to store it until it is deleted. Answers 202 with an isolation that finds the voices (status analysing) and then waits for a choice (awaiting_selection). Unlike a job, its audio is kept until isolation.ttl passes with nothing happening, it is deleted, or the server stops; a kept one survives all but the delete.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Upload a recording to isolate voices from.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/isolations/{id}": {
      "delete": {
        "description": "Stops its work, and cancels the jobs of a transcript in progress.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Delete an isolation and its audio now, kept or not.",
        "tags": [
          "native"
        ]
      },
      "get": {
        "description": "status is queued, analysing, awaiting_selection, extracting, transcribing, done or failed. voices lists each speaker with its name, speaking time and the 3-second sample it would be isolated by, or the reason it has none; tracks the voices isolated so far; transcript the state of the transcript by speakers and its jobs.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Fetch an isolation: its voices, tracks and transcript progress.",
        "tags": [
          "native"
        ]
      },
      "patch": {
        "description": "JSON: {\"names\": {\"spk_0\": \"Anna\"}, \"keep\": true}; either may be left out, and an empty name gives a voice its id back. Names label the tracks' files and the transcript, including one already made.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Name the voices, and keep the isolation or let it expire.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/isolations/{id}/audio": {
      "get": {
        "description": "format=wav or mp3, 16 kHz mono, on the same timeline as the tracks.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Download the recording as the isolation holds it.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/isolations/{id}/events": {
      "get": {
        "description": "Numbered states until the isolation waits on a person or is done, then a done event. Watch again after starting the next step.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Follow an isolation as server-sent events.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/isolations/{id}/extract": {
      "post": {
        "description": "JSON or form: speaker, and sample_start in seconds to take the sample from somewhere else. May be repeated once nothing is running; isolating a voice again replaces its own track and no other.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Isolate one voice onto its track.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/isolations/{id}/extract-all": {
      "post": {
        "description": "Every voice with a sample and no track yet. A voice without a sample is skipped with a warning: isolate it with extract and sample_start.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Isolate every voice, a track each.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/isolations/{id}/tracks/{speaker}": {
      "get": {
        "description": "format=wav (default) or mp3, 16 kHz mono, as long as the recording. MP3 needs ffmpeg on the server. /result?speaker= is the same; /result alone is the voice chosen last.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Download one voice's track.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/isolations/{id}/transcribe": {
      "post": {
        "description": "Takes the fields of /api/v1/jobs except file, plus speaker, and answers 202 with the job. The job holds its own copy of the audio.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Queue one track for transcription.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/isolations/{id}/transcript": {
      "get": {
        "description": "response_format=json (default: a result whose speakers carry their names), text (a dialogue, name: words), srt or vtt (labelled by name).",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Fetch the transcript by speaker.",
        "tags": [
          "native"
        ]
      },
      "post": {
        "description": "Takes the fields of /api/v1/jobs except file; diarize is ignored. Isolates every voice still without a track, queues a job per track and merges them, each word labelled with its voice. Two voices speaking at once are both transcribed. Answers 202 with the isolation; follow its events through extracting and transcribing to done.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Transcribe by speaker: every voice isolated and transcribed alone.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/isolations/{id}/voices/{speaker}/sample": {
      "get": {
        "description": "Exactly the 3 seconds the extractor is told to keep.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Listen to a voice: its sample as WAV.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/jobs": {
      "get": {
        "description": "Scoped to the calling key unless the key is administrative. Paged by cursor.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "List this key's jobs.",
        "tags": [
          "native"
        ]
      },
      "post": {
        "description": "Takes the same fields as transcribe, plus webhook_url for a signed delivery on completion. The upload is held on disk until the job reaches a terminal state and is then deleted.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Queue the same work and return a job.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/jobs/{id}": {
      "delete": {
        "description": "A diarization pass already under way cannot be interrupted and runs to its end.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Cancel a queued or running job.",
        "tags": [
          "native"
        ]
      },
      "get": {
        "description": "",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Fetch one job and its result.",
        "tags": [
          "native"
        ]
      },
      "patch": {
        "description": "JSON: {\"speaker_names\": {\"spk_0\": \"Anna\"}}; an empty name gives a speaker its id back. The names are kept with the result as speakers[].name, beside the ids the segments carry, and label the srt and vtt cues.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Name the speakers of a finished diarized job.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/jobs/{id}/events": {
      "get": {
        "description": "text/event-stream of numbered job states. Last-Event-ID resumes rather than replays. A job that has already finished yields one catch-up event and closes.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Follow a job as server-sent events.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/models": {
      "get": {
        "description": "",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "List installed models and what is resident.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/models/{id}/download": {
      "post": {
        "description": "Requires an administrative API key.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Download a catalog model, streaming progress as SSE.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/models/{id}/load": {
      "post": {
        "description": "Requires an administrative API key.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Load a model into memory now.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/models/{id}/pin": {
      "post": {
        "description": "Requires an administrative API key.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Keep a model resident, or stop keeping it.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/models/{id}/reload": {
      "post": {
        "description": "The new instance is loaded and warmed before the pointer moves. Requires an administrative API key.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Swap in another revision without dropping requests.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/models/{id}/unload": {
      "post": {
        "description": "Requires an administrative API key.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Release a model.",
        "tags": [
          "native"
        ]
      }
    },
    "/api/v1/transcribe": {
      "post": {
        "description": "multipart/form-data with file, plus model, language (a locale of a multilingual model, or auto), channel_mode, diarize, num_speakers, punctuate, itn, hotwords, hotwords_dict, hotwords_score, decoding_method and word_timestamps. hotwords_dict names stored dictionaries by key and merges their phrases into hotwords. Cancelling the request stops the decode between batches rather than at the end of the file.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Transcribe an uploaded file and wait for the result.",
        "tags": [
          "native"
        ]
      }
    },
    "/asr": {
      "post": {
        "description": "multipart with audio_file, plus output (txt, json, srt, vtt, tsv), task, language, word_timestamps and encode. task=translate is refused rather than answered with a transcription.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Transcribe and return the transcript as a file.",
        "tags": [
          "era"
        ]
      }
    },
    "/asr_task": {
      "post": {
        "description": "",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Queue the same work and return a task id.",
        "tags": [
          "era"
        ]
      }
    },
    "/asr_task/{task_id}": {
      "get": {
        "description": "",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Poll a queued task.",
        "tags": [
          "era"
        ]
      }
    },
    "/detect-language": {
      "post": {
        "description": "Answered from the model's declared languages, not from an acoustic language identifier: these are monolingual models, so the honest answer is what the model was trained on. A multilingual model left to choose the language is refused with 422: it decided something and the runtime does not say what.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Report the language of the audio.",
        "tags": [
          "era"
        ]
      }
    },
    "/docs": {
      "get": {
        "description": "Served without a credential.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "This page.",
        "tags": [
          "server"
        ]
      }
    },
    "/docs/openapi.json": {
      "get": {
        "description": "Served without a credential.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "The same endpoint list, as OpenAPI.",
        "tags": [
          "server"
        ]
      }
    },
    "/healthz": {
      "get": {
        "description": "Served without a credential.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Liveness, with the native library versions.",
        "tags": [
          "server"
        ]
      }
    },
    "/readyz": {
      "get": {
        "description": "503 when the queue is full, which is when a load balancer should stop sending work here. Served without a credential.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Readiness, and the queue depth.",
        "tags": [
          "server"
        ]
      }
    },
    "/ui": {
      "get": {
        "description": "Served without a credential because a browser does not send a bearer token when it loads a script tag. The SPA discovers whether the API needs a key from the first 401 it gets. Served without a credential.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "The test UI.",
        "tags": [
          "server"
        ]
      }
    },
    "/v1/audio/transcriptions": {
      "post": {
        "description": "multipart/form-data with file, and optionally model, language, response_format (json, verbose_json, text, srt, vtt) and repeated timestamp_granularities[] (word, segment). prompt is applied as a comma-separated hotword list rather than as an LM prompt, and temperature is accepted and ignored because the decoders do not sample; both are reported back as warnings. Asking for word timings from a model that cannot produce them yields segment timings and a warning, or 422 with X-NanoASR-Strict: 1.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Transcribe an uploaded file.",
        "tags": [
          "openai"
        ]
      }
    },
    "/v1/audio/translations": {
      "post": {
        "description": "Answers 501. Translation needs a model that writes a language it did not hear.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Not implemented: this build ships transcription models only.",
        "tags": [
          "openai"
        ]
      }
    },
    "/v1/models": {
      "get": {
        "description": "Transcription models only: the supporting models (VAD, punctuation, diarization) and the streaming models are left out, because passing one here would fail. Each entry carries the NanoASR state, languages and whether it produces word timestamps.",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "List the models that can be passed as `model`.",
        "tags": [
          "openai"
        ]
      }
    },
    "/v1/models/{id}": {
      "get": {
        "description": "",
        "responses": {
          "default": {
            "description": "See the description."
          }
        },
        "summary": "Describe one model.",
        "tags": [
          "openai"
        ]
      }
    }
  }
}
