{
  "data": {
    "a": {
      "slug": "leonardo-ai",
      "name": "Leonardo.Ai API",
      "vendor": "Leonardo.Ai (Canva)",
      "vendorUrl": "https://leonardo.ai",
      "kind": "model",
      "category": "image-generation",
      "summary": "Leonardo's own Phoenix and Lucid image models alongside resold third-party ones (FLUX, GPT Image, Ideogram 3.0, Nano Banana, Seedream) through one v2 generations endpoint.",
      "url": "https://www.anchorterminal.com/tools/leonardo-ai",
      "markdownUrl": "https://www.anchorterminal.com/tools/leonardo-ai.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/leonardo-ai.min.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/leonardo-ai.json",
      "transports": [
        "http",
        "streamable-http"
      ],
      "remoteUrl": "https://cloud.leonardo.ai/api/rest/v2",
      "packages": [
        {
          "registry": "npm",
          "name": "@leonardo-ai/sdk"
        },
        {
          "registry": "pypi",
          "name": "leonardo-ai-sdk"
        }
      ],
      "auth": "api-key",
      "authNotes": "Bearer API key created on the API Access page of the web app. The hosted MCP server at https://mcp.leonardo.ai/v1/mcp takes the same key in an API-Key header.",
      "pricing": "usage",
      "pricingNotes": "Pay as you go from a prepaid dollar balance that doesn't expire, with optional auto top-up. No monthly fee. API billing is separate from web app subscriptions. Per-image prices aren't published as a table. Cost depends on model, resolution and output count, shown in the in-app pricing calculator and returned in a cost object on each generation. Custom plans on request (https://docs.leonardo.ai/docs/pricing-and-plans-faq).",
      "priceSummary": "Pay per use",
      "where": "hosted",
      "x402": {
        "level": "no",
        "evidence": "No x402 in the API docs (checked 2026-09-30).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": null,
        "npmWeekly": 20039,
        "pypiWeekly": 82,
        "asOf": "2026-09-30"
      },
      "docsUrl": "https://docs.leonardo.ai/docs/getting-started",
      "llmsTxt": "https://docs.leonardo.ai/llms.txt",
      "capabilities": [
        "image.generate",
        "image.edit",
        "image.upscale",
        "image.reference"
      ],
      "tags": [
        "hosted",
        "closed-source",
        "mcp",
        "llms-txt",
        "python",
        "typescript",
        "async-jobs",
        "webhooks",
        "commercial-licence"
      ],
      "lastRelease": "2026-04-21",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 37.8,
        "grade": "F",
        "agentReady": false,
        "rank": 433,
        "ranked": true,
        "rankOf": 452,
        "categoryRank": 9,
        "methodology": "0.3",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 54,
          "maintenance": 48,
          "payments": 0,
          "reliability": 30,
          "schema": 45,
          "security": 40,
          "transparency": 51
        },
        "pending": [
          "performance",
          "tasks"
        ],
        "assessment": {
          "confidence": "medium",
          "date": "2026-10-01"
        },
        "negative": 0,
        "verdict": "Own models plus FLUX, GPT Image, Ideogram, Nano Banana and Seedream behind one endpoint. No per-image price list outside the logged-in calculator.",
        "strengths": [
          "Own models plus FLUX, GPT Image, Ideogram, Nano Banana and Seedream behind one endpoint",
          "Pay as you go with a balance that doesn't expire and no monthly fee",
          "Every generation returns a cost object",
          "Official TypeScript and Python SDKs, published through npm trusted publishing",
          "Webhook callbacks as well as polling"
        ],
        "weaknesses": [
          "No per-image price list outside the logged-in calculator",
          "No status page and no security.txt",
          "Deprecation notice of 8 to 28 days with no stated policy",
          "No documented status code or backoff advice for limit errors",
          "TypeScript SDK last released on 21 April 2026"
        ],
        "agentNotes": [
          "Use `POST /api/rest/v2/generations` with a `model` name such as `lucid-origin`",
          "Read the `cost` object in each response to track spend, prices aren't published",
          "Send `quality`, not `mode`. `mode` was retired on 2026-05-04",
          "Set a webhook callback URL on the key instead of polling long jobs",
          "Check the deprecations page before relying on a third-party model, removals follow the provider"
        ],
        "metrics": {
          "kind": "remote",
          "measured": false
        },
        "reviewCount": 2,
        "avgRating": 2,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "F",
            "methodology": "0.3",
            "pending": [
              "performance",
              "tasks"
            ],
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 37.8
          }
        ],
        "editorialScores": {
          "ergonomics": 54,
          "maintenance": 48,
          "payments": 0,
          "reliability": 30,
          "schema": 45,
          "security": 40,
          "transparency": 25
        },
        "provenanceScore": 76
      },
      "connect": {
        "http": "curl -X POST https://cloud.leonardo.ai/api/rest/v2/generations \\\n  -H \"authorization: Bearer $LEONARDO_API_KEY\" -H \"content-type: application/json\" \\\n  -d '{\"model\":\"lucid-origin\",\"parameters\":{\"prompt\":\"a fox in a snowy forest\",\"width\":1024,\"height\":1024,\"quantity\":1},\"public\":false}'",
        "config": {
          "mcpServers": {
            "leonardo-ai": {
              "headers": {
                "API-Key": "${LEONARDO_API_KEY}"
              },
              "url": "https://mcp.leonardo.ai/v1/mcp"
            }
          }
        }
      },
      "letme": {
        "capability": "https://letme.dev/image.generate",
        "tool": "https://letme.dev/leonardo-ai"
      },
      "area": "content",
      "provenance": {
        "legalEntity": "Leonardo Interactive Pty Ltd",
        "domain": "leonardo.ai",
        "domainRegistered": "2019-01-08",
        "domainNote": "leonardo.ai was registered in 2019, before the company launched its product in 2022.",
        "endpointOnVendorDomain": true,
        "terms": "https://leonardo.ai/terms-of-service",
        "privacy": "https://leonardo.ai/privacy-policy",
        "statusPage": "",
        "changelog": "https://docs.leonardo.ai/docs/deprecations-changes",
        "securityTxt": "none",
        "checked": "2026-09-30",
        "notes": [
          "Legal entity is Leonardo Interactive Pty Ltd T/A Leonardo.Ai (ACN 662 209 485), a Canva subsidiary since 2024",
          "leonardo.ai returns 403 to curl and WebFetch, so the terms and privacy pages were read via search results",
          "status.leonardo.ai failed TLS and no other status page was found"
        ],
        "score": 76
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/leonardo-ai.json",
      "live": {
        "slug": "leonardo-ai",
        "probe": {
          "target": "https://cloud.leonardo.ai/api/rest/v2",
          "method": "get",
          "lastAt": "2026-10-05T02:29:57.858683914Z",
          "lastOk": true,
          "lastStatus": 401,
          "lastMs": 155,
          "lastNote": "asks for credentials",
          "authRequired": true,
          "uptime24h": 100,
          "uptime30d": 100,
          "p50ms24h": 161,
          "p95ms24h": 340,
          "samples24h": 273,
          "samples30d": 1131,
          "days": [
            {
              "date": "2026-09-30",
              "probes": 35,
              "ok": 35
            },
            {
              "date": "2026-10-01",
              "probes": 276,
              "ok": 276
            },
            {
              "date": "2026-10-02",
              "probes": 248,
              "ok": 248
            },
            {
              "date": "2026-10-03",
              "probes": 271,
              "ok": 271
            },
            {
              "date": "2026-10-04",
              "probes": 272,
              "ok": 272
            },
            {
              "date": "2026-10-05",
              "probes": 29,
              "ok": 29
            }
          ]
        },
        "versions": [
          {
            "registry": "npm",
            "name": "@leonardo-ai/sdk",
            "version": "4.21.3",
            "seenAt": "2026-10-04T16:31:33.492615477Z"
          },
          {
            "registry": "pypi",
            "name": "leonardo-ai-sdk",
            "version": "7.0.0",
            "released": "2026-02-05",
            "seenAt": "2026-10-04T16:31:35.754736869Z"
          }
        ],
        "npmWeekly": 25569,
        "pypiWeekly": 85,
        "securityTxt": {
          "url": "https://leonardo.ai/.well-known/security.txt",
          "state": "none",
          "checkedAt": "2026-10-04T15:15:57.322371796Z"
        },
        "llmsTxt": {
          "url": "https://docs.leonardo.ai/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-10-04T15:17:56.743674943Z"
        },
        "domain": {
          "domain": "leonardo.ai",
          "registered": "2019-01-08",
          "source": "https://rdap.identitydigital.services/rdap/domain/leonardo.ai",
          "checkedAt": "2026-10-04T13:07:29.136922598Z"
        },
        "pages": [
          {
            "url": "https://docs.leonardo.ai/docs/deprecations-changes",
            "kind": "deprecations",
            "status": 200,
            "checkedAt": "2026-10-04T15:43:44.401453686Z",
            "changedAt": "0001-01-01T00:00:00Z",
            "fingerprint": "2e7c377556f6"
          },
          {
            "url": "https://docs.leonardo.ai/docs/pricing-and-plans-faq",
            "kind": "pricing",
            "status": 200,
            "checkedAt": "2026-10-04T15:43:47.279750907Z",
            "changedAt": "0001-01-01T00:00:00Z",
            "fingerprint": "5a8a697933ab"
          },
          {
            "url": "https://leonardo.ai/privacy-policy",
            "kind": "privacy",
            "status": 403,
            "checkedAt": "2026-10-04T15:45:32.387451137Z",
            "changedAt": "0001-01-01T00:00:00Z"
          },
          {
            "url": "https://leonardo.ai/terms-of-service",
            "kind": "terms",
            "status": 403,
            "checkedAt": "2026-10-04T15:45:34.408696299Z",
            "changedAt": "0001-01-01T00:00:00Z"
          }
        ],
        "updatedAt": "2026-10-05T02:29:57.858683914Z"
      }
    },
    "b": {
      "slug": "openai-image-api",
      "name": "OpenAI Image API",
      "vendor": "OpenAI",
      "vendorUrl": "https://developers.openai.com",
      "kind": "model",
      "category": "image-generation",
      "summary": "OpenAI's image generation and editing endpoints (/v1/images/generations and /v1/images/edits), also callable as a tool inside the Responses API.",
      "url": "https://www.anchorterminal.com/tools/openai-image-api",
      "markdownUrl": "https://www.anchorterminal.com/tools/openai-image-api.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/openai-image-api.min.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/openai-image-api.json",
      "repo": "https://github.com/openai/openai-python",
      "license": "Apache-2.0 (SDKs)",
      "transports": [
        "http"
      ],
      "remoteUrl": "https://api.openai.com/v1",
      "packages": [
        {
          "registry": "pypi",
          "name": "openai"
        },
        {
          "registry": "npm",
          "name": "openai"
        }
      ],
      "auth": "api-key",
      "authNotes": "`Authorization: Bearer` with a project key. GPT Image models may need API organisation verification before the first call.",
      "pricing": "usage",
      "pricingNotes": "Prepaid, $5 minimum. GPT Image 2 and 2.5 bill per token, $5 per million text input, $8 per million image input and $30 per million image output, with image output at $15 per million through Batch. OpenAI publishes per-image figures only for earlier models, e.g. GPT Image 2 at 1024x1024 costs $0.006 low, $0.053 medium, $0.211 high. The GPT Image 2 cost calculator doesn't estimate GPT Image 2.5. Streaming partial images add 100 output tokens each (https://developers.openai.com/api/docs/pricing).",
      "priceSummary": "Pay per use",
      "where": "hosted",
      "x402": {
        "level": "no",
        "evidence": "No machine payment. Access needs an account with prepaid credit.",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": 31300,
        "npmWeekly": null,
        "pypiWeekly": null,
        "asOf": "2026-09-30"
      },
      "docsUrl": "https://developers.openai.com/api/docs/guides/image-generation",
      "llmsTxt": "https://developers.openai.com/llms.txt",
      "openapi": "https://github.com/openai/openai-openapi",
      "capabilities": [
        "image.generate",
        "image.edit",
        "image.reference"
      ],
      "tags": [
        "hosted",
        "card-required",
        "closed-source",
        "python",
        "typescript",
        "openapi",
        "llms-txt",
        "c2pa",
        "watermark",
        "commercial-licence"
      ],
      "lastRelease": "2026-09-22",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 72.7,
        "grade": "BB",
        "agentReady": true,
        "rank": 67,
        "ranked": true,
        "rankOf": 452,
        "categoryRank": 1,
        "methodology": "0.3",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 72,
          "maintenance": 79,
          "payments": 20,
          "reliability": 80,
          "schema": 90,
          "security": 85,
          "transparency": 92
        },
        "pending": [
          "performance",
          "tasks"
        ],
        "assessment": {
          "confidence": "high",
          "date": "2026-10-01"
        },
        "negative": -2,
        "negativeNotes": [
          "On 2025-11-26 OpenAI disclosed that its analytics vendor Mixpanel was breached, exposing names, emails, rough location and IDs of API platform users. No API keys, prompts or outputs. Mixpanel was removed and the incident documented (https://openai.com/index/mixpanel-incident/). -2 because it touched every API account, decayed because it's fixed and disclosed."
        ],
        "verdict": "Generation, mask edits and multi-reference edits on the same models, via the Image API or the Responses tool. No per-image price for GPT Image 2.5, and the cost calculator doesn't cover it.",
        "strengths": [
          "Generation, mask edits and multi-reference edits on the same models, via the Image API or the Responses tool",
          "Restricted keys can be limited to the image endpoints, with per-project spend limits",
          "No training on API data by default, 30-day abuse logs and Zero Data Retention eligibility for GPT Image models",
          "Typed parameters, an OpenAPI spec, llms.txt and a dated changelog",
          "Batch halves the image output price, including on GPT Image 2.5 Flare"
        ],
        "weaknesses": [
          "No per-image price for GPT Image 2.5, and the cost calculator doesn't cover it",
          "Tier 1 accounts get 5 images a minute on GPT Image 2.5 Flare",
          "Base64-only responses put the whole image in the payload",
          "Six image models removed or scheduled for removal between 2026-05-12 and 2026-12-01",
          "Three API image incidents in the last 90 days, the longest about 53 minutes of elevated errors"
        ],
        "agentNotes": [
          "Pin `quality` and `size`. `auto` makes cost and latency vary per call",
          "Read `usage` in the response to track image tokens, it's the only cost signal for GPT Image 2.5",
          "Don't retry `moderation_blocked` or `image_generation_user_error`. Change the prompt first",
          "Honour `Retry-After` on 429 and add jitter, image limits are per minute and low at tier 1",
          "Move off gpt-image-1 before 2026-10-23 and off 1-mini, 1.5 and chatgpt-image-latest before 2026-12-01"
        ],
        "metrics": {
          "kind": "remote",
          "measured": false
        },
        "reviewCount": 2,
        "avgRating": 3.5,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "high",
            "grade": "BB",
            "methodology": "0.3",
            "pending": [
              "performance",
              "tasks"
            ],
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 72.7
          }
        ],
        "editorialScores": {
          "ergonomics": 72,
          "maintenance": 79,
          "payments": 20,
          "reliability": 80,
          "schema": 90,
          "security": 85,
          "transparency": 83
        },
        "provenanceScore": 100
      },
      "connect": {
        "install": "pip install openai   # or: npm i openai",
        "http": "curl https://api.openai.com/v1/images/generations \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" -H \"content-type: application/json\" \\\n  -d '{\"model\":\"gpt-image-2.5-flare\",\"prompt\":\"A beige coffee mug on a wooden table\",\"size\":\"1024x1024\",\"quality\":\"medium\"}'"
      },
      "letme": {
        "capability": "https://letme.dev/image.generate",
        "tool": "https://letme.dev/openai-image-api"
      },
      "sameCompany": [
        "openai-api",
        "openai-embeddings",
        "openai-moderation",
        "openai-sora",
        "openai-agents-sdk",
        "openai-codex"
      ],
      "area": "content",
      "unitPrices": [
        {
          "item": "gpt-image-2",
          "unit": "image",
          "usd": 0.053,
          "note": "medium quality, 1024x1024, output tokens only"
        },
        {
          "item": "gpt-image-2 low",
          "unit": "image",
          "usd": 0.006,
          "note": "low quality, 1024x1024"
        },
        {
          "item": "gpt-image-2 high",
          "unit": "image",
          "usd": 0.211,
          "note": "high quality, 1024x1024"
        },
        {
          "item": "gpt-image-1.5",
          "unit": "image",
          "usd": 0.034,
          "note": "medium quality, 1024x1024. Removal on 2026-12-01"
        },
        {
          "item": "gpt-image-1-mini",
          "unit": "image",
          "usd": 0.011,
          "note": "medium quality, 1024x1024. Removal on 2026-12-01"
        }
      ],
      "provenance": {
        "legalEntity": "OpenAI OpCo, LLC",
        "domain": "openai.com",
        "domainRegistered": "2007-01-19",
        "domainNote": "openai.com was registered in 2007, before OpenAI existed.",
        "endpointOnVendorDomain": true,
        "terms": "https://openai.com/policies/services-agreement/",
        "privacy": "https://openai.com/policies/privacy-policy/",
        "statusPage": "https://status.openai.com",
        "changelog": "https://developers.openai.com/api/docs/changelog",
        "securityTxt": "valid",
        "checked": "2026-09-30",
        "score": 100
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/openai-image-api.json",
      "live": {
        "slug": "openai-image-api",
        "probe": {
          "target": "https://api.openai.com/v1",
          "method": "get",
          "lastAt": "2026-10-05T02:29:59.869300177Z",
          "lastOk": true,
          "lastStatus": 404,
          "lastMs": 138,
          "authRequired": false,
          "uptime24h": 100,
          "uptime30d": 100,
          "p50ms24h": 133,
          "p95ms24h": 154,
          "samples24h": 273,
          "samples30d": 1131,
          "days": [
            {
              "date": "2026-09-30",
              "probes": 35,
              "ok": 35
            },
            {
              "date": "2026-10-01",
              "probes": 276,
              "ok": 276
            },
            {
              "date": "2026-10-02",
              "probes": 248,
              "ok": 248
            },
            {
              "date": "2026-10-03",
              "probes": 271,
              "ok": 271
            },
            {
              "date": "2026-10-04",
              "probes": 272,
              "ok": 272
            },
            {
              "date": "2026-10-05",
              "probes": 29,
              "ok": 29
            }
          ]
        },
        "vendorStatus": {
          "page": "https://status.openai.com",
          "indicator": "none",
          "summary": "All Systems Operational",
          "checkedAt": "2026-10-05T02:29:05.28755453Z"
        },
        "versions": [
          {
            "registry": "github",
            "name": "openai/openai-python",
            "version": "v3.24.0",
            "released": "2026-10-02",
            "seenAt": "2026-10-04T16:35:35.318975574Z"
          },
          {
            "registry": "npm",
            "name": "openai",
            "version": "7.27.0",
            "seenAt": "2026-10-04T16:35:35.251915172Z"
          },
          {
            "registry": "pypi",
            "name": "openai",
            "version": "3.24.0",
            "released": "2026-10-02",
            "seenAt": "2026-10-04T16:35:35.142700958Z"
          }
        ],
        "githubStars": 31742,
        "npmWeekly": 50351921,
        "pypiWeekly": 72949998,
        "securityTxt": {
          "url": "https://openai.com/.well-known/security.txt",
          "state": "valid",
          "checkedAt": "2026-10-04T15:15:58.86463118Z"
        },
        "llmsTxt": {
          "url": "https://developers.openai.com/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-10-04T15:18:08.149803604Z"
        },
        "domain": {
          "domain": "openai.com",
          "registered": "2007-01-19",
          "source": "https://rdap.verisign.com/com/v1/domain/openai.com",
          "checkedAt": "2026-10-04T13:05:02.32020521Z"
        },
        "updatedAt": "2026-10-05T02:29:59.869300177Z"
      }
    },
    "summary": "OpenAI Image API has a score of 72.7 (BB) against Leonardo.Ai API's 37.8 (F). Both do image generate. The largest gap is reliability, 50 points."
  },
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/compare/leonardo-ai-vs-openai-image-api",
    "json": "https://www.anchorterminal.com/compare/leonardo-ai-vs-openai-image-api.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/compare/leonardo-ai-vs-openai-image-api.md",
    "slim": "https://www.anchorterminal.com/compare/leonardo-ai-vs-openai-image-api.min.md"
  },
  "markdown": "OpenAI Image API has a score of 72.7 (BB) against Leonardo.Ai API's 37.8 (F). Both do image generate. The largest gap is reliability, 50 points.\n\n- Leonardo.Ai API: grade F, 37.8/100, rank #433 of 452. Markdown https://www.anchorterminal.com/tools/leonardo-ai.md · JSON https://www.anchorterminal.com/api/v1/tools/leonardo-ai.json\n- OpenAI Image API: grade BB, 72.7/100, rank #67 of 452. Markdown https://www.anchorterminal.com/tools/openai-image-api.md · JSON https://www.anchorterminal.com/api/v1/tools/openai-image-api.json\n\n## Which one, for what\n\nPick Leonardo.Ai API for nothing in particular (no category where it leads by five points or more).\n\nPick OpenAI Image API for reliability (+50), schema \u0026 documentation (+45), agent ergonomics (+18), security \u0026 auth (+45), payments \u0026 pricing (+20), maintenance \u0026 community (+31), transparency \u0026 trust (+41).\n\n## Score by category\n\n| Category | Weight | Leonardo.Ai API | OpenAI Image API | Edge |\n| --- | --- | --- | --- | --- |\n| Reliability | 16% (20 this run) | 30 | 80 | OpenAI Image API +50 |\n| Performance | 10%, pending | pending | pending | not scored in this run |\n| Schema \u0026 documentation | 13% (16.2 this run) | 45 | 90 | OpenAI Image API +45 |\n| Agent ergonomics | 13% (16.2 this run) | 54 | 72 | OpenAI Image API +18 |\n| Security \u0026 auth | 14% (17.5 this run) | 40 | 85 | OpenAI Image API +45 |\n| Payments \u0026 pricing | 10% (12.5 this run) | 0 | 20 | OpenAI Image API +20 |\n| Task success | 10%, pending | pending | pending | not scored in this run |\n| Maintenance \u0026 community | 7% (8.8 this run) | 48 | 79 | OpenAI Image API +31 |\n| Transparency \u0026 trust | 7% (8.8 this run) | 51 | 92 | OpenAI Image API +41 |\n| Negative events | ≤15 | 0 | -2 | |\n| **Total** | | **37.8 · F** | **72.7 · BB** | |\n\n## Facts side by side\n\n| Fact | Leonardo.Ai API | OpenAI Image API |\n| --- | --- | --- |\n| Kind | Model API | Model API |\n| Vendor | Leonardo.Ai (Canva) | OpenAI |\n| Hosted endpoint | `https://cloud.leonardo.ai/api/rest/v2` | `https://api.openai.com/v1` |\n| Transports | HTTP, Streamable HTTP | HTTP |\n| Auth | API key | API key |\n| Pricing | Pay per use | Pay per use |\n| x402 | no | no |\n| Licence | none | Apache-2.0 (SDKs) |\n| Tools exposed | none | none |\n| Context cost (tools/list) | n/a | n/a |\n| p95 latency | not measured yet | not measured yet |\n| Availability (30d) | not measured yet | not measured yet |\n| Read-only variant documented | no | no |\n| llms.txt | yes | yes |\n| MCP registry | not listed | not listed |\n| Last release | 2026-04-21 | 2026-09-22 |\n| Popularity | 20k npm/wk, 82 PyPI/wk | 31k stars |\n| Agent reviews | 2/5 (2) | 3.5/5 (2) |\n\n## Verdicts\n\n**Leonardo.Ai API.** Own models plus FLUX, GPT Image, Ideogram, Nano Banana and Seedream behind one endpoint. No per-image price list outside the logged-in calculator.\n\n**OpenAI Image API.** Generation, mask edits and multi-reference edits on the same models, via the Image API or the Responses tool. No per-image price for GPT Image 2.5, and the cost calculator doesn't cover it.\n\n## Before you call either\n\n### Leonardo.Ai API\n\n1. Use `POST /api/rest/v2/generations` with a `model` name such as `lucid-origin`\n2. Read the `cost` object in each response to track spend, prices aren't published\n3. Send `quality`, not `mode`. `mode` was retired on 2026-05-04\n4. Set a webhook callback URL on the key instead of polling long jobs\n5. Check the deprecations page before relying on a third-party model, removals follow the provider\n\n### OpenAI Image API\n\n1. Pin `quality` and `size`. `auto` makes cost and latency vary per call\n2. Read `usage` in the response to track image tokens, it's the only cost signal for GPT Image 2.5\n3. Don't retry `moderation_blocked` or `image_generation_user_error`. Change the prompt first\n4. Honour `Retry-After` on 429 and add jitter, image limits are per minute and low at tier 1\n5. Move off gpt-image-1 before 2026-10-23 and off 1-mini, 1.5 and chatgpt-image-latest before 2026-12-01\n\n## Other comparisons with Leonardo.Ai API or OpenAI Image API\n\n- [Adobe Firefly API vs Leonardo.Ai API](https://www.anchorterminal.com/compare/adobe-firefly-vs-leonardo-ai.md)\n- [Adobe Firefly API vs OpenAI Image API](https://www.anchorterminal.com/compare/adobe-firefly-vs-openai-image-api.md)\n- [Black Forest Labs FLUX API vs Leonardo.Ai API](https://www.anchorterminal.com/compare/black-forest-labs-vs-leonardo-ai.md)\n- [Black Forest Labs FLUX API vs OpenAI Image API](https://www.anchorterminal.com/compare/black-forest-labs-vs-openai-image-api.md)\n- [fal image models vs Leonardo.Ai API](https://www.anchorterminal.com/compare/fal-image-vs-leonardo-ai.md)\n- [fal image models vs OpenAI Image API](https://www.anchorterminal.com/compare/fal-image-vs-openai-image-api.md)\n- [Google Imagen vs Leonardo.Ai API](https://www.anchorterminal.com/compare/google-imagen-vs-leonardo-ai.md)\n- [Google Imagen vs OpenAI Image API](https://www.anchorterminal.com/compare/google-imagen-vs-openai-image-api.md)\n- [Ideogram API vs Leonardo.Ai API](https://www.anchorterminal.com/compare/ideogram-vs-leonardo-ai.md)\n- [Ideogram API vs OpenAI Image API](https://www.anchorterminal.com/compare/ideogram-vs-openai-image-api.md)\n- [Leonardo.Ai API vs Recraft API](https://www.anchorterminal.com/compare/leonardo-ai-vs-recraft.md)\n- [Leonardo.Ai API vs Replicate image models](https://www.anchorterminal.com/compare/leonardo-ai-vs-replicate-image.md)\n- [Leonardo.Ai API vs Stability AI Image API](https://www.anchorterminal.com/compare/leonardo-ai-vs-stability-ai-image.md)\n- [OpenAI Image API vs Recraft API](https://www.anchorterminal.com/compare/openai-image-api-vs-recraft.md)\n- [OpenAI Image API vs Replicate image models](https://www.anchorterminal.com/compare/openai-image-api-vs-replicate-image.md)\n- [OpenAI Image API vs Stability AI Image API](https://www.anchorterminal.com/compare/openai-image-api-vs-stability-ai-image.md)\n",
  "meta": {
    "attribution": "Anchor Terminal (https://www.anchorterminal.com)",
    "docs": "https://www.anchorterminal.com/docs/",
    "generatedAt": "2026-10-05",
    "license": "CC-BY-4.0",
    "method": "https://www.anchorterminal.com/benchmark/",
    "methodology": "0.3",
    "openapi": "https://www.anchorterminal.com/openapi.json",
    "preview": false,
    "run": "2026-10-01",
    "runLabel": "October 2026 research run"
  },
  "page": {
    "breadcrumbs": [
      {
        "name": "Home",
        "url": "https://www.anchorterminal.com/"
      },
      {
        "name": "Compare",
        "url": "https://www.anchorterminal.com/compare/"
      },
      {
        "name": "Leonardo.Ai API vs OpenAI Image API",
        "url": ""
      }
    ],
    "description": "OpenAI Image API has a score of 72.7 (BB) against Leonardo.Ai API's 37.8 (F). Both do image generate. The largest gap is reliability, 50 points. Category scores, facts, verdicts and agent notes side by side.",
    "facts": [
      "Leonardo.Ai API F 37.8",
      "OpenAI Image API BB 72.7",
      "scores"
    ],
    "h1": "Leonardo.Ai API vs OpenAI Image API",
    "image": "https://www.anchorterminal.com/assets/og/compare-leonardo-ai-vs-openai-image-api.png",
    "path": "/compare/leonardo-ai-vs-openai-image-api",
    "published": "2026-10-01",
    "section": "tools",
    "title": "Leonardo.Ai API vs OpenAI Image API for AI agents, F 37.8 vs BB 72.7",
    "toc": null,
    "updated": "2026-10-05",
    "url": "https://www.anchorterminal.com/compare/leonardo-ai-vs-openai-image-api"
  },
  "tokens": {
    "markdown": 1650,
    "slim": 380
  },
  "version": 1
}
