POST /generations/from-template
Generate content from an existing Gamma template with variable substitution.
Authorizations
X-API-KEYstringRequired
API key for authentication
Body
promptstring · min: 1 · max: 400000RequiredExample:
Text prompt describing the content to generate from the template. Max 400,000 characters.
Q3 financial summary for investorsgammaIdstringRequiredExample:
File ID of the template Gamma. The template must have exactly one Page.
gamma_abc123themeIdstringOptionalExample:
Theme ID to apply. Get available IDs from the GET /themes endpoint.
theme_xyz789folderIdsstring[] · max: 10OptionalExample:
Folder IDs to place the generated Gamma in. Get available IDs from the GET /folders endpoint.
["folder_abc"]exportAsstring · enumOptionalExample:
Auto-export format after generation completes.
pdfPossible values: Responses
200
Generation job created successfully
application/json
generationIdstringRequiredExample:
Generation job identifier for status polling
gen_xyz789warningsstringOptionalExample:
Warnings about request processing
Some template variables were not found201Success
application/json
400
Invalid request or template not found
401
Invalid or missing API key
402
Insufficient credits
403
Feature not enabled for workspace
post
/v1.0/generations/from-templateRelated
Last updated
Was this helpful?