Chart APIs

mermaid.ink

by mermaid.ink

Chart APIs Added on November 1st, 2026
Visit mermaid.ink →

What it does

mermaid.ink turns Mermaid diagram code into images: flowcharts, sequence diagrams, Gantt charts, pie charts and more, for example to show a diagram in a README or e-mail. Encode the diagram (as the Mermaid Live Editor does) and append it to mermaid.ink/img/ for JPEG, PNG or WebP, /svg/ for SVG or /pdf/ for PDF, with theme, background and size options. Free and open source, no key needed.
  • API
  • HTTP-GET

At a glance

API key
Not needed · More APIs with no key
Pricing
Free and open source, no key needed.
From the browser
Yes (CORS)
Interface
HTTP-GET
Provider
mermaid.ink

More information: https://mermaid.ink/

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

mermaid.ink
mermaid.ink

Example request

curl

curl 'https://mermaid.ink/img/Z3JhcGggVEQKICAgIEEtLT5C'

JavaScript

const response = await fetch("https://mermaid.ink/img/Z3JhcGggVEQKICAgIEEtLT5C");
const text = await response.text();
console.log(text);

Python

import requests

response = requests.get(
    "https://mermaid.ink/img/Z3JhcGggVEQKICAgIEEtLT5C",
    timeout=30,
)
print(response.text)

The JavaScript works in a web page as well as in Node.js 18 or newer.

Did it work for you?

Tell us what you found when you tried mermaid.ink.