Sync.so React 1 Serverless API

React-1 transforms video performances by editing actors' emotions with unmatched precision and realism.

~347.65s
~$1.978
 1import requests
 2import json
 3
 4url = "https://api.segmind.com/v1/sync.so-react-1"
 5headers = {
 6    "x-api-key": "YOUR_API_KEY",
 7    "Content-Type": "application/json"
 8}
 9
10data = {
11    "video_url": "https://segmind-resources.s3.amazonaws.com/output/d4aba4f5-40fe-44fa-98bf-75d1b22e766d-react-input.mp4",
12    "audio_url": "https://segmind-resources.s3.amazonaws.com/output/487a2a38-3d3b-4e9b-8b84-eebbbd242c73-react-audio.mp3",
13    "sync_mode": "bounce",
14    "model_mode": "face",
15    "prompt": "happy",
16    "temperature": 0.5,
17    "auto_active_speaker_detection": false,
18    "occlusion_detection_enabled": false
19}
20
21response = requests.post(url, headers=headers, json=data)
22
23if response.status_code == 200:
24    result = response.json()
25    print(json.dumps(result, indent=2))
26else:
27    print(f"Error: {response.status_code}")
28    print(response.text)

API Endpoint

POSThttps://api.segmind.com/v1/sync.so-react-1

Parameters

audio_urlrequired
string (uri)

URL for audio synchronization. Use clear files for precision.

video_urlrequired
string (uri)

URL for video synchronization. Use high-resolution video links.

auto_active_speaker_detectionoptional
boolean

Enable to sync with multi-speaker videos.

Default: false
model_modeoptional
string

Select the edit region. 'Face' is ideal for general use.

Default: "face"
Allowed values :
"lips""face""head"
occlusion_detection_enabledoptional
boolean

Detects video occlusion. Disable for faster processing.

Default: false
promptoptional
string

Emotion to display on model. Use 'happy' for positive scenes.

Default: "happy"
Allowed values :
"happy""sad""angry""disgusted""surprised""neutral"
sync_modeoptional
string

Audio-video sync setting. Use 'bounce' for smooth looping.

Default: "bounce"
Allowed values :
"loop""bounce""cut_off""silence""remap"
temperatureoptional
number

Expression intensity. 0.5 gives balanced expressions.

Default: 0.5Range: 0 - 1

Response Type

Returns: Video

Common Error Codes

The API returns standard HTTP status codes. Detailed error messages are provided in the response body.

400

Bad Request

Invalid parameters or request format

401

Unauthorized

Missing or invalid API key

403

Forbidden

Insufficient permissions

404

Not Found

Model or endpoint not found

406

Insufficient Credits

Not enough credits to process request

429

Rate Limited

Too many requests

500

Server Error

Internal server error

502

Bad Gateway

Service temporarily unavailable

504

Timeout

Request timed out