Starts generating a slideshow in the background and returns its slideshow_id right away
with 202 Accepted. Generation typically takes a few minutes.Poll Get Slideshow with the returned id until
generation_status is complete or failed. A complete slideshow can then be edited,
rendered, and posted like any other.A request takes one of two shapes:
Your slides. You write the words on every slide in slides; Genviral plans the deck,
sources or generates the images, and lays out your copy unchanged.
Recreate a Viral Library post. Leave out slides and send reference with a
product_id or prompt. Genviral analyzes that post’s slides, writes new copy about your
product or prompt in its format, and finds new images by search, exactly like
Generate Slideshow with reference, but without waiting
for the deck. The post’s own words and images are never reused. A recreation refuses pack_id,
title, and any image_source other than auto. Reading the reference counts against your
Viral Library get rate limit, and only slideshow posts can be recreated.
Image sources (your slides)
auto (the default) finds a matching image for each slide from its copy and
image_subject, searching Genviral’s curated image library first and Pinterest second.
ai_from_reference is an opt-in premium mode that generates every slide image, using the
slide images of one Viral Library post as a style
reference. Slide 1 is styled on the post’s slide 1, slide 2 on its slide 2, and so on,
cycling when your deck is longer. The reference guides look and composition only; its
images and copy are never reused. Reading the reference counts against your Viral Library
get rate limit.
To recreate a Viral Library post with Genviral-written copy and searched images, leave out
slides (see above).
Credits
Credits are charged when generation starts, and credits_charged reports the charge. Each
generated image (ai_from_reference) is charged at the slideshow image rate; auto and
pack slides are not charged per image. If generation fails, credits for slides that were
not produced are refunded.
Idempotency
Idempotency-Key is required and is scoped to the API key (or MCP grant) that sends it.
Retrying with the same key and the same body returns the original 202 response, including
its original credits_charged, and never starts or charges a second generation. The replayed
generation_status is the status at start time; poll GET /slideshows/{slideshowId} for the
current one.
Reusing a key with a different body returns 409 idempotency_key_reused.
A request that is refused (for example 402 or 422) does not consume its key, so you can fix
the problem and retry with the same key.
To try again after a generation finished with generation_status: "failed", send a new key.
Body Parameters
object[]
1 to 10 slides, in order. Required unless you recreate reference.
Show Slide Object
string
required
The exact on-screen words for this slide (1 to 500 characters). Rendered as written.
string
What the slide’s photo must show, as a short noun phrase such as golden retriever puppy
(up to 80 characters). Leave it out to let the slide’s copy guide the image.
string
default:"auto"
auto (default), pack, or ai_from_reference (opt-in, charged per generated image).
string
Recreation only: what the new deck is about when there is no product_id (up to 8000
characters). Refused alongside slides.
object
With slides, required when image_source is ai_from_reference, and only accepted then.
Without slides, the post to recreate.
Check data.generation_status every 4 to 15 seconds. While it is generating,
data.generation_phase names the current step (researching, writing, images,
assembling) for progress UI. When it is failed, data.generation_failure holds a stable
code and a short message.
Error Responses
400 invalid_json - request body is not valid JSON
400 invalid_request - Idempotency-Key header is missing or longer than 255 characters
402 insufficient_credits - not enough credits for this generation
403 product_not_accessible - the product is not accessible to this key
404 viral_reference_not_found - the Viral Library post does not exist
409 idempotency_key_reused - this Idempotency-Key was already used with a different body
409 request_in_progress - an identical request with this key is still being processed; retry shortly
422 invalid_payload - body failed validation (see issues)
422 viral_reference_has_no_images - the Viral Library post has no slide images to reference
422 viral_reference_not_slideshow - the Viral Library post is a video; only slideshow posts can be recreated
422 pack_not_usable - the pack is not accessible or has no images
429 rate_limited - Viral Library get limit reached; wait retry_after_seconds
502 generation_enqueue_failed - generation could not be started; retry with the same key
503 viral_reference_analysis_unavailable - the post could not be analyzed right now; retry with the same key shortly
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Genviral","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://www.genviral.io/logo-big.png","dark":"https://www.genviral.io/logo-big.png"},"favicon":"https://mintcdn.com/fddigital-2a62ffc1/wLgPyVw05FCo1CC0/favicon-32x32.png?fit=max\u0026auto=format\u0026n=wLgPyVw05FCo1CC0\u0026q=85\u0026s=3580fdf212bbeadef7c3f21ab8f96af3","seo":{},"metadata":{"timestamp":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fddigital-2a62ffc1","hasAudioNarration":false,"actualSubdomain":"fddigital-2a62ffc1","customDomains":["docs.genviral.io"],"gitSource":{"type":"github","owner":"genviral","repo":"genviral.io","deployBranch":"main","contentDirectory":"apps/api-docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af3473ac29073b8ff7d972c","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API Reference","count":130},{"language":"default","tag":"Video Editor","count":21},{"language":"default","tag":"Slideshows","count":18},{"language":"default","tag":"Studio AI","count":16},{"language":"default","tag":"Accounts","count":14},{"language":"default","tag":"Analytics","count":11},{"language":"default","tag":"Folders","count":9},{"language":"default","tag":"Getting Started","count":9},{"language":"default","tag":"Packs","count":7},{"language":"default","tag":"Posts","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/start-slideshow-generation","slug":"/api-reference/start-slideshow-generation","pageMetadata":{"title":"Start Slideshow Generation","api":"POST /api/partner/v1/slideshows/generations","description":"Start async slideshow generation from your own slide copy, or recreate a Viral Library post.","href":"/api-reference/start-slideshow-generation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Start async slideshow generation from your own slide copy, or recreate a Viral Library post.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Starts generating a slideshow in the background and returns its `,_jsx(_components.code,{children:`slideshow_id`}),` right away\nwith `,_jsx(_components.code,{children:`202 Accepted`}),`. Generation typically takes a few minutes.`]}),`\n`,_jsxs(_components.p,{children:[`Poll `,_jsx(_components.a,{href:`/api-reference/get-slideshow`,children:`Get Slideshow`}),` with the returned id until\n`,_jsx(_components.code,{children:`generation_status`}),` is `,_jsx(_components.code,{children:`complete`}),` or `,_jsx(_components.code,{children:`failed`}),`. A complete slideshow can then be edited,\nrendered, and posted like any other.`]}),`\n`,_jsx(_components.p,{children:`A request takes one of two shapes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Your slides.`}),` You write the words on every slide in `,_jsx(_components.code,{children:`slides`}),`; Genviral plans the deck,\nsources or generates the images, and lays out your copy unchanged.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Recreate a Viral Library post.`}),` Leave out `,_jsx(_components.code,{children:`slides`}),` and send `,_jsx(_components.code,{children:`reference`}),` with a\n`,_jsx(_components.code,{children:`product_id`}),` or `,_jsx(_components.code,{children:`prompt`}),`. Genviral analyzes that post’s slides, writes new copy about your\nproduct or prompt in its format, and finds new images by search, exactly like\n`,_jsx(_components.a,{href:`/api-reference/generate-slideshow`,children:`Generate Slideshow`}),` with `,_jsx(_components.code,{children:`reference`}),`, but without waiting\nfor the deck. The post’s own words and images are never reused. A recreation refuses `,_jsx(_components.code,{children:`pack_id`}),`,\n`,_jsx(_components.code,{children:`title`}),`, and any `,_jsx(_components.code,{children:`image_source`}),` other than `,_jsx(_components.code,{children:`auto`}),`. Reading the reference counts against your\nViral Library `,_jsx(_components.code,{children:`get`}),` rate limit, and only slideshow posts can be recreated.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`image-sources-your-slides`,children:`Image sources (your slides)`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`auto`}),` (the default) finds a matching image for each slide from its copy and\n`,_jsx(_components.code,{children:`image_subject`}),`, searching Genviral’s curated image library first and Pinterest second.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pack`}),` uses images from one of your `,_jsx(_components.a,{href:`/api-reference/slideshow-packs`,children:`image packs`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ai_from_reference`}),` is an opt-in premium mode that generates every slide image, using the\nslide images of one `,_jsx(_components.a,{href:`/api-reference/get-viral-library-post`,children:`Viral Library`}),` post as a style\nreference. Slide 1 is styled on the post’s slide 1, slide 2 on its slide 2, and so on,\ncycling when your deck is longer. The reference guides look and composition only; its\nimages and copy are never reused. Reading the reference counts against your Viral Library\n`,_jsx(_components.code,{children:`get`}),` rate limit.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`To recreate a Viral Library post with Genviral-written copy and searched images, leave out\n`,_jsx(_components.code,{children:`slides`}),` (see above).`]}),`\n`,_jsx(Heading,{level:`2`,id:`credits`,children:`Credits`}),`\n`,_jsxs(_components.p,{children:[`Credits are charged when generation starts, and `,_jsx(_components.code,{children:`credits_charged`}),` reports the charge. Each\ngenerated image (`,_jsx(_components.code,{children:`ai_from_reference`}),`) is charged at the slideshow image rate; `,_jsx(_components.code,{children:`auto`}),` and\n`,_jsx(_components.code,{children:`pack`}),` slides are not charged per image. If generation fails, credits for slides that were\nnot produced are refunded.`]}),`\n`,_jsx(Heading,{level:`2`,id:`idempotency`,children:`Idempotency`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Idempotency-Key`}),` is required and is scoped to the API key (or MCP grant) that sends it.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Retrying with the same key and the same body returns the original `,_jsx(_components.code,{children:`202`}),` response, including\nits original `,_jsx(_components.code,{children:`credits_charged`}),`, and never starts or charges a second generation. The replayed\n`,_jsx(_components.code,{children:`generation_status`}),` is the status at start time; poll `,_jsx(_components.code,{children:`GET /slideshows/{slideshowId}`}),` for the\ncurrent one.`]}),`\n`,_jsxs(_components.li,{children:[`Reusing a key with a different body returns `,_jsx(_components.code,{children:`409 idempotency_key_reused`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A request that is refused (for example `,_jsx(_components.code,{children:`402`}),` or `,_jsx(_components.code,{children:`422`}),`) does not consume its key, so you can fix\nthe problem and retry with the same key.`]}),`\n`,_jsxs(_components.li,{children:[`To try again after a generation finished with `,_jsx(_components.code,{children:`generation_status: \"failed\"`}),`, send a new key.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsxs(ParamField,{body:`slides`,type:`object[]`,id:`param-slides`,children:[_jsxs(_components.p,{children:[`1 to 10 slides, in order. Required unless you recreate `,_jsx(_components.code,{children:`reference`}),`.`]}),_jsxs(Expandable,{title:`Slide Object`,children:[_jsx(ParamField,{body:`overlay_text`,type:`string`,required:true,id:`param-overlay-text`,children:_jsx(_components.p,{children:`The exact on-screen words for this slide (1 to 500 characters). Rendered as written.`})}),_jsx(ParamField,{body:`image_subject`,type:`string`,id:`param-image-subject`,children:_jsxs(_components.p,{children:[`What the slide’s photo must show, as a short noun phrase such as `,_jsx(_components.code,{children:`golden retriever puppy`}),`\n(up to 80 characters). Leave it out to let the slide’s copy guide the image.`]})})]})]}),`\n`,_jsx(ParamField,{body:`image_source`,type:`string`,default:`auto`,id:`param-image-source`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`auto`}),` (default), `,_jsx(_components.code,{children:`pack`}),`, or `,_jsx(_components.code,{children:`ai_from_reference`}),` (opt-in, charged per generated image).`]})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:_jsxs(_components.p,{children:[`Recreation only: what the new deck is about when there is no `,_jsx(_components.code,{children:`product_id`}),` (up to 8000\ncharacters). Refused alongside `,_jsx(_components.code,{children:`slides`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`reference`,type:`object`,id:`param-reference`,children:[_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`slides`}),`, required when `,_jsx(_components.code,{children:`image_source`}),` is `,_jsx(_components.code,{children:`ai_from_reference`}),`, and only accepted then.\nWithout `,_jsx(_components.code,{children:`slides`}),`, the post to recreate.`]}),_jsx(Expandable,{title:`Reference Object`,children:_jsx(ParamField,{body:`viral_post_id`,type:`string`,required:true,id:`param-viral-post-id`,children:_jsxs(_components.p,{children:[`A post `,_jsx(_components.code,{children:`id`}),` from `,_jsx(_components.a,{href:`/api-reference/search-viral-library`,children:`Search Viral Library`}),`.`]})})})]}),`\n`,_jsx(ParamField,{body:`pack_id`,type:`string`,id:`param-pack-id`,children:_jsxs(_components.p,{children:[`Image pack UUID. Required when `,_jsx(_components.code,{children:`image_source`}),` is `,_jsx(_components.code,{children:`pack`}),`, and only accepted then.`]})}),`\n`,_jsx(ParamField,{body:`product_id`,type:`string`,id:`param-product-id`,children:_jsxs(_components.p,{children:[`Optional product UUID the slideshow is for. A recreation needs this or `,_jsx(_components.code,{children:`prompt`}),`.`]})}),`\n`,_jsx(ParamField,{body:`aspect_ratio`,type:`string`,default:`9:16`,id:`param-aspect-ratio`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`3:4`}),`, `,_jsx(_components.code,{children:`1:1`}),`, or `,_jsx(_components.code,{children:`4:5`}),`.`]})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,id:`param-language`,children:_jsxs(_components.p,{children:[`Optional language of your copy, such as `,_jsx(_components.code,{children:`en`}),` or `,_jsx(_components.code,{children:`de`}),`.`]})}),`\n`,_jsx(ParamField,{body:`title`,type:`string`,id:`param-title`,children:_jsx(_components.p,{children:`Optional display title for the slideshow (up to 200 characters). Not accepted for a\nrecreation.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`slideshow_id`,type:`string`,id:`param-slideshow-id`,children:_jsx(_components.p,{children:`The slideshow being generated. Poll it with Get Slideshow.`})}),`\n`,_jsx(ResponseField,{name:`generation_status`,type:`string`,id:`param-generation-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`generating`}),` or, when replaying a finished request, `,_jsx(_components.code,{children:`complete`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`credits_charged`,type:`number`,id:`param-credits-charged`,children:_jsx(_components.p,{children:`Credits charged for this generation.`})}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`polling`,children:`Polling`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.genviral.io/api/partner/v1/slideshows/2ab58bb0-0c39-45c0-a4d5-b6852f9d7fc0`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Check `,_jsx(_components.code,{children:`data.generation_status`}),` every 4 to 15 seconds. While it is `,_jsx(_components.code,{children:`generating`}),`,\n`,_jsx(_components.code,{children:`data.generation_phase`}),` names the current step (`,_jsx(_components.code,{children:`researching`}),`, `,_jsx(_components.code,{children:`writing`}),`, `,_jsx(_components.code,{children:`images`}),`,\n`,_jsx(_components.code,{children:`assembling`}),`) for progress UI. When it is `,_jsx(_components.code,{children:`failed`}),`, `,_jsx(_components.code,{children:`data.generation_failure`}),` holds a stable\n`,_jsx(_components.code,{children:`code`}),` and a short message.`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`400 invalid_json`}),` - request body is not valid JSON`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`400 invalid_request`}),` - `,_jsx(_components.code,{children:`Idempotency-Key`}),` header is missing or longer than 255 characters`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`401`}),` - authentication failed (missing/invalid/revoked token)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`402 insufficient_credits`}),` - not enough credits for this generation`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`403 product_not_accessible`}),` - the product is not accessible to this key`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`404 viral_reference_not_found`}),` - the Viral Library post does not exist`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`409 idempotency_key_reused`}),` - this `,_jsx(_components.code,{children:`Idempotency-Key`}),` was already used with a different body`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`409 request_in_progress`}),` - an identical request with this key is still being processed; retry shortly`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422 invalid_payload`}),` - body failed validation (see `,_jsx(_components.code,{children:`issues`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422 viral_reference_has_no_images`}),` - the Viral Library post has no slide images to reference`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422 viral_reference_not_slideshow`}),` - the Viral Library post is a video; only slideshow posts can be recreated`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422 pack_not_usable`}),` - the pack is not accessible or has no images`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`429 rate_limited`}),` - Viral Library `,_jsx(_components.code,{children:`get`}),` limit reached; wait `,_jsx(_components.code,{children:`retry_after_seconds`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`502 generation_enqueue_failed`}),` - generation could not be started; retry with the same key`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`503 viral_reference_analysis_unavailable`}),` - the post could not be analyzed right now; retry with the same key shortly`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Start Slideshow Generation","api":"POST /api/partner/v1/slideshows/generations","description":"Start async slideshow generation from your own slide copy, or recreate a Viral Library post.","href":"/api-reference/start-slideshow-generation"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Starts generating a slideshow in the background and returns its `,_jsx(_components.code,{children:`slideshow_id`}),` right away\nwith `,_jsx(_components.code,{children:`202 Accepted`}),`. Generation typically takes a few minutes.`]}),`\n`,_jsxs(_components.p,{children:[`Poll `,_jsx(_components.a,{href:`/api-reference/get-slideshow`,children:`Get Slideshow`}),` with the returned id until\n`,_jsx(_components.code,{children:`generation_status`}),` is `,_jsx(_components.code,{children:`complete`}),` or `,_jsx(_components.code,{children:`failed`}),`. A complete slideshow can then be edited,\nrendered, and posted like any other.`]}),`\n`,_jsx(_components.p,{children:`A request takes one of two shapes:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Your slides.`}),` You write the words on every slide in `,_jsx(_components.code,{children:`slides`}),`; Genviral plans the deck,\nsources or generates the images, and lays out your copy unchanged.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Recreate a Viral Library post.`}),` Leave out `,_jsx(_components.code,{children:`slides`}),` and send `,_jsx(_components.code,{children:`reference`}),` with a\n`,_jsx(_components.code,{children:`product_id`}),` or `,_jsx(_components.code,{children:`prompt`}),`. Genviral analyzes that post’s slides, writes new copy about your\nproduct or prompt in its format, and finds new images by search, exactly like\n`,_jsx(_components.a,{href:`/api-reference/generate-slideshow`,children:`Generate Slideshow`}),` with `,_jsx(_components.code,{children:`reference`}),`, but without waiting\nfor the deck. The post’s own words and images are never reused. A recreation refuses `,_jsx(_components.code,{children:`pack_id`}),`,\n`,_jsx(_components.code,{children:`title`}),`, and any `,_jsx(_components.code,{children:`image_source`}),` other than `,_jsx(_components.code,{children:`auto`}),`. Reading the reference counts against your\nViral Library `,_jsx(_components.code,{children:`get`}),` rate limit, and only slideshow posts can be recreated.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`image-sources-your-slides`,children:`Image sources (your slides)`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`auto`}),` (the default) finds a matching image for each slide from its copy and\n`,_jsx(_components.code,{children:`image_subject`}),`, searching Genviral’s curated image library first and Pinterest second.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pack`}),` uses images from one of your `,_jsx(_components.a,{href:`/api-reference/slideshow-packs`,children:`image packs`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ai_from_reference`}),` is an opt-in premium mode that generates every slide image, using the\nslide images of one `,_jsx(_components.a,{href:`/api-reference/get-viral-library-post`,children:`Viral Library`}),` post as a style\nreference. Slide 1 is styled on the post’s slide 1, slide 2 on its slide 2, and so on,\ncycling when your deck is longer. The reference guides look and composition only; its\nimages and copy are never reused. Reading the reference counts against your Viral Library\n`,_jsx(_components.code,{children:`get`}),` rate limit.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`To recreate a Viral Library post with Genviral-written copy and searched images, leave out\n`,_jsx(_components.code,{children:`slides`}),` (see above).`]}),`\n`,_jsx(Heading,{level:`2`,id:`credits`,children:`Credits`}),`\n`,_jsxs(_components.p,{children:[`Credits are charged when generation starts, and `,_jsx(_components.code,{children:`credits_charged`}),` reports the charge. Each\ngenerated image (`,_jsx(_components.code,{children:`ai_from_reference`}),`) is charged at the slideshow image rate; `,_jsx(_components.code,{children:`auto`}),` and\n`,_jsx(_components.code,{children:`pack`}),` slides are not charged per image. If generation fails, credits for slides that were\nnot produced are refunded.`]}),`\n`,_jsx(Heading,{level:`2`,id:`idempotency`,children:`Idempotency`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Idempotency-Key`}),` is required and is scoped to the API key (or MCP grant) that sends it.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Retrying with the same key and the same body returns the original `,_jsx(_components.code,{children:`202`}),` response, including\nits original `,_jsx(_components.code,{children:`credits_charged`}),`, and never starts or charges a second generation. The replayed\n`,_jsx(_components.code,{children:`generation_status`}),` is the status at start time; poll `,_jsx(_components.code,{children:`GET /slideshows/{slideshowId}`}),` for the\ncurrent one.`]}),`\n`,_jsxs(_components.li,{children:[`Reusing a key with a different body returns `,_jsx(_components.code,{children:`409 idempotency_key_reused`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A request that is refused (for example `,_jsx(_components.code,{children:`402`}),` or `,_jsx(_components.code,{children:`422`}),`) does not consume its key, so you can fix\nthe problem and retry with the same key.`]}),`\n`,_jsxs(_components.li,{children:[`To try again after a generation finished with `,_jsx(_components.code,{children:`generation_status: \"failed\"`}),`, send a new key.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsxs(ParamField,{body:`slides`,type:`object[]`,id:`param-slides`,children:[_jsxs(_components.p,{children:[`1 to 10 slides, in order. Required unless you recreate `,_jsx(_components.code,{children:`reference`}),`.`]}),_jsxs(Expandable,{title:`Slide Object`,children:[_jsx(ParamField,{body:`overlay_text`,type:`string`,required:true,id:`param-overlay-text`,children:_jsx(_components.p,{children:`The exact on-screen words for this slide (1 to 500 characters). Rendered as written.`})}),_jsx(ParamField,{body:`image_subject`,type:`string`,id:`param-image-subject`,children:_jsxs(_components.p,{children:[`What the slide’s photo must show, as a short noun phrase such as `,_jsx(_components.code,{children:`golden retriever puppy`}),`\n(up to 80 characters). Leave it out to let the slide’s copy guide the image.`]})})]})]}),`\n`,_jsx(ParamField,{body:`image_source`,type:`string`,default:`auto`,id:`param-image-source`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`auto`}),` (default), `,_jsx(_components.code,{children:`pack`}),`, or `,_jsx(_components.code,{children:`ai_from_reference`}),` (opt-in, charged per generated image).`]})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,id:`param-prompt`,children:_jsxs(_components.p,{children:[`Recreation only: what the new deck is about when there is no `,_jsx(_components.code,{children:`product_id`}),` (up to 8000\ncharacters). Refused alongside `,_jsx(_components.code,{children:`slides`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`reference`,type:`object`,id:`param-reference`,children:[_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`slides`}),`, required when `,_jsx(_components.code,{children:`image_source`}),` is `,_jsx(_components.code,{children:`ai_from_reference`}),`, and only accepted then.\nWithout `,_jsx(_components.code,{children:`slides`}),`, the post to recreate.`]}),_jsx(Expandable,{title:`Reference Object`,children:_jsx(ParamField,{body:`viral_post_id`,type:`string`,required:true,id:`param-viral-post-id`,children:_jsxs(_components.p,{children:[`A post `,_jsx(_components.code,{children:`id`}),` from `,_jsx(_components.a,{href:`/api-reference/search-viral-library`,children:`Search Viral Library`}),`.`]})})})]}),`\n`,_jsx(ParamField,{body:`pack_id`,type:`string`,id:`param-pack-id`,children:_jsxs(_components.p,{children:[`Image pack UUID. Required when `,_jsx(_components.code,{children:`image_source`}),` is `,_jsx(_components.code,{children:`pack`}),`, and only accepted then.`]})}),`\n`,_jsx(ParamField,{body:`product_id`,type:`string`,id:`param-product-id`,children:_jsxs(_components.p,{children:[`Optional product UUID the slideshow is for. A recreation needs this or `,_jsx(_components.code,{children:`prompt`}),`.`]})}),`\n`,_jsx(ParamField,{body:`aspect_ratio`,type:`string`,default:`9:16`,id:`param-aspect-ratio`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`3:4`}),`, `,_jsx(_components.code,{children:`1:1`}),`, or `,_jsx(_components.code,{children:`4:5`}),`.`]})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,id:`param-language`,children:_jsxs(_components.p,{children:[`Optional language of your copy, such as `,_jsx(_components.code,{children:`en`}),` or `,_jsx(_components.code,{children:`de`}),`.`]})}),`\n`,_jsx(ParamField,{body:`title`,type:`string`,id:`param-title`,children:_jsx(_components.p,{children:`Optional display title for the slideshow (up to 200 characters). Not accepted for a\nrecreation.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`slideshow_id`,type:`string`,id:`param-slideshow-id`,children:_jsx(_components.p,{children:`The slideshow being generated. Poll it with Get Slideshow.`})}),`\n`,_jsx(ResponseField,{name:`generation_status`,type:`string`,id:`param-generation-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`generating`}),` or, when replaying a finished request, `,_jsx(_components.code,{children:`complete`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`credits_charged`,type:`number`,id:`param-credits-charged`,children:_jsx(_components.p,{children:`Credits charged for this generation.`})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.genviral.io/api/partner/v1/slideshows/generations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Idempotency-Key: 6c1f1f7e-2d0e-4f55-9a43-0d8a3b4f2a10'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_source\": \"ai_from_reference\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reference\": { \"viral_post_id\": \"7451234567890123456\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"slides\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"overlay_text\": \"nobody warns you how quiet dinner gets when you cook for one\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"overlay_text\": \"so I started making one-pan meals\", \"image_subject\": \"sheet pan dinner\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"overlay_text\": \"now Sunday prep takes 40 minutes\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"aspect_ratio\": \"9:16\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL (recreate a post)`,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.genviral.io/api/partner/v1/slideshows/generations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Idempotency-Key: 0b6f4f0e-7a51-4c1e-9d0f-5f9b2b7e1c42'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reference\": { \"viral_post_id\": \"7451234567890123456\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"PantryAI, an app that saves recipes from TikTok and Instagram\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`202`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Slideshow generation started\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"slideshow_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2ab58bb0-0c39-45c0-a4d5-b6852f9d7fc0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"generation_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"generating\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"credits_charged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`polling`,children:`Polling`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.genviral.io/api/partner/v1/slideshows/2ab58bb0-0c39-45c0-a4d5-b6852f9d7fc0`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003ctoken>'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Check `,_jsx(_components.code,{children:`data.generation_status`}),` every 4 to 15 seconds. While it is `,_jsx(_components.code,{children:`generating`}),`,\n`,_jsx(_components.code,{children:`data.generation_phase`}),` names the current step (`,_jsx(_components.code,{children:`researching`}),`, `,_jsx(_components.code,{children:`writing`}),`, `,_jsx(_components.code,{children:`images`}),`,\n`,_jsx(_components.code,{children:`assembling`}),`) for progress UI. When it is `,_jsx(_components.code,{children:`failed`}),`, `,_jsx(_components.code,{children:`data.generation_failure`}),` holds a stable\n`,_jsx(_components.code,{children:`code`}),` and a short message.`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`400 invalid_json`}),` - request body is not valid JSON`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`400 invalid_request`}),` - `,_jsx(_components.code,{children:`Idempotency-Key`}),` header is missing or longer than 255 characters`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`401`}),` - authentication failed (missing/invalid/revoked token)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`402 insufficient_credits`}),` - not enough credits for this generation`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`403 product_not_accessible`}),` - the product is not accessible to this key`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`404 viral_reference_not_found`}),` - the Viral Library post does not exist`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`409 idempotency_key_reused`}),` - this `,_jsx(_components.code,{children:`Idempotency-Key`}),` was already used with a different body`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`409 request_in_progress`}),` - an identical request with this key is still being processed; retry shortly`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422 invalid_payload`}),` - body failed validation (see `,_jsx(_components.code,{children:`issues`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422 viral_reference_has_no_images`}),` - the Viral Library post has no slide images to reference`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422 viral_reference_not_slideshow`}),` - the Viral Library post is a video; only slideshow posts can be recreated`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`422 pack_not_usable`}),` - the pack is not accessible or has no images`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`429 rate_limited`}),` - Viral Library `,_jsx(_components.code,{children:`get`}),` limit reached; wait `,_jsx(_components.code,{children:`retry_after_seconds`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`502 generation_enqueue_failed`}),` - generation could not be started; retry with the same key`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`503 viral_reference_analysis_unavailable`}),` - the post could not be analyzed right now; retry with the same key shortly`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Start Slideshow Generation","api":"POST /api/partner/v1/slideshows/generations","description":"Start async slideshow generation from your own slide copy, or recreate a Viral Library post.","href":"/api-reference/start-slideshow-generation"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Image sources (your slides)","slug":"image-sources-your-slides","depth":2,"children":[]},{"title":"Credits","slug":"credits","depth":2,"children":[]},{"title":"Idempotency","slug":"idempotency","depth":2,"children":[]},{"title":"Body Parameters","slug":"body-parameters","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Polling","slug":"polling","depth":2,"children":[]},{"title":"Error Responses","slug":"error-responses","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://www.genviral.io/api/partner/v1/slideshows/generations\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer \u0026#x3C;token>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Idempotency-Key: 6c1f1f7e-2d0e-4f55-9a43-0d8a3b4f2a10'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"image_source\": \"ai_from_reference\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"reference\": { \"viral_post_id\": \"7451234567890123456\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"slides\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"overlay_text\": \"nobody warns you how quiet dinner gets when you cook for one\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"overlay_text\": \"so I started making one-pan meals\", \"image_subject\": \"sheet pan dinner\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> { \"overlay_text\": \"now Sunday prep takes 40 minutes\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"aspect_ratio\": \"9:16\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL (recreate a post)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://www.genviral.io/api/partner/v1/slideshows/generations\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer \u0026#x3C;token>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Idempotency-Key: 0b6f4f0e-7a51-4c1e-9d0f-5f9b2b7e1c42'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"reference\": { \"viral_post_id\": \"7451234567890123456\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"prompt\": \"PantryAI, an app that saves recipes from TikTok and Instagram\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ok\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">202\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Slideshow generation started\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"slideshow_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2ab58bb0-0c39-45c0-a4d5-b6852f9d7fc0\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"generation_status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"generating\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"credits_charged\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">3\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Start Slideshow Generation","path":"/api/partner/v1/slideshows/generations","method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"slides":[{"type":"array","items":[{"type":"object","properties":{"overlay_text":[{"type":"string","description":"The exact on-screen words for this slide (1 to 500 characters). Rendered as written.","required":true}],"image_subject":[{"type":"string","description":"What the slide’s photo must show, as a short noun phrase such as `golden retriever puppy` (up to 80 characters). Leave it out to let the slide’s copy guide the image."}]}}],"description":"1 to 10 slides, in order. Required unless you recreate `reference` ."}],"image_source":[{"type":"string","description":"`auto` (default), `pack` , or `ai_from_reference` (opt-in, charged per generated image)."}],"prompt":[{"type":"string","description":"Recreation only: what the new deck is about when there is no `product_id` (up to 8000 characters). Refused alongside `slides` ."}],"reference":[{"type":"object","properties":{"viral_post_id":[{"type":"string","description":"A post `id` from Search Viral Library .","required":true}]},"description":"With `slides` , required when `image_source` is `ai_from_reference` , and only accepted then. Without `slides` , the post to recreate."}],"pack_id":[{"type":"string","description":"Image pack UUID. Required when `image_source` is `pack` , and only accepted then."}],"product_id":[{"type":"string","description":"Optional product UUID the slideshow is for. A recreation needs this or `prompt` ."}],"aspect_ratio":[{"type":"string","description":"`9:16` , `3:4` , `1:1` , or `4:5` ."}],"language":[{"type":"string","description":"Optional language of your copy, such as `en` or `de` ."}],"title":[{"type":"string","description":"Optional display title for the slideshow (up to 200 characters). Not accepted for a recreation."}]}}],"examples":{"example":{"value":{"slides":[{"overlay_text":"\u003cstring>","image_subject":"\u003cstring>"}],"image_source":"\u003cstring>","prompt":"\u003cstring>","reference":{"viral_post_id":"\u003cstring>"},"pack_id":"\u003cstring>","product_id":"\u003cstring>","aspect_ratio":"\u003cstring>","language":"\u003cstring>","title":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"slideshow_id":[{"type":"string","description":"The slideshow being generated. Poll it with Get Slideshow."}],"generation_status":[{"type":"string","description":"`generating` or, when replaying a finished request, `complete` ."}],"credits_charged":[{"type":"number","description":"Credits charged for this generation."}]}}],"examples":{"example":{"value":{"slideshow_id":"\u003cstring>","generation_status":"\u003cstring>","credits_charged":123}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"fddigital-2a62ffc1","siteName":"Genviral","title":"Start Slideshow Generation - Genviral","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-02T02:22:39.359Z","originalFileLocation":"api-reference/start-slideshow-generation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Start async slideshow generation from your own slide copy, or recreate a Viral Library post.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Genviral\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fddigital-2a62ffc1/jU_jPLfvVCYVex_O/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/fddigital-2a62ffc1/jU_jPLfvVCYVex_O/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fddigital-2a62ffc1/jU_jPLfvVCYVex_O/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fddigital-2a62ffc1/jU_jPLfvVCYVex_O/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fddigital-2a62ffc1/jU_jPLfvVCYVex_O/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fddigital-2a62ffc1/jU_jPLfvVCYVex_O/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fddigital-2a62ffc1/jU_jPLfvVCYVex_O/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fddigital-2a62ffc1/jU_jPLfvVCYVex_O/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fddigital-2a62ffc1/jU_jPLfvVCYVex_O/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Start Slideshow Generation - Genviral\">\u003cmeta data-mint-head property=\"og:description\" content=\"Start async slideshow generation from your own slide copy, or recreate a Viral Library post.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Genviral\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.genviral.io/api-reference/start-slideshow-generation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fddigital-2a62ffc1.mintlify.site/_mintlify/api/og/v2?division=Slideshows\u0026amp;title=Start+Slideshow+Generation\u0026amp;description=Start+async+slideshow+generation+from+your+own+slide+copy%2C+or+recreate+a+Viral+Library+post.\u0026amp;theme=38640542e8c2b46f98fe2f88\u0026amp;signature=faea81b1774132a5ea3b3bc69fd6e7a8745dd35f5c04735d9816057725eb6ecd\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Start Slideshow Generation - Genviral\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Start async slideshow generation from your own slide copy, or recreate a Viral Library post.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fddigital-2a62ffc1.mintlify.site/_mintlify/api/og/v2?division=Slideshows\u0026amp;title=Start+Slideshow+Generation\u0026amp;description=Start+async+slideshow+generation+from+your+own+slide+copy%2C+or+recreate+a+Viral+Library+post.\u0026amp;theme=38640542e8c2b46f98fe2f88\u0026amp;signature=faea81b1774132a5ea3b3bc69fd6e7a8745dd35f5c04735d9816057725eb6ecd\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/fddigital-2a62ffc1/jU_jPLfvVCYVex_O/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Genviral\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.genviral.io/api-reference/start-slideshow-generation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/start-slideshow-generation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.genviral.io/#organization\",\"name\":\"Genviral\",\"url\":\"https://docs.genviral.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://www.genviral.io/logo-big.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.genviral.io#website\",\"name\":\"Genviral\",\"url\":\"https://docs.genviral.io\",\"publisher\":{\"@id\":\"https://docs.genviral.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.genviral.io/api-reference/start-slideshow-generation#webpage\",\"url\":\"https://docs.genviral.io/api-reference/start-slideshow-generation\",\"name\":\"Start Slideshow Generation\",\"description\":\"Start async slideshow generation from your own slide copy, or recreate a Viral Library post.\",\"dateModified\":\"2026-10-02T02:22:39.359Z\",\"isPartOf\":{\"@id\":\"https://docs.genviral.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.genviral.io/api-reference/start-slideshow-generation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.genviral.io/api-reference/start-slideshow-generation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Genviral\",\"item\":\"https://docs.genviral.io\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Start Slideshow Generation\",\"item\":\"https://docs.genviral.io/api-reference/start-slideshow-generation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.genviral.io/api-reference/start-slideshow-generation#apireference\",\"headline\":\"Start Slideshow Generation\",\"name\":\"Start Slideshow Generation\",\"description\":\"Start async slideshow generation from your own slide copy, or recreate a Viral Library post.\",\"url\":\"https://docs.genviral.io/api-reference/start-slideshow-generation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.genviral.io/api-reference/start-slideshow-generation#webpage\"},\"dateModified\":\"2026-10-02T02:22:39.359Z\",\"publisher\":{\"@id\":\"https://docs.genviral.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.genviral.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Genviral\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Genviral\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/start-slideshow-generation.md","siteName":"Genviral","nav":{"global":null,"tabs":[{"tab":"API Reference","groups":[{"group":"Getting Started","pages":[{"title":"Genviral Partner API","sidebarTitle":"Introduction","href":"/api-reference/introduction"},{"title":"llms.txt","sidebarTitle":"llms.txt","url":"https://docs.genviral.io/llms.txt","href":"/api-reference/llms-txt"},{"title":"Response Pattern","href":"/api-reference/response"},{"title":"Data Structures","href":"/api-reference/data-structures"},{"group":"Guides","pages":[{"title":"Folders","href":"/api-reference/folders"},{"title":"Studio AI","href":"/api-reference/studio-ai"},{"title":"Slideshows – AI Slideshow Generation API for TikTok, Instagram \u0026 More","sidebarTitle":"Slideshows","href":"/api-reference/slideshows"},{"title":"Slideshow Packs – Reusable Image Collections for Automated Content","sidebarTitle":"Slideshow Packs","href":"/api-reference/slideshow-packs"},{"title":"Slideshow Templates – Reusable Blueprints for Automated Slideshow Creation","sidebarTitle":"Slideshow Templates","href":"/api-reference/slideshow-templates"}]}]},{"group":"Accounts","pages":[{"title":"Get Accounts","api":"GET /api/partner/v1/accounts","href":"/api-reference/get-accounts"},{"title":"Get Subscription","api":"GET /api/partner/v1/subscription","href":"/api-reference/get-subscription"},{"title":"List Workspaces","api":"GET /api/partner/v1/workspaces","href":"/api-reference/list-workspaces"},{"group":"Analytics","pages":[{"title":"Get Analytics Summary","api":"GET /api/partner/v1/analytics/summary","href":"/api-reference/get-analytics-summary"},{"title":"List Analytics Posts","api":"GET /api/partner/v1/analytics/summary/posts","href":"/api-reference/list-analytics-posts"},{"title":"Get Best Posting Times","api":"GET /api/partner/v1/analytics/best-times","href":"/api-reference/get-best-posting-times"},{"title":"List Analytics Targets","api":"GET /api/partner/v1/analytics/targets","href":"/api-reference/manage-analytics-targets"},{"title":"Create Analytics Target","api":"POST /api/partner/v1/analytics/targets","href":"/api-reference/create-analytics-target"},{"title":"Get Analytics Target","api":"GET /api/partner/v1/analytics/targets/{id}","href":"/api-reference/manage-analytics-target"},{"title":"Update Analytics Target","api":"PATCH /api/partner/v1/analytics/targets/{id}","href":"/api-reference/update-analytics-target"},{"title":"Delete Analytics Target","api":"DELETE /api/partner/v1/analytics/targets/{id}","href":"/api-reference/delete-analytics-target"},{"title":"Refresh Analytics Target","api":"POST /api/partner/v1/analytics/targets/{id}/refresh","href":"/api-reference/refresh-analytics-target"},{"title":"Get Analytics Refresh","api":"GET /api/partner/v1/analytics/refreshes/{id}","href":"/api-reference/get-analytics-refresh"},{"title":"Get Analytics Workspace Suggestions","api":"GET /api/partner/v1/analytics/workspace-suggestions","href":"/api-reference/get-analytics-workspace-suggestions"}]}]},{"group":"Posts","pages":[{"title":"Create Post","api":"POST /api/partner/v1/posts","sidebarTitle":"Create Post","href":"/api-reference/create-post"},{"title":"Get Suggested Post Slot","api":"GET /api/partner/v1/posts/suggested-slot","href":"/api-reference/get-suggested-post-slot"},{"title":"List Posts","api":"GET /api/partner/v1/posts","href":"/api-reference/list-posts"},{"title":"Get Post","api":"GET /api/partner/v1/posts/{postId}","href":"/api-reference/get-post"},{"title":"Update Post","api":"PATCH /api/partner/v1/posts/{postId}","href":"/api-reference/update-post"},{"title":"Delete Posts","api":"POST /api/partner/v1/posts/delete","href":"/api-reference/delete-post"},{"title":"Retry Post","api":"POST /api/partner/v1/posts/retry","href":"/api-reference/retry-posts"}]},{"group":"Files","pages":[{"title":"Upload File","api":"POST /api/partner/v1/files","href":"/api-reference/upload-file"},{"title":"Start Multipart Upload","api":"POST /api/partner/v1/files/multipart","href":"/api-reference/start-multipart-upload"},{"title":"Complete Multipart Upload","api":"POST /api/partner/v1/files/{fileId}/multipart/complete","href":"/api-reference/complete-multipart-upload"},{"title":"Abort Multipart Upload","api":"DELETE /api/partner/v1/files/{fileId}/multipart","href":"/api-reference/abort-multipart-upload"},{"title":"List Files","api":"GET /api/partner/v1/files","href":"/api-reference/list-files"}]},{"group":"Folders","pages":[{"title":"List Folders","api":"GET /api/partner/v1/folders","href":"/api-reference/list-folders"},{"title":"Create Folder","api":"POST /api/partner/v1/folders","href":"/api-reference/create-folder"},{"title":"Get Folder","api":"GET /api/partner/v1/folders/{folderId}","href":"/api-reference/get-folder"},{"title":"Move Folder","api":"PATCH /api/partner/v1/folders/{folderId}","href":"/api-reference/move-folder"},{"title":"Delete Folder","api":"DELETE /api/partner/v1/folders/{folderId}","href":"/api-reference/delete-folder"},{"title":"List Folder Ancestors","api":"GET /api/partner/v1/folders/{folderId}/ancestors","href":"/api-reference/list-folder-ancestors"},{"title":"List Folder Items","api":"GET /api/partner/v1/folders/{folderId}/items","href":"/api-reference/list-folder-items"},{"title":"Add Folder Items","api":"POST /api/partner/v1/folders/{folderId}/items","href":"/api-reference/add-folder-items"},{"title":"Remove Folder Items","api":"DELETE /api/partner/v1/folders/{folderId}/items","href":"/api-reference/remove-folder-items"}]},{"group":"Influencers","pages":[{"title":"List Influencers","api":"GET /api/partner/v1/influencers","href":"/api-reference/list-influencers"},{"title":"Get Influencer","api":"GET /api/partner/v1/influencers/{influencerId}","href":"/api-reference/get-influencer"}]},{"group":"Studio AI","pages":[{"title":"Get Studio Models","api":"GET /api/partner/v1/studio/models","href":"/api-reference/get-studio-models"},{"title":"Generate Studio Image","api":"POST /api/partner/v1/studio/images/generate","href":"/api-reference/generate-studio-image"},{"title":"Get Studio Image","api":"GET /api/partner/v1/studio/images/{imageId}","href":"/api-reference/get-studio-image"},{"title":"Generate Studio Video","api":"POST /api/partner/v1/studio/videos/generate","href":"/api-reference/generate-studio-video"},{"title":"Get Studio Video","api":"GET /api/partner/v1/studio/videos/{videoId}","href":"/api-reference/get-studio-video"},{"title":"Prepare a verified Studio asset","api":"POST /api/partner/v1/studio/assets/materialize","href":"/api-reference/materialize-studio-asset"},{"title":"Create a character-swap batch","api":"POST /api/partner/v1/studio/character-swaps/batches","href":"/api-reference/create-character-swap-batch"},{"title":"Browse Studio templates","api":"GET /api/partner/v1/studio/templates","href":"/api-reference/list-studio-templates"},{"title":"Get a Studio template recipe","api":"GET /api/partner/v1/studio/templates/{templateId}","href":"/api-reference/get-studio-template"},{"title":"List saved Studio creations","api":"GET /api/partner/v1/studio/creations","href":"/api-reference/list-studio-creations"},{"title":"Get a saved Studio creation","api":"GET /api/partner/v1/studio/creations/{creationId}","href":"/api-reference/get-studio-creation"},{"title":"Browse Studio products","api":"GET /api/partner/v1/studio/inputs/products","href":"/api-reference/list-studio-products"},{"title":"Browse trained character profiles","api":"GET /api/partner/v1/studio/inputs/character-profiles","href":"/api-reference/list-studio-character-profiles"},{"title":"Delete a Studio creation","api":"POST /api/partner/v1/studio/creations/delete","href":"/api-reference/delete-studio-creation"},{"title":"Favorite a character-swap template","api":"POST /api/partner/v1/studio/templates/favorite","href":"/api-reference/favorite-studio-template"},{"title":"Translate a verified video","api":"POST /api/partner/v1/studio/videos/translate","description":null,"href":"/api-reference/translate-studio-video"}]},{"group":"Slideshows","pages":[{"title":"Start Slideshow Generation","api":"POST /api/partner/v1/slideshows/generations","href":"/api-reference/start-slideshow-generation"},{"title":"Generate Slideshow","api":"POST /api/partner/v1/slideshows/generate","description":"Generate AI-powered slideshows for TikTok photo carousels, Instagram carousels, Pinterest pins, and more. Supports AI generation from prompts, manual slide configuration, and mixed mode. The core content creation endpoint for OpenClaw agents.","href":"/api-reference/generate-slideshow"},{"title":"List Slideshows","api":"GET /api/partner/v1/slideshows","href":"/api-reference/list-slideshows"},{"title":"Get Slideshow","api":"GET /api/partner/v1/slideshows/{slideshowId}","href":"/api-reference/get-slideshow"},{"title":"Get Slideshow Edit State","api":"GET /api/partner/v1/slideshows/{slideshowId}/edits","href":"/api-reference/get-slideshow-edit-state"},{"title":"Apply Slideshow Edits","api":"POST /api/partner/v1/slideshows/{slideshowId}/edits","href":"/api-reference/apply-slideshow-edits"},{"title":"Update Slideshow","api":"PATCH /api/partner/v1/slideshows/{slideshowId}","href":"/api-reference/update-slideshow"},{"title":"Delete Slideshow","api":"DELETE /api/partner/v1/slideshows/{slideshowId}","href":"/api-reference/delete-slideshow"},{"title":"Render Slideshow","api":"POST /api/partner/v1/slideshows/{slideshowId}/render","href":"/api-reference/render-slideshow"},{"title":"Duplicate Slideshow","api":"POST /api/partner/v1/slideshows/{slideshowId}/duplicate","href":"/api-reference/duplicate-slideshow"},{"title":"Regenerate Slide","api":"POST /api/partner/v1/slideshows/{slideshowId}/slides/{slideIndex}/regenerate","href":"/api-reference/regenerate-slide"},{"title":"List TikTok Account Posts","api":"POST /api/partner/v1/slideshows/copy-tiktok/account-posts","href":"/api-reference/copy-tiktok-account-posts"},{"title":"Preview TikTok Slideshow Copy","api":"POST /api/partner/v1/slideshows/copy-tiktok/preview","href":"/api-reference/copy-tiktok-preview"},{"title":"Import TikTok Slideshow Copy","api":"POST /api/partner/v1/slideshows/copy-tiktok/import","href":"/api-reference/copy-tiktok-import"},{"title":"Create a manual slideshow","api":"POST /api/partner/v1/slideshows","href":"/api-reference/create-manual-slideshow"},{"title":"Export a slideshow","api":"POST /api/partner/v1/slideshows/{slideshowId}/export","href":"/api-reference/export-slideshow"},{"title":"Generate slide text variations","api":"POST /api/partner/v1/slideshows/{slideshowId}/slides/{slideIndex}/text-variations","href":"/api-reference/generate-slide-text-variations"},{"title":"Import a slideshow image","api":"POST /api/partner/v1/slideshows/import-image","href":"/api-reference/import-slideshow-image"}]},{"group":"Video Editor","pages":[{"title":"Create Editor Project","api":"POST /api/partner/v1/editor/projects","href":"/api-reference/create-editor-project"},{"title":"List Editor Projects","api":"GET /api/partner/v1/editor/projects","href":"/api-reference/list-editor-projects"},{"title":"Get Editor Project","api":"GET /api/partner/v1/editor/projects/{projectId}","href":"/api-reference/get-editor-project"},{"title":"Apply Editor Ops","api":"POST /api/partner/v1/editor/projects/{projectId}/ops","href":"/api-reference/apply-editor-ops"},{"title":"Add Editor Files","api":"POST /api/partner/v1/editor/projects/{projectId}/files","href":"/api-reference/add-editor-files"},{"title":"Add Editor Captions","api":"POST /api/partner/v1/editor/projects/{projectId}/captions","href":"/api-reference/add-editor-captions"},{"title":"Post Editor Message","api":"POST /api/partner/v1/editor/projects/{projectId}/messages","href":"/api-reference/post-editor-message"},{"title":"Get Editor Transcript","api":"POST /api/partner/v1/editor/projects/{projectId}/transcript","href":"/api-reference/get-editor-transcript"},{"title":"Render Editor Project","api":"POST /api/partner/v1/editor/projects/{projectId}/render","href":"/api-reference/render-editor-project"},{"title":"Get Editor Render","api":"GET /api/partner/v1/editor/projects/{projectId}/render","href":"/api-reference/get-editor-render"},{"title":"Add editor media","api":"POST /api/partner/v1/editor/projects/{projectId}/assets","href":"/api-reference/add-editor-assets"},{"title":"Paste scoped editor clips","api":"POST /api/partner/v1/editor/projects/{projectId}/clipboard","href":"/api-reference/paste-editor-clips"},{"title":"Import a reviewed slideshow","api":"POST /api/partner/v1/editor/projects/{projectId}/slideshow","href":"/api-reference/import-editor-slideshow"},{"title":"Import reviewed remix clips","api":"POST /api/partner/v1/editor/projects/{projectId}/remix","href":"/api-reference/import-editor-remix"},{"title":"Review editor version scheduling","api":"POST /api/partner/v1/editor/projects/{projectId}/schedule/prepare","href":"/api-reference/prepare-editor-schedule"},{"title":"Confirm editor version scheduling","api":"POST /api/partner/v1/editor/projects/{projectId}/schedule/commit","href":"/api-reference/commit-editor-schedule"},{"title":"Read editor scheduling status","api":"GET /api/partner/v1/editor/projects/{projectId}/schedule/status","href":"/api-reference/get-editor-schedule-status"},{"title":"Read editor batch status","api":"GET /api/partner/v1/editor/batches/{batchId}/status","href":"/api-reference/get-editor-batch-status"},{"title":"Dismiss a failed batch item","api":"POST /api/partner/v1/editor/batches/{batchId}/dismiss","href":"/api-reference/dismiss-editor-batch-item"},{"title":"Search Reddit communities","openapi":"GET /editor/reddit/accounts/{accountId}/communities","href":"/api-reference/search-editor-reddit-communities"},{"title":"Read Reddit community settings","openapi":"GET /editor/reddit/accounts/{accountId}/restrictions","href":"/api-reference/get-editor-reddit-restrictions"}]},{"group":"Viral Library","pages":[{"title":"Search Viral Library","api":"GET /api/partner/v1/viral-library","href":"/api-reference/search-viral-library"},{"title":"Get Viral Library Post","api":"GET /api/partner/v1/viral-library/{postId}","href":"/api-reference/get-viral-library-post"},{"title":"Get Viral Library Transcript","api":"GET /api/partner/v1/viral-library/{postId}/transcript","href":"/api-reference/get-viral-library-transcript"}]},{"group":"Trends","pages":[{"title":"Get Trend Brief","api":"GET /api/partner/v1/trends/brief","href":"/api-reference/get-trend-brief"},{"title":"Search Reddit Posts","api":"POST /api/partner/v1/trends/reddit/search","href":"/api-reference/search-reddit-posts"},{"title":"Read Reddit Threads","api":"POST /api/partner/v1/trends/reddit/threads","href":"/api-reference/read-reddit-threads"}]},{"group":"Packs","pages":[{"title":"List Packs","api":"GET /api/partner/v1/packs","href":"/api-reference/list-packs"},{"title":"Create Pack","api":"POST /api/partner/v1/packs","href":"/api-reference/create-pack"},{"title":"Get Pack","api":"GET /api/partner/v1/packs/{packId}","href":"/api-reference/get-pack"},{"title":"Update Pack","api":"PATCH /api/partner/v1/packs/{packId}","href":"/api-reference/update-pack"},{"title":"Delete Pack","api":"DELETE /api/partner/v1/packs/{packId}","href":"/api-reference/delete-pack"},{"title":"Add Pack Image","api":"POST /api/partner/v1/packs/{packId}/images","href":"/api-reference/add-pack-image"},{"title":"Delete Pack Image","api":"DELETE /api/partner/v1/packs/{packId}/images/{imageId}","href":"/api-reference/delete-pack-image"}]},{"group":"Templates","pages":[{"title":"List Templates","api":"GET /api/partner/v1/templates","href":"/api-reference/list-templates"},{"title":"Create Template","api":"POST /api/partner/v1/templates","href":"/api-reference/create-template"},{"title":"Get Template","api":"GET /api/partner/v1/templates/{templateId}","href":"/api-reference/get-template"},{"title":"Update Template","api":"PATCH /api/partner/v1/templates/{templateId}","href":"/api-reference/update-template"},{"title":"Delete Template","api":"DELETE /api/partner/v1/templates/{templateId}","href":"/api-reference/delete-template"},{"title":"Create Template From Slideshow","api":"POST /api/partner/v1/templates/from-slideshow/{slideshowId}","href":"/api-reference/create-template-from-slideshow"}]},{"group":"Music","pages":[{"title":"List music tracks","api":"GET /api/partner/v1/music/tracks","href":"/api-reference/list-music-tracks"},{"title":"Add a music track","api":"POST /api/partner/v1/music/tracks","href":"/api-reference/add-music-track"},{"title":"Rename a music track","api":"PATCH /api/partner/v1/music/tracks/{trackId}","href":"/api-reference/update-music-track"},{"title":"Delete a music track","api":"DELETE /api/partner/v1/music/tracks/{trackId}","href":"/api-reference/delete-music-track"},{"title":"Import music","api":"POST /api/partner/v1/music/imports","href":"/api-reference/import-music"}]},{"group":"Remix sources","pages":[{"title":"Preview a remix source","api":"POST /api/partner/v1/remix/preview","href":"/api-reference/preview-remix-source"},{"title":"Discover remix sources","api":"POST /api/partner/v1/remix/discover","href":"/api-reference/discover-remix-sources"},{"title":"Create a remix project","api":"POST /api/partner/v1/remix/projects","href":"/api-reference/create-remix-project"},{"title":"List remix clips","api":"GET /api/partner/v1/remix/projects/{projectId}/clips","href":"/api-reference/list-remix-clips"},{"title":"Import remix clips","api":"POST /api/partner/v1/remix/projects/{projectId}/imports","href":"/api-reference/import-remix-clips"}]}]}]},"basePath":"","title":"Start Slideshow Generation - Genviral","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js"]}