Start video stream content moderation and logo detection with real-time processing.
duration: Video duration in seconds (5 seconds per segment)fps: Frames per second| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| url | string | Yes | - | Video stream URL (supports RTMP/RTSP/HLS) |
| enable_content_moderation | boolean | No | false | Enable content moderation |
| enable_logo_detection | boolean | No | false | Enable logo detection |
| fps | integer | No | 1 | Frames per second to process |
| max_logos | integer | No | 5 | Maximum number of logos to detect (1-50) |
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code (200 indicates success) |
| message | string | Response message describing the operation result |
| data | object | Response data object containing task information |
| data.task_id | string | Unique identifier of the stream processing task |
| data.message | string | Status message about the stream start |
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code (200 indicates success) |
| message | string | Response message (“SUCCESS”) |
| task_id | string | The task ID associated with this stream |
| data | object | Wrapper object containing processing results |
| data.status | integer | Status code (see Status Codes section below) |
| data.message | string | Status message describing the result |
| data.data | object | Segment processing results (null for error statuses) |
| data.data.segment_index | integer | Index of the processed segment (starts from 0) |
| data.data.start_time | string | Segment start time in seconds |
| data.data.end_time | string | Segment end time in seconds |
| data.data.video_url | string | URL of the processed video segment |
| data.data.content_moderation | object | Content moderation results |
| data.data.content_moderation.has_unsafe_content | boolean | Whether unsafe content was detected |
| data.data.content_moderation.frames_processed | integer | Number of frames processed |
| data.data.logo_detection | object | Logo detection results |
| data.data.logo_detection.has_logo | boolean | Whether logos were detected |
| data.data.logo_detection.logos | array | Array of detected logos (empty if none) |
| data.data.logo_detection.frames_processed | integer | Number of frames processed |
| data.data.processing_time_ms | string | Processing time in milliseconds |
| data.token | object | Token usage statistics (null for error statuses) |
| data.token.input | integer | Number of input tokens used |
| data.token.output | integer | Number of output tokens generated |
| data.token.total | integer | Total tokens used |
| data.token.video_tokens | integer | Tokens from video processing |
| data.token.text_tokens | integer | Tokens from text processing |
| Status | Name | Description | Stream Stopped |
|---|---|---|---|
| 0 | Success | Segment processed successfully | No |
| -1 | Error | Processing failed | No |
| 14 | User Stopped | User manually stopped the stream | Yes |
| 15 | No Data | Stream has no video data | Yes |
| 16 | Capacity Reached | Server capacity limit reached | Yes |
| 402 | Insufficient Balance | User balance insufficient | Yes |
Video stream URL (supports RTMP/RTSP)
"rtmp://example.com/live/stream"
Enable content moderation
Enable logo detection
Frames per second to process
x >= 1Maximum number of logos to detect (1-50)
1 <= x <= 50