Skip to main content

AI generation

Pindeck uses AI to generate variations of your images. Choose between shot-type changes and style transformations.

How it works

  1. Select an image in the gallery
  2. Click Generate Variation
  3. Choose a variation type and detail
  4. The system sends the image to fal.ai for generation
  5. The result is saved as a new child image linked to the original

Variation types

TypeDescriptionExample
shot_typeChanges camera angle/framingClose-up, wide shot, overhead
styleApplies a visual style transformationNoir, pastel, high contrast

Configuration

AI generation requires two API keys set in the Convex dashboard:
VariableDescription
FAL_KEYfal.ai API key for image generation
OPENROUTER_API_KEYOpenRouter API key for VLM analysis
OPENROUTER_VLM_MODELOptional model override for vision analysis
OPENROUTER_PROVIDER_SORTOptional provider sorting preference

Smart analysis

The /smartAnalyzeImage endpoint uses an OpenRouter VLM (vision-language model) to analyze your image before generation. This analysis helps select appropriate variation parameters. See Smart Analyze endpoint in the API reference.

Variation metadata

Generated images track their relationship to the original:
FieldTypeDescription
parentImageIdIDReference to the source image
variationCountnumberNumber of variations generated
variationTypestringshot_type or style
variationDetailstringSpecific variation applied (e.g., “close-up”)
sourceTypestringSet to ai for generated images

Rate limits and costs

  • fal.ai charges per generation — monitor usage in your fal.ai dashboard
  • OpenRouter charges per VLM analysis call
  • Generation time varies (typically 5–15 seconds per image)