curl --request POST \
--url https://api.example.com/api/babecock/generate \
--header 'Content-Type: application/json' \
--data '
{
"babeImageUrl": "<string>",
"cockImageUrl": "<string>",
"layout": "<string>",
"saveToVault": true
}
'{
"success": true,
"imageUrl": "<string>",
"layout": "<string>",
"dimensions": {
"width": 123,
"height": 123
},
"mediaId": 123
}Create a babecock image by combining babe and cock images
curl --request POST \
--url https://api.example.com/api/babecock/generate \
--header 'Content-Type: application/json' \
--data '
{
"babeImageUrl": "<string>",
"cockImageUrl": "<string>",
"layout": "<string>",
"saveToVault": true
}
'{
"success": true,
"imageUrl": "<string>",
"layout": "<string>",
"dimensions": {
"width": 123,
"height": 123
},
"mediaId": 123
}auto, side-by-side, top-bottomside-by-side or top-bottomsaveToVault=true)curl -X POST https://your-domain.com/api/babecock/generate \
-H "Content-Type: application/json" \
-H "Cookie: connect.sid=your-session-cookie" \
-d '{
"babeImageUrl": "https://example.com/babe.jpg",
"cockImageUrl": "https://example.com/cock.jpg",
"layout": "auto",
"saveToVault": true
}'
{
"success": true,
"imageUrl": "https://storage.supabase.co/object/public/general/babecock-abc123.jpg",
"layout": "side-by-side",
"dimensions": {
"width": 1920,
"height": 1080
},
"mediaId": 456
}
| Code | Description |
|---|---|
| 200 | Success - Babecock generated |
| 400 | Bad Request - Invalid image URLs or format |
| 401 | Unauthorized - User not authenticated |
| 402 | Payment Required - Insufficient credits |
| 413 | Payload Too Large - Image exceeds size limit |
| 500 | Server error during processing |
layout="auto", the server analyzes aspect ratios:
saveToVault for permanent storage