POST /generations

Generate a presentation, document, website, or social post from text.

Start an asynchronous generation from text. Use this endpoint when Gamma should determine the layout from your input and generation settings.

Create async generation

post

Creates an asynchronous generation job from provided text input. Returns a generation ID that can be used to poll for status.

Authorizations
X-API-KEYstringRequired

API key for authentication

Body
inputTextstring · min: 1 · max: 400000Required

Input text for generation — a topic, outline, or full content. Max 400,000 characters.

Example: Quarterly sales report for Q3 2024
additionalInstructionsstring · max: 5000Optional

Additional context or instructions for AI

Example: Focus on year-over-year growth metrics
textModestring · enumRequired

How to interpret the input text

Example: generatePossible values:
formatstring · enumOptional

Output format

Example: presentationPossible values:
numCardsnumber · min: 1Optional

Target number of cards to generate. Limits vary by plan.

Example: 10
cardSplitstring · enumOptional

Content splitting strategy across cards

Example: autoPossible values:
themeIdstringOptional

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

Example: theme_abc123
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

Unique generation job identifier for status polling

Example: abc123xyz
warningsstringOptional

Warnings about ignored or adjusted request parameters

Example: Image model ignored when source is 'web'
post
/v1.0/generations
circle-info

For parameter guidance, see Generate from text.

Last updated

Was this helpful?