Skip to main content
POST
Generate Slideshow
Create a new slideshow in the authenticated key scope. This is the core content creation endpoint - your OpenClaw agent or automation script generates slideshows here, then publishes them to media-capable accounts via Create Post. generate supports:
  • AI generation from a prompt/product context
  • manual initial slide setup (skip_ai=true)
  • mixed setup with explicit slide_config

Idempotency

Send a unique Idempotency-Key header for each slideshow you intend to create. Retrying the same key with the same body replays the original result. When the header is omitted, Genviral derives a stable key from the credential and request body for backward compatibility, so an identical headerless request is treated as a retry rather than a new generation.

Body Parameters

string
Prompt used for AI text generation. Required unless skip_ai=true or product_id is provided.
string (UUID)
Optional product reference. Must exist in the authenticated key scope.
string (UUID)
Optional global image pack ID. Required whenever any generated slide uses image_pack and no per-slide pack_assignments are provided, unless image_sourcing allows Pinterest sourcing.
string
Optional image sourcing mode. Default: pack (backward compatible).
  • pack — shuffle backgrounds from pack_id or per-slide pack_assignments only
  • pinterest_auto — run the whole-deck Pinterest agent after text generation; pack_id optional
  • pinterest_then_pack — Pinterest first, then fill missing slides from scoped/public packs when pack_id is omitted
number
Optional target slide count (1-10). Default: 5.
string
Optional: educational or personal. Default: educational.
string
Optional: 9:16, 1:1, or 4:5. Default: 4:5.
string
Optional language hint (2-32 chars).
object
Optional text styling defaults.
boolean
Optional. When true, generation skips AI text creation and uses your slide_config input.
object
Optional explicit per-slide setup.
All slide_config map keys must be 0-based numeric indices in range. image_pack slides must resolve a pack via pack_id, pack_assignments[index], or an image_sourcing mode that allows Pinterest sourcing (pinterest_auto, pinterest_then_pack).

Examples

AI mode (prompt + global pack)

cURL

Pinterest auto mode (image_sourcing=pinterest_auto)

cURL

Manual mode (skip_ai=true)

cURL

Response

Returns 201 with the full slideshow object (same structure as Get Slideshow).
Response

Error Responses

  • 400 invalid_json - body is not valid JSON
  • 422 invalid_payload - schema/validation failed
  • 404 pack_not_found - referenced pack is missing or outside key scope
  • 422 pack_empty - selected pack has no images
  • 422 pack_required - one or more image_pack slides are missing pack resolution
  • 404 product_not_found - product_id does not exist
  • 403 forbidden_product_access - product_id exists but is outside key scope
  • 401 - authentication failed (missing/invalid/revoked token)
  • 402 subscription_required - active Creator/Professional/Business plan required
  • 403 tier_not_allowed - Scheduler tier cannot use Partner API
  • 500 generate_failed - unexpected generation failure