{
  "data": {
    "a": {
      "slug": "cloudflare-ai-gateway",
      "name": "Cloudflare AI Gateway",
      "vendor": "Cloudflare",
      "vendorUrl": "https://www.cloudflare.com",
      "company": "cloudflare.com",
      "kind": "router",
      "category": "inference",
      "summary": "AI Gateway is Cloudflare's proxy and router for model providers. Agents call OpenAI-style, Anthropic-style or native endpoints on the Cloudflare API, with logging, caching, rate and spend limits, retries, fallbacks and one prepaid credit balance.",
      "url": "https://www.anchorterminal.com/tools/cloudflare-ai-gateway",
      "markdownUrl": "https://www.anchorterminal.com/tools/cloudflare-ai-gateway.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/cloudflare-ai-gateway.min.md",
      "cardUrl": "https://www.anchorterminal.com/tools/cloudflare-ai-gateway.card.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/cloudflare-ai-gateway.json",
      "dns": "cloudflare-ai-gateway.grade.anchorterminal.com",
      "repo": "https://github.com/cloudflare/ai",
      "license": "Proprietary service under Cloudflare's Self-Serve Subscription Agreement and its service-specific terms. Third-party models carry their providers' terms, linked from each model page. `ai-gateway-provider` is MIT and Cloudflare's OpenAPI repository is BSD-3-Clause",
      "transports": [
        "http"
      ],
      "remoteUrl": "https://api.cloudflare.com/client/v4/accounts/{account_id}/ai",
      "packages": [
        {
          "registry": "npm",
          "name": "ai-gateway-provider"
        },
        {
          "registry": "npm",
          "name": "cloudflare"
        },
        {
          "registry": "pypi",
          "name": "cloudflare"
        }
      ],
      "auth": "api-key",
      "authNotes": "A Cloudflare API token as a Bearer header, created by a person in the dashboard. The `/ai/*` inference routes need Workers AI Read, and the `/ai-gateway/*` management routes need AI Gateway Read or Edit. Provider-native endpoints on `gateway.ai.cloudflare.com` take the token in `cf-aig-authorization`. Tokens can carry an expiry and an IP address filter and cannot be limited to one gateway. Access is self-serve, with no review or sales step.",
      "pricing": "freemium",
      "pricingNotes": "Free on all plans for analytics, caching, rate limiting and DLP scanning, with a Cloudflare account. Third-party models are paid from prepaid Unified Billing credits at provider prices plus a 5 per cent fee on each credit purchase, or with the caller's own provider keys at no Cloudflare charge. Guardrails are billed as Workers AI inference. Accounts whose first gateway dates from 24 September 2026 or later keep logs in Workers Logs at Workers Logs pricing, older accounts in Legacy Logs (100,000 logs on Workers Free, 10,000,000 per gateway on Workers Paid). Logpush follows Logpush pricing (https://developers.cloudflare.com/ai-gateway/reference/pricing/, checked 2026-11-01).",
      "priceSummary": "5% fee",
      "where": "hosted",
      "x402": {
        "level": "partial",
        "evidence": "Machine Payments, in beta since 30 September 2026, takes x402 payment on `POST /ai/run` for four open models when the request carries `Payment-Method: x402`. It needs a Cloudflare API token, a United States account and a card on file. The OpenAI-style and Anthropic-style routes are not covered. We did not call it (https://developers.cloudflare.com/ai-gateway/features/machine-payments/, checked 2026-10-09).",
        "endpoints": [
          {
            "url": "https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run",
            "priceUsd": null,
            "network": ""
          }
        ]
      },
      "toolCount": null,
      "popularity": {
        "githubStars": null,
        "npmWeekly": 250648,
        "pypiWeekly": null,
        "asOf": "2026-10-09"
      },
      "docsUrl": "https://developers.cloudflare.com/ai-gateway/",
      "llmsTxt": "https://developers.cloudflare.com/ai-gateway/llms.txt",
      "openapi": "https://raw.githubusercontent.com/cloudflare/api-schemas/main/openapi.json",
      "capabilities": [
        "inference.llm",
        "inference.router",
        "obs.gateway",
        "guard.moderation",
        "guard.pii"
      ],
      "tags": [
        "hosted",
        "router",
        "free-tier",
        "usage-based",
        "x402",
        "openapi",
        "llms-txt",
        "openai-compatible",
        "typescript",
        "python",
        "go",
        "status-page",
        "bug-bounty"
      ],
      "lastRelease": "2026-10-21",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 69.2,
        "grade": "B",
        "agentReady": false,
        "rank": 393,
        "ranked": true,
        "rankOf": 1738,
        "categoryRank": 16,
        "methodology": "1.0",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 73,
          "maintenance": 75,
          "payments": 63,
          "reliability": 66,
          "schema": 75,
          "security": 80,
          "transparency": 74
        },
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-01"
        },
        "negative": -3,
        "negativeNotes": [
          "6 October 2026. Rejected-credential responses on `POST /ai/run` changed status (ElevenLabs 403, Vertex 500 and other providers' 402 became 401 with code 2009, and Unified Billing rejections became 503) on the day of the changelog entry, with no advance notice found. On 8 October new log IDs and request IDs changed from ULIDs and random UUIDs to UUIDv7, announced the same day with advice to update code that checks the ULID format. Repeats of one kind fold into one term. Three points (https://developers.cloudflare.com/ai-gateway/changelog/)."
        ],
        "verdict": "The gateway layer is free, per-model prices are public with no markup, and logs, spend limits and fallbacks are set per gateway. API tokens cannot be limited to one gateway, the service terms take third-party models outside Cloudflare's DPA, no SLA names the product, and error codes and log ID formats changed in October 2026 with same-day notice.",
        "bestFor": "Teams that already hold a Cloudflare account and want one token, one bill, logs, budgets and fallbacks in front of several model providers, or that want to keep their own provider keys behind a proxy with spend limits.",
        "strengths": [
          "Core gateway functions (analytics, caching, rate limiting) are free on all plans, and provider prices pass through with no markup",
          "One Cloudflare API token reaches 241 catalogue models through OpenAI Chat Completions, OpenAI Responses, Anthropic Messages or the native `/ai/run` route",
          "Spend limits block requests with a 429 once a budget is reached, scoped by model, provider or request metadata, with up to 20 rules a gateway",
          "Logging is switched per gateway and per request, and `cf-aig-collect-log-payload: false` keeps token and cost metadata without storing prompts",
          "x402 payment (Machine Payments, beta since 30 September 2026) works on `POST /ai/run` for four open models"
        ],
        "weaknesses": [
          "API tokens are account-scoped. Any token with AI Gateway Run can send requests through every gateway in the account and spend its stored provider keys",
          "The service-specific terms say the DPA and Information Security Exhibit do not apply to third-party models reached through AI Gateway",
          "No SLA naming AI Gateway was found. The Enterprise SLA lists service-specific SLAs for R2, Queues and Workers only",
          "On 6 October 2026 rejected-credential responses on `/ai/run` changed to 401 with code 2009, and on 8 October log IDs became UUIDv7, each announced the same day",
          "Unified Billing traffic is capped at 200 requests per 60 seconds per gateway, and a 5 per cent fee applies to credit purchases",
          "Section 2.2(e) of the Self-Serve Subscription Agreement bars automated agents that generate automated requests into the Services, which matters before any probe is run",
          "`ai-gateway-provider` was feature frozen and deprecated on 21 October 2026 in favour of `createAI` in the Agents SDK"
        ],
        "agentNotes": [
          "Use the REST API at `api.cloudflare.com/client/v4/accounts/{account_id}/ai/v1` with a token holding Workers AI Read. A token with only an AI Gateway permission returns 401 with code 10000",
          "Send `cf-aig-gateway-id` on every Workers AI (`@cf/`) call and on dynamic routes. Without it a dynamic route resolves against the default gateway and returns 404",
          "Set `cf-aig-collect-log: false` or `cf-aig-collect-log-payload: false` on sensitive requests. Logging of prompts and responses is on by default",
          "Treat a 429 as a rate limit or a spent budget and a 401 with code 2009 as a rejected provider key. Do not retry a 2009",
          "Set `byok_only` on the gateway or send `cf-aig-no-wholesale: true` to stop a request without a provider key falling through to paid Unified Billing credits",
          "Use `createAI` from the `agents` package for new AI SDK code. `ai-gateway-provider` is deprecated and gets no new work"
        ],
        "metrics": {
          "kind": "remote",
          "measured": false
        },
        "reviewCount": 4,
        "avgRating": 3,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "B",
            "methodology": "1.0",
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 69.2
          }
        ],
        "editorialScores": {
          "ergonomics": 73,
          "maintenance": 75,
          "payments": 63,
          "reliability": 66,
          "schema": 75,
          "security": 80,
          "transparency": 51
        },
        "provenanceScore": 96,
        "checked": {
          "categories": {
            "ergonomics": "2026-11-01",
            "maintenance": "2026-11-01",
            "payments": "2026-11-01",
            "reliability": "2026-11-01",
            "schema": "2026-11-01",
            "security": "2026-11-01",
            "transparency": "2026-11-01"
          },
          "last": "2026-11-01",
          "lastMoved": "2026-11-13",
          "oldest": "2026-11-01",
          "stale": false,
          "staleAfterDays": 90
        }
      },
      "connect": {
        "http": "curl -X POST \"https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/chat/completions\" \\\n  --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n  --header \"Content-Type: application/json\" \\\n  --data '{\n    \"model\": \"openai/gpt-4.1-mini\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"What is Cloudflare?\"}]\n  }'",
        "x402": "curl -iX POST \"https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run\" \\\n  --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n  --header \"Payment-Method: x402\" \\\n  --header \"Content-Type: application/json\" \\\n  --data '{\"model\":\"z-ai/glm-4.7-flash\",\"input\":{\"messages\":[{\"role\":\"user\",\"content\":\"What is Cloudflare?\"}]}}'"
      },
      "letme": {
        "capability": "https://letme.dev/inference.llm",
        "tool": "https://letme.dev/cloudflare-ai-gateway"
      },
      "sameCompany": [
        "cloudflare-workers-ai",
        "cloudflare-sandbox-sdk",
        "cloudflare-workers-oauth-provider",
        "cloudflare-web-search",
        "cloudflare-clairic",
        "cloudflare-ai-search",
        "cloudflare-cli",
        "cloudflare-mcp",
        "cloudflare-email-service",
        "cloudflare-r2",
        "cloudflare-clef"
      ],
      "area": "models",
      "unitPrices": [
        {
          "item": "Unified Billing credit purchase fee",
          "unit": "pct",
          "usd": 5,
          "note": "a $100 purchase is charged $105"
        }
      ],
      "provenance": {
        "legalEntity": "Cloudflare, Inc.",
        "domain": "cloudflare.com",
        "domainRegistered": "2009-02-17",
        "endpointOnVendorDomain": true,
        "terms": "https://www.cloudflare.com/terms/",
        "privacy": "https://www.cloudflare.com/privacypolicy/",
        "statusPage": "https://www.cloudflarestatus.com",
        "changelog": "https://developers.cloudflare.com/ai-gateway/changelog/",
        "securityTxt": "valid",
        "checked": "2026-10-09",
        "notes": [
          "Terms are the Self-Serve Subscription Agreement, last updated 12 September 2025, which names Cloudflare, Inc. at 101 Townsend St, San Francisco.",
          "The service-specific terms (https://www.cloudflare.com/service-specific-terms-developer-platform/), last updated 28 September 2026, have a section for Workers AI and AI Gateway that supplements the agreement.",
          "The privacy policy is effective from 4 November 2025. The customer DPA is version 6.4, effective 3 April 2026.",
          "www.cloudflare.com/.well-known/security.txt, read on 9 October 2026, names HackerOne and a disclosure policy and has no Expires field. It is recorded as valid, although RFC 9116 asks for that field.",
          "The inference endpoints are on api.cloudflare.com and gateway.ai.cloudflare.com.",
          "The status page lists AI Gateway as its own component, operational on 9 October 2026.",
          "RDAP for cloudflare.com gives a registration date of 2009-02-17."
        ],
        "score": 96
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/cloudflare-ai-gateway.json",
      "live": {
        "slug": "cloudflare-ai-gateway",
        "probe": {
          "target": "https://api.cloudflare.com/client/v4/accounts/{account_id}/ai",
          "method": "get",
          "lastAt": "2026-11-08T12:33:03.891418189Z",
          "lastOk": true,
          "lastStatus": 404,
          "lastMs": 45,
          "authRequired": false,
          "uptime24h": 100,
          "uptime30d": 100,
          "p50ms24h": 41,
          "p95ms24h": 141,
          "samples24h": 242,
          "samples30d": 7388,
          "days": [
            {
              "date": "2026-10-09",
              "probes": 85,
              "ok": 85
            },
            {
              "date": "2026-10-10",
              "probes": 247,
              "ok": 247
            },
            {
              "date": "2026-10-11",
              "probes": 247,
              "ok": 247
            },
            {
              "date": "2026-10-12",
              "probes": 247,
              "ok": 247
            },
            {
              "date": "2026-10-13",
              "probes": 248,
              "ok": 248
            },
            {
              "date": "2026-10-14",
              "probes": 249,
              "ok": 249
            },
            {
              "date": "2026-10-15",
              "probes": 253,
              "ok": 253
            },
            {
              "date": "2026-10-16",
              "probes": 252,
              "ok": 252
            },
            {
              "date": "2026-10-17",
              "probes": 253,
              "ok": 253
            },
            {
              "date": "2026-10-18",
              "probes": 256,
              "ok": 256
            },
            {
              "date": "2026-10-19",
              "probes": 255,
              "ok": 255
            },
            {
              "date": "2026-10-20",
              "probes": 252,
              "ok": 252
            },
            {
              "date": "2026-10-21",
              "probes": 253,
              "ok": 253
            },
            {
              "date": "2026-10-22",
              "probes": 253,
              "ok": 253
            },
            {
              "date": "2026-10-23",
              "probes": 248,
              "ok": 248
            },
            {
              "date": "2026-10-24",
              "probes": 251,
              "ok": 251
            },
            {
              "date": "2026-10-25",
              "probes": 250,
              "ok": 250
            },
            {
              "date": "2026-10-26",
              "probes": 252,
              "ok": 252
            },
            {
              "date": "2026-10-27",
              "probes": 249,
              "ok": 249
            },
            {
              "date": "2026-10-28",
              "probes": 251,
              "ok": 251
            },
            {
              "date": "2026-10-29",
              "probes": 249,
              "ok": 249
            },
            {
              "date": "2026-10-30",
              "probes": 248,
              "ok": 248
            },
            {
              "date": "2026-10-31",
              "probes": 251,
              "ok": 251
            },
            {
              "date": "2026-11-01",
              "probes": 249,
              "ok": 249
            },
            {
              "date": "2026-11-02",
              "probes": 250,
              "ok": 250
            },
            {
              "date": "2026-11-03",
              "probes": 248,
              "ok": 248
            },
            {
              "date": "2026-11-04",
              "probes": 246,
              "ok": 246
            },
            {
              "date": "2026-11-05",
              "probes": 185,
              "ok": 185
            },
            {
              "date": "2026-11-06",
              "probes": 241,
              "ok": 241
            },
            {
              "date": "2026-11-07",
              "probes": 243,
              "ok": 243
            },
            {
              "date": "2026-11-08",
              "probes": 127,
              "ok": 127
            }
          ],
          "since": "0001-01-01T00:00:00Z"
        },
        "vendorStatus": {
          "page": "https://www.cloudflarestatus.com",
          "indicator": "minor",
          "summary": "Partially Degraded Service",
          "checkedAt": "2026-11-30T00:55:15.488504578Z"
        },
        "versions": [
          {
            "registry": "github",
            "name": "cloudflare/ai",
            "version": "ai-gateway-provider@4.0.2",
            "released": "2026-10-20",
            "seenAt": "2026-11-29T08:54:26.651631829Z"
          },
          {
            "registry": "npm",
            "name": "ai-gateway-provider",
            "version": "4.0.2",
            "seenAt": "2026-11-29T08:54:24.25701243Z"
          },
          {
            "registry": "npm",
            "name": "cloudflare",
            "version": "7.3.0",
            "seenAt": "2026-11-29T08:54:25.057552904Z"
          },
          {
            "registry": "pypi",
            "name": "cloudflare",
            "version": "5.10.0",
            "released": "2026-11-05",
            "seenAt": "2026-11-29T08:54:26.446732511Z"
          }
        ],
        "githubStars": 1235,
        "npmWeekly": 411478,
        "pypiWeekly": 633954,
        "securityTxt": {
          "url": "https://cloudflare.com/.well-known/security.txt",
          "state": "valid",
          "checkedAt": "2026-11-29T17:00:50.085236397Z"
        },
        "llmsTxt": {
          "url": "https://developers.cloudflare.com/ai-gateway/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-11-29T17:04:01.640176551Z"
        },
        "domain": {
          "domain": "cloudflare.com",
          "registered": "2009-02-17",
          "source": "https://rdap.verisign.com/com/v1/domain/cloudflare.com",
          "checkedAt": "2026-11-29T16:14:50.019518536Z"
        },
        "pages": [
          {
            "url": "https://developers.cloudflare.com/ai-gateway/changelog/",
            "kind": "deprecations",
            "status": 200,
            "checkedAt": "2026-11-29T05:17:05.078586587Z",
            "changedAt": "2026-11-07T14:03:42.700833734Z",
            "fingerprint": "3f1dec5fd71a"
          },
          {
            "url": "https://developers.cloudflare.com/ai-gateway/reference/pricing/",
            "kind": "pricing",
            "status": 200,
            "checkedAt": "2026-11-29T05:17:07.27314536Z",
            "changedAt": "2026-11-05T12:27:58.285650461Z",
            "fingerprint": "17964d31a9b6"
          },
          {
            "url": "https://www.cloudflare.com/privacypolicy/",
            "kind": "privacy",
            "status": 200,
            "checkedAt": "2026-11-29T05:42:47.679270212Z",
            "changedAt": "2026-11-16T20:40:13.061266782Z",
            "fingerprint": "282aa4b71b3e"
          },
          {
            "url": "https://www.cloudflare.com/terms/",
            "kind": "terms",
            "status": 200,
            "checkedAt": "2026-11-29T05:42:52.31189576Z",
            "changedAt": "2026-10-22T01:30:41.491480215Z",
            "fingerprint": "515e09b3c6ed"
          }
        ],
        "github": {
          "repo": "cloudflare/ai",
          "checkedAt": "2026-11-23T14:12:04.875544445Z",
          "stars": 1224,
          "archived": false,
          "issuesEnabled": true,
          "pushedAt": "2026-10-27T10:39:35Z",
          "openIssues": 63,
          "openPRs": 22,
          "issuesOpened90d": 22,
          "issuesClosed90d": 17,
          "prsMerged90d": 6,
          "ci": {
            "branch": "main",
            "runs": 50,
            "success": 49,
            "failure": 0,
            "other": 1,
            "latest": "success",
            "latestAt": "2026-10-27T10:40:22Z"
          },
          "advisories": [
            {
              "ghsa": "GHSA-v85r-hgf6-q875",
              "severity": "medium",
              "published": "2025-11-04T18:27:48Z"
            }
          ],
          "replies": {
            "sampled": 25,
            "unanswered": 12,
            "medianDays": 0.3
          }
        },
        "updatedAt": "2026-11-30T00:55:15.488504578Z"
      },
      "streak": {
        "days": 0,
        "from": "2026-11-30",
        "sinceWatching": true,
        "last": {
          "kind": "breaking",
          "date": "2026-10-08",
          "what": "New log IDs and request IDs are lowercase UUIDv7 instead of 26-character ULIDs and random UUIDs. Update code that checks the ULID format",
          "source": "https://developers.cloudflare.com/ai-gateway/changelog/"
        },
        "best": 0
      }
    },
    "answer": "Cloudflare AI Gateway scores 69.2 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in every scored category.",
    "b": {
      "slug": "qianfan",
      "name": "Baidu Qianfan",
      "vendor": "Baidu",
      "vendorUrl": "https://cloud.baidu.com/product/qianfan.html",
      "company": "baidu.com",
      "kind": "model",
      "category": "inference",
      "summary": "Qianfan is Baidu AI Cloud's model platform. Its OpenAI-compatible v2 API serves Baidu's ERNIE models and third-party models such as DeepSeek and GLM, plus embeddings and reranking, billed per token in yuan.",
      "url": "https://www.anchorterminal.com/tools/qianfan",
      "markdownUrl": "https://www.anchorterminal.com/tools/qianfan.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/qianfan.min.md",
      "cardUrl": "https://www.anchorterminal.com/tools/qianfan.card.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/qianfan.json",
      "dns": "qianfan.grade.anchorterminal.com",
      "repo": "https://github.com/baidubce/bce-qianfan-sdk",
      "license": "Closed service under the Baidu AI Cloud User Service Agreement. The official SDKs are Apache-2.0.",
      "transports": [
        "http"
      ],
      "remoteUrl": "https://qianfan.baidubce.com/v2",
      "packages": [
        {
          "registry": "pypi",
          "name": "qianfan"
        }
      ],
      "auth": "api-key",
      "authNotes": "An API Key made in the Qianfan console (format bce-v3/ALTAK-...) goes in an Authorization Bearer header. A key can carry all permissions or be limited to chosen preset and custom endpoints, and an AppID limit applies as well. Access needs a Baidu AI Cloud account made in a browser. The docs link a real-name verification guide that was not read, and the docs are in Chinese only.",
      "pricing": "usage",
      "pricingNotes": "Per-token prices in yuan are public without a login (checked 2026-11-29). ERNIE 5.1 costs 0.004 yuan per 1,000 input tokens and 0.018 per 1,000 output tokens up to 32k of input. ERNIE-5.5-Flash-Preview has a promotional 0.001 input and 0.004 output per 1,000 tokens in peak hours (8:00 to 22:00), half that off-peak, with cache hits at a tenth of input. Third-party models such as DeepSeek-V4.1-Flash and GLM-5.3 are priced the same way. No free API allowance was found on the pages read.",
      "priceSummary": "Pay per use",
      "where": "hosted",
      "x402": {
        "level": "no",
        "evidence": "No x402, MPP or L402 in the pricing page, the billing FAQ links, the chat completions reference or the model list, checked 2026-11-29. Calls draw on a postpaid account balance.",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": null,
        "npmWeekly": null,
        "pypiWeekly": null,
        "asOf": "2026-11-29"
      },
      "docsUrl": "https://cloud.baidu.com/doc/qianfan/index.html",
      "capabilities": [
        "inference.llm",
        "embed.text",
        "rerank"
      ],
      "tags": [
        "official",
        "hosted",
        "model",
        "usage-priced",
        "closed-source",
        "openai-compatible",
        "multimodal",
        "china",
        "chinese-docs",
        "embeddings",
        "reranking"
      ],
      "lastRelease": "2026-10-18",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 48.7,
        "grade": "D",
        "agentReady": false,
        "rank": 1351,
        "ranked": true,
        "rankOf": 1738,
        "categoryRank": 50,
        "methodology": "1.0",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 60,
          "maintenance": 63,
          "payments": 30,
          "reliability": 38,
          "schema": 47,
          "security": 55,
          "transparency": 55
        },
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-29"
        },
        "negative": 0,
        "verdict": "Qianfan's OpenAI-compatible v2 API serves ERNIE and third-party models with per-model rate limits, per-key endpoint permissions and public per-token prices. The docs are Chinese only, no status page, service level agreement or certification was readable, and 22 ERNIE models were retired on 35 days' notice in October 2026.",
        "bestFor": "Calling ERNIE and other China-hosted models through an OpenAI-style API at a low per-token price, for teams that can read Chinese docs and open a Baidu AI Cloud account.",
        "strengths": [
          "OpenAI-compatible v2 endpoints for chat, completions, embeddings and rerank, usable from the OpenAI SDK with a changed base_url",
          "Default rate limits per model and per-token prices are public without a login, and responses carry X-Ratelimit headers",
          "API keys can be limited to chosen endpoints and AppIDs, and cloud audit integration is documented",
          "The chat reference lists tools, json_schema output, thinking budget and reasoning effort, and names the models each parameter does not support",
          "A retirement page lists the registration date, retirement date and replacement for every retired preset model"
        ],
        "weaknesses": [
          "The docs read were in Chinese only, and no OpenAPI file or llms.txt was found",
          "22 ERNIE models were retired on 29 October 2026 after 35 days' notice, and preview models move with no notice",
          "No status page, service level agreement, security.txt or certification was readable, and no free API allowance was found",
          "The official Python SDK was last released in February 2025, and the v1 shutdown date on the migration page is already past",
          "Access needs a browser sign-up with an account on Baidu AI Cloud, and prices are in yuan"
        ],
        "agentNotes": [
          "Use the OpenAI SDK with base_url https://qianfan.baidubce.com/v2 and the model value from the model list, such as ernie-5.1.",
          "If you get 429, wait before retrying. The X-Ratelimit-Remaining headers show whether requests, input tokens or output tokens ran out.",
          "Pin a dated model version where one exists. Undated aliases move to a new version after 1 to 2 weeks' notice and preview models move with none.",
          "Set max_tokens or max_completion_tokens yourself. Both count thinking tokens, and thinking_budget caps the chain of thought.",
          "Check the retirement page before pinning a model. A retired model fails on both the v1 and v2 interfaces."
        ],
        "metrics": {
          "kind": "remote",
          "measured": false
        },
        "reviewCount": 0,
        "avgRating": 0,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "D",
            "methodology": "1.0",
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 48.7
          }
        ],
        "editorialScores": {
          "ergonomics": 60,
          "maintenance": 63,
          "payments": 30,
          "reliability": 38,
          "schema": 47,
          "security": 55,
          "transparency": 56
        },
        "provenanceScore": 53,
        "checked": {
          "categories": {
            "ergonomics": "2026-11-29",
            "maintenance": "2026-11-29",
            "payments": "2026-11-29",
            "reliability": "2026-11-29",
            "schema": "2026-11-29",
            "security": "2026-11-29",
            "transparency": "2026-11-29"
          },
          "last": "2026-11-29",
          "oldest": "2026-11-29",
          "stale": false,
          "staleAfterDays": 90
        }
      },
      "connect": {
        "http": "curl https://qianfan.baidubce.com/v2/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $QIANFAN_API_KEY\" \\\n  -d '{\"model\":\"ernie-5.1\",\"messages\":[{\"role\":\"user\",\"content\":\"Hello\"}]}'"
      },
      "letme": {
        "capability": "https://letme.dev/inference.llm",
        "tool": "https://letme.dev/qianfan"
      },
      "sameCompany": [
        "unlimited-ocr-2"
      ],
      "area": "models",
      "provenance": {
        "legalEntity": "Baidu, Inc.",
        "domain": "baidu.com",
        "domainRegistered": "1999-10-11",
        "endpointOnVendorDomain": false,
        "terms": "https://cloud.baidu.com/doc/Agreements/s/kkbkg6bj8-en",
        "privacy": "",
        "statusPage": "",
        "changelog": "https://cloud.baidu.com/doc/qianfan/s/Kmh4stnjp",
        "securityTxt": "unknown",
        "checked": "2026-11-29",
        "notes": [
          "The legal entity and domain registration date are carried over from the Baidu Unlimited-OCR-2 listing (domain registration from Verisign RDAP read on 2026-10-27). The Qianfan pages read name Baidu AI Cloud and no contracting company.",
          "The terms link is the English-language Baidu AI Cloud User Service Agreement section on user business data, last updated 2020-11-02. It says Baidu AI Cloud makes no unauthorised use of user business data beyond the service, that the user owns it, and that data is deleted after a buffer period once service ends. A Qianfan-specific data or training statement was not found in the pages read.",
          "The API endpoint qianfan.baidubce.com is on Baidu's baidubce.com domain, not baidu.com. It was not requested.",
          "cloud.baidu.com/robots.txt closes only three /qianfandev paths for all agents, and every page read is outside them. The host's 15-read limit was reached, so the service level agreement page, the error code pages and the privacy page were not read.",
          "ir.baidu.com and home.baidu.com answered robots.txt with 403, so Baidu's investor and company pages were not read. security.txt was not requested."
        ],
        "score": 53
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/qianfan.json",
      "live": {
        "slug": "qianfan",
        "probe": {
          "target": "https://qianfan.baidubce.com/v2",
          "method": "get",
          "lastAt": "2026-11-30T01:00:19.903416012Z",
          "lastOk": true,
          "lastStatus": 404,
          "lastMs": 1646,
          "authRequired": false,
          "uptime24h": 100,
          "uptime30d": 100,
          "p50ms24h": 1657,
          "p95ms24h": 1949,
          "samples24h": 21,
          "samples30d": 21,
          "days": [
            {
              "date": "2026-11-29",
              "probes": 10,
              "ok": 10
            },
            {
              "date": "2026-11-30",
              "probes": 11,
              "ok": 11
            }
          ],
          "since": "2026-11-29T22:59:24.442856711Z"
        },
        "updatedAt": "2026-11-30T01:00:19.903416012Z"
      },
      "streak": {
        "days": 1,
        "from": "2026-11-29",
        "sinceWatching": true,
        "best": 1
      }
    },
    "edges": [
      {
        "by": 33,
        "category": "payments",
        "leads": "cloudflare-ai-gateway",
        "name": "Payments \u0026 pricing",
        "reasons": {
          "a": "x402 is in beta on `POST /ai/run` since 30 September 2026 for four open models of 241 in the catalogue. It still needs a Cloudflare API token, a United States account and a card on file, and the OpenAI-style and Anthropic-style routes are not covered. We did not call it (12 of 40). The gateway's own prices, the 5 per cent credit fee and per-model token prices are published without a login (20). Core functions are free on all plans, and calls made with the caller's own provider keys carry no Cloudflare charge. We did not sign up to confirm that no card is asked for (20). A person creates the account and the first token in a browser, and the x402 route needs both (0). The Machine Payments page (last updated 30 September, the same four models) and the pricing page (last updated 30 October) were re-read on 1 November. 12 + 20 + 20 + 0 = 52. Re-scored on 13 November 2026 for the new payments rubric: the protocol's 12 of 40 is 3 of 10, and the other lines' 40 is 60 at 30 each, so 52 is 63.",
          "b": "No x402, MPP or L402 (0). Per-token prices are public without a login, in yuan (30). No free tier or trial was found on the pages read, and a promotional price is not a free allowance (0). Access needs a browser sign-up on Baidu AI Cloud and no keyless or programmatic route was found (0). Total 30."
        },
        "scores": {
          "a": 63,
          "b": 30
        }
      },
      {
        "by": 28,
        "category": "reliability",
        "leads": "cloudflare-ai-gateway",
        "name": "Reliability",
        "reasons": {
          "a": "Hosted reading. www.cloudflarestatus.com is a Statuspage with AI Gateway, Workers AI and API as separate components (20). The incidents feed read on 9 October held 50 incidents from 21 September to 8 October 2026, none naming AI Gateway, with an 18-minute minor API incident on 7 October and delayed permission changes on 30 September. On 1 November the host's history.atom held only scheduled maintenance for 2 to 6 November, and the history page loads by script. Whether the incidents posted from 16 to 31 October name AI Gateway wasn't read for this listing (cloudflare-r2, cloudflare-workers-ai and cloudflare-email-service read that list for their own components only), and 3 August to 20 September and 9 to 15 October went unread too. An unread window isn't credited, so the line rests on the 21 September to 8 October reading alone, as on 9 October (10 of 30). Unified Billing traffic is limited to 200 requests per 60 seconds per gateway, re-read on 1 November, the Cloudflare API to 1,200 requests per five minutes per token, and BYOK traffic has no gateway limit (15). Over-limit and over-budget requests return 429, the Cloudflare API returns `retry-after` and `Ratelimit` headers for its own limit, and retries with backoff and model fallbacks can be set per request or per gateway. No `Retry-After` was found for the gateway's own 429, and nothing separates a rate-limit 429 from a spend-limit 429 (11 of 15). No SLA naming AI Gateway was found. The Enterprise SLA lists service-specific SLAs for R2, Queues and Workers only (0). The core product carries no beta label, and Machine Payments is in beta (10). 20 + 10 + 15 + 11 + 0 + 10 = 66.",
          "b": "No status page was found on the pages read, and the health board link in the docs navigation was not followed (0). No readable incident history, so 5. Default requests and tokens a minute are published per model, and responses carry X-Ratelimit headers (15). Those headers show remaining quota refreshing in 0 to 60 seconds, but no Retry-After or backoff guidance was read, the error code pages were not read and no idempotency guidance was found (8 of 15). The service level agreement is linked in the docs navigation and its page did not load for our reader (0). The v2 API is generally available, although ERNIE-5.5-Flash-Preview is a preview model (10). Total 38."
        },
        "scores": {
          "a": 66,
          "b": 38
        }
      },
      {
        "by": 28,
        "category": "schema",
        "leads": "cloudflare-ai-gateway",
        "name": "Schema \u0026 documentation",
        "reasons": {
          "a": "Router, scored on the API lines. Cloudflare's public OpenAPI 3.0.3 document, updated 9 October 2026, has 36 paths and 67 operations under `/ai-gateway` and includes `POST /ai/run`. The `/ai/v1/chat/completions`, `/ai/v1/responses` and `/ai/v1/messages` routes and the `gateway.ai.cloudflare.com` endpoints are not in it (20 of 25). An AI Gateway `llms.txt` and a Markdown copy of every page (10). Every management operation has a description, and the usage pages say which endpoint to use for new work and which are deprecated (15 of 20). Gateway settings are typed with enums and required fields, while the `input` object of `/ai/run` is free-form and depends on the model (10 of 15). Curl, SDK and Worker examples on most pages. No table of gateway error codes was found. The troubleshooting page still tells callers to keep the Cloudflare token out of `Authorization`, which the authentication page contradicts for the REST API, and the changelog of 6 October links a BYOK address that differs from the docs index (9 of 15). A dated changelog with RSS. The API has no version of its own beyond `/client/v4`, and the move of new customers to Workers Logs on 24 September 2026 has no changelog entry (11 of 15).",
          "b": "No OpenAPI file was found (0). cloud.baidu.com/llms.txt returned 404 (0). The chat completions reference states the endpoint, authentication, parameter support per model and links the model list, and the docs are Chinese only (13 of 20). Parameters are typed with enums, ranges and required marks, including json_schema output, tool_choice and thinking controls (12 of 15). Curl and Python examples cover plain chat and function calling, and an error object with code, message and type is described while the error code pages were not read (10 of 15). A dated model update log, retirement records with replacements and the v1 to v2 migration notice make up the versioning, but the platform log's newest entry is from August 2025 (12 of 15). Total 47."
        },
        "scores": {
          "a": 75,
          "b": 47
        }
      },
      {
        "by": 25,
        "category": "security",
        "leads": "cloudflare-ai-gateway",
        "name": "Security \u0026 auth",
        "reasons": {
          "a": "Router, read on the model lines. Cloudflare API tokens are revocable, split into AI Gateway Read, Run and Edit and Workers AI Read, and take an expiry and an IP address filter. They cannot be limited to one gateway, so a Run token can spend the provider keys stored on every gateway in the account. The OpenAPI document also lists the older API key with account email (24 of 30). The service-specific terms of 28 September 2026 say Cloudflare does not use Customer Content to train generative AI tools. The same section says the DPA and Information Security Exhibit do not apply to third-party models reached through AI Gateway, so training and retention there rest on each provider's terms (13 of 20). Prompts and responses are logged by default. Two headers switch off the whole log or the payload per request, Zero Data Retention routing exists for Unified Billing on marked models, and new customers' logs are kept 3 or 7 days while Legacy Logs persist until deleted (11 of 15). Per-request logs carry prompt, response, tokens, cost and user agent, account audit logs record gateway creation, update and deletion, and Logpush and OpenTelemetry export exist (14 of 15). security.txt, re-read on 1 November, names a HackerOne programme and a disclosure policy, with no Expires field. Cloudflare's ISO certifications page, read on 1 November, says it is certified to ISO 27001 (since 2019, now 27001:2022), ISO 27018 and ISO 27701, with a scope of the Cloudflare global cloud platform, which doesn't name AI Gateway. 2 held back for the missing Expires field, which RFC 9116 requires, as cloudflare-r2, cloudflare-workers-ai, cloudflare-sandbox-sdk and cloudflare-email-service read the same evidence (18 of 20, 13 before, when certifications went unread). Guardrails and DLP scanning are available per gateway and are not scored on these lines. 24 + 13 + 11 + 14 + 18 = 80.",
          "b": "API keys are bearer credentials that can be limited to chosen preset or custom endpoints and AppIDs, deleted, and viewed by role, but no rotation tooling was found and the SDK README calls a key permanently valid (25 of 30). Sub-account roles and per-endpoint key permissions give least privilege, and no confirmation step applies to an inference API (14 of 20). Chat output can carry untrusted content and no injection guidance was read. A content safety policy and intervention strategy sections exist in the docs navigation (5 of 15). Cloud audit integration, call detail queries and BCM monitoring are documented (11 of 15). No security.txt, bug bounty or certification was found in the pages read (0 of 20). Total 55."
        },
        "scores": {
          "a": 80,
          "b": 55
        }
      },
      {
        "by": 19,
        "category": "transparency",
        "leads": "cloudflare-ai-gateway",
        "name": "Transparency \u0026 trust",
        "reasons": {
          "a": "Closed service under the Self-Serve Subscription Agreement and service-specific terms with a section for Workers AI and AI Gateway. Each model page links the provider's terms, `ai-gateway-provider` is MIT and the OpenAPI repository is BSD-3-Clause (16 of 30). The service terms, the logging and Zero Data Retention pages, the DPA (version 6.4, 3 April 2026) and the privacy policy of 4 November 2025 were read. The privacy policy gives retention criteria, not periods. The terms take third-party models outside the DPA, while the sub-processor list names five model providers for AI Gateway, and the two are hard to square (17 of 30). No deprecation policy was found. Deprecated endpoints carry notices with no dates, and section 8 of the agreement lets Cloudflare modify or discontinue a service without notice (6 of 20). The sub-processor list, last updated 1 October 2025, names Google, Anthropic, OpenAI, xAI and Groq for AI Gateway with locations. The catalogue on 9 October 2026 also carries models from Alibaba, ByteDance, MiniMax and others that the list does not name (12 of 20). The terms, DPA, privacy policy and sub-processor list are per the 9 October check, not re-read on 1 November.",
          "b": "A closed service under Baidu AI Cloud's user agreement, whose English data section is dated 2020 and is clear on ownership of user data, and no Qianfan-specific terms were read (18 of 30). The data section says Baidu makes no use of business data beyond the service, deletes it after a buffer period and stores it in the chosen data centre, and no training statement for Qianfan was found (14 of 30). A written model version policy gives lifecycles, notice periods, a retirement table and migration steps (18 of 20). Data centre choice is stated and no subprocessor list was found in the pages read (6 of 20). Total 56."
        },
        "scores": {
          "a": 74,
          "b": 55
        }
      },
      {
        "by": 13,
        "category": "ergonomics",
        "leads": "cloudflare-ai-gateway",
        "name": "Agent ergonomics",
        "reasons": {
          "a": "Router, read on the model lines (tool use, structured output, caching, context, batch, SDKs, errors). Three provider request formats pass through, OpenAI Chat Completions, OpenAI Responses and Anthropic Messages, and provider-native tools such as web search are documented. Tool behaviour depends on the routed model (15 of 20). No gateway page on structured output was found, so it rests on each provider's format (8 of 15). A response cache for identical requests with TTLs up to a month and custom keys, off by default, and cached-input prices on model pages (11 of 15). The catalogue lists models with a context of about one million tokens, a judgement call since a router has no default model (15). Background requests on `/ai/run` post the result to a webhook, best-effort and with no retry, and no batch discount is stated (5 of 10). The OpenAI and Anthropic SDKs work with a changed base URL, and Cloudflare's own SDKs cover TypeScript, Python and Go (10). Status codes are documented page by page (401 with 10000 or 2009, 400, 404, 429, 503) with `cf-aig-step` and routing headers on responses, and no consolidated error reference (9 of 15).",
          "b": "Output can be sized with max_tokens, max_completion_tokens, stop, thinking_budget and stream usage options, and prompt caching is priced (18 of 25). There are no list endpoints to page. Sizing and batch controls are the filters here, with an OpenAI-style Files and Batch interface listed in the docs navigation but not read (12 of 20). Errors return code, message and type with a separate error code page that was not read (12 of 20). No idempotency key was found, and seed gives best-effort determinism on some models (5 of 20). Only model and messages are required, official SDKs exist for Python, Go, Java and JavaScript although the Python one is stale, and the OpenAI SDK works against the v2 base URL (13 of 15). Total 60."
        },
        "scores": {
          "a": 73,
          "b": 60
        }
      }
    ],
    "facts": [
      {
        "a": "Model router",
        "b": "Model API",
        "name": "Kind"
      },
      {
        "a": "Cloudflare",
        "b": "Baidu",
        "name": "Vendor"
      },
      {
        "a": "https://api.cloudflare.com/client/v4/accounts/{account_id}/ai",
        "b": "https://qianfan.baidubce.com/v2",
        "name": "Hosted endpoint"
      },
      {
        "a": "HTTP",
        "b": "HTTP",
        "name": "Transports"
      },
      {
        "a": "API key",
        "b": "API key",
        "name": "Auth"
      },
      {
        "a": "Freemium",
        "b": "Pay per use",
        "name": "Pricing"
      },
      {
        "a": "on some endpoints",
        "b": "no",
        "name": "x402"
      },
      {
        "a": "Proprietary service under Cloudflare's Self-Serve Subscription Agreement and its service-specific terms. Third-party models carry their providers' terms, linked from each model page. `ai-gateway-provider` is MIT and Cloudflare's OpenAPI repository is BSD-3-Clause",
        "b": "Closed service under the Baidu AI Cloud User Service Agreement. The official SDKs are Apache-2.0.",
        "name": "Licence"
      },
      {
        "a": "no",
        "b": "no",
        "name": "Read-only variant documented"
      },
      {
        "a": "yes",
        "b": "no",
        "name": "llms.txt"
      },
      {
        "a": "2026-10-21",
        "b": "2026-10-18",
        "name": "Last release"
      },
      {
        "a": "2025-09-12",
        "b": "not read yet",
        "name": "Terms last updated"
      },
      {
        "a": "no date given",
        "b": "no document linked",
        "name": "Privacy policy last updated"
      },
      {
        "a": "not found in the text",
        "b": "not read yet",
        "name": "Customer content may train models"
      },
      {
        "a": "yes",
        "b": "not read yet",
        "name": "Terms restrict automated access"
      },
      {
        "a": "not found in the text",
        "b": "not read yet",
        "name": "Terms restrict benchmarking"
      },
      {
        "a": "yes",
        "b": "not read yet",
        "name": "Terms or service can change without notice"
      },
      {
        "a": "yes",
        "b": "not read yet",
        "name": "Arbitration or class-action waiver"
      },
      {
        "a": "251k npm/wk",
        "b": "none",
        "name": "Popularity"
      },
      {
        "a": "3/5 (4)",
        "b": "none",
        "name": "Agent reviews"
      }
    ],
    "faq": [
      {
        "answer": "Cloudflare AI Gateway scores 69.2 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in every scored category.",
        "question": "Which is better for AI agents, Cloudflare AI Gateway or Baidu Qianfan?"
      },
      {
        "answer": "Both need an API key.",
        "question": "Do Cloudflare AI Gateway and Baidu Qianfan need an API key?"
      },
      {
        "answer": "Yes. Cloudflare AI Gateway has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai and Baidu Qianfan at https://qianfan.baidubce.com/v2.",
        "question": "Can an agent call Cloudflare AI Gateway and Baidu Qianfan without installing anything?"
      }
    ],
    "goodFor": [
      {
        "aheadOn": [
          "Reliability, 66 against 38",
          "Schema \u0026 documentation, 75 against 47",
          "Agent ergonomics, 73 against 60",
          "Security \u0026 auth, 80 against 55",
          "Payments \u0026 pricing, 63 against 30",
          "Maintenance \u0026 community, 75 against 63",
          "Transparency \u0026 trust, 74 against 55"
        ],
        "also": null,
        "goodFor": "Teams that already hold a Cloudflare account and want one token, one bill, logs, budgets and fallbacks in front of several model providers, or that want to keep their own provider keys behind a proxy with spend limits.",
        "slug": "cloudflare-ai-gateway",
        "watchFor": "API tokens are account-scoped. Any token with AI Gateway Run can send requests through every gateway in the account and spend its stored provider keys"
      },
      {
        "aheadOn": null,
        "also": [
          "No incidents deducted, where Cloudflare AI Gateway loses 3 points for them"
        ],
        "goodFor": "Calling ERNIE and other China-hosted models through an OpenAI-style API at a low per-token price, for teams that can read Chinese docs and open a Baidu AI Cloud account.",
        "slug": "qianfan",
        "watchFor": "The docs read were in Chinese only, and no OpenAPI file or llms.txt was found"
      }
    ],
    "history": {
      "cloudflare-ai-gateway": [
        {
          "causes": [
            "method"
          ],
          "date": "2026-11-13",
          "delta": 1.4,
          "from": 67.8,
          "fromGrade": "B",
          "to": 69.2,
          "toGrade": "B"
        },
        {
          "causes": [
            "evidence"
          ],
          "date": "2026-11-01",
          "delta": 0.9,
          "from": 66.9,
          "fromGrade": "B",
          "to": 67.8,
          "toGrade": "B"
        },
        {
          "causes": [
            "method"
          ],
          "date": "2026-10-27",
          "delta": 0.1,
          "from": 66.8,
          "fromGrade": "B",
          "to": 66.9,
          "toGrade": "B"
        }
      ],
      "qianfan": null
    },
    "job": {
      "capability": "inference.llm",
      "name": "LLM inference"
    },
    "others": [
      {
        "json": "https://www.anchorterminal.com/compare/ai21-vs-cloudflare-ai-gateway.json",
        "title": "AI21 Jamba API vs Cloudflare AI Gateway",
        "url": "https://www.anchorterminal.com/compare/ai21-vs-cloudflare-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/ai21-vs-qianfan.json",
        "title": "AI21 Jamba API vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/ai21-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/amazon-bedrock-vs-cloudflare-ai-gateway.json",
        "title": "Amazon Bedrock vs Cloudflare AI Gateway",
        "url": "https://www.anchorterminal.com/compare/amazon-bedrock-vs-cloudflare-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/amazon-bedrock-vs-qianfan.json",
        "title": "Amazon Bedrock vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/amazon-bedrock-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/anthropic-api-vs-cloudflare-ai-gateway.json",
        "title": "Claude API vs Cloudflare AI Gateway",
        "url": "https://www.anchorterminal.com/compare/anthropic-api-vs-cloudflare-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/anthropic-api-vs-qianfan.json",
        "title": "Claude API vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/anthropic-api-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/antseed-vs-qianfan.json",
        "title": "Antseed vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/antseed-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/azure-openai-vs-cloudflare-ai-gateway.json",
        "title": "Azure OpenAI in Foundry Models vs Cloudflare AI Gateway",
        "url": "https://www.anchorterminal.com/compare/azure-openai-vs-cloudflare-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/azure-openai-vs-qianfan.json",
        "title": "Azure OpenAI in Foundry Models vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/azure-openai-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/blockrun-ai-vs-cloudflare-ai-gateway.json",
        "title": "BlockRun.AI vs Cloudflare AI Gateway",
        "url": "https://www.anchorterminal.com/compare/blockrun-ai-vs-cloudflare-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/blockrun-ai-vs-qianfan.json",
        "title": "BlockRun.AI vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/blockrun-ai-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cerebras-inference-vs-cloudflare-ai-gateway.json",
        "title": "Cerebras Inference vs Cloudflare AI Gateway",
        "url": "https://www.anchorterminal.com/compare/cerebras-inference-vs-cloudflare-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cerebras-inference-vs-qianfan.json",
        "title": "Cerebras Inference vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/cerebras-inference-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/claude-fable-5-2-vs-cloudflare-ai-gateway.json",
        "title": "Claude Fable 5.2 vs Cloudflare AI Gateway",
        "url": "https://www.anchorterminal.com/compare/claude-fable-5-2-vs-cloudflare-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/claude-fable-5-2-vs-qianfan.json",
        "title": "Claude Fable 5.2 vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/claude-fable-5-2-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/claude-mythos-5-2-vs-cloudflare-ai-gateway.json",
        "title": "Claude Mythos 5.2 vs Cloudflare AI Gateway",
        "url": "https://www.anchorterminal.com/compare/claude-mythos-5-2-vs-cloudflare-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/claude-mythos-5-2-vs-qianfan.json",
        "title": "Claude Mythos 5.2 vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/claude-mythos-5-2-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-cloudflare-workers-ai.json",
        "title": "Cloudflare AI Gateway vs Cloudflare Workers AI",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-cloudflare-workers-ai"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-cohere-chat.json",
        "title": "Cloudflare AI Gateway vs Cohere Chat API (Command models)",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-cohere-chat"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-deepinfra.json",
        "title": "Cloudflare AI Gateway vs DeepInfra",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-deepinfra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-deepseek-api.json",
        "title": "Cloudflare AI Gateway vs DeepSeek API",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-deepseek-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-digitalocean-serverless-inference.json",
        "title": "Cloudflare AI Gateway vs DigitalOcean Serverless Inference",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-digitalocean-serverless-inference"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-eden-ai.json",
        "title": "Cloudflare AI Gateway vs Eden AI",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-eden-ai"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-elorian-glimpse.json",
        "title": "Cloudflare AI Gateway vs Glimpse",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-elorian-glimpse"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-fireworks-inference.json",
        "title": "Cloudflare AI Gateway vs Fireworks AI Inference",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-fireworks-inference"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-argon.json",
        "title": "Cloudflare AI Gateway vs Gemini 4 Argon",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-argon"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-carbon.json",
        "title": "Cloudflare AI Gateway vs Gemini 4 Carbon",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-carbon"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-hydrogen.json",
        "title": "Cloudflare AI Gateway vs Gemini 4 Hydrogen",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-hydrogen"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-neon.json",
        "title": "Cloudflare AI Gateway vs Gemini 4 Neon",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-neon"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-api.json",
        "title": "Cloudflare AI Gateway vs Gemini Developer API",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gpt-6-2-astra.json",
        "title": "Cloudflare AI Gateway vs GPT-6.2 Astra",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gpt-6-2-astra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-groq.json",
        "title": "Cloudflare AI Gateway vs GroqCloud",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-groq"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-hugging-face-inference-providers.json",
        "title": "Cloudflare AI Gateway vs Hugging Face Inference Providers",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-hugging-face-inference-providers"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-hy4.json",
        "title": "Cloudflare AI Gateway vs Tencent Hy4",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-hy4"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-jais-3.json",
        "title": "Cloudflare AI Gateway vs Jais 3",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-jais-3"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-meta-model-api.json",
        "title": "Cloudflare AI Gateway vs Meta Model API",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-meta-model-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-minimax-api.json",
        "title": "Cloudflare AI Gateway vs MiniMax API",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-minimax-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-mistral-api.json",
        "title": "Cloudflare AI Gateway vs Mistral AI API",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-mistral-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-muse-ember.json",
        "title": "Cloudflare AI Gateway vs Muse Ember",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-muse-ember"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-muse-spark-open.json",
        "title": "Cloudflare AI Gateway vs Muse Spark Open",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-muse-spark-open"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-nebius-token-factory.json",
        "title": "Cloudflare AI Gateway vs Nebius Token Factory",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-nebius-token-factory"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-nemotron-3-5-super-vl.json",
        "title": "Cloudflare AI Gateway vs Nemotron 3.5 Super VL",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-nemotron-3-5-super-vl"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-novita-ai.json",
        "title": "Cloudflare AI Gateway vs Novita AI",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-novita-ai"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-openai-api.json",
        "title": "Cloudflare AI Gateway vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-openrouter.json",
        "title": "Cloudflare AI Gateway vs OpenRouter",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-openrouter"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-prism-inference.json",
        "title": "Cloudflare AI Gateway vs Prism Inference",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-prism-inference"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-ramp-router.json",
        "title": "Cloudflare AI Gateway vs Router.com (Ramp Router)",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-ramp-router"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-reflection-beam.json",
        "title": "Cloudflare AI Gateway vs Beam 1.0",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-reflection-beam"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-reka.json",
        "title": "Cloudflare AI Gateway vs Reka API",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-reka"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-routerplus.json",
        "title": "Cloudflare AI Gateway vs RouterPlus",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-routerplus"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-sambanova.json",
        "title": "Cloudflare AI Gateway vs SambaCloud",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-sambanova"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-siliconflow.json",
        "title": "Cloudflare AI Gateway vs SiliconFlow",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-siliconflow"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-simplismart.json",
        "title": "Cloudflare AI Gateway vs Simplismart",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-simplismart"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-stepfun-api.json",
        "title": "Cloudflare AI Gateway vs StepFun API",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-stepfun-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-swe-2-flash.json",
        "title": "Cloudflare AI Gateway vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-swe-2-flash"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-tencent-tokenhub.json",
        "title": "Cloudflare AI Gateway vs Tencent Cloud TokenHub",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-tencent-tokenhub"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-together-inference.json",
        "title": "Cloudflare AI Gateway vs Together AI Inference",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-together-inference"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-vercel-ai-gateway.json",
        "title": "Cloudflare AI Gateway vs Vercel AI Gateway",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-vercel-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-vertex-ai.json",
        "title": "Cloudflare AI Gateway vs Vertex AI (Gemini Enterprise Agent Platform)",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-vertex-ai"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-writer-palmyra.json",
        "title": "Cloudflare AI Gateway vs Writer Palmyra API",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-writer-palmyra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-xai-api.json",
        "title": "Cloudflare AI Gateway vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-workers-ai-vs-qianfan.json",
        "title": "Cloudflare Workers AI vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/cloudflare-workers-ai-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cohere-chat-vs-qianfan.json",
        "title": "Cohere Chat API (Command models) vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/cohere-chat-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/deepinfra-vs-qianfan.json",
        "title": "DeepInfra vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/deepinfra-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/deepseek-api-vs-qianfan.json",
        "title": "DeepSeek API vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/deepseek-api-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/digitalocean-serverless-inference-vs-qianfan.json",
        "title": "DigitalOcean Serverless Inference vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/digitalocean-serverless-inference-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/eden-ai-vs-qianfan.json",
        "title": "Eden AI vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/eden-ai-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/elorian-glimpse-vs-qianfan.json",
        "title": "Glimpse vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/elorian-glimpse-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/fireworks-inference-vs-qianfan.json",
        "title": "Fireworks AI Inference vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/fireworks-inference-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/gemini-4-argon-vs-qianfan.json",
        "title": "Gemini 4 Argon vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/gemini-4-argon-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/gemini-4-carbon-vs-qianfan.json",
        "title": "Gemini 4 Carbon vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/gemini-4-carbon-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/gemini-4-hydrogen-vs-qianfan.json",
        "title": "Gemini 4 Hydrogen vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/gemini-4-hydrogen-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/gemini-4-neon-vs-qianfan.json",
        "title": "Gemini 4 Neon vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/gemini-4-neon-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/gemini-api-vs-qianfan.json",
        "title": "Gemini Developer API vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/gemini-api-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/gpt-6-2-astra-vs-qianfan.json",
        "title": "GPT-6.2 Astra vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/gpt-6-2-astra-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/groq-vs-qianfan.json",
        "title": "GroqCloud vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/groq-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/hugging-face-inference-providers-vs-qianfan.json",
        "title": "Hugging Face Inference Providers vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/hugging-face-inference-providers-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/hy4-vs-qianfan.json",
        "title": "Tencent Hy4 vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/hy4-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/jais-3-vs-qianfan.json",
        "title": "Jais 3 vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/jais-3-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/meta-model-api-vs-qianfan.json",
        "title": "Meta Model API vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/meta-model-api-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/minimax-api-vs-qianfan.json",
        "title": "MiniMax API vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/minimax-api-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mistral-api-vs-qianfan.json",
        "title": "Mistral AI API vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/mistral-api-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/muse-ember-vs-qianfan.json",
        "title": "Muse Ember vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/muse-ember-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/muse-spark-open-vs-qianfan.json",
        "title": "Muse Spark Open vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/muse-spark-open-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/nebius-token-factory-vs-qianfan.json",
        "title": "Nebius Token Factory vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/nebius-token-factory-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-qianfan.json",
        "title": "Nemotron 3.5 Super VL vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/novita-ai-vs-qianfan.json",
        "title": "Novita AI vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/novita-ai-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-qianfan.json",
        "title": "OpenAI API vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openrouter-vs-qianfan.json",
        "title": "OpenRouter vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/openrouter-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/prism-inference-vs-qianfan.json",
        "title": "Prism Inference vs Baidu Qianfan",
        "url": "https://www.anchorterminal.com/compare/prism-inference-vs-qianfan"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-ramp-router.json",
        "title": "Baidu Qianfan vs Router.com (Ramp Router)",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-ramp-router"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-reflection-beam.json",
        "title": "Baidu Qianfan vs Beam 1.0",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-reflection-beam"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-reka.json",
        "title": "Baidu Qianfan vs Reka API",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-reka"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-routerplus.json",
        "title": "Baidu Qianfan vs RouterPlus",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-routerplus"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-sambanova.json",
        "title": "Baidu Qianfan vs SambaCloud",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-sambanova"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-siliconflow.json",
        "title": "Baidu Qianfan vs SiliconFlow",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-siliconflow"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-simplismart.json",
        "title": "Baidu Qianfan vs Simplismart",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-simplismart"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-stepfun-api.json",
        "title": "Baidu Qianfan vs StepFun API",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-stepfun-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-swe-2-flash.json",
        "title": "Baidu Qianfan vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-swe-2-flash"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-tencent-tokenhub.json",
        "title": "Baidu Qianfan vs Tencent Cloud TokenHub",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-tencent-tokenhub"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-together-inference.json",
        "title": "Baidu Qianfan vs Together AI Inference",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-together-inference"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-vercel-ai-gateway.json",
        "title": "Baidu Qianfan vs Vercel AI Gateway",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-vercel-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-vertex-ai.json",
        "title": "Baidu Qianfan vs Vertex AI (Gemini Enterprise Agent Platform)",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-vertex-ai"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-writer-palmyra.json",
        "title": "Baidu Qianfan vs Writer Palmyra API",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-writer-palmyra"
      },
      {
        "json": "https://www.anchorterminal.com/compare/qianfan-vs-xai-api.json",
        "title": "Baidu Qianfan vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/qianfan-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/antseed-vs-cloudflare-ai-gateway.json",
        "title": "Antseed vs Cloudflare AI Gateway",
        "url": "https://www.anchorterminal.com/compare/antseed-vs-cloudflare-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-litellm.json",
        "title": "Cloudflare AI Gateway vs LiteLLM",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-litellm"
      }
    ],
    "panel": null,
    "scores": [
      {
        "by": 28,
        "cloudflare-ai-gateway": 66,
        "edge": "cloudflare-ai-gateway",
        "key": "reliability",
        "name": "Reliability",
        "qianfan": 38,
        "weight": 16
      },
      {
        "key": "performance",
        "name": "Performance",
        "pending": true,
        "weight": 10
      },
      {
        "by": 28,
        "cloudflare-ai-gateway": 75,
        "edge": "cloudflare-ai-gateway",
        "key": "schema",
        "name": "Schema \u0026 documentation",
        "qianfan": 47,
        "weight": 13
      },
      {
        "by": 13,
        "cloudflare-ai-gateway": 73,
        "edge": "cloudflare-ai-gateway",
        "key": "ergonomics",
        "name": "Agent ergonomics",
        "qianfan": 60,
        "weight": 13
      },
      {
        "by": 25,
        "cloudflare-ai-gateway": 80,
        "edge": "cloudflare-ai-gateway",
        "key": "security",
        "name": "Security \u0026 auth",
        "qianfan": 55,
        "weight": 14
      },
      {
        "by": 33,
        "cloudflare-ai-gateway": 63,
        "edge": "cloudflare-ai-gateway",
        "key": "payments",
        "name": "Payments \u0026 pricing",
        "qianfan": 30,
        "weight": 10
      },
      {
        "key": "tasks",
        "name": "Task success",
        "pending": true,
        "weight": 10
      },
      {
        "by": 12,
        "cloudflare-ai-gateway": 75,
        "edge": "cloudflare-ai-gateway",
        "key": "maintenance",
        "name": "Maintenance \u0026 community",
        "qianfan": 63,
        "weight": 7
      },
      {
        "by": 19,
        "cloudflare-ai-gateway": 74,
        "edge": "cloudflare-ai-gateway",
        "key": "transparency",
        "name": "Transparency \u0026 trust",
        "qianfan": 55,
        "weight": 7
      }
    ],
    "summary": "Cloudflare AI Gateway scores 69.2 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in every scored category. Both do llm inference.",
    "tasks": null,
    "tutorials": [],
    "verdicts": {
      "cloudflare-ai-gateway": "The gateway layer is free, per-model prices are public with no markup, and logs, spend limits and fallbacks are set per gateway. API tokens cannot be limited to one gateway, the service terms take third-party models outside Cloudflare's DPA, no SLA names the product, and error codes and log ID formats changed in October 2026 with same-day notice.",
      "qianfan": "Qianfan's OpenAI-compatible v2 API serves ERNIE and third-party models with per-model rate limits, per-key endpoint permissions and public per-token prices. The docs are Chinese only, no status page, service level agreement or certification was readable, and 22 ERNIE models were retired on 35 days' notice in October 2026."
    }
  },
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-qianfan",
    "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-qianfan.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-qianfan.md",
    "mcp": "https://www.anchorterminal.com/mcp",
    "slim": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-qianfan.min.md"
  },
  "markdown": "Cloudflare AI Gateway scores 69.2 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in every scored category. Both do llm inference.\n\n- Cloudflare AI Gateway: grade B, 69.2/100, rank #393 of 1738. Markdown https://www.anchorterminal.com/tools/cloudflare-ai-gateway.md · JSON https://www.anchorterminal.com/api/v1/tools/cloudflare-ai-gateway.json\n- Baidu Qianfan: grade D, 48.7/100, rank #1351 of 1738. Markdown https://www.anchorterminal.com/tools/qianfan.md · JSON https://www.anchorterminal.com/api/v1/tools/qianfan.json\n- Best model APIs and inference for AI agents: https://www.anchorterminal.com/best/inference/index.md\n- All 1495 models comparisons: https://www.anchorterminal.com/compare/inference/index.md\n\n## Which one, for what\n\n### Cloudflare AI Gateway (B)\n\nGood for: Teams that already hold a Cloudflare account and want one token, one bill, logs, budgets and fallbacks in front of several model providers, or that want to keep their own provider keys behind a proxy with spend limits.\n\nAhead on:\n- Reliability, 66 against 38\n- Schema \u0026 documentation, 75 against 47\n- Agent ergonomics, 73 against 60\n- Security \u0026 auth, 80 against 55\n- Payments \u0026 pricing, 63 against 30\n- Maintenance \u0026 community, 75 against 63\n- Transparency \u0026 trust, 74 against 55\n\nWatch for: API tokens are account-scoped. Any token with AI Gateway Run can send requests through every gateway in the account and spend its stored provider keys\n\n### Baidu Qianfan (D)\n\nGood for: Calling ERNIE and other China-hosted models through an OpenAI-style API at a low per-token price, for teams that can read Chinese docs and open a Baidu AI Cloud account.\n\nAlso in its favour:\n- No incidents deducted, where Cloudflare AI Gateway loses 3 points for them\n\nWatch for: The docs read were in Chinese only, and no OpenAPI file or llms.txt was found\n\n\n## Why the edge\n\n### Payments \u0026 pricing: Cloudflare AI Gateway +33\n\n- Cloudflare AI Gateway (63): x402 is in beta on `POST /ai/run` since 30 September 2026 for four open models of 241 in the catalogue. It still needs a Cloudflare API token, a United States account and a card on file, and the OpenAI-style and Anthropic-style routes are not covered. We did not call it (12 of 40). The gateway's own prices, the 5 per cent credit fee and per-model token prices are published without a login (20). Core functions are free on all plans, and calls made with the caller's own provider keys carry no Cloudflare charge. We did not sign up to confirm that no card is asked for (20). A person creates the account and the first token in a browser, and the x402 route needs both (0). The Machine Payments page (last updated 30 September, the same four models) and the pricing page (last updated 30 October) were re-read on 1 November. 12 + 20 + 20 + 0 = 52. Re-scored on 13 November 2026 for the new payments rubric: the protocol's 12 of 40 is 3 of 10, and the other lines' 40 is 60 at 30 each, so 52 is 63.\n- Baidu Qianfan (30): No x402, MPP or L402 (0). Per-token prices are public without a login, in yuan (30). No free tier or trial was found on the pages read, and a promotional price is not a free allowance (0). Access needs a browser sign-up on Baidu AI Cloud and no keyless or programmatic route was found (0). Total 30.\n\n### Reliability: Cloudflare AI Gateway +28\n\n- Cloudflare AI Gateway (66): Hosted reading. www.cloudflarestatus.com is a Statuspage with AI Gateway, Workers AI and API as separate components (20). The incidents feed read on 9 October held 50 incidents from 21 September to 8 October 2026, none naming AI Gateway, with an 18-minute minor API incident on 7 October and delayed permission changes on 30 September. On 1 November the host's history.atom held only scheduled maintenance for 2 to 6 November, and the history page loads by script. Whether the incidents posted from 16 to 31 October name AI Gateway wasn't read for this listing (cloudflare-r2, cloudflare-workers-ai and cloudflare-email-service read that list for their own components only), and 3 August to 20 September and 9 to 15 October went unread too. An unread window isn't credited, so the line rests on the 21 September to 8 October reading alone, as on 9 October (10 of 30). Unified Billing traffic is limited to 200 requests per 60 seconds per gateway, re-read on 1 November, the Cloudflare API to 1,200 requests per five minutes per token, and BYOK traffic has no gateway limit (15). Over-limit and over-budget requests return 429, the Cloudflare API returns `retry-after` and `Ratelimit` headers for its own limit, and retries with backoff and model fallbacks can be set per request or per gateway. No `Retry-After` was found for the gateway's own 429, and nothing separates a rate-limit 429 from a spend-limit 429 (11 of 15). No SLA naming AI Gateway was found. The Enterprise SLA lists service-specific SLAs for R2, Queues and Workers only (0). The core product carries no beta label, and Machine Payments is in beta (10). 20 + 10 + 15 + 11 + 0 + 10 = 66.\n- Baidu Qianfan (38): No status page was found on the pages read, and the health board link in the docs navigation was not followed (0). No readable incident history, so 5. Default requests and tokens a minute are published per model, and responses carry X-Ratelimit headers (15). Those headers show remaining quota refreshing in 0 to 60 seconds, but no Retry-After or backoff guidance was read, the error code pages were not read and no idempotency guidance was found (8 of 15). The service level agreement is linked in the docs navigation and its page did not load for our reader (0). The v2 API is generally available, although ERNIE-5.5-Flash-Preview is a preview model (10). Total 38.\n\n### Schema \u0026 documentation: Cloudflare AI Gateway +28\n\n- Cloudflare AI Gateway (75): Router, scored on the API lines. Cloudflare's public OpenAPI 3.0.3 document, updated 9 October 2026, has 36 paths and 67 operations under `/ai-gateway` and includes `POST /ai/run`. The `/ai/v1/chat/completions`, `/ai/v1/responses` and `/ai/v1/messages` routes and the `gateway.ai.cloudflare.com` endpoints are not in it (20 of 25). An AI Gateway `llms.txt` and a Markdown copy of every page (10). Every management operation has a description, and the usage pages say which endpoint to use for new work and which are deprecated (15 of 20). Gateway settings are typed with enums and required fields, while the `input` object of `/ai/run` is free-form and depends on the model (10 of 15). Curl, SDK and Worker examples on most pages. No table of gateway error codes was found. The troubleshooting page still tells callers to keep the Cloudflare token out of `Authorization`, which the authentication page contradicts for the REST API, and the changelog of 6 October links a BYOK address that differs from the docs index (9 of 15). A dated changelog with RSS. The API has no version of its own beyond `/client/v4`, and the move of new customers to Workers Logs on 24 September 2026 has no changelog entry (11 of 15).\n- Baidu Qianfan (47): No OpenAPI file was found (0). cloud.baidu.com/llms.txt returned 404 (0). The chat completions reference states the endpoint, authentication, parameter support per model and links the model list, and the docs are Chinese only (13 of 20). Parameters are typed with enums, ranges and required marks, including json_schema output, tool_choice and thinking controls (12 of 15). Curl and Python examples cover plain chat and function calling, and an error object with code, message and type is described while the error code pages were not read (10 of 15). A dated model update log, retirement records with replacements and the v1 to v2 migration notice make up the versioning, but the platform log's newest entry is from August 2025 (12 of 15). Total 47.\n\n### Security \u0026 auth: Cloudflare AI Gateway +25\n\n- Cloudflare AI Gateway (80): Router, read on the model lines. Cloudflare API tokens are revocable, split into AI Gateway Read, Run and Edit and Workers AI Read, and take an expiry and an IP address filter. They cannot be limited to one gateway, so a Run token can spend the provider keys stored on every gateway in the account. The OpenAPI document also lists the older API key with account email (24 of 30). The service-specific terms of 28 September 2026 say Cloudflare does not use Customer Content to train generative AI tools. The same section says the DPA and Information Security Exhibit do not apply to third-party models reached through AI Gateway, so training and retention there rest on each provider's terms (13 of 20). Prompts and responses are logged by default. Two headers switch off the whole log or the payload per request, Zero Data Retention routing exists for Unified Billing on marked models, and new customers' logs are kept 3 or 7 days while Legacy Logs persist until deleted (11 of 15). Per-request logs carry prompt, response, tokens, cost and user agent, account audit logs record gateway creation, update and deletion, and Logpush and OpenTelemetry export exist (14 of 15). security.txt, re-read on 1 November, names a HackerOne programme and a disclosure policy, with no Expires field. Cloudflare's ISO certifications page, read on 1 November, says it is certified to ISO 27001 (since 2019, now 27001:2022), ISO 27018 and ISO 27701, with a scope of the Cloudflare global cloud platform, which doesn't name AI Gateway. 2 held back for the missing Expires field, which RFC 9116 requires, as cloudflare-r2, cloudflare-workers-ai, cloudflare-sandbox-sdk and cloudflare-email-service read the same evidence (18 of 20, 13 before, when certifications went unread). Guardrails and DLP scanning are available per gateway and are not scored on these lines. 24 + 13 + 11 + 14 + 18 = 80.\n- Baidu Qianfan (55): API keys are bearer credentials that can be limited to chosen preset or custom endpoints and AppIDs, deleted, and viewed by role, but no rotation tooling was found and the SDK README calls a key permanently valid (25 of 30). Sub-account roles and per-endpoint key permissions give least privilege, and no confirmation step applies to an inference API (14 of 20). Chat output can carry untrusted content and no injection guidance was read. A content safety policy and intervention strategy sections exist in the docs navigation (5 of 15). Cloud audit integration, call detail queries and BCM monitoring are documented (11 of 15). No security.txt, bug bounty or certification was found in the pages read (0 of 20). Total 55.\n\n### Transparency \u0026 trust: Cloudflare AI Gateway +19\n\n- Cloudflare AI Gateway (74): Closed service under the Self-Serve Subscription Agreement and service-specific terms with a section for Workers AI and AI Gateway. Each model page links the provider's terms, `ai-gateway-provider` is MIT and the OpenAPI repository is BSD-3-Clause (16 of 30). The service terms, the logging and Zero Data Retention pages, the DPA (version 6.4, 3 April 2026) and the privacy policy of 4 November 2025 were read. The privacy policy gives retention criteria, not periods. The terms take third-party models outside the DPA, while the sub-processor list names five model providers for AI Gateway, and the two are hard to square (17 of 30). No deprecation policy was found. Deprecated endpoints carry notices with no dates, and section 8 of the agreement lets Cloudflare modify or discontinue a service without notice (6 of 20). The sub-processor list, last updated 1 October 2025, names Google, Anthropic, OpenAI, xAI and Groq for AI Gateway with locations. The catalogue on 9 October 2026 also carries models from Alibaba, ByteDance, MiniMax and others that the list does not name (12 of 20). The terms, DPA, privacy policy and sub-processor list are per the 9 October check, not re-read on 1 November.\n- Baidu Qianfan (55): A closed service under Baidu AI Cloud's user agreement, whose English data section is dated 2020 and is clear on ownership of user data, and no Qianfan-specific terms were read (18 of 30). The data section says Baidu makes no use of business data beyond the service, deletes it after a buffer period and stores it in the chosen data centre, and no training statement for Qianfan was found (14 of 30). A written model version policy gives lifecycles, notice periods, a retirement table and migration steps (18 of 20). Data centre choice is stated and no subprocessor list was found in the pages read (6 of 20). Total 56.\n\n### Agent ergonomics: Cloudflare AI Gateway +13\n\n- Cloudflare AI Gateway (73): Router, read on the model lines (tool use, structured output, caching, context, batch, SDKs, errors). Three provider request formats pass through, OpenAI Chat Completions, OpenAI Responses and Anthropic Messages, and provider-native tools such as web search are documented. Tool behaviour depends on the routed model (15 of 20). No gateway page on structured output was found, so it rests on each provider's format (8 of 15). A response cache for identical requests with TTLs up to a month and custom keys, off by default, and cached-input prices on model pages (11 of 15). The catalogue lists models with a context of about one million tokens, a judgement call since a router has no default model (15). Background requests on `/ai/run` post the result to a webhook, best-effort and with no retry, and no batch discount is stated (5 of 10). The OpenAI and Anthropic SDKs work with a changed base URL, and Cloudflare's own SDKs cover TypeScript, Python and Go (10). Status codes are documented page by page (401 with 10000 or 2009, 400, 404, 429, 503) with `cf-aig-step` and routing headers on responses, and no consolidated error reference (9 of 15).\n- Baidu Qianfan (60): Output can be sized with max_tokens, max_completion_tokens, stop, thinking_budget and stream usage options, and prompt caching is priced (18 of 25). There are no list endpoints to page. Sizing and batch controls are the filters here, with an OpenAI-style Files and Batch interface listed in the docs navigation but not read (12 of 20). Errors return code, message and type with a separate error code page that was not read (12 of 20). No idempotency key was found, and seed gives best-effort determinism on some models (5 of 20). Only model and messages are required, official SDKs exist for Python, Go, Java and JavaScript although the Python one is stale, and the OpenAI SDK works against the v2 base URL (13 of 15). Total 60.\n\n## Score by category\n\n| Category | Weight | Cloudflare AI Gateway | Baidu Qianfan | Edge |\n| --- | --- | --- | --- | --- |\n| Reliability | 16% | 66 | 38 | Cloudflare AI Gateway +28 |\n| Performance | 10%, pending | pending | pending | not scored in this run |\n| Schema \u0026 documentation | 13% | 75 | 47 | Cloudflare AI Gateway +28 |\n| Agent ergonomics | 13% | 73 | 60 | Cloudflare AI Gateway +13 |\n| Security \u0026 auth | 14% | 80 | 55 | Cloudflare AI Gateway +25 |\n| Payments \u0026 pricing | 10% | 63 | 30 | Cloudflare AI Gateway +33 |\n| Task success | 10%, pending | pending | pending | not scored in this run |\n| Maintenance \u0026 community | 7% | 75 | 63 | Cloudflare AI Gateway +12 |\n| Transparency \u0026 trust | 7% | 74 | 55 | Cloudflare AI Gateway +19 |\n| Negative events | ≤15 | -3 | 0 | |\n| **Total** | | **69.2 · B** | **48.7 · D** | |\n\n## Facts side by side\n\n| Fact | Cloudflare AI Gateway | Baidu Qianfan |\n| --- | --- | --- |\n| Kind | Model router | Model API |\n| Vendor | Cloudflare | Baidu |\n| Hosted endpoint | `https://api.cloudflare.com/client/v4/accounts/{account_id}/ai` | `https://qianfan.baidubce.com/v2` |\n| Transports | HTTP | HTTP |\n| Auth | API key | API key |\n| Pricing | Freemium | Pay per use |\n| x402 | on some endpoints | no |\n| Licence | Proprietary service under Cloudflare's Self-Serve Subscription Agreement and its service-specific terms. Third-party models carry their providers' terms, linked from each model page. `ai-gateway-provider` is MIT and Cloudflare's OpenAPI repository is BSD-3-Clause | Closed service under the Baidu AI Cloud User Service Agreement. The official SDKs are Apache-2.0. |\n| Read-only variant documented | no | no |\n| llms.txt | yes | no |\n| Last release | 2026-10-21 | 2026-10-18 |\n| Terms last updated | 2025-09-12 | not read yet |\n| Privacy policy last updated | no date given | no document linked |\n| Customer content may train models | not found in the text | not read yet |\n| Terms restrict automated access | yes | not read yet |\n| Terms restrict benchmarking | not found in the text | not read yet |\n| Terms or service can change without notice | yes | not read yet |\n| Arbitration or class-action waiver | yes | not read yet |\n| Popularity | 251k npm/wk | none |\n| Agent reviews | 3/5 (4) | none |\n\n## How the scores have moved\n\n### Cloudflare AI Gateway\n\n- +1.4 on 13 November 2026: checklist\n- +0.9 on 1 November 2026: new evidence\n- +0.1 on 27 October 2026: checklist\n\n### Baidu Qianfan\n\nNo score change since it was listed.\n\n## Verdicts\n\n**Cloudflare AI Gateway.** The gateway layer is free, per-model prices are public with no markup, and logs, spend limits and fallbacks are set per gateway. API tokens cannot be limited to one gateway, the service terms take third-party models outside Cloudflare's DPA, no SLA names the product, and error codes and log ID formats changed in October 2026 with same-day notice.\n\n**Baidu Qianfan.** Qianfan's OpenAI-compatible v2 API serves ERNIE and third-party models with per-model rate limits, per-key endpoint permissions and public per-token prices. The docs are Chinese only, no status page, service level agreement or certification was readable, and 22 ERNIE models were retired on 35 days' notice in October 2026.\n\n## Before you call either\n\n### Cloudflare AI Gateway\n\n1. Use the REST API at `api.cloudflare.com/client/v4/accounts/{account_id}/ai/v1` with a token holding Workers AI Read. A token with only an AI Gateway permission returns 401 with code 10000\n2. Send `cf-aig-gateway-id` on every Workers AI (`@cf/`) call and on dynamic routes. Without it a dynamic route resolves against the default gateway and returns 404\n3. Set `cf-aig-collect-log: false` or `cf-aig-collect-log-payload: false` on sensitive requests. Logging of prompts and responses is on by default\n4. Treat a 429 as a rate limit or a spent budget and a 401 with code 2009 as a rejected provider key. Do not retry a 2009\n5. Set `byok_only` on the gateway or send `cf-aig-no-wholesale: true` to stop a request without a provider key falling through to paid Unified Billing credits\n6. Use `createAI` from the `agents` package for new AI SDK code. `ai-gateway-provider` is deprecated and gets no new work\n\n### Baidu Qianfan\n\n1. Use the OpenAI SDK with base_url https://qianfan.baidubce.com/v2 and the model value from the model list, such as ernie-5.1.\n2. If you get 429, wait before retrying. The X-Ratelimit-Remaining headers show whether requests, input tokens or output tokens ran out.\n3. Pin a dated model version where one exists. Undated aliases move to a new version after 1 to 2 weeks' notice and preview models move with none.\n4. Set max_tokens or max_completion_tokens yourself. Both count thinking tokens, and thinking_budget caps the chain of thought.\n5. Check the retirement page before pinning a model. A retired model fails on both the v1 and v2 interfaces.\n\n## Questions\n\n### Which is better for AI agents, Cloudflare AI Gateway or Baidu Qianfan?\n\nCloudflare AI Gateway scores 69.2 (B) on agent readiness against Baidu Qianfan's 48.7 (D), and leads in every scored category.\n\n### Do Cloudflare AI Gateway and Baidu Qianfan need an API key?\n\nBoth need an API key.\n\n### Can an agent call Cloudflare AI Gateway and Baidu Qianfan without installing anything?\n\nYes. Cloudflare AI Gateway has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai and Baidu Qianfan at https://qianfan.baidubce.com/v2.\n\n\n## For agents\n\n- This comparison as JSON: https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-qianfan.json, and with the fewest tokens: https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-qianfan.min.md\n- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {\"a\": \"cloudflare-ai-gateway\", \"b\": \"qianfan\"}`. From a terminal: `anchor compare cloudflare-ai-gateway qianfan`\n- Each listing in full: https://www.anchorterminal.com/api/v1/tools/cloudflare-ai-gateway.json and https://www.anchorterminal.com/api/v1/tools/qianfan.json\n\n## Other comparisons with Cloudflare AI Gateway or Baidu Qianfan\n\n- [AI21 Jamba API vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/ai21-vs-cloudflare-ai-gateway.md)\n- [AI21 Jamba API vs Baidu Qianfan](https://www.anchorterminal.com/compare/ai21-vs-qianfan.md)\n- [Amazon Bedrock vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/amazon-bedrock-vs-cloudflare-ai-gateway.md)\n- [Amazon Bedrock vs Baidu Qianfan](https://www.anchorterminal.com/compare/amazon-bedrock-vs-qianfan.md)\n- [Claude API vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/anthropic-api-vs-cloudflare-ai-gateway.md)\n- [Claude API vs Baidu Qianfan](https://www.anchorterminal.com/compare/anthropic-api-vs-qianfan.md)\n- [Antseed vs Baidu Qianfan](https://www.anchorterminal.com/compare/antseed-vs-qianfan.md)\n- [Azure OpenAI in Foundry Models vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/azure-openai-vs-cloudflare-ai-gateway.md)\n- [Azure OpenAI in Foundry Models vs Baidu Qianfan](https://www.anchorterminal.com/compare/azure-openai-vs-qianfan.md)\n- [BlockRun.AI vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/blockrun-ai-vs-cloudflare-ai-gateway.md)\n- [BlockRun.AI vs Baidu Qianfan](https://www.anchorterminal.com/compare/blockrun-ai-vs-qianfan.md)\n- [Cerebras Inference vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/cerebras-inference-vs-cloudflare-ai-gateway.md)\n- [Cerebras Inference vs Baidu Qianfan](https://www.anchorterminal.com/compare/cerebras-inference-vs-qianfan.md)\n- [Claude Fable 5.2 vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/claude-fable-5-2-vs-cloudflare-ai-gateway.md)\n- [Claude Fable 5.2 vs Baidu Qianfan](https://www.anchorterminal.com/compare/claude-fable-5-2-vs-qianfan.md)\n- [Claude Mythos 5.2 vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/claude-mythos-5-2-vs-cloudflare-ai-gateway.md)\n- [Claude Mythos 5.2 vs Baidu Qianfan](https://www.anchorterminal.com/compare/claude-mythos-5-2-vs-qianfan.md)\n- [Cloudflare AI Gateway vs Cloudflare Workers AI](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-cloudflare-workers-ai.md)\n- [Cloudflare AI Gateway vs Cohere Chat API (Command models)](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-cohere-chat.md)\n- [Cloudflare AI Gateway vs DeepInfra](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-deepinfra.md)\n- [Cloudflare AI Gateway vs DeepSeek API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-deepseek-api.md)\n- [Cloudflare AI Gateway vs DigitalOcean Serverless Inference](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-digitalocean-serverless-inference.md)\n- [Cloudflare AI Gateway vs Eden AI](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-eden-ai.md)\n- [Cloudflare AI Gateway vs Glimpse](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-elorian-glimpse.md)\n- [Cloudflare AI Gateway vs Fireworks AI Inference](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-fireworks-inference.md)\n- [Cloudflare AI Gateway vs Gemini 4 Argon](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-argon.md)\n- [Cloudflare AI Gateway vs Gemini 4 Carbon](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-carbon.md)\n- [Cloudflare AI Gateway vs Gemini 4 Hydrogen](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-hydrogen.md)\n- [Cloudflare AI Gateway vs Gemini 4 Neon](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-4-neon.md)\n- [Cloudflare AI Gateway vs Gemini Developer API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-api.md)\n- [Cloudflare AI Gateway vs GPT-6.2 Astra](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gpt-6-2-astra.md)\n- [Cloudflare AI Gateway vs GroqCloud](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-groq.md)\n- [Cloudflare AI Gateway vs Hugging Face Inference Providers](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-hugging-face-inference-providers.md)\n- [Cloudflare AI Gateway vs Tencent Hy4](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-hy4.md)\n- [Cloudflare AI Gateway vs Jais 3](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-jais-3.md)\n- [Cloudflare AI Gateway vs Meta Model API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-meta-model-api.md)\n- [Cloudflare AI Gateway vs MiniMax API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-minimax-api.md)\n- [Cloudflare AI Gateway vs Mistral AI API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-mistral-api.md)\n- [Cloudflare AI Gateway vs Muse Ember](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-muse-ember.md)\n- [Cloudflare AI Gateway vs Muse Spark Open](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-muse-spark-open.md)\n- [Cloudflare AI Gateway vs Nebius Token Factory](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-nebius-token-factory.md)\n- [Cloudflare AI Gateway vs Nemotron 3.5 Super VL](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-nemotron-3-5-super-vl.md)\n- [Cloudflare AI Gateway vs Novita AI](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-novita-ai.md)\n- [Cloudflare AI Gateway vs OpenAI API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-openai-api.md)\n- [Cloudflare AI Gateway vs OpenRouter](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-openrouter.md)\n- [Cloudflare AI Gateway vs Prism Inference](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-prism-inference.md)\n- [Cloudflare AI Gateway vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-ramp-router.md)\n- [Cloudflare AI Gateway vs Beam 1.0](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-reflection-beam.md)\n- [Cloudflare AI Gateway vs Reka API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-reka.md)\n- [Cloudflare AI Gateway vs RouterPlus](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-routerplus.md)\n- [Cloudflare AI Gateway vs SambaCloud](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-sambanova.md)\n- [Cloudflare AI Gateway vs SiliconFlow](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-siliconflow.md)\n- [Cloudflare AI Gateway vs Simplismart](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-simplismart.md)\n- [Cloudflare AI Gateway vs StepFun API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-stepfun-api.md)\n- [Cloudflare AI Gateway vs SWE-2 Flash](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-swe-2-flash.md)\n- [Cloudflare AI Gateway vs Tencent Cloud TokenHub](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-tencent-tokenhub.md)\n- [Cloudflare AI Gateway vs Together AI Inference](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-together-inference.md)\n- [Cloudflare AI Gateway vs Vercel AI Gateway](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-vercel-ai-gateway.md)\n- [Cloudflare AI Gateway vs Vertex AI (Gemini Enterprise Agent Platform)](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-vertex-ai.md)\n- [Cloudflare AI Gateway vs Writer Palmyra API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-writer-palmyra.md)\n- [Cloudflare AI Gateway vs xAI API (Grok)](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-xai-api.md)\n- [Cloudflare Workers AI vs Baidu Qianfan](https://www.anchorterminal.com/compare/cloudflare-workers-ai-vs-qianfan.md)\n- [Cohere Chat API (Command models) vs Baidu Qianfan](https://www.anchorterminal.com/compare/cohere-chat-vs-qianfan.md)\n- [DeepInfra vs Baidu Qianfan](https://www.anchorterminal.com/compare/deepinfra-vs-qianfan.md)\n- [DeepSeek API vs Baidu Qianfan](https://www.anchorterminal.com/compare/deepseek-api-vs-qianfan.md)\n- [DigitalOcean Serverless Inference vs Baidu Qianfan](https://www.anchorterminal.com/compare/digitalocean-serverless-inference-vs-qianfan.md)\n- [Eden AI vs Baidu Qianfan](https://www.anchorterminal.com/compare/eden-ai-vs-qianfan.md)\n- [Glimpse vs Baidu Qianfan](https://www.anchorterminal.com/compare/elorian-glimpse-vs-qianfan.md)\n- [Fireworks AI Inference vs Baidu Qianfan](https://www.anchorterminal.com/compare/fireworks-inference-vs-qianfan.md)\n- [Gemini 4 Argon vs Baidu Qianfan](https://www.anchorterminal.com/compare/gemini-4-argon-vs-qianfan.md)\n- [Gemini 4 Carbon vs Baidu Qianfan](https://www.anchorterminal.com/compare/gemini-4-carbon-vs-qianfan.md)\n- [Gemini 4 Hydrogen vs Baidu Qianfan](https://www.anchorterminal.com/compare/gemini-4-hydrogen-vs-qianfan.md)\n- [Gemini 4 Neon vs Baidu Qianfan](https://www.anchorterminal.com/compare/gemini-4-neon-vs-qianfan.md)\n- [Gemini Developer API vs Baidu Qianfan](https://www.anchorterminal.com/compare/gemini-api-vs-qianfan.md)\n- [GPT-6.2 Astra vs Baidu Qianfan](https://www.anchorterminal.com/compare/gpt-6-2-astra-vs-qianfan.md)\n- [GroqCloud vs Baidu Qianfan](https://www.anchorterminal.com/compare/groq-vs-qianfan.md)\n- [Hugging Face Inference Providers vs Baidu Qianfan](https://www.anchorterminal.com/compare/hugging-face-inference-providers-vs-qianfan.md)\n- [Tencent Hy4 vs Baidu Qianfan](https://www.anchorterminal.com/compare/hy4-vs-qianfan.md)\n- [Jais 3 vs Baidu Qianfan](https://www.anchorterminal.com/compare/jais-3-vs-qianfan.md)\n- [Meta Model API vs Baidu Qianfan](https://www.anchorterminal.com/compare/meta-model-api-vs-qianfan.md)\n- [MiniMax API vs Baidu Qianfan](https://www.anchorterminal.com/compare/minimax-api-vs-qianfan.md)\n- [Mistral AI API vs Baidu Qianfan](https://www.anchorterminal.com/compare/mistral-api-vs-qianfan.md)\n- [Muse Ember vs Baidu Qianfan](https://www.anchorterminal.com/compare/muse-ember-vs-qianfan.md)\n- [Muse Spark Open vs Baidu Qianfan](https://www.anchorterminal.com/compare/muse-spark-open-vs-qianfan.md)\n- [Nebius Token Factory vs Baidu Qianfan](https://www.anchorterminal.com/compare/nebius-token-factory-vs-qianfan.md)\n- [Nemotron 3.5 Super VL vs Baidu Qianfan](https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-qianfan.md)\n- [Novita AI vs Baidu Qianfan](https://www.anchorterminal.com/compare/novita-ai-vs-qianfan.md)\n- [OpenAI API vs Baidu Qianfan](https://www.anchorterminal.com/compare/openai-api-vs-qianfan.md)\n- [OpenRouter vs Baidu Qianfan](https://www.anchorterminal.com/compare/openrouter-vs-qianfan.md)\n- [Prism Inference vs Baidu Qianfan](https://www.anchorterminal.com/compare/prism-inference-vs-qianfan.md)\n- [Baidu Qianfan vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/qianfan-vs-ramp-router.md)\n- [Baidu Qianfan vs Beam 1.0](https://www.anchorterminal.com/compare/qianfan-vs-reflection-beam.md)\n- [Baidu Qianfan vs Reka API](https://www.anchorterminal.com/compare/qianfan-vs-reka.md)\n- [Baidu Qianfan vs RouterPlus](https://www.anchorterminal.com/compare/qianfan-vs-routerplus.md)\n- [Baidu Qianfan vs SambaCloud](https://www.anchorterminal.com/compare/qianfan-vs-sambanova.md)\n- [Baidu Qianfan vs SiliconFlow](https://www.anchorterminal.com/compare/qianfan-vs-siliconflow.md)\n- [Baidu Qianfan vs Simplismart](https://www.anchorterminal.com/compare/qianfan-vs-simplismart.md)\n- [Baidu Qianfan vs StepFun API](https://www.anchorterminal.com/compare/qianfan-vs-stepfun-api.md)\n- [Baidu Qianfan vs SWE-2 Flash](https://www.anchorterminal.com/compare/qianfan-vs-swe-2-flash.md)\n- [Baidu Qianfan vs Tencent Cloud TokenHub](https://www.anchorterminal.com/compare/qianfan-vs-tencent-tokenhub.md)\n- [Baidu Qianfan vs Together AI Inference](https://www.anchorterminal.com/compare/qianfan-vs-together-inference.md)\n- [Baidu Qianfan vs Vercel AI Gateway](https://www.anchorterminal.com/compare/qianfan-vs-vercel-ai-gateway.md)\n- [Baidu Qianfan vs Vertex AI (Gemini Enterprise Agent Platform)](https://www.anchorterminal.com/compare/qianfan-vs-vertex-ai.md)\n- [Baidu Qianfan vs Writer Palmyra API](https://www.anchorterminal.com/compare/qianfan-vs-writer-palmyra.md)\n- [Baidu Qianfan vs xAI API (Grok)](https://www.anchorterminal.com/compare/qianfan-vs-xai-api.md)\n- [Antseed vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/antseed-vs-cloudflare-ai-gateway.md)\n- [Cloudflare AI Gateway vs LiteLLM](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-litellm.md)\n",
  "meta": {
    "attribution": "Anchor Terminal (https://www.anchorterminal.com)",
    "attributionRequired": true,
    "credit": "CC BY 4.0, credit Anchor Terminal and link the page or API address you took it from (https://www.anchorterminal.com/terms/#data)",
    "docs": "https://www.anchorterminal.com/docs/",
    "generatedAt": "2026-11-30",
    "license": "CC-BY-4.0",
    "method": "https://www.anchorterminal.com/benchmark/",
    "methodology": "1.0",
    "openapi": "https://www.anchorterminal.com/openapi.json",
    "preview": false,
    "run": "2026-10-01",
    "runLabel": "October 2026 research run",
    "terms": "https://www.anchorterminal.com/terms/#data"
  },
  "page": {
    "breadcrumbs": [
      {
        "name": "Home",
        "url": "https://www.anchorterminal.com/"
      },
      {
        "name": "Compare",
        "url": "https://www.anchorterminal.com/compare/"
      },
      {
        "name": "Cloudflare AI Gateway vs Baidu Qianfan",
        "url": ""
      }
    ],
    "description": "Cloudflare AI Gateway scores 69.2 (B) to Baidu Qianfan's 48.7 (D) for llm inference. Prices, MCP, x402, uptime and agent notes side by side.",
    "facts": [
      "Cloudflare AI Gateway B 69.2",
      "Baidu Qianfan D 48.7",
      "scores"
    ],
    "h1": "Cloudflare AI Gateway vs Baidu Qianfan",
    "image": "https://www.anchorterminal.com/assets/og/default.png",
    "path": "/compare/cloudflare-ai-gateway-vs-qianfan",
    "published": "2026-10-01",
    "section": "tools",
    "title": "Cloudflare AI Gateway vs Baidu Qianfan for AI agents (2026)",
    "toc": null,
    "updated": "2026-11-29",
    "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-qianfan"
  },
  "tokens": {
    "markdown": 8400,
    "slim": 1230
  },
  "version": 1
}
