Skip to content

Multiple Overlays

By default, a single text field places one overlay at 50% (vertically centered). Use the overlays field to add multiple caption bars with custom positions.

Pass a JSON string as the overlays form field:

Terminal window
curl -X POST https://snapchat-text-overlay-api.com/v1/overlay \
-H "x-api-key: snap_live_your_key" \
-F "asset=@photo.jpg" \
-F 'overlays=[{"text":"night one in miami","position":40},{"text":"the vibes are immaculate","position":55}]' \
--output rendered.png
FieldTypeRequiredDescription
textstringYesCaption text, max 180 characters
positionnumberNoVertical position as percentage (0-100)

If position is omitted:

OverlayDefault position
1st50% (center)
2nd60%
3rd70%
4th80%

Overlays auto-space by 10% when positions aren’t specified.

ValueLocation
0Top edge
25Upper quarter
50Center (default)
75Lower quarter
100Bottom edge