From e6ca32b5504f8f02c7089fba680c1571587ebbd9 Mon Sep 17 00:00:00 2001 From: Walter Korman Date: Sun, 9 Feb 2025 22:23:43 -0800 Subject: [PATCH] fix (docs): include prefix on fal model ids (#4796) --- .../03-ai-sdk-core/35-image-generation.mdx | 12 ++++++------ .../providers/01-ai-sdk-providers/90-fal.mdx | 18 +++++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/content/docs/03-ai-sdk-core/35-image-generation.mdx b/content/docs/03-ai-sdk-core/35-image-generation.mdx index 1e81bdc78dd0..cdb1f289001c 100644 --- a/content/docs/03-ai-sdk-core/35-image-generation.mdx +++ b/content/docs/03-ai-sdk-core/35-image-generation.mdx @@ -228,12 +228,12 @@ try { | [Luma](/providers/ai-sdk-providers/luma#image-models) | `photon-1` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | | [Luma](/providers/ai-sdk-providers/luma#image-models) | `photon-flash-1` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | | [Fal](/providers/ai-sdk-providers/fal#image-models) | `fal-ai/flux/dev` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | -| [Fal](/providers/ai-sdk-providers/fal#image-models) | `fast-sdxl` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | -| [Fal](/providers/ai-sdk-providers/fal#image-models) | `flux-pro/v1.1-ultra` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | -| [Fal](/providers/ai-sdk-providers/fal#image-models) | `ideogram/v2` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | -| [Fal](/providers/ai-sdk-providers/fal#image-models) | `recraft-v3` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | -| [Fal](/providers/ai-sdk-providers/fal#image-models) | `stable-diffusion-3.5-large` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | -| [Fal](/providers/ai-sdk-providers/fal#image-models) | `hyper-sdxl` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | +| [Fal](/providers/ai-sdk-providers/fal#image-models) | `fal-ai/fast-sdxl` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | +| [Fal](/providers/ai-sdk-providers/fal#image-models) | `fal-ai/flux-pro/v1.1-ultra` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | +| [Fal](/providers/ai-sdk-providers/fal#image-models) | `fal-ai/ideogram/v2` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | +| [Fal](/providers/ai-sdk-providers/fal#image-models) | `fal-ai/recraft-v3` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | +| [Fal](/providers/ai-sdk-providers/fal#image-models) | `fal-ai/stable-diffusion-3.5-large` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | +| [Fal](/providers/ai-sdk-providers/fal#image-models) | `fal-ai/hyper-sdxl` | 1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 | | [Together.ai](/providers/ai-sdk-providers/togetherai#image-models) | `stabilityai/stable-diffusion-xl-base-1.0` | 512x512, 768x768, 1024x1024 | | [Together.ai](/providers/ai-sdk-providers/togetherai#image-models) | `black-forest-labs/FLUX.1-dev` | 512x512, 768x768, 1024x1024 | | [Together.ai](/providers/ai-sdk-providers/togetherai#image-models) | `black-forest-labs/FLUX.1-dev-lora` | 512x512, 768x768, 1024x1024 | diff --git a/content/providers/01-ai-sdk-providers/90-fal.mdx b/content/providers/01-ai-sdk-providers/90-fal.mdx index 4cb5e22273b9..cf14a28fa19a 100644 --- a/content/providers/01-ai-sdk-providers/90-fal.mdx +++ b/content/providers/01-ai-sdk-providers/90-fal.mdx @@ -80,7 +80,7 @@ import { experimental_generateImage as generateImage } from 'ai'; import fs from 'fs'; const { image } = await generateImage({ - model: fal.image('fast-sdxl'), + model: fal.image('fal-ai/fast-sdxl'), prompt: 'A serene mountain landscape at sunset', }); @@ -93,14 +93,14 @@ console.log(`Image saved to ${filename}`); Fal offers many models optimized for different use cases. Here are a few popular examples. For a full list of models, see the [Fal AI documentation](https://fal.ai/models). -| Model | Description | -| ---------------------------- | -------------------------------------------------------------------------------------- | -| `fast-sdxl` | High-speed SDXL model optimized for quick inference with up to 4x faster speeds | -| `flux-pro/v1.1-ultra` | Professional-grade image generation with up to 2K resolution and enhanced photorealism | -| `ideogram/v2` | Specialized for high-quality posters and logos with exceptional typography handling | -| `recraft-v3` | SOTA in image generation with vector art and brand style capabilities | -| `stable-diffusion-3.5-large` | Advanced MMDiT model with improved typography and complex prompt understanding | -| `hyper-sdxl` | Performance-optimized SDXL variant with enhanced creative capabilities | +| Model | Description | +| ----------------------------------- | -------------------------------------------------------------------------------------- | +| `fal-ai/fast-sdxl` | High-speed SDXL model optimized for quick inference with up to 4x faster speeds | +| `fal-ai/flux-pro/v1.1-ultra` | Professional-grade image generation with up to 2K resolution and enhanced photorealism | +| `fal-ai/ideogram/v2` | Specialized for high-quality posters and logos with exceptional typography handling | +| `fal-ai/recraft-v3` | SOTA in image generation with vector art and brand style capabilities | +| `fal-ai/stable-diffusion-3.5-large` | Advanced MMDiT model with improved typography and complex prompt understanding | +| `fal-ai/hyper-sdxl` | Performance-optimized SDXL variant with enhanced creative capabilities | Fal models support the following aspect ratios: