Create Mixed Media

Create a Mixed Media object in the system and returns a resumable url to upload the asset

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Request params

FieldTypeRequiredDescription
content_typestringYesMIME type of the mixed media file (case-insensitive). See Supported content_type values below.
total_bytesintegerYesSize of the file in bytes. Must not exceed the file size limit.

Supported content_type values

Mixed media accepts standard video formats plus GIF:

MIME typeFormat
video/mp4MP4
video/webmWebM
video/quicktimeMOV
video/x-matroskaMKV
video/aviAVI
image/gifGIF

Other image types (for example image/png) are not accepted.

File size limit

The maximum upload size is the same as for videos (MAX_VIDEO_BYTES, configured per environment). If the file exceeds this limit, the API returns 412 with:

Max file bytes size: {MAX_VIDEO_BYTES}

Maximum allowed resolution: 3000x3000

Response 201 Created

FieldTypeDescription
resumable_urlstringGoogle Cloud Storage resumable upload URL. Upload the file with HTTP PUT to this URL before starting prediction.
media_idstring (UUID)Identifier of the created mixed media object. Use this in later calls (predict, AOIs, objectives, impact score, etc.).

Example request

{
  "content_type": "video/mp4",
  "total_bytes": 953311
}

GIF example:

{
  "content_type": "image/gif",
  "total_bytes": 512000
}

Example response

{
  "resumable_url": "https://storage.googleapis.com/...",
  "media_id": "036d5cb3-4fb1-4e88-98e6-1854b607d296"
}

Typical workflow

  1. Create mixed mediaPOST /predict/v2/mixed-media. You receive media_id and resumable_url.

  2. Upload the filePUT the binary to resumable_url.

  3. Predict mixed mediaPUT /predict/v2/mixed-media/{media_id}/predict.

  4. Poll media statusGET /predict/v2/media/{media_id} until prediction status is done.

  5. Optionally configure objectives, AOIs, benchmark ranges, and impact score via the shared Media endpoints.


Body Params
string
required
integer
required
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json