Skip to main content
POST
/
videos
/
overlay
Add text overlay
curl --request POST \
  --url https://rawugc.com/api/v1/videos/overlay \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "videoId": "vid_jh7a3b9xq2pn4r8k",
  "text": "Check this out!",
  "position": "bottom",
  "fontSize": 48
}
'
{
  "videoId": "<string>",
  "url": "<string>",
  "version": 123,
  "operation": "<string>",
  "creditsUsed": 123
}

Authorizations

Authorization
string
header
required

Use your API key from the RawUGC dashboard. Include as: Authorization: Bearer YOUR_API_KEY

Body

application/json
videoId
string
required

Video identifier (vid_xxx format)

text
string
required

Text to overlay on the video

Required string length: 1 - 500
fontSize
integer

Font size in pixels (default: auto)

Required range: 8 <= x <= 200
position
enum<string>

Vertical position of the text overlay

Available options:
top,
center,
bottom
topBottomMargin
integer

Margin from top/bottom edge in pixels

Required range: 0 <= x <= 500
strokeThickness
number

Text stroke/outline thickness

Required range: 0 <= x <= 10

Response

Overlay added successfully

Response from a video editing operation (captions, overlay)

videoId
string

Unique identifier for the new version (vid_xxx format)

url
string<uri>

URL to download the edited video

version
integer

Version number of the edit (2 for first edit, etc.)

operation
string

Operation that was performed (e.g. 'caption', 'overlay')

creditsUsed
number

Credits deducted for this operation