OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Fal integration for AI image generation using Flux and Stable Diffusion models.
Source Definition
export const falImageIntegrationSpec = defineIntegration({
meta: {
key: 'ai-image.fal',
version: '1.0.0',
category: 'ai-image',
title: 'Fal Image Generation',
description:
'Fal integration for AI image generation using Flux and Stable Diffusion models.',
domain: 'ai',
owners: ['platform.ai'],
tags: ['image', 'generation', 'flux', 'stable-diffusion'],
stability: StabilityEnum.Experimental,
},
supportedModes: ['byok'],
transports: [
{ type: 'rest', baseUrl: 'https://fal.run' },
{ type: 'sdk', packageName: '@fal-ai/client' },
] satisfies IntegrationTransportConfig[],
preferredTransport: 'rest',
supportedAuthMethods: [
{ type: 'header', headerName: 'Authorization', valuePrefix: 'Key ' },
] satisfies IntegrationAuthConfig[],
capabilities: {
provides: [{ key: 'ai.image.generation', version: '1.0.0' }],
},
configSchema: {
schema: {
type: 'object',
properties: {
modelId: {
type: 'string',
description: 'Fal model endpoint (e.g. fal-ai/flux/dev).',
},
defaultFormat: {
type: 'string',
enum: ['png', 'jpg', 'webp'],
},
defaultGuidanceScale: {
type: 'number',
minimum: 1,
maximum: 20,
},
},
},
example: {
modelId: 'fal-ai/flux/dev',
defaultFormat: 'png',
defaultGuidanceScale: 7.5,
},
},
secretSchema: {
schema: {
type: 'object',
required: ['apiKey'],
properties: {
apiKey: {
type: 'string',
description: 'Fal API key (FAL_KEY).',
},
},
},
example: {
apiKey: 'key-id:key-secret',
},
},
healthCheck: {
method: 'custom',
timeoutMs: 7000,
},
docsUrl: 'https://fal.ai/models',
byokSetup: {
setupInstructions:
'Create a Fal API key and ensure image generation model access is enabled.',
keyRotationSupported: false,
quotaTrackingSupported: true,
},
});