POST /generations/from-template

Generate content from an existing Gamma template with variable substitution.

Start an asynchronous generation from an existing Gamma template. Use this when you want to keep a fixed layout and swap in new content.

Create generation from template

post

Creates an asynchronous generation job from a template Gamma with variable substitution.

Authorizations
X-API-KEYstringRequired

API key for authentication

Body
promptstring · min: 1 · max: 400000Required

Text prompt describing the content to generate from the template. Max 400,000 characters.

Example: Q3 financial summary for investors
gammaIdstringRequired

File ID of the template Gamma. The template must have exactly one Page.

Example: gamma_abc123
themeIdstringOptional

Theme ID to apply. Get available IDs from the GET /themes endpoint.

Example: theme_xyz789
folderIdsstring[] · max: 10Optional

Folder IDs to place the generated Gamma in. Get available IDs from the GET /folders endpoint.

Example: ["folder_abc"]
exportAsstring · enumOptional

Auto-export format after generation completes.

Example: pdfPossible values:
Responses
chevron-right
200

Generation job created successfully

application/json
generationIdstringRequired

Generation job identifier for status polling

Example: gen_xyz789
warningsstringOptional

Warnings about request processing

Example: Some template variables were not found
post
/v1.0/generations/from-template
circle-info

For template workflow guidance, see Generate from template.

Last updated

Was this helpful?