Create a video edit
Edits one video (any aspect ratio, up to 60 minutes): word-by-word captions, magic zooms, stock b-roll, silence and filler removal, clean audio, hook title, music and your brand template. Every field is checked before any charge (422 naming it). Returns 202 Accepted with an edit_uid; the edit becomes ready (open it with editor_url) and can then be exported with POST /v1/edits//export, or set auto_export to export straight away. Pass webhook_url to be told when it is ready and when it is exported. Billed per source minute (rounded up): 1 minute up front, the rest once the length is known; clean audio and exports are billed per minute too. A failed edit is refunded, except when the video is over 60 minutes or your wallet cannot pay the rest: then the first minute is kept for the download and checks already done. Requires scope videos:write.
curl --request POST \
--url https://api.smartlyq.com/v1/edits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://cdn.example.com/videos/launch.mp4",
"title": "Product launch",
"settings": {
"caption_style": "word-pop",
"magic_zooms": true,
"magic_broll": true,
"remove_silence": "natural",
"remove_fillers": true
},
"webhook_url": "https://example.com/hooks/smartlyq"
}
'import requests
url = "https://api.smartlyq.com/v1/edits"
payload = {
"video_url": "https://cdn.example.com/videos/launch.mp4",
"title": "Product launch",
"settings": {
"caption_style": "word-pop",
"magic_zooms": True,
"magic_broll": True,
"remove_silence": "natural",
"remove_fillers": True
},
"webhook_url": "https://example.com/hooks/smartlyq"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
video_url: 'https://cdn.example.com/videos/launch.mp4',
title: 'Product launch',
settings: {
caption_style: 'word-pop',
magic_zooms: true,
magic_broll: true,
remove_silence: 'natural',
remove_fillers: true
},
webhook_url: 'https://example.com/hooks/smartlyq'
})
};
fetch('https://api.smartlyq.com/v1/edits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smartlyq.com/v1/edits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'video_url' => 'https://cdn.example.com/videos/launch.mp4',
'title' => 'Product launch',
'settings' => [
'caption_style' => 'word-pop',
'magic_zooms' => true,
'magic_broll' => true,
'remove_silence' => 'natural',
'remove_fillers' => true
],
'webhook_url' => 'https://example.com/hooks/smartlyq'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.smartlyq.com/v1/edits"
payload := strings.NewReader("{\n \"video_url\": \"https://cdn.example.com/videos/launch.mp4\",\n \"title\": \"Product launch\",\n \"settings\": {\n \"caption_style\": \"word-pop\",\n \"magic_zooms\": true,\n \"magic_broll\": true,\n \"remove_silence\": \"natural\",\n \"remove_fillers\": true\n },\n \"webhook_url\": \"https://example.com/hooks/smartlyq\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.smartlyq.com/v1/edits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"video_url\": \"https://cdn.example.com/videos/launch.mp4\",\n \"title\": \"Product launch\",\n \"settings\": {\n \"caption_style\": \"word-pop\",\n \"magic_zooms\": true,\n \"magic_broll\": true,\n \"remove_silence\": \"natural\",\n \"remove_fillers\": true\n },\n \"webhook_url\": \"https://example.com/hooks/smartlyq\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartlyq.com/v1/edits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"video_url\": \"https://cdn.example.com/videos/launch.mp4\",\n \"title\": \"Product launch\",\n \"settings\": {\n \"caption_style\": \"word-pop\",\n \"magic_zooms\": true,\n \"magic_broll\": true,\n \"remove_silence\": \"natural\",\n \"remove_fillers\": true\n },\n \"webhook_url\": \"https://example.com/hooks/smartlyq\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"edit_uid": "4f1c9a2e7b3d4c5e8f9a0b1c2d3e4f5a",
"status": "queued",
"title": "Product launch",
"language": "auto",
"settings": {
"captions": true,
"caption_style": "word-pop",
"caption_position": "bottom",
"magic_zooms": true,
"magic_broll": true,
"broll_percentage": 40,
"remove_silence": "natural",
"remove_fillers": true,
"clean_audio": false
},
"auto_export": false,
"webhook_url": "https://example.com/hooks/smartlyq",
"webhook_secret": "whsec_********"
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-10-07T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Missing or malformed Authorization header",
"details": {}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "Wallet balance is insufficient for this request",
"details": {
"required": "0.0250",
"balance": "0.0100"
}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "INSUFFICIENT_SCOPE",
"message": "API key lacks required scope: social:write",
"details": {
"required_scope": "social:write"
}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Missing required fields: content, platforms.",
"details": {
"fields": [
"content",
"platforms"
]
}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}Authorizations
API key from Developer dashboard (Bearer token).
Body
Direct https media URL of the video (MP4/MOV/WebM).
255Spoken language: a code from GET /v1/languages, or "auto".
How the edit looks. Every key is optional; GET /v1/edits/options lists them with their defaults and allowed values. An unknown key or value is a 422 naming it (e.g. settings.caption_style).
Show child attributes
Show child attributes
Public https URL told when the edit is ready, exported or failed (job.completed / job.failed), signed with this edit's webhook_secret.
Export as soon as the edit is ready (export minutes are billed then).
curl --request POST \
--url https://api.smartlyq.com/v1/edits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://cdn.example.com/videos/launch.mp4",
"title": "Product launch",
"settings": {
"caption_style": "word-pop",
"magic_zooms": true,
"magic_broll": true,
"remove_silence": "natural",
"remove_fillers": true
},
"webhook_url": "https://example.com/hooks/smartlyq"
}
'import requests
url = "https://api.smartlyq.com/v1/edits"
payload = {
"video_url": "https://cdn.example.com/videos/launch.mp4",
"title": "Product launch",
"settings": {
"caption_style": "word-pop",
"magic_zooms": True,
"magic_broll": True,
"remove_silence": "natural",
"remove_fillers": True
},
"webhook_url": "https://example.com/hooks/smartlyq"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
video_url: 'https://cdn.example.com/videos/launch.mp4',
title: 'Product launch',
settings: {
caption_style: 'word-pop',
magic_zooms: true,
magic_broll: true,
remove_silence: 'natural',
remove_fillers: true
},
webhook_url: 'https://example.com/hooks/smartlyq'
})
};
fetch('https://api.smartlyq.com/v1/edits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smartlyq.com/v1/edits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'video_url' => 'https://cdn.example.com/videos/launch.mp4',
'title' => 'Product launch',
'settings' => [
'caption_style' => 'word-pop',
'magic_zooms' => true,
'magic_broll' => true,
'remove_silence' => 'natural',
'remove_fillers' => true
],
'webhook_url' => 'https://example.com/hooks/smartlyq'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.smartlyq.com/v1/edits"
payload := strings.NewReader("{\n \"video_url\": \"https://cdn.example.com/videos/launch.mp4\",\n \"title\": \"Product launch\",\n \"settings\": {\n \"caption_style\": \"word-pop\",\n \"magic_zooms\": true,\n \"magic_broll\": true,\n \"remove_silence\": \"natural\",\n \"remove_fillers\": true\n },\n \"webhook_url\": \"https://example.com/hooks/smartlyq\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.smartlyq.com/v1/edits")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"video_url\": \"https://cdn.example.com/videos/launch.mp4\",\n \"title\": \"Product launch\",\n \"settings\": {\n \"caption_style\": \"word-pop\",\n \"magic_zooms\": true,\n \"magic_broll\": true,\n \"remove_silence\": \"natural\",\n \"remove_fillers\": true\n },\n \"webhook_url\": \"https://example.com/hooks/smartlyq\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartlyq.com/v1/edits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"video_url\": \"https://cdn.example.com/videos/launch.mp4\",\n \"title\": \"Product launch\",\n \"settings\": {\n \"caption_style\": \"word-pop\",\n \"magic_zooms\": true,\n \"magic_broll\": true,\n \"remove_silence\": \"natural\",\n \"remove_fillers\": true\n },\n \"webhook_url\": \"https://example.com/hooks/smartlyq\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"edit_uid": "4f1c9a2e7b3d4c5e8f9a0b1c2d3e4f5a",
"status": "queued",
"title": "Product launch",
"language": "auto",
"settings": {
"captions": true,
"caption_style": "word-pop",
"caption_position": "bottom",
"magic_zooms": true,
"magic_broll": true,
"broll_percentage": 40,
"remove_silence": "natural",
"remove_fillers": true,
"clean_audio": false
},
"auto_export": false,
"webhook_url": "https://example.com/hooks/smartlyq",
"webhook_secret": "whsec_********"
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-10-07T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Missing or malformed Authorization header",
"details": {}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "Wallet balance is insufficient for this request",
"details": {
"required": "0.0250",
"balance": "0.0100"
}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "INSUFFICIENT_SCOPE",
"message": "API key lacks required scope: social:write",
"details": {
"required_scope": "social:write"
}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Missing required fields: content, platforms.",
"details": {
"fields": [
"content",
"platforms"
]
}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}
