Skip to main content
oanim assets <command> [options]
Generate and manipulate media using AI models routed through the Open Animate media gateway. Supports 25+ models for image generation, video generation, audio, upscaling, and more.
Asset commands require authentication. Run oanim login to sign in, or set ANIMATE_API_KEY. You can also set ANIMATE_FAL_KEY to use your own fal.ai key directly.

Image commands

gen-image

Generate an image from a text prompt.
oanim assets gen-image --prompt "dark abstract gradient with purple and blue tones, 16:9" --out public/bg.png
FlagRequiredDescription
--prompt <text>YesImage generation prompt
--out <path>YesOutput file path
--model <id>NoOverride model (default: fal-ai/flux-2-flex)

edit-image

Edit an existing image with a text prompt.
oanim assets edit-image --in public/bg.png --prompt "add subtle grid pattern" --out public/bg-grid.png
FlagRequiredDescription
--in <path>YesInput image path
--prompt <text>YesEdit prompt
--out <path>YesOutput file path
--model <id>NoOverride model (default: fal-ai/flux-pro/kontext)

remove-bg

Remove the background from an image.
oanim assets remove-bg --in public/product.png --out public/product-cutout.png
FlagRequiredDescription
--in <path>YesInput image path
--out <path>YesOutput file path
--model <id>NoOverride model (default: fal-ai/birefnet)

upscale

Upscale an image 2x.
oanim assets upscale --in public/logo-small.png --out public/logo-2x.png
FlagRequiredDescription
--in <path>YesInput image path
--out <path>YesOutput file path
--model <id>NoOverride model (default: fal-ai/bria/upscale/creative)

run — any model

Run any fal.ai model directly. This is how you access video generation, audio generation, and any other model not covered by the dedicated commands above.
oanim assets run --model <model-id> --input '<json>' [--out <path>]
FlagRequiredDescription
--model <id>Yesfal.ai model ID
--input <json>YesJSON input for the model
--out <path>NoDownload result URL to file

Video generation

# Generate a video with Kling 2.5 Turbo Pro
oanim assets run \
  --model fal-ai/kling-video/v2.5-turbo/pro/text-to-video \
  --input '{"prompt": "a slow zoom into a neon city at night"}' \
  --out public/city.mp4

# Generate with Veo 3.1 (Google's best, supports audio)
oanim assets run \
  --model fal-ai/veo3.1 \
  --input '{"prompt": "camera slowly pans across a mountain landscape at sunrise"}' \
  --out public/landscape.mp4

# Other video models: kling-video/v3/pro, minimax/hailuo-02, sora-2/text-to-video/pro

Audio generation

# Generate music with Beatoven
oanim assets run \
  --model beatoven/music-generation \
  --input '{"prompt": "upbeat electronic background music, 120 bpm", "duration_in_seconds": 15}' \
  --out public/music.mp3

# Generate sound effects
oanim assets run \
  --model beatoven/sound-effect-generation \
  --input '{"prompt": "whoosh transition sound effect"}' \
  --out public/whoosh.mp3

Other models

# ControlNet
oanim assets run \
  --model fal-ai/flux/dev/controlnet \
  --input '{"prompt": "...", "control_image_url": "https://..."}' \
  --out public/controlled.png

# IP Adapter (style transfer)
oanim assets run \
  --model fal-ai/flux/dev/ip-adapter \
  --input '{"prompt": "...", "ip_adapter_image_url": "https://..."}' \
  --out public/styled.png

# LoRA
oanim assets run \
  --model fal-ai/lora \
  --input '{"prompt": "...", "lora_url": "https://..."}' \
  --out public/lora.png
If --out is provided and the model returns a URL, the file is downloaded. Otherwise the raw JSON response is printed to stdout.

When to use each command

ScenarioCommand
Background textures or gradientsgen-image
Product screenshots with editsedit-image
Product photos for compositingremove-bg
Low-res logos or iconsupscale
Video clips for compositionsrun with a video model
Background music or sound effectsrun with a music/SFX model
Any other fal.ai modelrun

Supported models

25+ models across image, video, audio, and more. See Credits & Billing for the full model list and per-operation costs.

Highlights

CategoryModels
Image generationFlux Schnell, Flux 2 Flex, Recraft V4, Ideogram V3, Nano Banana 2
Image editingFlux Kontext Pro, Nano Banana 2 Edit, Reve Edit
Video generationKling V3 Pro, Kling 2.5 Turbo Pro, MiniMax Hailuo-02, Veo 3.1, Sora 2 Pro
AudioBeatoven Music, Beatoven SFX, MiniMax Speech-02 HD
UpscalingBRIA Creative, Topaz Upscale
Background removalBiRefNet, BRIA RMBG 2.0
OtherControlNet, IP Adapter, LoRA

Tips

  • Generate backgrounds at your video resolution (1920x1080 by default)
  • Use staticFile() in Remotion to reference files in public/
  • Remove backgrounds on product shots so they composite cleanly over gradient backgrounds
  • Generate short video clips with Kling/Veo and composite them into your Remotion project
  • Use Beatoven for background music, then add it with Remotion’s <Audio> component

Pricing

Asset generation is billed per operation. See Credits & Billing for current model costs.