Skip to main content
POST
Upload asset

Authorizations

Authorization
string
header
required

API key must be prefixed with "Key ", e.g. Authorization: Key YOUR_API_KEY

Headers

Idempotency-Key
string

Optional idempotency key for safe request retries

Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

application/json
url
string<uri>
required

fal-hosted media URL to ingest into the asset library

type
enum<string>
required

Media type for the uploaded asset

Available options:
image,
video,
audio,
3d
prompt
string | null

Optional caller-provided caption or description to index with the uploaded asset

Required string length: 1 - 2000
collection_id
string | null

Optional manual collection ID to add the uploaded asset to

favorite
boolean
default:false

Whether to favorite the uploaded asset immediately

tag_ids
string[]

Tag IDs to assign to the uploaded asset

Response

Upload ingested

asset
object
required

Asset details