- Assets are imported from a URL. Local file upload,
file://, Base64 anddata:URIs are not supported. The URL must be directly downloadable by the server; leave enough validity time on signed URLs. - A returned asset ID means the import was accepted. The asset must finish processing: poll GetAsset until
Status=Activebefore using it for generation. - Every call creates a new asset. Importing the same URL again returns a different asset ID.
Request parameters
string
required
ID of the asset group to import into. A real-person group only accepts photos of the verified person; otherwise the asset status becomes
Failed with Error.Code FaceMismatch.string
required
Public HTTP(S) URL of the file. The field name is all uppercase.
string
required
Asset type:
Image, Audio or Video. Must match the actual file type, otherwise InvalidParameter.TypeMismatch is returned.string
Asset name, up to 64 characters.
string
Pass
default or omit.Response parameters
string
Asset ID. Reference it in generation tasks as
asset://<asset ID>.