> For the complete documentation index, see [llms.txt](https://docs.autocontentapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autocontentapi.com/quick-start/slide-decks/from-topic.md).

# Create a Slide Deck from a Topic Prompt

Let the API draft a deck outline from a high-level subject. Include `text` to set the audience, call-to-action, or structure, and toggle `slideDeckFormat` to control density.

```bash
curl -X POST "https://api.autocontentapi.com/content/Create" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "outputType": "slide_deck",
    "topic": "Best practices for onboarding remote employees",
    "text": "Target startup HR teams with a concise 8-slide plan and one checklist slide.",
    "duration": "default",
    "slideDeckFormat": "presenter"
  }'
```

**Tips**

* Switch `slideDeckFormat` between `presenter` (lean slides plus notes) and `detailed` (heavier bullets per slide).
* Use `duration` (`short`, `default`, `long`) to stretch or compress the slide count and detail.
* Add a call-to-action in `text` to shape closing slides.

## Try it in code

* [C#](/code-samples/slide-decks/csharp/from-topic.md)
* [Node.js](/code-samples/slide-decks/nodejs/from-topic.md)
* [Java](/code-samples/slide-decks/java/from-topic.md)
* [PHP](/code-samples/slide-decks/php/from-topic.md)
* [Python](/code-samples/slide-decks/python/from-topic.md)
