---
title: "Text To Diagram"
method: POST
path: "/api/ai/text-to-diagram"
tags: ["ai"]
---

# Text To Diagram

`POST /api/ai/text-to-diagram`

## Request

- Base URL: `https://board.noddle.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://board.noddle.dev/api/ai/text-to-diagram`
- Auth: none declared

## Request body

- DiagramBody: Request body for POST /api/ai/text-to-diagram.
  - `text` string, required
  - `format` 'text' | 'mermaid'
  - `effort` string
  - `backend` string
  - `image` string, nullable
  - `palette` string
  - `doc_id` string

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/noddle/apis/noddle-board.md) · [All operations](https://skmtc.dev/noddle/apis/noddle-board/llms.txt) · [OpenAPI document](https://skmtc.dev/noddle/apis/noddle-board/revisions/7f324e389516?raw)
