Skip to content
diagramkit

diagramkit API

Diagrams your product
can make on its own.

Send a description. Get back a finished, on-brand diagram as an image, a PDF or an animation. For products, docs pipelines and agents that need to show how something works.

20 free credits to start. Then $0.50 a diagram.

One request
curl https://app.diagramkit.ai/api/v1/diagrams \
  -H "Authorization: Bearer $DIAGRAMKIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "What happens when a customer pays: the app, our server, the payment provider and the bank, in order", "wait": 180}'
What came backimage.png
The diagram that request made: a payment sequence between an app, a server, a payment provider and a bank, from the customer tapping Pay to the confirmation, in six numbered steps.

What people build with it.

Anywhere a picture explains it better than a paragraph, and nobody has time to draw one.

Sign in with Google: the app sends you to Google, you approve, Google returns a code, the app exchanges it for a token and signs you in.

Inside your product

A help center that answers with a diagram. A learning app that draws each lesson’s figure. Your users ask, your product shows them.

A pull request passes tests and review, merges to main, and the pipeline builds one artifact and deploys it to staging, then production.

Docs pipelines

Generate the architecture and process figures for every page from the text you already have, in one consistent style.

A question is embedded, matched to passages in a vector database, and answered by a language model using retrieved context and citations.

Agents that explain

Give your agent a diagram tool. It connects over MCP with the same API key and gets back a finished image to put in its answer.

Social content at scale

Posts, carousels and short videos from one description each. Ask for a carousel and get a cover, numbered pages and an end card as one PDF.

Finished files, in your brand.

Every diagram comes back ready to publish, in your colours, fonts and icons on Team and Enterprise plans. Download it in the format the destination needs, sized for docs, blogs, feeds or video.

The same diagram of how a web page loads, drawn in the No brand style.
No brand
The same diagram of how a web page loads, drawn in the Ledgerline style.
Ledgerline
The same diagram of how a web page loads, drawn in the Clayfield style.
Clayfield
  • PNG
  • JPG
  • SVG
  • PDF
  • MP4
  • GIF

Why not call an image model?

An image model paints pixels that look like a diagram. diagramkit builds the diagram itself. Same prompt, both results:

Image model ChatGPT Images
An illustrated MCP overview with server racks, an AI app, a model choosing from tool lists and a result loop.

4 mistakes, including: The servers feed straight into the model. The app sits between them.

diagramkit API
A sequence between the model, an AI app and MCP servers: the app connects and lists tools, the model picks one, the app calls the server and passes the result back.

Prompt: “How MCP (the Model Context Protocol) works: an AI app like Claude connects to MCP servers, each server lists its tools, the model picks a tool, the app calls it, and the result goes back to the model.”

Labels you can trust

Every label is real text, spelled as written and attached to the part it names.

Editable after the fact

Change a word, a colour or a position in seconds without redrawing. SVG downloads keep every label as text.

The same look every time

On Team and Enterprise, your brand applies to every diagram, so the hundredth figure matches the first.

How it works.

  1. Get a key

    Sign in and create one in Settings › API. New accounts get 20 credits.

  2. Describe what to draw

    Say what it should show and where it goes: docs, a blog, a social post, a carousel, an ad, a data story or an explainer video.

  3. Get the file back

    About a minute later: the finished diagram, ready to download as PNG, JPG, SVG, PDF, MP4 or GIF.

Get your API key.

$0.50 a diagram$0.20 a change$0.80 an animation20 free credits to start

No monthly fee. Volume pricing above 500 diagrams a month: talk to us.