put
https://api.neuronsinc.com/predict/v2/mixed-media//predict
Predict a mixed media asset after the blob has been uploaded to the bucket
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Request params
| Field | Type | Required | Description |
|---|---|---|---|
media_id | string (UUID) | Yes | Path parameter. Identifier of the mixed media object returned by Create Mixed Media or Create VAST Mixed Media. |
No request body is required.
Response 200 OK
200 OK| Field | Type | Description |
|---|---|---|
media_id | string (UUID) | Identifier of the mixed media object. Same as the media_id in the request path. |
Prediction runs asynchronously. Poll GET /predict/v2/media/{media_id} to track status (init, started, done, or failed).
Other responses
| Status | Description |
|---|---|
| 202 Accepted | Prediction is already in progress. Response body: {"detail": "Prediction already started"}. |
| 400 Bad Request | The media exists but is not mixed media. Response body: {"detail": "Media is not mixed media"}. |
| 404 Not Found | No media with this media_id exists for your company. |
Example request
PUT /predict/v2/mixed-media/036d5cb3-4fb1-4e88-98e6-1854b607d296/predict
X-API-Key: {your_api_key}Example response
{
"media_id": "036d5cb3-4fb1-4e88-98e6-1854b607d296"
}If prediction is already running:
{
"detail": "Prediction already started"
}(Status 202.)
Typical workflow
- Create mixed media — Create Mixed Media or Create VAST Mixed Media.
- Upload the file (manual upload only) —
PUTthe binary toresumable_url, or wait for VAST capture to finish. - Predict mixed media —
PUT /predict/v2/mixed-media/{media_id}/predict(this endpoint). - Poll media status —
GET /predict/v2/media/{media_id}until prediction status isdone. - Optionally configure objectives, AOIs, benchmark ranges, and impact score via the shared Media endpoints.
If the asset was predicted before (status is done), calling this endpoint again re-runs prediction and frame-level metrics (FRT).
