Skip to main content
POST
/
assets
/
uploads
Upload asset
curl --request POST \
  --url https://api.fal.ai/v1/assets/uploads \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://v3b.fal.media/files/b/0a9b4900/PDbTGyzqRh1aijW2WQiY9_opengraph-1%20%281%29.png",
  "type": "image"
}
'
{
  "asset": {
    "vector_id": "b1a2b4a5-cb89-51dc-a108-6dbfd8e742fc",
    "request_id": "019e6d0a-e5be-7b82-b329-35ae64296902",
    "url": "https://v3b.fal.media/files/b/0a9b4900/PDbTGyzqRh1aijW2WQiY9_opengraph-1%20%281%29.png",
    "type": "image",
    "title": "Cinematic portrait",
    "endpoint": "fal-ai/flux/dev",
    "created_at": "2026-05-23T20:00:00.000Z",
    "source": "upload",
    "prompt": "cinematic portrait of a character",
    "width": 1024,
    "height": 1024,
    "content_type": "image/png",
    "is_favorited": false,
    "collection_ids": [
      "d8b6elcregj72v34jr8g"
    ],
    "tags": [
      {
        "id": "43ce3411-1a25-4d14-875e-3562d341b090",
        "name": "moodboard",
        "created_at": "2026-05-23T20:00:00.000Z"
      }
    ],
    "similarity": 0.92
  }
}

Documentation Index

Fetch the complete documentation index at: https://fal.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

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