PureCipher Video API
The Video API from PureCipher — 14 operation(s) for video.
The Video API from PureCipher — 14 operation(s) for video.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/purecipher-com:purecipher-com-video-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Omniseal™ API Documentation Video API
version: '2.0'
tags:
- name: Video
paths:
/api/v1/video/embed:
post:
tags:
- Video
summary: Embed Secret File into a Video Container
description: Embeds a confidential file within the video stream without affecting its perceptual quality. Supports sectional insertion, redundancy, and post-processing compression for secure delivery.
operationId: embed_watermark_api_v1_video_embed_post
security:
- APIKeyHeader: []
parameters:
- name: start_frame
in: query
required: false
schema:
type: integer
description: Start frame for sectional embedding
title: Start Frame
description: Start frame for sectional embedding
- name: end_frame
in: query
required: false
schema:
type: integer
description: End frame for sectional embedding
title: End Frame
description: End frame for sectional embedding
- name: redundant
in: query
required: false
schema:
type: boolean
description: Whether to include secret file multiple times
default: false
title: Redundant
description: Whether to include secret file multiple times
- name: optimize_compression
in: query
required: false
schema:
type: boolean
description: Whether to apply perceptual compression optimization
default: true
title: Optimize Compression
description: Whether to apply perceptual compression optimization
- name: compression_bitrate
in: query
required: false
schema:
type: integer
description: Target bitrate for compression in bits per second
default: 8000000
title: Compression Bitrate
description: Target bitrate for compression in bits per second
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_embed_watermark_api_v1_video_embed_post'
examples:
Curl:
summary: Curl
value:
- curl -X POST 'https://api.purecipher.com/video/embed' \
- '-H ''accept: video/mp4'' \'
- -F 'cover_file=@cover.mp4' \
- -F 'secret_file=@secret.txt' \
- --output watermarked.mp4
Python:
summary: Python
value:
- import requests
- files = {
- ' ''cover_file'': open(''cover.mp4'', ''rb''),'
- ' ''secret_file'': open(''secret.txt'', ''rb'')'
- '}'
- response = requests.post('https://api.purecipher.com/video/embed', files=files)
- 'with open(''watermarked.mp4'', ''wb'') as f:'
- ' f.write(response.content)'
JavaScript (Node.js):
summary: JavaScript (Node.js)
value:
- const FormData = require('form-data');
- const fs = require('fs');
- const https = require('https');
- const form = new FormData();
- form.append('cover_file', fs.createReadStream('cover.mp4'));
- form.append('secret_file', fs.createReadStream('secret.txt'));
- const options = {
- ' method: ''POST'','
- ' host: ''api.purecipher.com'','
- ' path: ''/video/embed'','
- ' headers: form.getHeaders()'
- '};'
- const req = https.request(options, (res) => {
- ' const fileStream = fs.createWriteStream(''watermarked.mp4'');'
- ' res.pipe(fileStream);'
- '});'
- form.pipe(req);
- req.on('error', (err) => {
- ' console.error(err);'
- '});'
Go:
summary: Go
value:
- package main;
- import (
- ' "bytes"'
- ' "fmt"'
- ' "mime/multipart"'
- ' "net/http"'
- ' "os"'
- )
- func main() {
- ' body := &bytes.Buffer{}'
- ' writer := multipart.NewWriter(body)'
- ' coverFile, _ := os.Open(''cover.mp4'')'
- ' defer coverFile.Close()'
- ' part, _ := writer.CreateFormFile(''cover_file'', ''cover.mp4'')'
- ' _, _ = io.Copy(part, coverFile)'
- ' secretFile, _ := os.Open(''secret.txt'')'
- ' defer secretFile.Close()'
- ' part, _ = writer.CreateFormFile(''secret_file'', ''secret.txt'')'
- ' _, _ = io.Copy(part, secretFile)'
- ' writer.Close()'
- ' req, _ := http.NewRequest(''POST'', ''https://api.purecipher.com/video/embed'', body)'
- ' req.Header.Set(''Content-Type'', writer.FormDataContentType())'
- ' client := &http.Client{}'
- ' resp, _ := client.Do(req)'
- ' defer resp.Body.Close()'
- ' outFile, _ := os.Create(''watermarked.mp4'')'
- ' defer outFile.Close()'
- ' io.Copy(outFile, resp.Body)'
- ' fmt.Println(''Video embedded successfully'')'
- '}'
.NET (C#):
summary: .NET (C#)
value:
- using System;
- using System.Net.Http;
- using System.IO;
- using System.Threading.Tasks;
- class Program {
- ' private static async Task Main() {'
- ' var client = new HttpClient();'
- ' var form = new MultipartFormDataContent();'
- ' var coverContent = new StreamContent(File.OpenRead(''cover.mp4''));'
- ' form.Add(coverContent, ''cover_file'', ''cover.mp4'');'
- ' var secretContent = new StreamContent(File.OpenRead(''secret.txt''));'
- ' form.Add(secretContent, ''secret_file'', ''secret.txt'');'
- ' var response = await client.PostAsync(''https://api.purecipher.com/video/embed'', form);'
- ' using (var fs = new FileStream(''watermarked.mp4'', FileMode.Create)) {'
- ' await response.Content.CopyToAsync(fs);'
- ' }'
- ' Console.WriteLine(''Video embedded successfully'');'
- ' }'
- '}'
responses:
'200':
description: Video file with embedded secret returned as a stream.
content:
application/json:
schema: {}
video/mp4:
example: <binary mp4 data>
'400':
description: Bad Request - Invalid Video Format or Parameters
content:
application/json:
example:
detail: Invalid video format.
'500':
description: Internal Server Error - Embedding Failure
content:
application/json:
example:
detail: Internal Server Error
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/video/verify:
post:
tags:
- Video
summary: Verify Embedded Signal in Video
description: Analyzes the video to detect the presence of an embedded content. Useful for checking authenticity or detecting tampering of the video stream.
operationId: verify_watermark_api_v1_video_verify_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DetectRequest'
examples:
Curl:
summary: Curl
value:
- 'curl -X POST ''https://api.purecipher.com/video/verify'' \ '
- '-H ''accept: application/json'' \ '
- -F 'file=@watermarked.mp4'
Python:
summary: Python
value:
- import requests
- 'files = {''file'': open(''watermarked.mp4'', ''rb'')}'
- response = requests.post('https://api.purecipher.com/video/verify', files=files)
- print(response.json())
JavaScript (Node.js):
summary: JavaScript (Node.js)
value:
- const FormData = require('form-data');
- const fs = require('fs');
- const https = require('https');
- const form = new FormData();
- form.append('file', fs.createReadStream('watermarked.mp4'));
- const options = {
- ' method: ''POST'','
- ' host: ''api.purecipher.com'','
- ' path: ''/video/verify'','
- ' headers: form.getHeaders()'
- '};'
- const req = https.request(options, (res) => {
- ' res.on(''data'', (d) => process.stdout.write(d));'
- '});'
- form.pipe(req);
- req.on('error', (err) => {
- ' console.error(err);'
- '});'
Go:
summary: Go
value:
- package main;
- import (
- ' "bytes"'
- ' "fmt"'
- ' "mime/multipart"'
- ' "net/http"'
- ' "os"'
- )
- func main() {
- ' body := &bytes.Buffer{}'
- ' writer := multipart.NewWriter(body)'
- ' file, _ := os.Open(''watermarked.mp4'')'
- ' defer file.Close()'
- ' part, _ := writer.CreateFormFile(''file'', ''watermarked.mp4'')'
- ' _, _ = io.Copy(part, file)'
- ' writer.Close()'
- ' req, _ := http.NewRequest(''POST'', ''https://api.purecipher.com/video/verify'', body)'
- ' req.Header.Set(''Content-Type'', writer.FormDataContentType())'
- ' client := &http.Client{}'
- ' resp, _ := client.Do(req)'
- ' defer resp.Body.Close()'
- ' buf := new(bytes.Buffer)'
- ' buf.ReadFrom(resp.Body)'
- ' fmt.Println(buf.String())'
- '}'
.NET (C#):
summary: .NET (C#)
value:
- using System;
- using System.Net.Http;
- using System.IO;
- using System.Threading.Tasks;
- class Program {
- ' private static async Task Main() {'
- ' var client = new HttpClient();'
- ' var form = new MultipartFormDataContent();'
- ' var fileContent = new StreamContent(File.OpenRead(''watermarked.mp4''));'
- ' form.Add(fileContent, ''file'', ''watermarked.mp4'');'
- ' var response = await client.PostAsync(''https://api.purecipher.com/video/verify'', form);'
- ' Console.WriteLine(await response.Content.ReadAsStringAsync());'
- ' }'
- '}'
required: true
responses:
'200':
description: Watermark detection result.
content:
application/json:
schema: {}
example:
watermark_probability: 0.95
timestamp: '2024-04-01T12:00:00'
'400':
description: Bad Request - Invalid Video Format
content:
application/json:
example:
detail: Invalid video format.
'500':
description: Internal Server Error - Detection Failure
content:
application/json:
example:
detail: Internal Server Error
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/api/v1/video/retrieve:
post:
tags:
- Video
summary: Extract Embedded content from Video
description: Extracts the embedded content from the video stream, returning the binary content for inspection or validation.
operationId: retrieve_watermark_api_v1_video_retrieve_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DetectRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/api/v1/video/convert:
post:
tags:
- Video
summary: Convert Video Format
description: Converts the uploaded video to a target format (e.g., MP4), maintaining resolution and visual fidelity.
operationId: convert_video_api_v1_video_convert_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ConvertRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/api/v1/video/test-robustness:
post:
tags:
- Video
summary: Evaluate Signal Robustness in Video
description: Applies various transformations (e.g., noise, pitch shift) to test if the embedded signal remains detectable under typical video processing scenarios.
operationId: test_robustness_api_v1_video_test_robustness_post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_test_robustness_api_v1_video_test_robustness_post'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/api/v1/video/detect-removal:
post:
tags:
- Video
summary: Detect Signal Tampering in Video
description: Checks whether embedded signals have been altered or removed. Useful for forensic analysis or video authenticity checks.
operationId: detect_removal_api_v1_video_detect_removal_post
security:
- APIKeyHeader: []
parameters:
- name: threshold
in: query
required: false
schema:
type: number
description: Detection threshold (0.0 to 1.0)
default: 0.5
title: Threshold
description: Detection threshold (0.0 to 1.0)
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_detect_removal_api_v1_video_detect_removal_post'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/video/compress-video:
post:
tags:
- Video
summary: Compress Video for Efficient Delivery
description: Applies perceptual compression to reduce file size while retaining embedded content and visual integrity.
operationId: compress_video_api_v1_video_compress_video_post
security:
- APIKeyHeader: []
parameters:
- name: bitrate
in: query
required: false
schema:
type: integer
description: Target bitrate for compression in bits per second
default: 8000000
title: Bitrate
description: Target bitrate for compression in bits per second
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_compress_video_api_v1_video_compress_video_post'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/video/remove:
post:
tags:
- Video
summary: Remove Embedded Content from Video
description: Attempts to clean embedded content from the video file, restoring it to its original form while maintaining visual quality.
operationId: remove_watermark_api_v1_video_remove_post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_remove_watermark_api_v1_video_remove_post'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/api/v1/video/analyze:
post:
tags:
- Video
summary: Analyze Video File Details
description: Provides comprehensive analysis of a video file including technical specifications, visual features, motion characteristics, and watermark detection.
operationId: analyze_video_api_v1_video_analyze_post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_analyze_video_api_v1_video_analyze_post'
required: true
responses:
'200':
description: Detailed video analysis results
content:
application/json:
schema: {}
example:
basic_info:
filename: example.mp4
duration: 120.5
frame_rate: 30.0
resolution: 1920x1080
total_frames: 3615
format: MP4
file_size: 123456789
bitrate: 8000000
codec: h264
audio_codec: aac
audio_channels: 2
audio_sample_rate: 44100
visual_features:
brightness:
mean: 0.65
std: 0.15
contrast:
mean: 0.75
std: 0.1
color_distribution:
red:
mean: 0.4
std: 0.1
green:
mean: 0.4
std: 0.1
blue:
mean: 0.4
std: 0.1
edge_density:
mean: 0.3
std: 0.05
texture_complexity:
mean: 0.6
std: 0.1
motion_features:
motion_vectors:
mean_magnitude: 2.5
std_magnitude: 1.2
dominant_direction: 45.0
scene_changes:
total_count: 15
average_interval: 8.0
detection_confidence: 0.85
optical_flow:
mean_flow: 1.5
std_flow: 0.8
flow_consistency: 0.7
quality_metrics:
psnr: 35.5
ssim: 0.95
blockiness: 0.02
blurriness: 0.05
noise_level: 0.03
watermark_info:
has_watermark: true
confidence: 0.95
watermark_type: standard
detection_timestamp: '2024-04-01T12:00:00'
detection_method: videoseal_detector
'400':
description: Bad Request - Invalid Video Format
content:
application/json:
example:
detail: Invalid video format.
'500':
description: Internal Server Error - Analysis Failure
content:
application/json:
example:
detail: Internal Server Error
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/ws/video/streaming:
get:
summary: Basic Video Streaming
description: WebSocket endpoint for basic video streaming
tags:
- Video
responses:
'101':
description: Switching Protocols
content:
application/json:
schema:
$ref: '#/components/schemas/WebSocketMessage'
operationId: getWsVideoStreaming
x-operation-id-source: derived
/ws/video/streaming/embed:
get:
summary: Embed Watermark in Streaming Video
description: WebSocket endpoint for embedding watermark in streaming video
tags:
- Video
responses:
'101':
description: Switching Protocols
content:
application/json:
schema:
$ref: '#/components/schemas/WebSocketMessage'
operationId: getWsVideoStreamingEmbed
x-operation-id-source: derived
/ws/video/streaming/remove:
get:
summary: Remove Watermark from Streaming Video
description: WebSocket endpoint for removing watermark from streaming video
tags:
- Video
responses:
'101':
description: Switching Protocols
content:
application/json:
schema:
$ref: '#/components/schemas/WebSocketMessage'
operationId: getWsVideoStreamingRemove
x-operation-id-source: derived
/ws/video/streaming/verify:
get:
summary: Verify Watermark in Streaming Video
description: WebSocket endpoint for verifying watermark in streaming video
tags:
- Video
responses:
'101':
description: Switching Protocols
content:
application/json:
schema:
$ref: '#/components/schemas/WebSocketMessage'
operationId: getWsVideoStreamingVerify
x-operation-id-source: derived
/ws/video/streaming/retrieve:
get:
summary: Retrieve Watermark from Streaming Video
description: WebSocket endpoint for retrieving watermark data from streaming video
tags:
- Video
responses:
'101':
description: Switching Protocols
content:
application/json:
schema:
$ref: '#/components/schemas/WebSocketMessage'
operationId: getWsVideoStreamingRetrieve
x-operation-id-source: derived
components:
schemas:
Body_compress_video_api_v1_video_compress_video_post:
properties:
file:
type: string
format: binary
title: File
type: object
required:
- file
title: Body_compress_video_api_v1_video_compress_video_post
Body_remove_watermark_api_v1_video_remove_post:
properties:
file:
type: string
format: binary
title: File
type: object
required:
- file
title: Body_remove_watermark_api_v1_video_remove_post
ConvertRequest:
properties:
file:
type: string
format: binary
title: File
description: The video file to be converted.
format:
type: string
title: Format
description: The target format for conversion.
default: mp4
type: object
required:
- file
title: ConvertRequest
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
Body_detect_removal_api_v1_video_detect_removal_post:
properties:
file:
type: string
format: binary
title: File
type: object
required:
- file
title: Body_detect_removal_api_v1_video_detect_removal_post
Body_test_robustness_api_v1_video_test_robustness_post:
properties:
file:
type: string
format: binary
title: File
transformations:
items:
type: string
type: array
title: Transformations
default:
- add_noise
- compression
- pitch_shift
- time_stretch
type: object
required:
- file
title: Body_test_robustness_api_v1_video_test_robustness_post
Body_embed_watermark_api_v1_video_embed_post:
properties:
cover_file:
type: string
format: binary
title: Cover File
description: The cover video file
secret_file:
type: string
format: binary
title: Secret File
description: The secret file to be embedded
type: object
required:
- cover_file
- secret_file
title: Body_embed_watermark_api_v1_video_embed_post
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
WebSocketMessage:
type: object
properties:
type:
type: string
enum:
- video_chunk
- error
- result
description: Type of message
data:
type: string
description: Base64 encoded video chunk or error message
watermark_probability:
type: number
description: Probability of watermark presence (0-1)
DetectRequest:
properties:
file:
type: string
format: binary
title: File
description: The video file to detect watermark from.
type: object
required:
- file
title: DetectRequest
Body_analyze_video_api_v1_video_analyze_post:
properties:
video_file:
type: string
format: binary
title: Video File
description: The video file to analyze
type: object
required:
- video_file
title: Body_analyze_video_api_v1_video_analyze_post
securitySchemes:
APIKeyHeader:
type: apiKey
in: header
name: api_token
x-tagGroups:
- name: General
tags:
- Registration
- Health and Readiness
- name: Release 3
tags:
- Audio
- Video
- name: Release 2
tags:
- Unified API
- Edix12
- Data Lineage
- Data Provenance
- Base64
- name: Release 1
tags:
- Signature
- Encryption
- Hash
- Steganography