Skip to main content
POST
/
v1
/
carousel
/
generate-from-content
Generate a carousel from raw content
curl --request POST \
  --url https://api.yalg.ai/v1/carousel/generate-from-content \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "content": "Five lessons from turning founder stories into repeatable content."
}
'
{
  "id": "018f9f45-23d1-7cb2-8f1f-87921d472a80",
  "postId": "018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f",
  "status": "completed",
  "currentStep": "render",
  "progress": 1,
  "createdAt": "2026-06-20T17:24:39.000Z",
  "updatedAt": "2026-06-20T17:24:39.000Z"
}

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.

Body

application/json
content
string
required

Content to transform into carousel

templateId
string<uuid>

Template ID to use for generation

authorName
string

Author name for the carousel

Response

Carousel generation started

Carousel or carousel-generation job.

id
string<uuid>

Job identifier.

Example:

"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"

status
string
Example:

"pending"

currentStep
string
Example:

"draft_generation"

qualityScore
number
Example:

0.91

riskLevel
string
Example:

"low"

warnings
string[]
totalTokensUsed
integer
Example:

1284

startedAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"

completedAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"

createdAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"

updatedAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"

postId
string<uuid>

Source post identifier.

Example:

"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"

Generated carousel identifier, when created.

Example:

"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"