{diagram_type}: Generate diagram with diagram type in URL

API: kroki.io:kroki
Endpoint: /{diagram_type}
Response format: text/plain
Auth: unknown
Method: POST
Last Status: 400
Latency: 178ms

Description

Returns a rendered diagram image by combining the diagram type from the URL path with the source code sent in the request body. Use this for simpler requests where the diagram type is known upfront and you want to send raw text instead of JSON.

From spec: Create a diagram by sending diagram source as plain text. Output format is determined by Accept header.

Usage Tips

- Diagram type is specified in URL (e.g., /graphviz, /mermaid, /plantuml) - Send diagram source as raw text in request body - Output format defaults to SVG - Simpler than JSON API for basic use cases

Parameters (1)

diagram_type (string, path, required)

The type of diagram to generate

Constraints: {'enum': ['actdiag', 'blockdiag', 'bpmn', 'bytefield', 'c4plantuml', 'd2', 'dbml', 'diagramsnet', 'ditaa', 'dot', 'erd', 'excalidraw', 'graphviz', 'mermaid', 'nomnoml', 'nwdiag', 'packetdiag', 'pikchr', 'plantuml', 'rackdiag', 'seqdiag', 'structurizr', 'svgbob', 'symbolator', 'tikz', 'umlet', 'vega', 'vegalite', 'wavedrom', 'wireviz']}

Examples (1)

Generate Mermaid flowchart via raw text POST probe-gate

Demonstrates sending raw diagram source to the Mermaid-specific endpoint for simpler integration

curl 'https://kroki.io/mermaid' \
  -X POST
import requests

resp = requests.post("https://kroki.io/mermaid")
data = resp.json()
import zingu_apis

api = zingu_apis.api("kroki")
result = api.get("{diagram_type}")

for item in result:
    print(item)
const resp = await fetch("https://kroki.io/mermaid", {
  method: "POST",
});
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 00:04:38.347969 400 178ms
2026-04-15 00:07:04.443868 400 179ms
2026-04-14 03:57:42.515751 400 172ms
2026-04-12 12:43:44.700163 400 97ms
2026-04-10 00:28:38.235555 400 130ms
2026-04-09 00:44:28.357334 400 186ms