Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.prismvideos.com/llms.txt

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

GET /api/assets/search
Searches visible assets by prompt text. Results can include published community assets and assets from the API key owner’s generation history.

Query parameters

ParameterTypeDefaultDescription
qstringRequiredSearch text matched against prompts (minimum 2 characters)
type"all", "image", or "video""all"Asset type filter
source"all", "community", or "history""all"Search public community posts, your own history, or both
limitinteger24Number of assets to return (max 60)
offsetinteger0Pagination offset

Request

curl "https://www.prismvideos.com/api/assets/search?q=product&type=video&source=all&limit=10" \
  -H "Authorization: Bearer prism_sk_your_key_here"

Response

{
  "data": [
    {
      "id": "post_abc123",
      "asset_id": "asset_abc123",
      "asset_s3_key": "generations/user/video.mp4",
      "asset_url": "https://...",
      "asset_type": "video",
      "prompt": "A cinematic product demo...",
      "model_name": "veo-3.1",
      "published_at": 1773361092291,
      "created_at": null,
      "metadata": {},
      "source": "community"
    }
  ],
  "pagination": {
    "offset": 0,
    "limit": 10,
    "has_more": false
  }
}

Response fields

Asset object

FieldTypeDescription
idstringCommunity post ID or generation ID, depending on source
asset_idstringAsset record ID
asset_s3_keystringS3 object key for the asset
asset_urlstring or nullStored asset URL when available
asset_type"image" or "video"Asset media type
promptstringPrompt text matched by the search
model_namestring or nullModel name when available
published_atnumber or nullUnix timestamp in milliseconds for community posts
created_atnumber or nullUnix timestamp in milliseconds for history assets
metadataobject or nullAsset or generation metadata
source"community" or "history"Where the result came from

Pagination object

FieldTypeDescription
offsetnumberCurrent offset
limitnumberRequested limit
has_morebooleanWhether more results exist beyond this page

Errors

StatusErrorWhen
400validation_errorMissing/short q, invalid type, or invalid source
401unauthorizedMissing or invalid API key
500server_errorUnexpected server error while searching assets
See Errors for the full error reference.