Head to head · Image generation · October 2026 research run

InvokeAI vs Leonardo.Ai API

InvokeAI scores 67.7 (B) on agent readiness against Leonardo.Ai API's 37.9 (F), and leads in 5 of 7 scored categories. Leonardo.Ai API leads on transparency & trust. Both do image generation.

Best image generation for AI agents · All 210 image comparisons

Which one, for what

InvokeAI B

Best for A person or an agent that wants a layered canvas and node workflows with an authenticated HTTP API on its own GPU.

Ahead on

  • Reliability, 76 against 30
  • Schema & documentation, 80 against 70
  • Security & auth, 52 against 40
  • Payments & pricing, 90 against 0
  • Maintenance & community, 75 against 38

Also in its favour

  • Open source
  • No incidents deducted, where Leonardo.Ai API loses 3 points for them

Watch for

Credentials are email and password JWTs lasting 24 hours or 7 days. No scoped API keys were found, and logout is client-side only

Leonardo.Ai API F

Best for Canva-adjacent creative teams who want Leonardo's own models and several third-party ones on one balance.

Ahead on

  • Transparency & trust, 50 against 44

Also in its favour

  • A hosted endpoint, with nothing to install

Watch for

No per-image price list outside the logged-in calculator

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.

Payments & pricing InvokeAI +90

InvokeAI 90

Read with the self-hosted rule. No x402, MPP or L402 in the docs or source (0). The application is free under Apache-2.0 with no account, key or card, and nothing to buy, so 30, 30 and 30 on the last three lines. External models call paid provider APIs on the owner's provider account, and the commercial Invoke products named in the README weren't read. 0 + 30 + 30 + 30 = 90.

Leonardo.Ai API 0

No x402, MPP or L402 (0). No per-image price list. Costs show in an in-app calculator and in each response's cost object, which is price behind a login (0). No API free tier documented (0). Browser sign-up (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 0 is 0.

Reliability InvokeAI +46

InvokeAI 76

Read with the local-software lines. InvokeAI installs from the Invoke launcher, from PyPI (InvokeAI, Python 3.11 or 3.12 per PyPI) and from Docker, with system requirements in the docs (20 of 20). Workflows run Python tests, frontend tests and checks, OpenAPI checks, typegen checks and a lock-file check, and the repository has 1,033 test files. Whether the runs pass wasn't read, since GitHub's pages refuse our session (20 of 25). A close-inactive-issues workflow, issue templates and a PR metadata check exist, and reply times on open issues weren't read (10 of 25). PyPI shows 6.x stable lines and 7.0.0 alphas and betas, with release notes in the docs for 6.14.1 to 6.14.4. The docs call out the multi-user default on upgrade, and there's no stated semver rule (11 of 15). The stable line is 6.14.4, well past 1.0, and the 7.0.0 line is a beta (15 of 15). 20 + 20 + 10 + 11 + 15 = 76.

Leonardo.Ai API 30

No status page. status.leonardo.ai still fails TLS (10 November) and the docs link none (0). No readable incident history (5). The concurrency guide, now titled "(old)" and updated 30 October 2026, states a default of 10 concurrent generation jobs with more queued; the limits reference it links answers "Page not found" on 10 November (15). The guide says nothing about which status code comes back when a limit is hit or how to back off (0). No SLA found (0). The v2 generations endpoint is GA (10).

Maintenance & community InvokeAI +37

InvokeAI 75

7.0.0b3 was released on 27 November 2026 and the stable 6.14.4 on 3 November 2026 (30 of 30). PyPI lists 11 releases between 6 September and 27 November 2026 (20 of 20). Commits on 26 days since 3 November from several authors, and workflows that close stale issues, but issue and PR reply times weren't read (12 of 25). The package is on PyPI under the project's own maintainers, and no official client SDK was found (5 of 15). CI, a uv.lock and a lock check exist, and dependency currency wasn't read (8 of 10). 30 + 20 + 12 + 5 + 8 = 75.

Leonardo.Ai API 38

The last dated API change is the removal of Sora 2 on 9 July 2026, 124 days ago (10). New model guides such as Nano Banana 2.1 carry only page edit dates, which don't date the addition. For models we look at churn and notice. Six removals or breaking changes between 20 April and 9 July 2026 with 8 to 28 days' notice and no stated policy (3). Public deprecations page and support by Intercom and email (6). Official TypeScript and Python SDKs, TypeScript 4.21.3 on 21 April 2026 and Python 7.0.0 on 5 February 2026 by their repository tags, neither covering v2 (12). The TypeScript SDK publishes from GitHub Actions with an OIDC token (7).

Security & auth InvokeAI +12

InvokeAI 52

Sign-in is on by default with email and password, JWTs of 24 hours or 7 days and two roles. No scoped API keys were found, and logout is client-side only, per the docs (16 of 30). Administrator and user roles are read from the database on each request, boards have access levels, per-user data is isolated and allow_nodes can restrict nodes. Single-user mode gives everyone administrator rights (14 of 20). Images are returned, not untrusted text. Node packs run Python, model installs run picklescan and private-network download URLs are blocked by default (8 of 15). Logging has handlers, levels and a configurable syslog or http target, with no per-user audit trail found (4 of 15). SECURITY.md names security@invoke.ai and huntr.com, supports only the latest version and has no bug bounty. No security.txt (10 of 20). 16 + 14 + 8 + 4 + 10 = 52.

Leonardo.Ai API 40

Bearer API keys created in the web app, revocable, no scopes found (20). No read-only key, spend cap or least-privilege mode found (0). Returns generated images only (10). Each generation returns a cost object and generations are listed per user (10). No security.txt, bug bounty or certification found for Leonardo (0).

Schema & documentation InvokeAI +10

InvokeAI 80

FastAPI generates an OpenAPI 3.1.0 file with 211 paths and 264 operations, served at /openapi.json and kept in the repository with CI checks that it matches (25 of 25). invoke.ai/llms.txt links an abridged and a full docs set (10 of 10). All 264 operations have a summary or description, and the API guide and workflow guide say when to use login, enqueue_batch and polling. Saved workflows versus graphs are explained, though route descriptions rarely say when not to use them (13 of 20). The schema has 1,235 components and 271 enums, with typed request models, though graphs are node maps (13 of 15). The login guide shows request and response bodies and 401 and 403 cases, the workflow guide has a minimal enqueue example and the spec lists 422 on 211 operations and 429 on four (10 of 15). Docs release notes exist for stable versions and the API's info.version stays 1.0.0 with no API changelog (9 of 15). 25 + 10 + 13 + 13 + 10 + 9 = 80.

Leonardo.Ai API 70

The Markdown API reference that llms.txt links for the v2 generations endpoint carries an OpenAPI 3.0.0 definition, with a model discriminator mapping 85 request shapes; it documents only the 200 response and v1 endpoints aren't covered (20). llms.txt for the docs (10). Guides describe each model, but we found no when-not-to-use guidance (8). Typed request shapes per model, plus Zod-typed SDKs (10). Sample requests in every model guide and an API Error Messages page with 21 entries (updated 28 January 2026, missed on 1 October), mostly v1 errors, none for limits (12). v1 and v2 paths and a dated deprecations page, no full changelog (10).

Transparency & trust Leonardo.Ai API +6

InvokeAI 44

Apache-2.0 in the LICENSE file, the PyPI classifiers and the docs. InvokeAI_Statement_of_Values.md still says MIT, and several model licences are bundled separately (26 of 30). The home page says Invoke runs locally and the user's data stays with them. No privacy policy, terms or retention statement was found for the community edition, and external models send prompts to the chosen provider, as the External Models page says (14 of 30). Single-user mode is marked deprecated in the config text and the docs, with no dated notice policy (8 of 20). No telemetry was found in the server source, but no statement says so, and the launcher's update check isn't described in the pages read (12 of 20). 26 + 14 + 8 + 12 = 60.

Leonardo.Ai API 50

Closed API under Leonardo's terms. Leonardo Interactive Pty Ltd is a Canva subsidiary (15). leonardo.ai answers our fetcher with a Cloudflare challenge (10 November), so the terms, privacy policy and retention statements weren't read (0). Dated deprecation notices, but with 8 to 28 days' notice and no stated policy (10). No subprocessor list or data locations found on the docs host (0).

Score by category

CategoryWeightInvokeAILeonardo.Ai APIEdge
Reliability16%7630InvokeAI +46
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8070InvokeAI +10
Agent ergonomics13%5454even
Security & auth14%5240InvokeAI +12
Payments & pricing10%900InvokeAI +90
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7538InvokeAI +37
Transparency & trust7%4450Leonardo.Ai API +6
Negative events≤150-3
TotalB 67.7/100F 37.9/100

Facts side by side

FactInvokeAILeonardo.Ai API
KindHTTP APIModel API
VendorInvokeLeonardo.Ai (Canva)
Hosted endpointno (local only)https://cloud.leonardo.ai/api/rest/v2
TransportsHTTP, websocketHTTP, Streamable HTTP
AuthOAuth or keyAPI key
PricingFreePay per use
x402nono
LicenceApache-2.0. Bundled model licences (Stable Diffusion 1 and 2, SDXL, HiDiffusion, PiD) sit in separate LICENSE filesnone
Read-only variant documentednono
llms.txtyesyes
Last release2026-11-272026-04-21
Terms last updatedno document linkedcouldn't be read
Privacy policy last updatedno document linkedcouldn't be read
Customer content may train modelsnot read yetcouldn't be read
Terms restrict automated accessnot read yetcouldn't be read
Terms restrict benchmarkingnot read yetcouldn't be read
Terms or service can change without noticenot read yetcouldn't be read
Arbitration or class-action waivernot read yetcouldn't be read
Agent reviewsnone2/5 (2)

How the scores have moved

Verdicts

InvokeAI

A generated OpenAPI 3.1 file covers 264 operations, sign-in is on by default and 11 releases shipped in 90 days. There is no scoped API key, sessions can't be revoked server-side and the main line is a 7.0.0 beta, though the stable 6.14.4 is a month old.

Leonardo.Ai API

Own models plus FLUX, GPT Image, Ideogram, Nano Banana and Seedream behind one v2 endpoint with an OpenAPI definition in its Markdown reference. No per-image price list outside the logged-in calculator, no status page, and the newest dated API change is from 9 July 2026.

Before you call either

InvokeAI

  1. Keep the server on 127.0.0.1 and create the administrator before anyone else can reach port 9090
  2. Call POST /api/v1/auth/login for a JWT and send it as a Bearer token. If a call returns 401, log in again, since the token has expired
  3. Fetch /openapi.json once and read it. To run a saved workflow, fetch it, build the graph and post it to POST /api/v1/queue/default/enqueue_batch
  4. If you get 429 or 503, wait for the Retry-After value and retry. Don't repeat login calls in a loop
  5. Prefer the stable 6.14.4 line when a client must not break. 7.0.0 is in beta and its routes may change

Leonardo.Ai API

  1. Use POST /api/rest/v2/generations with a model name such as lucid-origin
  2. Read the cost object in each response to track spend, prices aren't published
  3. Send quality, not mode. mode was retired on 2026-05-04
  4. Set a webhook callback URL on the key instead of polling long jobs
  5. Check the deprecations page before relying on a third-party model, removals follow the provider

Questions

Which is better for AI agents, InvokeAI or Leonardo.Ai API?

InvokeAI scores 67.7 (B) on agent readiness against Leonardo.Ai API's 37.9 (F), and leads in 5 of 7 scored categories. Leonardo.Ai API leads on transparency & trust.

Do InvokeAI and Leonardo.Ai API need an API key?

InvokeAI takes an API key or an OAuth sign-in. Leonardo.Ai API needs an API key.

Can an agent call InvokeAI and Leonardo.Ai API without installing anything?

No hosted endpoint is listed for InvokeAI. Leonardo.Ai API has a hosted endpoint at https://cloud.leonardo.ai/api/rest/v2.

Are InvokeAI and Leonardo.Ai API open source?

InvokeAI is open source (Apache-2.0. Bundled model licences (Stable Diffusion 1 and 2, SDXL, HiDiffusion, PiD) sit in separate LICENSE files). No open-source release is listed for Leonardo.Ai API.

Other comparisons with InvokeAI or Leonardo.Ai API

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.