Request Examples
info
Replace YOUR_API_TOKEN with your actual token to get started.
Base URL
https://api.babysea.ai/api/v1
Available Endpoints
- GET
/status - GET
/data/account - GET
/data/list/image - GET
/image-generation/:id - POST
/image-generation/:modelIdentifier
User Data
Status Check
GET /status
Verify the API is operational and check your connectivity.
curl -X GET https://api.babysea.ai/api/v1/status \
-H "Authorization: Bearer YOUR_API_TOKEN"
Account Info
GET /data/account
Get your account details including credits, email, and account ID.
curl -X GET https://api.babysea.ai/api/v1/data/account \
-H "Authorization: Bearer YOUR_API_TOKEN"
List All Images
GET /data/list/image
Retrieve all your generated images.
curl -X GET https://api.babysea.ai/api/v1/data/list/image \
-H "Authorization: Bearer YOUR_API_TOKEN"
Check Generation Status
GET /image-generation/:id
Poll this endpoint to check if your image generation is complete.
curl -X GET https://api.babysea.ai/api/v1/image-generation/{generationId} \
-H "Authorization: Bearer YOUR_API_TOKEN"
Generate Images
Text-to-Image (No input image)
POST /image-generation/:modelIdentifier
Generate images from text prompts.
curl -X POST https://api.babysea.ai/api/v1/image-generation/{modelIdentifier} \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My Journey",
"prompt": "A color film-inspired portrait of a young Korean woman looking to the camera with a shallow depth of field that blurs the surrounding elements, drawing attention to her eyes. The fine grain and cast suggest a high ISO film stock, while the wide aperture lens creates a motion blur effect, enhancing the natural documentary style",
"output_number": 1,
"aspect_ratio": "16:9",
"output_format": "png"
}'
Image-to-Image (Single image)
POST /image-generation/:modelIdentifier
Transform existing image.
curl -X POST https://api.babysea.ai/api/v1/image-generation/{modelIdentifier} \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Anime World",
"prompt": "Soft anime style, pastel colors, gentle anime illustration, dreamy anime aesthetics, kawaii style",
"output_number": 1,
"aspect_ratio": "match_input_image",
"image_input": ["https://babysea.delivery/demo-schema/demo-upload-image.png"],
"output_format": "png"
}'
Image-to-Image (Multi images)
POST /image-generation/:modelIdentifier
Use multiple reference images for better control.
curl -X POST https://api.babysea.ai/api/v1/image-generation/{modelIdentifier} \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Room Design",
"prompt": "Make the sheets in the style of the logo. Make the scene natural",
"output_number": 1,
"aspect_ratio": "1:1",
"image_input": [
"https://babysea.delivery/demo-schema/demo-upload-image-1.png",
"https://babysea.delivery/demo-schema/demo-upload-image-2.png"
],
"output_format": "jpg"
}'