Skip to main content
POST
/
v1
/
shorts
/
generate-all
Start generation for all shorts in backlog
curl --request POST \
  --url https://api.yalg.ai/v1/shorts/generate-all \
  --header 'x-api-key: <api-key>'
{
  "totalStarted": 3,
  "totalFailed": 0,
  "errors": []
}

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Response

Batch generation started

totalStarted
number
required

Number of shorts successfully started

Example:

3

totalFailed
number
required

Number of shorts that could not be started

Example:

1

errors
object[]
required

Per-short failures