---
title: "Generate AI Template"
method: POST
path: "/v1/template/ai"
tags: ["templates"]
---

# Generate AI Template

`POST /v1/template/ai`

Generate a private template with AI Engine

## Headers

- `X-Team-Id` string

## Request body

- object
  - `prompt` string, required
  - `retest` boolean
  - `disableAutoSave` boolean
  - `images` string[]

## Response `200`

Example response

- object
  - `template_id` string
  - `message` string, required
  - `completion` string
  - `name` string
  - `canRun` boolean
  - `comment` string
  - `is_valid` boolean
  - `retry_count` integer
  - `feedback` string
  - `targets` string[]
  - `retest` object[]
    - `target` string
    - `matched` boolean
    - `vuln_id` string

## Other responses

- `400` — Example response
- `401` — Example response
- `403` — Example response
- `500` — Example response
- `default` — Example response

---

[API](https://skmtc.net/projectdiscovery/apis/pdcp-api.md) · [All operations](https://skmtc.net/projectdiscovery/apis/pdcp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/projectdiscovery/pdcp-api/versions/220f0adf9efd/schema)
