Models API

OutputFile

object
urlstringrequired

Relative URL path for downloading the generated content file

Example:/v1/predictions/delivery/xezq/52UGYRrRfqViaKmvYsEnENTh0qLDAWHptQ8jOnEHu7XC6AtKA/output.mp4

filenamestringrequired

Filename of the generated content

Example:output.mp4

content_typestringrequired

MIME type of the generated content (e.g., image/jpeg, video/mp4)

Example:video/mp4

sizeinteger

File size in bytes

Example:15728640

Example

PredictionError

object
codestringrequired

Error code for programmatic handling

Allowed values:INVALID_INPUTMODEL_ERRORTIMEOUTQUOTA_EXCEEDEDINTERNAL_ERROR

Example:INVALID_INPUT

messagestringrequired

Human-readable error message

Example:Invalid prompt: prompt too long

detailsstring

Additional error details

Example:Prompt must be less than 1000 characters

Example

Error

object
errorobjectrequired
Show Child Parameters
request_idstring

Unique request identifier for debugging

Example:req_1234567890

Example

FileUploadResponse

object
idstringrequired

Unique identifier for the uploaded file

Example:fqadqq42xq

namestringrequired

Original filename

Example:test.jpg

content_typestringrequired

MIME type of the uploaded file

Example:image/jpeg

sizeintegerrequired

File size in bytes

Example:185093

etagstring

Entity tag for cache validation

Example:"14e9a51deaac6bee2dd8b5c52d7d0b5f"

checksumsobject

File integrity checksums

Show Child Parameters
metadataobject

Additional file metadata (varies by file type)

Show Child Parameters
created_atstring(date-time)required

Timestamp when the file was uploaded

Example:2025-01-08T18:51:26.729Z

expires_atstring(date-time)required

Timestamp when the file will expire and be deleted

Example:2025-01-09T18:51:26.729Z

urlsobjectrequired

URLs to access the uploaded file

Show Child Parameters
Example