🎥 Make videos programmatically with React
Document model discovery return values
JonnyBurger6f7a4119e29c
diff --git a/packages/docs/docs/video-matting/get-available-models.mdx b/packages/docs/docs/video-matting/get-available-models.mdxindex dc889a9205..efd8965d4c 100644--- a/packages/docs/docs/video-matting/get-available-models.mdx+++ b/packages/docs/docs/video-matting/get-available-models.mdx@@ -24,7 +24,9 @@ The [`modnet` model](https://huggingface.co/Xenova/modnet) is Apache-2.0 licenseThe `modelId` values identify these upstream Hugging Face models for provenance. Runtime files are downloaded from immutable paths on `remotion.media` and are byte-identical to files from the pinned upstream revisions.-Each model contains these properties:+## Return value++Returns an array with the following properties:### namediff --git a/packages/docs/docs/whisper-webgpu/get-available-models.mdx b/packages/docs/docs/whisper-webgpu/get-available-models.mdxindex 9afdbe5331..9df0cdde0f 100644--- a/packages/docs/docs/whisper-webgpu/get-available-models.mdx+++ b/packages/docs/docs/whisper-webgpu/get-available-models.mdx@@ -15,18 +15,40 @@ const models = getAvailableModels();console.log(models);```-Each item contains the short `name`, upstream Hugging Face `modelId`, parameter count, whether the model is multilingual, whether it supports translation, and the estimated WebGPU download size.+## Return value++Returns an array with the following properties:++### name++The model name accepted by APIs in this package.++### modelId++The upstream Hugging Face model identifier.++### parameters++The number of parameters in the model.++### multilingual++Whether the model supports languages other than English.### supportsTranslation<AvailableFrom v="4.0.522" />Whether the model supports `task: 'translate'` in [`transcribe()`](/docs/whisper-webgpu/transcribe). Translation converts speech into English. It is supported by multilingual non-turbo models only.+### webGpuDownloadSize++The estimated model weight download size in bytes. Browser caches and supporting model files may add a small amount.++## Available models+Available sizes are `tiny`, `base`, `small`, `medium`, and `large-v3-turbo`. English-only `.en` variants are available through `medium`.The set of available models may change between versions as faster variants of these models are in development by Hugging Face. Call [`clearStaleModels()`](/docs/whisper-webgpu/clear-stale-models) to remove cached models that are no longer available after upgrading.-The estimates cover model weights. Browser caches and supporting model files may add a small amount.-## Model hostingWe noticed that hosting the models on R2 leads to faster downloading than through Hugging Face. Therefore, we mirrored the models to `remotion.media`, keeping them byte-identical.