Lucid Create Diagram API

The CreateDiagram API from Lucid — 1 operation(s) for creatediagram.

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /createDiagram Create a diagram from Mermaid code · Create a new diagram #
Ask an LLM
“Can Lucid turn Mermaid code into a diagram image?”
“Will a Mermaid flowchart come back with a link I can edit in Lucidchart?”
Tell an agent
Create a diagram from Mermaid code {validDiagramCode}.
Render this Mermaid flowchart {validDiagramCode} and give me the edit link.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lucid:lucid-creatediagram-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lucid-creatediagram-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lucid Software ChatGPT Plugin Create Diagram API
  description: An API that allows for diagram creation from a description in Mermaid format.
  version: v1
servers:
- url: https://mlai.lucid.app
tags:
- name: CreateDiagram
paths:
  /createDiagram:
    post:
      operationId: createDiagram
      summary: Create a new diagram
      description: Accepts a JSON object with the diagram to be created, using Mermaid syntax. Returns a link to an image of the diagram. If the mermaid diagram is of type `flowchart`, it will also include a link to edit the diagram in Lucidchart.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createDiagram'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/createDiagramResponse'
      tags:
      - CreateDiagram
components:
  schemas:
    createDiagram:
      type: object
      properties:
        validDiagramCode:
          description: "The valid Mermaid code for the diagram. `flowchart` diagrams should be preferred, but all Mermaid diagram types are supported.\nMermaid Guidelines:\n - All node labels should be enclosed in square brackets and double quotes. For example, if you wanted node A to display `[Fe(CN)6]4-`, it should be written as `A[\"[Fe(CN)6]4-\"]`\n - A line from node A to node B is denoted `A --> B`\n - Subgraphs should be used sparingly, and not to enclose an entire diagram\n"
          type: string
      required:
      - validDiagramCode
    createDiagramResponse:
      type: object
      properties:
        imageLink:
          description: The link to the image of the diagram, to be displayed as an embedded image via Markdown.
          type: string
        error:
          description: Any errors encountered while handling the request.
          type: string
        editLink:
          description: A link to an editable version of the diagram in Lucidchart for flowchart diagrams.
          type: string