Skip to main content
POST
/
assets
/
collections
/
{collection_id}
/
assets
Add asset to collection
curl --request POST \
  --url https://api.fal.ai/v1/assets/collections/{collection_id}/assets \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "request_id": "019e6d0a-e5be-7b82-b329-35ae64296902"
}
'
{
  "success": true
}

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"

Path Parameters

collection_id
string
required

Collection ID

Minimum string length: 1
Example:

"d8b6elcregj72v34jr8g"

Body

application/json
request_id
string

Request ID to save as an asset before mutating

Minimum string length: 1
vector_id
string

Vector ID to save as an asset before mutating

Minimum string length: 1

Response

Asset added

success
boolean
required

Whether the operation succeeded

Example:

true