---
title: "Generate AI completions from content"
method: POST
path: "/api/v1/ai/completions"
tags: ["AI"]
---

# Generate AI completions from content

`POST /api/v1/ai/completions`

Creates AI-powered content summaries and completions based on provided prompts. Supports both streaming and non-streaming responses.

## Response `200`

Completion generated successfully

- object

## Other responses

- `400` — Bad request - Missing or invalid prompt
- `401` — Unauthorized - User not authenticated
- `500` — Internal server error

---

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