DeckFlow Logo Developers DeckFlow documentation
Developer Guide API Reference MCP CLI

Create Task (Generation)

Generate professional presentation slides (PPTX) using complex documents, text prompts, or URLs.

Interface Specification

Create an asynchronous slide generation task. The value for type must be generation.

POST /tools/tasks

Request Headers

Header Type Required Description
Authorization String Yes Bearer <YOUR_API_KEY> — Your developer API key.
Content-Type String Yes Must be multipart/form-data.

POST Request Body Parameters (Form Data)

Parameter Type Required Description
spaceId String No Target workspace Space ID.
files File No Reference document files (PDF, Word, or Markdown). Supports multiple files.
type String Yes Task type. Fixed value: generation.
name String No Task display name, e.g., "AI Document Generation Task".
params String (JSON) Yes JSON string containing task parameters. Detailed fields below.

Task Parameters (params)

Inner properties supported inside the params JSON string:

Field Type Required Description
inputText String No Topic description, webpage URL, or raw text to build slide structures.
enableSearch Boolean No Enable web search to research and enrich content details. Default: false.
advancedModel Boolean No Use reasoning AI models for better logic and creative slides. Default: false.
fastMode Boolean No Prioritize faster execution speed over layout optimizations. Default: false.
intent String No Custom goal context or intention.
audience String No Target audience details to guide layouts and copywriting style.
pageCount Integer No Target number of slides to generate.
author String No PPTX author metadata.
notifyURL String No Webhook callback address triggered on task status changes.