POST /v1/capture
Captures a URL, composes the requested styling, stores the image, and returns a CDN URL. Set async to true to queue a job instead.

Authentication

Bearer Token

Request Body required

application/json
url string (uri) REQUIRED
project_id string
Pattern ^prj_[A-Z0-9]{26}$
auth_profile_id string
Pattern ^ap_[A-Z0-9]{26}$
viewport object
width integer REQUIRED
Min 1
height integer REQUIRED
Min 1
capture_dpr number
Min 1Max 4
user_agent string
Min length 1Max length 500
emulate_mobile boolean
emulate_touch boolean
wait_for string | number
One of:
Option 1string
Option 2number
block string[]
Values cookie-banners ads chat-widgets popups
inject_css string
device string
Values iphone-16-pro macbook-pro-16 ipad-pro-m4 browser-macos browser-windows
device_color string
device_scale number
Min 0.4Max 1
background_style string
Values gradient solid none transparent
background_preset string
Values aurora sunset ocean midnight arctic dusk forest ember custom
background_color string
background_gradient string
background string
Hosted ScreenFramed background reference, e.g. fractal-glass-gradients/fractal-glass-34. Resolved to a render-sized image variant.
Pattern ^[A-Za-z0-9][A-Za-z0-9_-]*/[A-Za-z0-9][A-Za-z0-9_-]*$
background_image_url string (uri)
Custom public image URL. Overrides background when both are provided.
padding number
Min 0Max 200
corner_radius number
Min 0Max 40
shadow string
Values none soft hard glow float
shadow_color string
shadow_blur number
Min 0Max 100
shadow_offset_x number
Min -100Max 100
shadow_offset_y number
Min -100Max 100
shadow_spread number
Min -50Max 50
shadow_opacity number
Min 0Max 1
perspective string
Values none tilt-left tilt-right tilt-up tilt-down tilt-left-strong tilt-right-strong iso-left iso-right
perspective_intensity number
Min 0Max 100
camera_preset string
Values hero dashboard flat cinematic detail
tilt_x number
Min -30Max 30
tilt_y number
Min -30Max 30
roll number
Min -30Max 30
zoom number
Min 50Max 300
offset_x number
Min -2000Max 2000
offset_y number
Min -2000Max 2000
frame_scale number
layout string
Values default bottom-cropped top-cropped
depth_blur number
Min 0Max 30
depth_blur_type string
Values dir radial tilt lens
depth_blur_direction string
Values top bottom left right
depth_blur_angle number
Min 0Max 360
depth_blur_position number
Min 0Max 1
depth_blur_band number
Min 0Max 1
depth_blur_width number
Min 0Max 1
title string
title_font string
title_size number
Min 24Max 96
title_color string
title_position string
Values above below bottom-left top-left overlay-bottom
subtitle string
subtitle_font string
subtitle_size number
subtitle_color string
badge string
text_enabled boolean
text_content string
Max length 500
text_x number
Min 0Max 1
text_y number
Min 0Max 1
text_size number
Min 8Max 1200
text_color string
text_gradient string
text_shadow string
text_weight number
Min 100Max 900
text_font string
text_align string
Values left center right
text_max_width number
Min 0.1Max 1
text_line_height number
Min 0.8Max 2.5
text_autofit boolean
text_fit_min number
Min 6Max 200
text_box_h number
Min 0.05Max 1
text_vertical_align string
Values top middle bottom
ai boolean
ai_style boolean
ai_copy boolean
prompt string
element string
selector string
auto_balance boolean
inset number
Min 0Max 100
inset_balance boolean
output object
format string
Values png webp jpg
width integer
Min 1Max 6144
height integer
Min 1Max 6144
quality integer
Min 1Max 100
dpr integer
Values 1 2 3
cache_ttl number
show_resolved_params boolean
dark_mode boolean
full_page boolean
hide_selectors string[]
border string
Values none subtle bold glass
border_color string
border_width number
Min 0Max 20
aspect_ratio string
Values auto "16:9" "4:3" "1:1" "3:2" "9:16" "21:9"
frame_ratio string
Values auto "16:9" "4:3" "1:1" "3:2" "9:16" "21:9"
watermark string
compose_mode string
Values satori browser
async boolean
webhook_url string (uri)

Responses

201 Capture created
application/json
id string
url string (uri)
width integer
height integer
format string
duration_ms integer
credits_used integer
cached boolean
warnings string[]
created_at string
resolved_params object
ai_decisions object
element_resolved object
202 Async capture queued
400 Error response
401 Error response
402 Error response
403 Error response
422 Error response
429 Error response
curl -X POST 'https://screenframed.com/v1/capture' \  -H 'Authorization: Bearer YOUR_API_TOKEN' \  -H 'Content-Type: application/json' \  -d '{  "url": "https://example.com",  "project_id": "string",  "auth_profile_id": "string",  "viewport": {    "width": 1,    "height": 1  },  "capture_dpr": 1,  "user_agent": "string",  "emulate_mobile": true,  "emulate_touch": true,  "wait_for": "load",  "block": [    "cookie-banners"  ],  "inject_css": "string",  "device": "iphone-16-pro",  "device_color": "string",  "device_scale": 0.4,  "background_style": "gradient",  "background_preset": "aurora",  "background_color": "string",  "background_gradient": "string",  "background": "string",  "background_image_url": "https://example.com",  "padding": 0,  "corner_radius": 0,  "shadow": "none",  "shadow_color": "string",  "shadow_blur": 0,  "shadow_offset_x": -100,  "shadow_offset_y": -100,  "shadow_spread": -50,  "shadow_opacity": 0,  "perspective": "none",  "perspective_intensity": 0,  "camera_preset": "hero",  "tilt_x": -30,  "tilt_y": -30,  "roll": -30,  "zoom": 50,  "offset_x": -2000,  "offset_y": -2000,  "frame_scale": 0,  "layout": "default",  "depth_blur": 0,  "depth_blur_type": "dir",  "depth_blur_direction": "top",  "depth_blur_angle": 0,  "depth_blur_position": 0,  "depth_blur_band": 0,  "depth_blur_width": 0,  "title": "string",  "title_font": "string",  "title_size": 24,  "title_color": "string",  "title_position": "above",  "subtitle": "string",  "subtitle_font": "string",  "subtitle_size": 0,  "subtitle_color": "string",  "badge": "string",  "text_enabled": true,  "text_content": "string",  "text_x": 0,  "text_y": 0,  "text_size": 8,  "text_color": "string",  "text_gradient": "string",  "text_shadow": "string",  "text_weight": 100,  "text_font": "string",  "text_align": "left",  "text_max_width": 0.1,  "text_line_height": 0.8,  "text_autofit": true,  "text_fit_min": 6,  "text_box_h": 0.05,  "text_vertical_align": "top",  "ai": true,  "ai_style": true,  "ai_copy": true,  "prompt": "string",  "element": "string",  "selector": "string",  "auto_balance": true,  "inset": 0,  "inset_balance": true,  "output": {    "format": "png",    "width": 1,    "height": 1,    "quality": 1,    "dpr": 1  },  "cache_ttl": 0,  "show_resolved_params": true,  "dark_mode": true,  "full_page": true,  "hide_selectors": [    "string"  ],  "border": "none",  "border_color": "string",  "border_width": 0,  "aspect_ratio": "auto",  "frame_ratio": "auto",  "watermark": "string",  "compose_mode": "satori",  "async": true,  "webhook_url": "https://example.com"}'
const response = await fetch('https://screenframed.com/v1/capture', {  method: 'POST',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN",      "Content-Type": "application/json"  },  body: JSON.stringify({    "url": "https://example.com",    "project_id": "string",    "auth_profile_id": "string",    "viewport": {      "width": 1,      "height": 1    },    "capture_dpr": 1,    "user_agent": "string",    "emulate_mobile": true,    "emulate_touch": true,    "wait_for": "load",    "block": [      "cookie-banners"    ],    "inject_css": "string",    "device": "iphone-16-pro",    "device_color": "string",    "device_scale": 0.4,    "background_style": "gradient",    "background_preset": "aurora",    "background_color": "string",    "background_gradient": "string",    "background": "string",    "background_image_url": "https://example.com",    "padding": 0,    "corner_radius": 0,    "shadow": "none",    "shadow_color": "string",    "shadow_blur": 0,    "shadow_offset_x": -100,    "shadow_offset_y": -100,    "shadow_spread": -50,    "shadow_opacity": 0,    "perspective": "none",    "perspective_intensity": 0,    "camera_preset": "hero",    "tilt_x": -30,    "tilt_y": -30,    "roll": -30,    "zoom": 50,    "offset_x": -2000,    "offset_y": -2000,    "frame_scale": 0,    "layout": "default",    "depth_blur": 0,    "depth_blur_type": "dir",    "depth_blur_direction": "top",    "depth_blur_angle": 0,    "depth_blur_position": 0,    "depth_blur_band": 0,    "depth_blur_width": 0,    "title": "string",    "title_font": "string",    "title_size": 24,    "title_color": "string",    "title_position": "above",    "subtitle": "string",    "subtitle_font": "string",    "subtitle_size": 0,    "subtitle_color": "string",    "badge": "string",    "text_enabled": true,    "text_content": "string",    "text_x": 0,    "text_y": 0,    "text_size": 8,    "text_color": "string",    "text_gradient": "string",    "text_shadow": "string",    "text_weight": 100,    "text_font": "string",    "text_align": "left",    "text_max_width": 0.1,    "text_line_height": 0.8,    "text_autofit": true,    "text_fit_min": 6,    "text_box_h": 0.05,    "text_vertical_align": "top",    "ai": true,    "ai_style": true,    "ai_copy": true,    "prompt": "string",    "element": "string",    "selector": "string",    "auto_balance": true,    "inset": 0,    "inset_balance": true,    "output": {      "format": "png",      "width": 1,      "height": 1,      "quality": 1,      "dpr": 1    },    "cache_ttl": 0,    "show_resolved_params": true,    "dark_mode": true,    "full_page": true,    "hide_selectors": [      "string"    ],    "border": "none",    "border_color": "string",    "border_width": 0,    "aspect_ratio": "auto",    "frame_ratio": "auto",    "watermark": "string",    "compose_mode": "satori",    "async": true,    "webhook_url": "https://example.com"  })});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.post('https://screenframed.com/v1/capture', headers=headers, json={  "url": "https://example.com",  "project_id": "string",  "auth_profile_id": "string",  "viewport": {    "width": 1,    "height": 1  },  "capture_dpr": 1,  "user_agent": "string",  "emulate_mobile": true,  "emulate_touch": true,  "wait_for": "load",  "block": [    "cookie-banners"  ],  "inject_css": "string",  "device": "iphone-16-pro",  "device_color": "string",  "device_scale": 0.4,  "background_style": "gradient",  "background_preset": "aurora",  "background_color": "string",  "background_gradient": "string",  "background": "string",  "background_image_url": "https://example.com",  "padding": 0,  "corner_radius": 0,  "shadow": "none",  "shadow_color": "string",  "shadow_blur": 0,  "shadow_offset_x": -100,  "shadow_offset_y": -100,  "shadow_spread": -50,  "shadow_opacity": 0,  "perspective": "none",  "perspective_intensity": 0,  "camera_preset": "hero",  "tilt_x": -30,  "tilt_y": -30,  "roll": -30,  "zoom": 50,  "offset_x": -2000,  "offset_y": -2000,  "frame_scale": 0,  "layout": "default",  "depth_blur": 0,  "depth_blur_type": "dir",  "depth_blur_direction": "top",  "depth_blur_angle": 0,  "depth_blur_position": 0,  "depth_blur_band": 0,  "depth_blur_width": 0,  "title": "string",  "title_font": "string",  "title_size": 24,  "title_color": "string",  "title_position": "above",  "subtitle": "string",  "subtitle_font": "string",  "subtitle_size": 0,  "subtitle_color": "string",  "badge": "string",  "text_enabled": true,  "text_content": "string",  "text_x": 0,  "text_y": 0,  "text_size": 8,  "text_color": "string",  "text_gradient": "string",  "text_shadow": "string",  "text_weight": 100,  "text_font": "string",  "text_align": "left",  "text_max_width": 0.1,  "text_line_height": 0.8,  "text_autofit": true,  "text_fit_min": 6,  "text_box_h": 0.05,  "text_vertical_align": "top",  "ai": true,  "ai_style": true,  "ai_copy": true,  "prompt": "string",  "element": "string",  "selector": "string",  "auto_balance": true,  "inset": 0,  "inset_balance": true,  "output": {    "format": "png",    "width": 1,    "height": 1,    "quality": 1,    "dpr": 1  },  "cache_ttl": 0,  "show_resolved_params": true,  "dark_mode": true,  "full_page": true,  "hide_selectors": [    "string"  ],  "border": "none",  "border_color": "string",  "border_width": 0,  "aspect_ratio": "auto",  "frame_ratio": "auto",  "watermark": "string",  "compose_mode": "satori",  "async": true,  "webhook_url": "https://example.com"})print(response.json())
201 Response
{  "id": "<string>",  "url": "<uri>",  "width": 123,  "height": 123,  "format": "<string>",  "duration_ms": 123,  "credits_used": 123,  "cached": true,  "warnings": [    "<string>"  ],  "created_at": "<string>",  "resolved_params": "<object>",  "ai_decisions": "<object>",  "element_resolved": "<object>"}
Ask a question... ⌘I