Skip to main content
The BabySea Playground is a browser console for testing API requests and managing generation lifecycle — no code required. Access it at us.babysea.ai/playground. It’s listed under Library in the sidebar. Switch between US, EU, and APAC regions at any time using the region switcher.

Interface overview

The Playground is split into two domains:
DomainWhat it does
GenerationBuild payloads, dispatch POST requests to /v1/generate, and monitor async responses
ManagementRun lifecycle operations (info, cancel, delete) against a generation_id

Top controls

ControlFunction
Image / Video tabsToggle modality — updates available models and schema
Model selectorSearchable dropdown of model_identifier targets
Region switcherSet the target edge (US, EU, APAC)
API key inputEnter your BabySea API key
Lock buttonCommit the key — required before any request can be sent

Layout

On desktop, the generation domain renders as three resizable columns:
ColumnContent
Left — SchemaActive model constraints and parameter definitions
Center — Request BodyInteractive JSON payload builder
Right — ResponseAsync execution timeline, JSON output, or error details
On mobile, these collapse into tabs: schema, input, response.

Generating content

How to send a request

1

Select a model

Choose Image or Video, then pick a model_identifier from the searchable dropdown.
2

Lock your API key

Enter your API key and click the lock button. The Send request button stays disabled until this is done.
3

Build the payload

Fill in parameters in the Request Body panel. Click Reset to restore model defaults at any time.
4

Send the request

Click Send request. This dispatches a POST to /v1/generate/{image|video}/{model_identifier} at the selected region.
5

Review the response

The Response panel shows a live execution timeline, then resolves to the final JSON payload or error details.

Response panel

ElementWhen it appears
HTTP status badgeAfter the request resolves
Execution latencyLive during pending / processing, frozen after
Line countJSON responses only
Copy to clipboardAlways visible
Note: The execution timeline is a frontend visualization for monitoring — it’s not a polling contract. For production integrations, use webhooks for real-time delivery.

Validation and errors

The interface validates before sending. Common states:
SituationMessage
API key not lockedSend button disabled — Lock API key to send
Required field emptyFill required: {field_name}
Invalid API key formatInvalid API key format
Unknown or invalid modelUnknown model / Invalid model type
Bad endpoint shapeInvalid endpoint path
Invalid enum valueInvalid value for {field_name}
String too long{field_name} exceeds maximum length ({limit} chars)
Invalid URL{field_name} must be a valid public HTTPS URL
Number out of range{field_name} must be at least {min} / at most {max}
Response too largeResponse too large
Non-JSON responseInvalid JSON response from server
TimeoutRequest timed out

Schema and payload

Schema panel

The Schema panel shows the full constraint structure for the selected model. The header displays the total parameter count and an export button to copy the raw schema JSON. Each parameter row includes:
FieldDescription
KeyThe exact JSON key used in the payload
Typestring, number, boolean, or array
RequiredFlagged with a required badge — blocks dispatch until filled
DescriptionWhat the parameter controls
Boundariesmin, max, default, and allowed enum values

Request Body panel

The payload builder is bound to the active schema and renders type-appropriate inputs:
TypeInput rendered
StringText input or textarea
NumberNumeric input with step/min/max enforcement
BooleanToggle (true / false)
EnumDropdown limited to valid options
Array (URLs)Multi-entry input with add/remove controls
Complex objectFlattened for input, reconstructed as JSON on dispatch

Validation rules

Before dispatch, the payload is validated against these rules:
RuleBehavior
Unknown keysStripped from the payload automatically
String lengthCapped at 10,000 characters
Prompt lengthgeneration_prompt capped at 5,000 characters
Numeric rangeMust fall between min and max
Enum valuesMust exactly match a supported option
URLsMust be public https:// URIs; invalid ones are stripped from arrays
Array sizeCapped by the parameter’s constraint

Model resolution

The model selector uses fuzzy search over model_identifier strings and supports keyboard navigation (, , Enter, Escape). Each result shows the associated AI lab icon. If nothing matches, it shows No models found. The catalog reflects BabySea’s live configuration — new models are automatically available in the Playground as they’re integrated.

Managing content

After a successful generation, the response includes a generation_id UUID. Use the Management panel to act on it.

Available operations

OperationRouteMethod
Content Info/v1/content/{generation_id}GET
Cancel Generation/v1/content/generation/cancel/{generation_id}POST
Delete Content/v1/content/{generation_id}DELETE
All three share the same layout: header with method/path/cURL export, a generation_id input field, and a response panel.

The generation_id field

FieldValue
Typestring<uuid>
RequiredYes
Placeholder00000000-0000-0000-0000-000000000000
ValidationMust be a valid UUID if malformed
The send button shows Lock API key to send if the key isn’t committed, Sending... during execution, and Send request when ready.

Operation details

Content Info — Fetches the full execution record for a generation via GET /v1/content/{generation_id}. Cancel Generation — Sends a termination signal to an in-progress generation via POST /v1/content/generation/cancel/{generation_id}. If the generation hasn’t started processing yet, BabySea’s billing engine automatically reverses the credit reservation. Delete Content — Permanently removes the generation record and all output assets from edge storage via DELETE /v1/content/{generation_id}. A 204 No Content response is treated as success and shown as an empty JSON object.

Export as cURL

Each operation panel includes a cURL export button that generates a ready-to-run command using the active region, route, and your committed API key. Use these to move quickly from browser testing to scripted validation.

Endpoints reference

OperationMethodRoute
Generate imagePOST/v1/generate/image/{model_identifier}
Generate videoPOST/v1/generate/video/{model_identifier}
Get content infoGET/v1/content/{generation_id}
Cancel generationPOST/v1/content/generation/cancel/{generation_id}
Delete contentDELETE/v1/content/{generation_id}