new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

fal/models

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Fal image model factory method

Create Fal image models using the .image() factory method: fal.image('model-id'). This is used with generateImage() for image generation.

Fal image generation basic example

Example of basic Fal image generation: import { fal } from '@ai-sdk/fal'; import { generateImage } from 'ai'; import fs from 'fs'; const { image, providerMetadata } = await generateImage({ model: fal.image('fal-ai/flux/dev'), prompt: 'A serene mountain landscape at sunset', }); const filename = `image-${Date.now()}.png`; fs.writeFileSync(filename, image.uint8Array); console.log(`Image saved to ${filename}`);

Fal image models list

Fal offers the following image generation models: (1) fal-ai/flux/dev - FLUX.1 [dev] model for high-quality image generation. (2) fal-ai/flux-pro/kontext - FLUX.1 Kontext [pro] handles both text and reference images as inputs, enabling targeted edits and complex transformations. (3) fal-ai/flux-pro/kontext/max - FLUX.1 Kontext [max] with improved prompt adherence and typography generation. (4) fal-ai/flux-lora - Super fast endpoint for FLUX.1 with LoRA support. (5) fal-ai/ideogram/character - Generate consistent character appearances across multiple images. (6) fal-ai/qwen-image - Qwen-Image foundation model with significant advances in complex text rendering and precise image editing. (7) fal-ai/omnigen-v2 - Unified image generation model for Image Editing, Personalized Image Generation, Virtual Try-On, Multi Person Generation and more. (8) fal-ai/bytedance/dreamina/v3.1/text-to-image - Dreamina showcases superior picture effects with improvements in aesthetics, precise and diverse styles, and rich details. (9) fal-ai/recraft/v3/text-to-image - SOTA in image generation with vector art and brand style capabilities. (10) fal-ai/wan/v2.2-a14b/text-to-image - High-resolution, photorealistic images with fine-grained detail.

Fal modify image with text prompt example

Transform existing images using text prompts: await generateImage({ model: fal.image('fal-ai/flux-pro/kontext/max'), prompt: { text: 'Put a donut next to the flour.', images: [ 'https://v3.fal.media/files/rabbit/rmgBxhwGYb2d3pl3x9sKf_output.png', ], }, });

Fal image modification with mask example

Modify images with text and mask: await generateImage({ model: fal.image('fal-ai/flux-pro/kontext/max'), prompt: { text: 'Put a donut next to the flour.', images: [imageBuffer], mask: maskBuffer, }, }); Images can be passed as base64-encoded string, Uint8Array, ArrayBuffer, or Buffer.

Give your agent this brain