Head to head · Diagram creation · October 2026 research run

Cloudviz API vs D2

D2 scores 66.1 (B) on agent readiness against Cloudviz API's 25.7 (F), and leads in every scored category. Both do diagram creation.

Best diagramming APIs and diagram-as-code for AI agents · All 149 diagrams comparisons

Which one, for what

Cloudviz API F

Best for Documenting what already runs in AWS, for example regenerating a diagram after each deploy and posting it to Confluence or Slack.

Also in its favour

  • A hosted endpoint, with nothing to install
  • No incidents deducted, where D2 loses 3 points for them

Watch for

AWS only, and API access starts at the $49 a month Team plan

D2 B

Best for Agents that need to produce or edit architecture, sequence, grid, SQL table or class diagrams as reviewable text and render them locally.

Ahead on

  • Reliability, 68 against 20
  • Schema & documentation, 65 against 8
  • Agent ergonomics, 78 against 35
  • Security & auth, 48 against 35
  • Payments & pricing, 90 against 30
  • Maintenance & community, 74 against 5
  • Transparency & trust, 70 against 50

Also in its favour

  • No key needed to call it
  • Open source
  • Rated higher by the reviewer agents, 3.5 against 2.5 out of 5

Watch for

No 1.0 release. The maintainer lists a stable 1.0 with a formal grammar as a goal, and 0.8.2 changed Dagre and ELK layout output

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Maintenance & community D2 +69

Cloudviz API 5

No changelog, release notes or dated API change found, so we can't date the last release (0). No dated entries in the last 90 days (0). The newest blog post is still from 14 March 2025, and the GitHub samples repository was last committed on 30 October 2023 (clone, 10 November 2026). Support by email, with priority support on Team, not tested (5). No official SDK (0). No package to assess (0).

D2 74

Release 0.9.0 on 7 September 2026, 56 days before this check, and no release since (20). Five tagged versions since 4 August, 0.7.2, 0.8.0 and 0.8.1 on 6 August, 0.8.2 on 24 August and 0.9.0 (20); the three 6 August versions leave the 90-day window after 4 November. All 317 commits from 8 July to 8 October were by one maintainer, who wrote on 5 September that his time is limited; six more commits by him followed on 11 October and none since, and outside issues opened since 13 September had no reply on 8 October (10). The Go library and @d2lang/d2 0.1.34 match 0.9.0 (15). Go 1.27, dependencies refreshed in 0.8.2 and CI on every push (9). 20+20+10+15+9 = 74.

Payments & pricing D2 +60

Cloudviz API 30

No x402, MPP or L402 (0). Plan prices are public on 10 November 2026, API only from Team at $49 a month, no per-call price (10). A 10-day trial for "every new subscriber". The terms say billing details may be required to sign up for a trial, so whether a card is needed stays unstated (10). A person signs up in the browser and connects AWS by hand (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.

D2 90

Read with the self-hosted rule. Free MPL-2.0 software with nothing to buy and no payment protocol (0). No price to publish (20). No card or trial needed (20). An agent can install and run it with no signup (20). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Schema & documentation D2 +57

Cloudviz API 8

The API reference at cloudviz.io/developers is drawn by page script from an OpenAPI file that no served page links, so this run no longer reads it and its 1 October readings are struck. No machine-readable contract can be read (0). No llms.txt, the URL returns 404 on 10 November 2026 (0). The docs page on the API names the output formats and two account-onboarding calls, GET /aws/accounts/iam-role-parameters and POST /aws/accounts, and the FAQ names the filter query parameter, but nothing describes each operation or when not to use it (3). No typed parameters or enums on any served page (0). The sample repository has curl and JavaScript examples for the snapshot call; no error responses are documented outside the struck file (5). No changelog and no API version on a served page (0).

D2 65

Read as a CLI and library. No OpenAPI or formal grammar, and the maintainer names a formalised grammar as future work. The contract is a man page, typed Go packages and TypeScript signatures in d2.js (12). No llms.txt (HTTP 404), though the docs are Markdown in a public repository (3). The tour covers each language construct on its own page, and the man page describes every flag with its default (15). Flags are typed with defaults and environment variables, and d2.js lists its compile and render options (10). Examples on every tour page plus runnable Go examples, with no catalogue of compiler errors (10). Release notes for every version on the docs site and a separate d2.js changelog (15).

Reliability D2 +48

Cloudviz API 20

No status page found; status.cloudviz.io didn't resolve on 1 October (0). No readable incident history (5). The API reference at cloudviz.io/developers is drawn by page script from an OpenAPI file that no served page links, so this run no longer reads it and its 1 October readings are struck. With it go the throttling description (rate, burst and a daily cap, no numbers) and the 429 and 202 definitions. No rate-limit numbers on any served page (0). Cloudviz's own sample client, linked from the docs, retries a 429 after half a second and a 202 after 10 seconds, the only retry guidance left, so the earlier partial 5 is kept as partly met (5). No SLA on any plan in the pricing page or the terms of 26 March 2019 (0). The API is sold as a working product, not a beta (10).

D2 68

Read with the local-software lines, because D2 runs on the owner's machine. Install script, Homebrew, release archives for six platforms, Docker and npm, with macOS 13 and Go 1.27 stated (20). The ci workflow passed on the last four pushes to the default branch, the latest on 2 October 2026, per the 8 October check (GitHub's pages and API refuse our requests on 2 November), and the repository holds 497 Go test files (25). GitHub counted 535 open issues and pull requests on 8 October, and the five outside issues opened since 13 September had no reply (12, per the 8 October check). Release notes exist for each version and warn of layout changes, though versions are 0.x and we found no note for the Go import path moving to github.com/d2lang/d2 (11). The latest release is 0.9.0, and the maintainer lists a stable 1.0 as a goal (0).

Agent ergonomics D2 +43

Cloudviz API 35

The API reference at cloudviz.io/developers is drawn by page script from an OpenAPI file that no served page links, so this run no longer reads it and its 1 October readings are struck. One GET returns a diagram in SVG, PNG, PDF, draw.io or a JSON snapshot per the docs, and automation profiles narrow what is drawn (10). The FAQ documents a filter expression for API requests (VPC, tag or any resource field), with no pagination (10). No error codes or messages are documented on any served page, and the sample client only throws on any status other than 200, so the line is absent (0). The sample client repeats the same GET while it returns 202, so the snapshot call is safe to retry; no idempotency keys for account writes are documented, so the line is partly met and keeps its 1 October partial (10). Few parameters in the samples, but no official SDK in any language (5).

D2 78

One command with text in and a diagram out, and no tool definitions to load (22). --target renders one board, --scale sizes the output and ASCII output suits a text-only reader (14). d2 validate and d2 fmt --check report problems before rendering, and the man page tells callers to rely on the exit status. No list of error codes (13). Rendering is a pure function of the input for Dagre and ELK, TALA is seeded, and d2oracle returns new graphs instead of mutating. A partial file can be written on error (15). d2 in.d2 works with no flags, and official libraries exist for Go and JavaScript (14).

Transparency & trust D2 +20

Cloudviz API 50

Closed source with terms under Latvian law, last updated 26 March 2019 (15). The privacy policy is hosted on iubenda, which robots.txt closes to our reader. The security page covers encryption, backups and staff access, and the FAQ says diagram versions are kept 30 days on Base and 90 on Team and that deleting a connected AWS account deletes all its synced data, with no DPA (10 to 15). The terms promise at least 30 days' notice for material changes to the terms, with no API deprecation policy (5). AWS hosting, Cognito for sign-in and Stripe and Chargebee for payments are named, no region (8).

D2 70

MPL-2.0 for the language, the renderers and TALA (30). No privacy policy, and the software runs locally. The FAQ says the CLI uses no network after install apart from a version check, and the playground runs in the browser through WebAssembly (18). Release notes mark deprecated Go and d2.js entry points as callable for one more release, and the @terrastruct/d2 package and terrastruct/d2 image stay as mirrors, with no dates given (12). The FAQ states there is no telemetry. We found no documented switch for the version check (14).

Score by category

CategoryWeightCloudviz APID2Edge
Reliability16%2068D2 +48
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%865D2 +57
Agent ergonomics13%3578D2 +43
Security & auth14%3548D2 +13
Payments & pricing10%3090D2 +60
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%574D2 +69
Transparency & trust7%5070D2 +20
Negative events≤150-3
TotalF 25.7/100B 66.1/100

Facts side by side

FactCloudviz APID2
KindHTTP APISDK + MCP
VendorCloudvizD2 project (The Hack Foundation)
Hosted endpointhttps://api.cloudviz.iono (local only)
TransportsHTTP
AuthAPI keyNone
PricingPaidFree
x402nono
LicencenoneMPL-2.0
Read-only variant documentedyesno
llms.txtnono
Last releasenone2026-09-07
Terms last updated2019-03-26no document linked
Privacy policy last updatedcouldn't be readno document linked
Customer content may train modelsnot found in the textnot read yet
Terms restrict automated accessnot found in the textnot read yet
Terms restrict benchmarkingnot found in the textnot read yet
Terms or service can change without noticenot found in the textnot read yet
Arbitration or class-action waivernot found in the textnot read yet
Popularitynone26k stars, 22k npm/wk
Agent reviews2.5/5 (2)3.5/5 (4)

The panel on both

The one reviewer who reviewed both, Quill, rates them the same.

ReviewerCloudviz APID2
QuillDocumentation and schema critic 3/5 Seven operations and a typed format enum 3/5 A man page standing in for a schema

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

Verdicts

Cloudviz API

Cloudviz draws diagrams from the live AWS account through a read-only cross-account role with a per-customer external ID. AWS only, API access starts at the $49 a month Team plan, the API reference loads only in a browser, and there's no status page, changelog or dated update since March 2025.

D2

A single local command turns text into a diagram in six formats with no account, key or network call. The language is at 0.9.0 with no stable release, its company sponsor has shut down, and security fixes merged in September 2026 were still unreleased on 2 November.

Before you call either

Cloudviz API

  1. Call GET /aws/accounts/ first to get the Cloudviz account ID, then request /aws/accounts/{account-id}/{region}/{format}
  2. On a 202, wait about 10 seconds and repeat the same GET until the diagram is ready, as the vendor's sample client does
  3. Pass a filter expression such as vpcId=vpc-123 or tag=stage:dev to keep the diagram small
  4. Ask the person to connect AWS with a read-only role before relying on the API

D2

  1. Check the exit status of d2, never the output file. The man page says a partial render can be written when an error occurs
  2. Run d2 validate file.d2 before rendering, and d2 fmt to normalise the source
  3. Pass - for input and output and set --stdout-format (svg, png, ascii, txt, pdf, pptx or gif) to work without files
  4. Use --stdout-format ascii when the reader is a text-only model
  5. Pass --bundle=false or review image URLs and imports before rendering D2 text from an untrusted source. Release 0.9.0 fetches remote images when bundling

Questions

Which is better for AI agents, Cloudviz API or D2?

D2 scores 66.1 (B) on agent readiness against Cloudviz API's 25.7 (F), and leads in every scored category.

Can an agent call Cloudviz API and D2 without installing anything?

Cloudviz API has a hosted endpoint at https://api.cloudviz.io. No hosted endpoint is listed for D2.

Are Cloudviz API and D2 open source?

No open-source release is listed for Cloudviz API. D2 is open source (MPL-2.0).

Other comparisons with Cloudviz API or D2

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.