Skip to main content
POST
/
v1
/
carousel-generation
/
{id}
/
validate
Validate a carousel generation job and generate images
curl --request POST \
  --url https://api.yalg.ai/v1/carousel-generation/{id}/validate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "postId": "018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f",
  "instructions": "Create a tactical carousel with one idea per slide."
}
'
"<string>"

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.

Path Parameters

id
string
required

Resource identifier.

Example:

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

Body

application/json
templateId
string

Template ID to use for rendering

Response

Job validated and carousel created

The response is of type file.