---
title: "Generate AI Template"
method: POST
path: "/v1/template/ai"
---

# Generate AI Template

`POST /v1/template/ai`

## Request body

- object
  - `prompt` string, required

## Response `200`

Example response

- object
  - `template_id` string, nullable
  - `message` string, required
  - `completion` string, nullable
  - `name` string, nullable

## Other responses

- `401` — Example response
- `500` — Example response

## Changes

- **2023-12-05** `5c3748c387f7` — 3 breaking, 11 warning, 9 info
  - the response property `completion` became nullable for the status `200`
  - the response property `name` became nullable for the status `200`
  - the response property `template_id` became nullable for the status `200`
  - deleted the `header` request parameter `X-Team-Id`
  - …19 more

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/template/ai/post.md)

---

[API](https://skmtc.dev/projectdiscovery/apis/pdcp-api.md) · [All operations](https://skmtc.dev/projectdiscovery/apis/pdcp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/projectdiscovery/pdcp-api/revisions/cd865d59d034/schema)
