Vionlabs Previews API
Vionlabs API for on-request assembling of previews results.
Get Previews
Deprecated[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.
In: header
Path Parameters
Customer identifier for a movie or series item in the catalog
Query Parameters
Previews version code
Select specific clip type to search for a specific mood or use any
"ANY""A" | "B" | "C" | "D" | "Q1" | "Q2" | "Q3" | "Q4" | "LA" | "HA" | "ANY" | "Funny and comical" | "High-octane action" | "Heartfelt" | "Epic scenery" | "Creepy and scary"Number of clips to produce. Note if clip criteria are too strict, fewer clips may be returned.
5Specifies which character(s) the clip should target. Characters are identified by integer ranks, where the main character is 0, secondary is 1 etc. Use CharacterSelector.NONE to allow clips with no criteria for character presence.To get multiple characters, use comma separated values, e.g. 1,2
"None"Minimum required probability of nudity. Increase this threshold to see clips with more nudity. Introduced in version 8.
00 <= value <= 1Maximum allowed probability of nudity in the clips. Introduced in version 8.
10 <= value <= 1Minimum required probability of spoken profanity. Introduced in version 8.
00 <= value <= 1Maximum allowed probability of spoken profanity in the clips. Introduced in version 8.
10 <= value <= 1Minimum allowed brightness in the clips.
00 <= value <= 1Maximum allowed brightness in the clips.
10 <= value <= 1Target length of the clips to produce, in seconds. Depending on other parameters, the final length of the clips may deviate from this value.
30Prevent clips from being selected from the beginning of the video, expressed as a percentage of video length.
100 <= value <= 100Prevent clips from being selected from the end of the video, expressed as a percentage of video length.
100 <= value <= 100Allow shortening the clip with this many seconds by ending it earlier, if a scene boundary was detected near the end of the clip.
00 <= valueAllow extending the clip with this many seconds by ending it later, if a scene boundary was detected near the end of the clip.
00 <= valueAllow extending the clip with this many seconds by starting the clip earlier if a scene boundary was detected near the start of the clip.
00 <= valueAllow shortening the clip with this many seconds by starting the clip later if a scene boundary was detected near the start of the clip.
00 <= valueAllow shortening the clip with this many seconds by ending it earlier, to avoid the clip ending mid-speech.
30 <= valueAllow extending the clip with this many seconds by ending the clip later, to avoid the clip ending mid-speech.
30 <= valueDefines a margin as to what constitutes as mid-speech at the end of the clip. Require this many seconds of silence before the clip end to be considered safe.
0Defines a margin as to what constitutes as mid-speech at the end of the clip. Require this many seconds of silence after the clip end to be considered safe.
0Allow extending the clip with this many seconds by starting it earlier, to avoid the clip starting mid-speech.
10 <= valueAllow shortening the clip with this many seconds by starting it later, to avoid the clip starting mid-speech.
10 <= valueDefines a margin as to what constitutes as mid-speech at the start of the clip. Require this many seconds of silence before the clip start to be considered safe.
0.5Defines a margin as to what constitutes as mid-speech at the start of the clip. Require this many seconds of silence after the clip start to be considered safe.
0.5Require this many seconds of separation between clips, in order to distribute the clips across the video and avoid overlaps.
60Search phrase describing the desired content of the clips.
If True, will add a set of keywords for each clip
trueInitiate asynchronous process of preview clips extraction
falseResponse Body
application/json
application/json
curl -X GET "https://example.com/results/jitpreviews/v1/string"{
"inventory_id": "string",
"type": "movie",
"vionlabs_id": "string",
"version_id": "string",
"gen_id": "string",
"jitpreview": [
{
"start_time": 0,
"stop_time": 0,
"relevance": 0,
"query_relevance": 0,
"search_query": "string",
"start_frame": 0,
"stop_frame": 0,
"characters": [],
"nudity": 0,
"profanity": 0,
"brightness": 0,
"valence": 0,
"arousal": 0,
"clip_index": 0,
"snapped_start": 0,
"snapped_stop": 0,
"clip_type": "A",
"environment": [
{}
],
"keywords": [
{}
],
"mood": [
{}
],
"start_speech_avoidance": 0,
"end_speech_avoidance": 0,
"type_score": 0,
"vionlabs_id": "string",
"inventory_id": "string",
"fps": 0,
"gen": {
"clip_path": "string",
"large_image_path": "string",
"small_image_path": "string"
}
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.
In: header
Path Parameters
Asynchronous gen task identifier
Response Body
application/json
application/json
curl -X GET "https://example.com/results/jitpreviews/v1/gen/string"{
"inventory_id": "string",
"type": "movie",
"vionlabs_id": "string",
"version_id": "string",
"gen_id": "string",
"context": {},
"jitpreview": [
{
"start_time": 0,
"stop_time": 0,
"start_frame": 0,
"stop_frame": 0,
"gen": {
"clip_path": "string",
"large_image_path": "string",
"small_image_path": "string",
"large_image_width": 0,
"large_image_height": 0,
"small_image_width": 0,
"small_image_height": 0
}
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.
In: header
Query Parameters
Previews version code
Response Body
application/json
application/json
curl -X GET "https://example.com/results/jitpreviews/v2/info/clip_types"{
"version": "string",
"clip_types": [
"string"
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.
In: header
Path Parameters
Customer identifier for a movie or series item in the catalog
Query Parameters
Previews version code
Specifies the preference for the specified character(s) in the clip. Use any to include clips with at least one character. Use None to allow clips without characters. Use avoid to avoid characters. Use any_of to include any of the characters from the character_list. Use all_of to include all of the characters from the character_list.
"any""any" | "any_of" | "all_of" | "None" | "avoid"Specifies the list of characters to include in the results when character_preference is set to any_of or all_ofTo select multiple characters, use a comma separated list of integers, e.g. 1,2.
Number of clips to produce. Note if clip criteria are too strict, fewer clips may be returned.
5Select specific clip type to search for a specific mood. Cannot be used together with search_query unless set to ANY.
"ANY""ANY" | "High-octane action" | "Exciting" | "Emotional" | "Dark & gritty" | "Gory & bloody" | "Epic" | "Scary" | "Romantic" | "Funny and comical" | "Heartfelt" | "Epic scenery" | "Creepy and scary"Minimum required probability of nudity. Increase this threshold to see clips with more nudity. Introduced in version 8.
00 <= value <= 1Maximum allowed probability of nudity in the clips. Introduced in version 8.
10 <= value <= 1Minimum required probability of spoken profanity. Introduced in version 8.
00 <= value <= 1Maximum allowed probability of spoken profanity in the clips. Introduced in version 8.
10 <= value <= 1Minimum allowed brightness in the clips.
00 <= value <= 1Maximum allowed brightness in the clips.
10 <= value <= 1Target length of the clips to produce, in seconds. Depending on other parameters, the final length of the clips may deviate from this value.
300 <= valuePrevent clips from being selected from the beginning of the video, expressed as a percentage of video length.
100 <= value <= 100Prevent clips from being selected from the end of the video, expressed as a percentage of video length.
100 <= value <= 100Allow extending the clip with this many seconds by starting it earlier, if a suitable boundary was detected near the start of the clip.
0Allow shortening the clip with this many seconds by starting it later, if a suitable boundary was detected near the start of the clip.
0Allow shortening the clip with this many seconds by ending it earlier, if a suitable boundary was detected near the end of the clip.
0Allow extending the clip with this many seconds by ending it later, if a suitable boundary was detected near the end of the clip.
0Allow shortening the clip with this many seconds by ending it earlier, if a scene boundary was detected near the end of the clip.DEPRECATED. Use end_bwd_snap_search instead.
00 <= valueAllow extending the clip with this many seconds by ending it later, if a scene boundary was detected near the end of the clip.DEPRECATED. Use end_fwd_snap_search instead.
00 <= valueAllow extending the clip with this many seconds by starting the clip earlier if a scene boundary was detected near the start of the clip.DEPRECATED. Use start_fwd_snap_search instead.
00 <= valueAllow shortening the clip with this many seconds by starting the clip later if a scene boundary was detected near the start of the clip.DEPRECATED. Use start_fwd_snap_search instead.
00 <= valueAllow shortening the clip with this many seconds by ending it earlier, to avoid the clip ending mid-speech.
30 <= valueAllow extending the clip with this many seconds by ending the clip later, to avoid the clip ending mid-speech.
30 <= valueDefines a margin as to what constitutes as mid-speech at the end of the clip. Require this many seconds of silence before the clip end to be considered safe.
0Defines a margin as to what constitutes as mid-speech at the end of the clip. Require this many seconds of silence after the clip end to be considered safe.
0Allow extending the clip with this many seconds by starting it earlier, to avoid the clip starting mid-speech.
10 <= valueAllow shortening the clip with this many seconds by starting it later, to avoid the clip starting mid-speech.
10 <= valueDefines a margin as to what constitutes as mid-speech at the start of the clip. Require this many seconds of silence before the clip start to be considered safe.
0.5Defines a margin as to what constitutes as mid-speech at the start of the clip. Require this many seconds of silence after the clip start to be considered safe.
0.5Require this many seconds of separation between clips, in order to distribute the clips across the video and avoid overlaps.
60Search phrase describing the desired content of the clips. Cannot be used together with clip_type unless clip_type is ANY.
If True, will add a set of keywords for each clip
trueInitiate asynchronous process of preview clips extraction. Only one of generate or generate_vertical can be True.DEPRECATED. Use trigger_generation instead.
falseInitiate asynchronous process of vertical preview clips extraction. Only one of generate or generate_vertical can be True. Only available for product version with vertical prefix.DEPRECATED. Use trigger_generation in conjunction with aspect_ratio instead.
falseTrigger the generation of preview clips.
falseAspect ratio of the preview clips. When set to 9:16, vertical conversion information is used. Only supported with versions with -vertical suffix.
"None""None" | "9:16"Start timestamp in seconds. When provided along with custom_stop_timestamp, returns a single preview clip at the specified time range, skipping the normal candidate discovery. Requires version 19 or higher.
Stop timestamp in seconds. When provided along with custom_start_timestamp, returns a single preview clip at the specified time range, skipping the normal candidate discovery. Requires version 19 or higher.
Response Body
application/json
application/json
curl -X GET "https://example.com/results/jitpreviews/v2/string"{
"status": "success",
"error": "string",
"updated": "2019-08-24T14:15:22Z",
"version_id": "string",
"inventory_id": "string",
"type": "movie",
"data": {
"inventory_id": "string",
"type": "movie",
"vionlabs_id": "string",
"version_id": "string",
"gen_id": "string",
"jitpreview": [
{
"start_time": 0,
"stop_time": 0,
"relevance": 0,
"query_relevance": 0,
"search_query": "string",
"start_frame": 0,
"stop_frame": 0,
"characters": [],
"nudity": 0,
"profanity": 0,
"brightness": 0,
"clip_index": 0,
"snapped_start": 0,
"snapped_stop": 0,
"clip_type": "ANY",
"environment": [
{}
],
"keywords": [],
"keyword": {},
"mood": [],
"mood_tag": {},
"start_speech_avoidance": 0,
"end_speech_avoidance": 0,
"type_score": 0,
"vionlabs_id": "string",
"inventory_id": "string",
"fps": 0,
"gen": {
"clip_path": "string",
"large_image_path": "string",
"small_image_path": "string"
},
"vertical_conversion": {
"coordinates": {
"property1": 0,
"property2": 0
},
"blackbars": [
0,
0
],
"start_buffer": {
"property1": 0,
"property2": 0
},
"end_buffer": {
"property1": 0,
"property2": 0
}
},
"source_frame_width": 0,
"source_frame_height": 0
}
]
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Get Genid
Deprecated[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.
In: header
Path Parameters
Asynchronous gen task identifier
Response Body
application/json
application/json
curl -X GET "https://example.com/results/jitpreviews/v2/gen/string"{
"inventory_id": "string",
"type": "movie",
"vionlabs_id": "string",
"version_id": "string",
"gen_id": "string",
"context": {},
"jitpreview": [
{
"start_time": 0,
"stop_time": 0,
"start_frame": 0,
"stop_frame": 0,
"gen": {
"clip_path": "string",
"large_image_path": "string",
"small_image_path": "string",
"large_image_width": 0,
"large_image_height": 0,
"small_image_width": 0,
"small_image_height": 0
}
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.
In: header
Path Parameters
Asynchronous gen task identifier
Response Body
application/json
application/json
curl -X GET "https://example.com/results/jitpreviews/v2/gen/string/status"{
"status": "success",
"data": {
"inventory_id": "string",
"type": "movie",
"vionlabs_id": "string",
"version_id": "string",
"gen_id": "string",
"context": {},
"jitpreview": [
{
"start_time": 0,
"stop_time": 0,
"start_frame": 0,
"stop_frame": 0,
"gen": {
"clip_path": "string",
"large_image_path": "string",
"small_image_path": "string",
"large_image_width": 0,
"large_image_height": 0,
"small_image_width": 0,
"small_image_height": 0
}
}
]
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.
In: header
Path Parameters
Customer identifier for a movie or series item in the catalog
Query Parameters
Previews version code
Response Body
application/json
application/json
curl -X GET "https://example.com/results/jitpreviews/v2/status/string"{
"status": "success",
"error": "string",
"updated": "2019-08-24T14:15:22Z",
"version_id": "string",
"inventory_id": "string",
"type": "movie"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}[DEPRECATED] API key authentication using the X-API-Key HTTP header. Use the 'key' query parameter (?key=YOUR_API_KEY) instead.
In: header
Query Parameters
Specifies start of time window (ISO 8601). If not specified then all results will be returned
Specifies end of time window (ISO 8601). If not specified then utcnow() value will be used.It is recommended to fix this argument while looping across pages to establish a fixed time window
Specifies a positional number of page with results
00 <= valueSpecifies a max number of results per page
10001 <= valuePreviews version code
Response Body
application/json
application/json
curl -X GET "https://example.com/results/jitpreviews/v2/"{
"page_num": 0,
"page_size": 0,
"total_count": 0,
"data": [
{
"status": "success",
"error": "string",
"updated": "2019-08-24T14:15:22Z",
"version_id": "string",
"inventory_id": "string",
"type": "movie"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}