Skip to main content

Falai/assets

@webframp/falai/assetsv2026.09.10.4· 1d agoMODELS
01README

fal.ai Assets — media library, characters, collections, tags, uploads, favorites

02Release Notes

2026.09.10.4

Fixed:

  • Resource instance names for get/update methods with two or more path parameters (e.g. get_app_queue_info(owner, name), get_workflow(username, workflow_name)) were built by joining raw values with "_". Two distinct owner/name pairs that split differently around an underscore (e.g. "john"/"doe_app" and "john_doe"/"app") produced the identical instance name and collided. Multi-param instance names are now derived from a hash of the JSON-encoded parameter tuple, which delimits each part unambiguously.

Upgrade note: No schema changes. All fixes are internal to method execution; existing stored resources are unaffected.

03Models1
@webframp/falai/assetsv2026.09.10.4falai/assets.ts

Global Arguments

ArgumentTypeDescription
apiToken?stringfal.ai API key; overrides the FAL_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault.
fn list_assets(limit?: number, cursor?: string, q?: string, search_image_url?: string, search_video_url?: string, media_type?: array, source?: array, section?: enum, collection_id?: string, character_identifier?: array, tag_id?: array, tag_mode?: enum)
Browse assets
ArgumentTypeDescription
limit?numberMaximum number of items to return. Actual maximum depends on query type and expansion parameters.
cursor?stringPagination cursor from previous response. Encodes the page number.
q?stringText query for hybrid semantic search
search_image_url?stringfal-hosted image URL to use for semantic image search
search_video_url?stringfal-hosted video URL to use for semantic video search
media_type?arrayFilter by one or more media types
source?arrayFilter by one or more indexed sources
section?enumAsset library section to browse
collection_id?stringCollection scope to browse
character_identifier?arrayCharacter identifiers to use as @mention semantic filters
tag_id?arrayTag IDs to filter by
tag_mode?enumWhether tag filters match any tag or all tags
fn list_asset_collections(limit?: number, offset?: number)
List asset collections
ArgumentTypeDescription
limit?numberMaximum number of collections to return
offset?numberNumber of collections to skip
fn create_asset_collection(name: string, description?: string, icon?: string, color?: string, cover_image_url?: string, parent_collection_id?: string, filters?: unknown)
Create asset collection
ArgumentTypeDescription
namestringCollection display name
description?stringOptional collection description
icon?stringOptional collection icon
color?stringOptional collection color
cover_image_url?stringOptional fal-hosted cover image URL for the collection
parent_collection_id?string
filters?unknownAssets filter DSL
fn get_asset_collection(collection_id: string)
Get asset collection
ArgumentTypeDescription
collection_idstringCollection ID
fn update_asset_collection(collection_id: string, name?: string, description?: string, icon?: string, color?: string, cover_image_url?: string, filters?: unknown)
Update asset collection
ArgumentTypeDescription
collection_idstringCollection ID
name?stringCollection display name
description?stringOptional collection description
icon?stringOptional collection icon
color?stringOptional collection color
cover_image_url?stringOptional fal-hosted cover image URL for the collection
filters?unknownAssets filter DSL
fn delete_asset_collection(collection_id: string)
Delete asset collection
ArgumentTypeDescription
collection_idstringCollection ID
fn get_asset_collection_hierarchy(collection_id: string)
Get asset collection hierarchy
ArgumentTypeDescription
collection_idstringCollection ID
fn favorite_asset_collection(collection_id: string)
Favorite asset collection
ArgumentTypeDescription
collection_idstringCollection ID
fn unfavorite_asset_collection(collection_id: string)
Unfavorite asset collection
ArgumentTypeDescription
collection_idstringCollection ID
fn move_asset_collection(collection_id: string, parent_collection_id?: string)
Move asset collection
ArgumentTypeDescription
collection_idstringCollection ID
parent_collection_id?stringParent collection ID to move this collection under, or null to move it to the...
fn list_asset_collection_assets(collection_id: string, limit?: number, cursor?: string, q?: string, search_image_url?: string, search_video_url?: string, media_type?: array, source?: array, section?: enum, character_identifier?: array, tag_id?: array, tag_mode?: enum)
Browse assets in a collection
ArgumentTypeDescription
collection_idstringCollection ID
limit?numberMaximum number of items to return. Actual maximum depends on query type and expansion parameters.
cursor?stringPagination cursor from previous response. Encodes the page number.
q?stringText query for hybrid semantic search
search_image_url?stringfal-hosted image URL to use for semantic image search
search_video_url?stringfal-hosted video URL to use for semantic video search
media_type?arrayFilter by one or more media types
source?arrayFilter by one or more indexed sources
section?enumAsset library section to browse
character_identifier?arrayCharacter identifiers to use as @mention semantic filters
tag_id?arrayTag IDs to filter by
tag_mode?enumWhether tag filters match any tag or all tags
fn add_asset_to_collection(collection_id: string, asset_id?: string, request_id?: string, vector_id?: string)
Add asset to collection
ArgumentTypeDescription
collection_idstringCollection ID
asset_id?stringAsset ID (canonical catalog identity)
request_id?stringRequest ID to save as an asset before mutating
vector_id?stringVector ID to save as an asset before mutating. Prefer asset_id
fn remove_asset_from_collection(collection_id: string, asset_id?: string, request_id?: string, vector_id?: string)
Remove asset from collection
ArgumentTypeDescription
collection_idstringCollection ID
asset_id?stringAsset ID (canonical catalog identity)
request_id?stringRequest ID to save as an asset before mutating
vector_id?stringVector ID to save as an asset before mutating. Prefer asset_id
fn list_asset_characters(limit?: number, offset?: number)
List asset characters
ArgumentTypeDescription
limit?numberMaximum number of collections to return
offset?numberNumber of collections to skip
fn create_asset_character(name: string, identifier?: string, description: string, reference_images: array, cover_image_url?: string)
Create asset character
ArgumentTypeDescription
namestringCharacter display name
identifier?stringOptional @mention identifier for the character
descriptionstringText description used for character semantic matching
reference_imagesarrayReference images for the character. Prefer vector IDs or request IDs for exis...
cover_image_url?stringOptional fal-hosted cover image URL for the character
fn get_asset_character(character_id: string)
Get asset character
ArgumentTypeDescription
character_idstringCharacter collection ID
fn update_asset_character(character_id: string, name?: string, description?: string, reference_images?: array, cover_image_url?: string)
Update asset character
ArgumentTypeDescription
character_idstringCharacter collection ID
name?stringCharacter display name
description?stringText description used for character semantic matching
reference_images?arrayReference images for the character. Prefer vector IDs or request IDs for exis...
cover_image_url?stringOptional fal-hosted cover image URL for the character
fn delete_asset_character(character_id: string)
Delete asset character
ArgumentTypeDescription
character_idstringCharacter collection ID
fn favorite_asset_character(character_id: string)
Favorite asset character
ArgumentTypeDescription
character_idstringCharacter collection ID
fn unfavorite_asset_character(character_id: string)
Unfavorite asset character
ArgumentTypeDescription
character_idstringCharacter collection ID
fn list_asset_tags()
List asset tags
fn create_asset_tag(name: string)
Create asset tag
ArgumentTypeDescription
namestringTag name
fn set_asset_tags_for_asset(asset_id?: string, request_id?: string, vector_id?: string, tag_ids: array)
Set tags for an asset
ArgumentTypeDescription
asset_id?stringAsset ID (canonical catalog identity)
request_id?stringRequest ID to save as an asset before mutating
vector_id?stringVector ID to save as an asset before mutating. Prefer asset_id
tag_idsarrayFull replacement set of tag IDs
fn update_asset_tag(tag_id: string, name?: string)
Update asset tag
ArgumentTypeDescription
tag_idstringTag ID
name?stringTag name
fn delete_asset_tag(tag_id: string)
Delete asset tag
ArgumentTypeDescription
tag_idstringTag ID
fn upload_asset(url: string, type: enum, prompt?: string, collection_id?: string, favorite?: boolean, tag_ids?: array)
Upload asset
ArgumentTypeDescription
urlstringfal-hosted media URL to ingest into the asset library
typeenumMedia type for the uploaded asset
prompt?stringOptional caller-provided caption or description to index with the uploaded asset
collection_id?stringOptional manual collection ID to add the uploaded asset to
favorite?booleanWhether to favorite the uploaded asset immediately
tag_ids?arrayTag IDs to assign to the uploaded asset
fn get_asset(asset_id: string)
Get asset
ArgumentTypeDescription
asset_idstringAsset ID. A vector ID is also accepted
fn get_asset_lineage(asset_id: string, depth?: number)
Get asset lineage
ArgumentTypeDescription
asset_idstringAsset ID
depth?numberMaximum traversal depth (levels of derivation edges)
fn favorite_asset(asset_id?: string, request_id?: string, vector_id?: string)
Favorite asset
ArgumentTypeDescription
asset_id?stringAsset ID (canonical catalog identity)
request_id?stringRequest ID to save as an asset before mutating
vector_id?stringVector ID to save as an asset before mutating. Prefer asset_id
fn unfavorite_asset(asset_id?: string, request_id?: string, vector_id?: string)
Unfavorite asset
ArgumentTypeDescription
asset_id?stringAsset ID (canonical catalog identity)
request_id?stringRequest ID to save as an asset before mutating
vector_id?stringVector ID to save as an asset before mutating. Prefer asset_id
fn list_asset_tags_for_asset(asset_id: string)
List tags for an asset
ArgumentTypeDescription
asset_idstringAsset ID. A vector ID is also accepted
fn assign_asset_tag(tag_id: string, asset_id?: string, request_id?: string, vector_id?: string)
Assign tag to asset
ArgumentTypeDescription
tag_idstringTag ID
asset_id?stringAsset ID (canonical catalog identity)
request_id?stringRequest ID to save as an asset before mutating
vector_id?stringVector ID to save as an asset before mutating. Prefer asset_id
fn unassign_asset_tag(tag_id: string, asset_id?: string, request_id?: string, vector_id?: string)
Unassign tag from asset
ArgumentTypeDescription
tag_idstringTag ID
asset_id?stringAsset ID (canonical catalog identity)
request_id?stringRequest ID to save as an asset before mutating
vector_id?stringVector ID to save as an asset before mutating. Prefer asset_id

Resources

assets(infinite)— Browse assets
asset_collections(infinite)— List asset collections
asset_collection(infinite)— Create asset collection
get_asset_collection_hierarchy(infinite)— Get asset collection hierarchy
favorite_asset_collection(infinite)— Favorite asset collection
unfavorite_asset_collection(infinite)— Unfavorite asset collection
move_asset_collection(infinite)— Move asset collection
asset_collection_assets(infinite)— Browse assets in a collection
add_asset_to_collection(infinite)— Add asset to collection
asset_characters(infinite)— List asset characters
asset_character(infinite)— Create asset character
favorite_asset_character(infinite)— Favorite asset character
unfavorite_asset_character(infinite)— Unfavorite asset character
asset_tags(infinite)— List asset tags
asset_tag(infinite)— Create asset tag
set_asset_tags_for_asset(infinite)— Set tags for an asset
upload_asset(infinite)— Upload asset
asset(infinite)— Get asset
asset_lineage(infinite)— Get asset lineage
favorite_asset(infinite)— Favorite asset
unfavorite_asset(infinite)— Unfavorite asset
asset_tags_for_asset(infinite)— List tags for an asset
assign_asset_tag(infinite)— Assign tag to asset
04Stats
A
100 / 100
Downloads
0
Archive size
27.9 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms
06Labels