Audio Library
Two kinds: music and sounds. Organized by genre/category with waveform and duration metadata.
JSONClip renders videos from one request: POST https://api.jsonclip.com/render. This page is the practical reference for humans and AI agents.
Send JSON with your API key. Use ?sync=1 when you want the final movie_url back in the same response.
curl -sS -X POST 'https://api.jsonclip.com/render?sync=1' \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
--data @- <<'JSON'
{
"env": "prod",
"movie": {
"format": { "width": 720, "height": 1280, "fps": 30, "background_color": "#000000" },
"scenes": [
{ "type": "image", "src": "https://cdn.example.com/media/cover.jpg", "duration_ms": 2000, "variable_name": "cover" }
],
"audio": [
{ "src": "https://cdn.example.com/audio/intro.mp3", "role": "music", "from_ms": 0, "to_ms": 2000, "fade_out_ms": 300 }
],
"effects": [{ "type": "zoom_in", "to_ms": 2000, "settings": { "strength": 1.1 } }],
"captions": { "style": "bold_center" }
}
}
JSONHosted https://api.jsonclip.com/render expects downloadable https://... media URLs in JSON mode. It cannot read your workstation path like /Users/me/file.png or file:///Users/me/file.png. Use optional env: "local" only when you intentionally target self-hosted/local workers that can access those paths.
https://... assets for scenes[].src, overlays[].src, audio[].src, and captions.src.files[] and reference them by uploaded basename such as look_01.jpg.file://... paths when the renderer process can reach that filesystem../cover.jpg, /tmp/cover.jpg, and file:///tmp/cover.jpg all resolve to uploaded cover.jpg.You can upload local media files and render in one call. Send multipart/form-data with files[] and render_config. This is the hosted API flow for assets that only exist on your machine.
DIR=./looks
curl -sS -X POST 'https://api.jsonclip.com/render?sync=1' \
-H "X-API-Key: YOUR_API_KEY" \
--form-string "render_config=$(cat <<'JSON'
{
"env": "prod",
"movie": {
"format": { "width": 720, "height": 1280, "fps": 30, "background_color": "#000000" },
"scenes": [
{ "type": "image", "src": "look_01.jpg", "duration_ms": 1200, "transition_out": { "type": "white_strobe", "duration_ms": 300 } },
{ "type": "image", "src": "look_02.jpg", "duration_ms": 1200, "transition_out": { "type": "glitch", "duration_ms": 260 } },
{ "type": "image", "src": "look_03.jpg", "duration_ms": 1200, "transition_out": { "type": "tremble_shrink", "duration_ms": 320 } },
{ "type": "image", "src": "look_04.jpg", "duration_ms": 1200 }
],
"overlays": [
{
"type": "text",
"text": "SPRING DROP",
"from_ms": 120,
"to_ms": 1800,
"position_px": { "x": 360, "y": 140 },
"width_px": 560,
"style": { "font": "Avenir Next", "size_px": 64, "bold": true, "case": "upper", "align": "center", "color": "#ffffff" },
"stroke": { "color": "#000000", "width_px": 5 }
}
],
"effects": [
{ "type": "zoom_in", "from_ms": 0, "to_ms": 1800, "settings": { "strength": 1.08 } },
{ "type": "panel_flash_2", "from_ms": 1800, "to_ms": 3600 },
{ "type": "fade_out", "from_ms": 4200, "to_ms": 4800 }
]
}
}
}
JSON
)" \
-F "files[]=@$DIR/look_01.jpg" \
-F "files[]=@$DIR/look_02.jpg" \
-F "files[]=@$DIR/look_03.jpg" \
-F "files[]=@$DIR/look_04.jpg"Every local src inside render_config must match one uploaded file basename. The plain-text docs include a longer 20-image fashion-reel example using the same pattern.
POST /render?sync=1 or top-level "sync": true waits for completion and returns final fields like movie_url and duration_ms.src.?sync=1 or "sync": true.Active transitions: loading.... Active effects: loading.... Discovery endpoints: GET /ui/public/library/transitions and GET /ui/public/library/effects.
Top-level request fields:
| Field | Type | Required | Notes |
|---|---|---|---|
env | "prod" | "local" | No | Worker queue target. Default is `prod`. |
sync | boolean | No | If true, wait for final render result. Query param `?sync=1` is also supported. |
movie | object | Yes | Movie payload object described below. |
| Field | Type | Required | Notes |
|---|---|---|---|
format | object | No | Output canvas. Defaults: 720x1280 @ 30fps, #000000. |
scenes | array<MovieScene> | No | Main timeline sequence (image/video scenes). |
overlays | array<MovieOverlay> | No | Elements drawn above scenes (image/video/text). |
audio | array<MovieAudio> | No | Music/voice/sound layers on timeline. |
effects | array<MovieEffect> | No | Visual effects lane with timing + settings. |
captions | MovieCaptions | No | Subtitles/captions from external file or inline cues. |
{
"env": "prod",
"sync": true,
"movie": {
"format": {
"width": 1080,
"height": 1920,
"fps": 30,
"background_color": "#000000"
},
"scenes": [],
"overlays": [],
"audio": [],
"effects": [],
"captions": {
"style": "bold_center",
"cues": []
}
}
}Default assets are ready out of the box. Use them directly in editor or via API payloads.
Two kinds: music and sounds. Organized by genre/category with waveform and duration metadata.
Fast cinematic cuts, flashes, glitch, mirror slides, and tremble transitions with default durations.
Camera-motion, flash/glitch, blur/vignette, and transparent overlay effects with per-effect settings.
Multiple curated caption presets for top/bottom headlines, boxed variants, karaoke styles, and minimal subtitles.
Scenes build the base timeline. Each scene can define transition and motion keyframes.
| Field | Type | Required | Notes |
|---|---|---|---|
type | "image" | "video" | Yes | Scene source kind. |
src | string | Yes | Hosted API: downloadable URL or uploaded basename. Self-hosted/local renderers may also use `file://...`. |
duration_ms | number | No | Scene length. Default: 5000ms. |
variable_name | string | No | Optional variable key for downstream automation. |
transition_out | object | No | Outgoing transition to next scene. |
transform | array<MovieTransformKeyframe> | No | Keyframed motion on absolute movie timeline. |
Transition object fields:
| Field | Type | Required | Notes |
|---|---|---|---|
type | string | Yes | Transition type from supported catalog. |
duration_ms | number | Yes | Transition duration in milliseconds; must be > 0. |
Active transition types: loading....
| Type | Label | Default Duration | Best for |
|---|---|---|---|
| No active transitions available. | |||
Effects run on timeline intervals and are configured in effects[].settings.
| Field | Type | Required | Notes |
|---|---|---|---|
type | string | Yes | Effect type from supported catalog. |
from_ms | number | No | Effect start on timeline. |
to_ms | number | No | Effect end timestamp. |
duration_ms | number | No | Alternative to `to_ms` (default 9000ms). |
settings.speed | number | By effect | Speed control for effects that support it. |
settings.strength | number | By effect | Intensity scalar/unit for most effects. |
settings.opacity_pct | 0..100 | Opacity-mode effects | Used by film_grain/chalky_doodle/crowded_interview. |
settings.overlay_video_url | string | No | Optional overlay source override for compatible effects. |
settings.amount | number | Legacy | Compatibility key; current effect catalog does not require it. |
For opacity-mode effects (none), use settings.opacity_pct instead of settings.strength.
Active effect types: loading....
| Type | Label | Family | Default Duration | speed | strength | Mode |
|---|---|---|---|---|---|---|
| No active effects available. | ||||||
Overlays are rendered above scenes and effects, so they are ideal for final titles, logos, and text callouts.
| Field | Type | Required | Notes |
|---|---|---|---|
type | "image" | "video" | "text" | Yes | Overlay element type. |
src | string | For image/video | Hosted API: downloadable URL or uploaded basename. Self-hosted/local renderers may also use `file://...`. |
text | string | For text | Displayed text content. |
variable_name | string | No | Optional variable key for downstream automation. |
from_ms | number | No | Start time on movie timeline (default 0). |
to_ms | number | No | End time. Use `to_ms` or `duration_ms`. |
duration_ms | number | No | Alternative to `to_ms`. |
position_px | {x:number,y:number} | Yes | Center anchor in pixels. |
width_px | number | No | Overlay width in pixels. |
opacity_pct | 0..100 | No | Base opacity percentage. |
fade_in_ms | number | No | Fade-in length. |
fade_out_ms | number | No | Fade-out length. |
style/stroke/shadow/glow/background | objects | No | Text styling objects (text overlays). |
transform | array<MovieTransformKeyframe> | No | Overlay motion keyframes (absolute `at_ms`). |
| Field | Type | Required | Notes |
|---|---|---|---|
style.font | string | No | Font family name. |
style.size_px | number | No | Text size in pixels. |
style.bold / italic / underline | boolean | No | Font toggles. |
style.case | "normal" | "upper" | "lower" | No | Case transform. |
style.align | "left" | "center" | "right" | No | Text alignment. |
style.color | string | No | Text color (hex/rgb string). |
style.character_spacing_px | number | No | Character spacing in px. |
style.line_spacing_px | number | No | Line spacing in px. |
stroke | {color,width_px} | No | Text stroke. |
shadow | {color,opacity_pct,blur_pct,distance_px,angle_deg} | No | Drop shadow. |
glow | {color,intensity_pct,range_pct,offset_x_px,offset_y_px} | No | Glow effect. |
background | {enabled,color,opacity_pct,corner_radius_pct,height_pct,width_pct,x_offset_pct,y_offset_pct} | No | Background box behind text. |
Audio items can be narration, music beds, or short sound effects. Mix with volume_db, fades, trimming, and ducking.
| Field | Type | Required | Notes |
|---|---|---|---|
src | string | Yes | Hosted API: downloadable URL or uploaded basename. Self-hosted/local renderers may also use `file://...`. |
role | string | No | Recommended: `voice`, `music`, `sound`. |
variable_name | string | No | Optional variable key for downstream automation. |
from_ms | number | No | Audio start on movie timeline. |
in_ms | number | No | Trim start inside the source audio file. |
to_ms | number | No | Audio end timestamp. |
duration_ms | number | No | Alternative to `to_ms`. |
volume_db | number | No | Gain in dB (negative to lower volume). |
fade_in_ms / fade_out_ms | number | No | Audio fades in/out. |
duck_under_voice | boolean | No | Reduce this track while voice is active. |
{
"src": "https://store.jsonclip.com/jsonclip/libraries/audio/pixabay/action/song.mp3",
"role": "music",
"variable_name": "music_main",
"from_ms": 0,
"in_ms": 1200,
"to_ms": 15000,
"volume_db": -3,
"fade_in_ms": 250,
"fade_out_ms": 1200,
"duck_under_voice": false
}Captions support inline cue arrays and external subtitle files. Inline cues take priority when both are present.
| Field | Type | Required | Notes |
|---|---|---|---|
style | string | No | Caption style preset id from the built-in catalog below. |
src | string | No | Hosted API: downloadable URL or uploaded basename. Self-hosted/local renderers may also use `file://...`. |
format | "srt" | "vtt" | "ass" | When `src` is used | Subtitle format. |
cues | array<{from_ms,to_ms,text}> | No | Inline cues. If provided, cues are used over file subtitles. |
| Preset ID | Name | Description | Sample |
|---|---|---|---|
bold_center | Bold Center | High-impact center title | THE QUICK |
minimal_bottom | Minimal Bottom | Clean subtitles near bottom | The quick brown fox |
boxed_black | Boxed Black | Strong white uppercase | QUICK |
karaoke_basic | Karaoke Basic | Warm karaoke highlight | Karaoke |
bold_bottom | Bold Bottom | High-contrast bottom captions | SAMPLE TEXT |
soft_box_bottom | Soft Box Bottom | Rounded dark subtitle card | Sample text |
yellow_highlight_bottom | Yellow Highlight | Black text with yellow stripe | Sample text |
red_alert_bottom | Red Alert | Breaking-style red badge | SAMPLE TEXT |
cinema_serif_bottom | Cinema Serif | Elegant cinematic subtitle | Sample text |
neon_cyan_bottom | Neon Cyan | Electric cyan glow | SAMPLE TEXT |
neon_pink_bottom | Neon Pink | Pop pink glow style | SAMPLE TEXT |
mono_bottom | Mono Bottom | Technical mono subtitle | SAMPLE TEXT |
top_news_white | Top News White | Top white headline bar | HEADLINE |
top_news_blue | Top News Blue | Top blue broadcast bar | HEADLINE |
Transforms can be attached to scenes and overlays for pan/zoom/rotation choreography.
| Field | Type | Required | Notes |
|---|---|---|---|
at_ms | number | Yes | Absolute time on movie timeline. |
x_px / y_px | number | Yes | Object center position in pixels. |
scale | number | Yes | 1.0 = 100% size. |
rotate_deg | number | Yes | Rotation in degrees. |
opacity_pct | 0..100 | Yes | Per-keyframe opacity target. |
To stay current with default library metadata, query these endpoints before generating JSON:
curl -H "X-API-Key: YOUR_API_KEY" https://api.jsonclip.com/ui/library/audios
curl -H "X-API-Key: YOUR_API_KEY" https://api.jsonclip.com/ui/library/transitions
curl -H "X-API-Key: YOUR_API_KEY" https://api.jsonclip.com/ui/library/effects
curl -H "X-API-Key: YOUR_API_KEY" https://api.jsonclip.com/ui/effects-tags
curl -H "X-API-Key: YOUR_API_KEY" https://api.jsonclip.com/ui/transitions-tagsEffects and transitions endpoints return names, types, defaults, and preview assets. Audio endpoint returns both music and sounds items with genre/category metadata.
Copy and adapt these full payloads.
Smallest useful payload. Great for smoke tests and for checking API auth + sync response.
{
"format": {
"width": 1080,
"height": 1920,
"fps": 30
},
"scenes": [
{
"type": "image",
"src": "https://cdn.example.com/assets/cover.jpg",
"duration_ms": 5000
}
]
}Three scenes with transition_out values. Use transition types from the supported transition catalog.
{
"format": {
"width": 1080,
"height": 1920,
"fps": 30
},
"scenes": [
{
"type": "video",
"src": "https://cdn.example.com/assets/intro.mp4",
"duration_ms": 4200,
"transition_out": {
"type": "mix",
"duration_ms": 500
}
},
{
"type": "image",
"src": "https://cdn.example.com/assets/product.jpg",
"duration_ms": 3600,
"transition_out": {
"type": "white_strobe",
"duration_ms": 300
}
},
{
"type": "video",
"src": "https://cdn.example.com/assets/outro.mp4",
"duration_ms": 3200
}
]
}Transform keyframes use absolute at_ms timestamps, not local scene timestamps.
{
"format": {
"width": 1080,
"height": 1920,
"fps": 30
},
"scenes": [
{
"type": "image",
"src": "https://cdn.example.com/assets/city.jpg",
"duration_ms": 6000,
"transform": [
{
"at_ms": 0,
"x_px": 540,
"y_px": 960,
"scale": 1,
"rotate_deg": 0,
"opacity_pct": 100
},
{
"at_ms": 3000,
"x_px": 620,
"y_px": 900,
"scale": 1.15,
"rotate_deg": 0,
"opacity_pct": 100
},
{
"at_ms": 6000,
"x_px": 720,
"y_px": 860,
"scale": 1.3,
"rotate_deg": 0,
"opacity_pct": 100
}
]
}
]
}Shows text styling properties: style, stroke, shadow, glow, background and overlay transform/fades.
{
"format": {
"width": 1080,
"height": 1920,
"fps": 30
},
"scenes": [
{
"type": "video",
"src": "https://cdn.example.com/assets/background.mp4",
"duration_ms": 7000
}
],
"overlays": [
{
"type": "text",
"text": "Launch Day",
"from_ms": 500,
"to_ms": 6200,
"position_px": {
"x": 540,
"y": 1420
},
"width_px": 860,
"opacity_pct": 100,
"fade_in_ms": 220,
"fade_out_ms": 260,
"style": {
"font": "Avenir Next",
"size_px": 94,
"bold": true,
"italic": false,
"underline": false,
"case": "upper",
"align": "center",
"color": "#FFFFFF",
"character_spacing_px": 1.2,
"line_spacing_px": 4
},
"stroke": {
"color": "#111111",
"width_px": 7
},
"shadow": {
"color": "#000000",
"opacity_pct": 58,
"blur_pct": 45,
"distance_px": 8,
"angle_deg": 95
},
"glow": {
"color": "#4BC6FF",
"intensity_pct": 34,
"range_pct": 55,
"offset_x_px": 0,
"offset_y_px": 0
},
"background": {
"enabled": true,
"color": "#0B0B0B",
"opacity_pct": 48,
"corner_radius_pct": 24,
"height_pct": 130,
"width_pct": 116,
"x_offset_pct": 0,
"y_offset_pct": 0
},
"transform": [
{
"at_ms": 500,
"x_px": 540,
"y_px": 1460,
"scale": 0.9,
"rotate_deg": 0,
"opacity_pct": 0
},
{
"at_ms": 1200,
"x_px": 540,
"y_px": 1420,
"scale": 1,
"rotate_deg": 0,
"opacity_pct": 100
},
{
"at_ms": 6200,
"x_px": 540,
"y_px": 1420,
"scale": 1,
"rotate_deg": 0,
"opacity_pct": 0
}
]
}
]
}Use overlay.type=image/video with position, width and optional transform/fades.
{
"format": {
"width": 1080,
"height": 1920,
"fps": 30
},
"scenes": [
{
"type": "video",
"src": "https://cdn.example.com/assets/base.mp4",
"duration_ms": 9000
}
],
"overlays": [
{
"type": "image",
"src": "https://cdn.example.com/assets/logo.png",
"from_ms": 0,
"to_ms": 9000,
"position_px": {
"x": 920,
"y": 140
},
"width_px": 220,
"opacity_pct": 95
},
{
"type": "video",
"src": "https://cdn.example.com/assets/b-roll.mp4",
"from_ms": 1800,
"duration_ms": 4000,
"position_px": {
"x": 540,
"y": 1140
},
"width_px": 720,
"opacity_pct": 100,
"fade_in_ms": 200,
"fade_out_ms": 200
}
]
}Layer multiple audio tracks. Useful for narration + background music + short SFX stings.
{
"format": {
"width": 1080,
"height": 1920,
"fps": 30
},
"scenes": [
{
"type": "video",
"src": "https://cdn.example.com/assets/story.mp4",
"duration_ms": 12000
}
],
"audio": [
{
"src": "https://cdn.example.com/audio/voiceover.mp3",
"role": "voice",
"from_ms": 0,
"to_ms": 12000,
"volume_db": 0
},
{
"src": "https://cdn.example.com/audio/music-bed.mp3",
"role": "music",
"from_ms": 0,
"to_ms": 12000,
"volume_db": -14,
"fade_in_ms": 700,
"fade_out_ms": 900,
"duck_under_voice": true
},
{
"src": "https://cdn.example.com/audio/whoosh.mp3",
"role": "sound",
"from_ms": 4200,
"duration_ms": 650,
"volume_db": -4
}
]
}Effect timing plus settings. Use `opacity_pct` for opacity-mode effects like film_grain.
{
"format": {
"width": 1080,
"height": 1920,
"fps": 30
},
"scenes": [
{
"type": "video",
"src": "https://cdn.example.com/assets/trailer.mp4",
"duration_ms": 9000
}
],
"effects": [
{
"type": "white_flash",
"from_ms": 0,
"duration_ms": 1400,
"settings": {
"speed": 1.2,
"strength": 1.1
}
},
{
"type": "blur",
"from_ms": 2600,
"to_ms": 4700,
"settings": {
"strength": 0.55
}
},
{
"type": "film_grain",
"from_ms": 0,
"to_ms": 9000,
"settings": {
"opacity_pct": 32
}
},
{
"type": "club_mood_2",
"from_ms": 5200,
"duration_ms": 2100,
"settings": {
"speed": 230,
"strength": 0.72
}
}
]
}Inline cue objects are ideal for generated captions and translation workflows.
{
"format": {
"width": 1080,
"height": 1920,
"fps": 30
},
"scenes": [
{
"type": "video",
"src": "https://cdn.example.com/assets/interview.mp4",
"duration_ms": 8000
}
],
"captions": {
"style": "boxed_black",
"cues": [
{
"from_ms": 0,
"to_ms": 2200,
"text": "Welcome to JSONClip."
},
{
"from_ms": 2400,
"to_ms": 4700,
"text": "This scene was rendered from pure JSON."
},
{
"from_ms": 5000,
"to_ms": 7900,
"text": "Now add your own assets and automate the flow."
}
]
}
}Provide caption file URL or local file reference with `src` + `format`.
{
"format": {
"width": 1080,
"height": 1920,
"fps": 30
},
"scenes": [
{
"type": "video",
"src": "https://cdn.example.com/assets/tutorial.mp4",
"duration_ms": 9000
}
],
"captions": {
"style": "minimal_bottom",
"src": "./subtitles.srt",
"format": "srt"
}
}Combined example with scenes, transitions, overlays, audio, effects and subtitles.
{
"format": {
"width": 1080,
"height": 1920,
"fps": 30,
"background_color": "#000000"
},
"scenes": [
{
"type": "image",
"src": "./cover.jpg",
"duration_ms": 3200,
"transition_out": {
"type": "mix",
"duration_ms": 500
}
},
{
"type": "video",
"src": "./demo.mp4",
"duration_ms": 5200,
"transition_out": {
"type": "glitch",
"duration_ms": 260
}
},
{
"type": "image",
"src": "./cta.jpg",
"duration_ms": 2800
}
],
"overlays": [
{
"type": "text",
"text": "Automate Your Video Pipeline",
"from_ms": 450,
"to_ms": 10300,
"position_px": {
"x": 540,
"y": 150
},
"width_px": 960,
"opacity_pct": 100,
"style": {
"font": "Helvetica Neue",
"size_px": 56,
"bold": true,
"align": "center",
"color": "#FFFFFF"
},
"shadow": {
"color": "#000000",
"opacity_pct": 45,
"blur_pct": 35,
"distance_px": 6,
"angle_deg": 90
}
}
],
"audio": [
{
"src": "./voice.mp3",
"role": "voice",
"from_ms": 0,
"to_ms": 11200,
"volume_db": 0
},
{
"src": "./music.mp3",
"role": "music",
"from_ms": 0,
"to_ms": 11200,
"volume_db": -13,
"duck_under_voice": true
},
{
"src": "./click.wav",
"role": "sound",
"from_ms": 8300,
"duration_ms": 400,
"volume_db": -3
}
],
"effects": [
{
"type": "white_flash",
"from_ms": 0,
"duration_ms": 1400,
"settings": {
"speed": 1.1,
"strength": 1.05
}
},
{
"type": "zoom_in",
"from_ms": 3600,
"duration_ms": 1800,
"settings": {
"strength": 1.4
}
},
{
"type": "film_grain",
"from_ms": 0,
"to_ms": 11200,
"settings": {
"opacity_pct": 28
}
}
],
"captions": {
"style": "bold_center",
"cues": [
{
"from_ms": 400,
"to_ms": 2600,
"text": "Input data. Render video. Ship."
},
{
"from_ms": 3000,
"to_ms": 5800,
"text": "Transitions, effects, overlays, and subtitles."
},
{
"from_ms": 6200,
"to_ms": 10400,
"text": "JSONClip is built for automation and AI flows."
}
]
}
}Use these pages to move from API reference into free testing, pricing, or direct implementation support.