Assets

Create a media asset

Downloads the media at the given URL and stores it in APIFRAME storage. Creation is synchronous — the asset is immediately Active and can be referenced as asset://{assetId} in any media URL field of a generation request (images, videos, music, edit and upscale endpoints); the API resolves it to the stored URL before dispatching the job. Unlike /v2/uploads files, assets do not expire. Limits: 25 MB for images/audio, 50 MB for video; the declared type must match the actual file contents (magic-byte sniffed).

post/v2/assets/create

Request

  • Base URL: https://api.apiframe.ai
  • URL: https://api.apiframe.ai/v2/assets/create
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Request body

urlstring uri required
type'image' | 'video' | 'audio' required

Response

Asset created and immediately usable.

assetIdstring uuid required
status'Active' required
urlstring uri required

Changes

No recorded changes to this operation across all 1 revision of this API.