Generations are asynchronous image or video workloads submitted through the regionalDocumentation Index
Fetch the complete documentation index at: https://docs.babysea.ai/llms.txt
Use this file to discover all available pages before exploring further.
/v1 API. This page covers lifecycle fields, retry safety, and content management routes.
Lifecycle
| Status | Meaning | Terminal |
|---|---|---|
pending | BabySea accepted the request and created a generation record. | No |
processing | An inference provider is running the generation. | No |
succeeded | Output URLs are available in generation_output_file. | Yes |
failed | The generation failed. Inspect generation_error_code and generation_error. | Yes |
canceled | The generation was canceled before completion. | Yes |
Create a generation
Image and video generations use separate routes. Use the model schema reference, the models page, orGET /v1/library/models to inspect supported fields for each model_identifier.
| Type | Route | Required body signal |
|---|---|---|
| Image | POST /v1/generate/image/{model_identifier} | Model-specific image fields. |
| Video | POST /v1/generate/video/{model_identifier} | Model-specific video fields, usually including generation_duration. |
Terminal
generation_id immediately.
JSON
Retry safely
Send anIdempotency-Key header on generation create requests when retries can happen from your queue, browser, worker, or SDK client.
| Case | Result |
|---|---|
| Same key and same body within the replay window | BabySea returns the original response and includes Idempotency-Replayed: true. |
| Same key with a different body | BabySea returns BSE2015 with HTTP 409. |
| Same key while the original request is still processing | BabySea returns BSE2016 with HTTP 409. |
Provider order
generation_provider_order controls the order used for a model that supports more than one inference provider.
| Value | Behavior |
|---|---|
| Omitted | Uses the model default. |
fastest | Lets BabySea choose the provider order from current regional performance data. |
| Explicit order | Uses a model-supported value such as replicate, fal. |
generation_provider_order as an array.
Fetch a generation
PollGET /v1/content/{generation_id} until generation_status is terminal.
Terminal
JSON
List generations
GET /v1/content/list returns paginated generation records for the authenticated account.
| Query parameter | Default | Limit |
|---|---|---|
limit | 50 | Maximum 100. |
offset | 0 | Minimum 0. |
Terminal
total, limit, and offset next to data.
Cancel a generation
UsePOST /v1/content/generation/cancel/{generation_id} when a generation is still cancelable.
Terminal
| Code | Meaning |
|---|---|
BSE2011 | The generation does not exist for the account. |
BSE2012 | The generation already completed, failed, or was canceled. |
BSE2013 | The cancel window has expired. |
Delete a generation
DELETE /v1/content/{generation_id} deletes the generation record and stored output files for that generation.
Terminal
JSON