{
  "id": "xai--cloudflare",
  "schema_version": "1.2",
  "app": {
    "slug": "xai",
    "name": "xAI",
    "vendor": "xAI",
    "website": "https://x.ai",
    "categories": [
      "ai-inference"
    ],
    "owned_by_platform": false
  },
  "ecosystem": "cloudflare",
  "connection": {
    "built_by": "ecosystem-owner",
    "method": "native-api",
    "setup_docs_url": "https://developers.cloudflare.com/ai-gateway/usage/providers/grok/"
  },
  "sync": [
    {
      "object": "ai-gateway",
      "direction": "supported",
      "notes": "xAI (Grok) requests go to the AI Gateway endpoint ending in /grok in place of https://api.x.ai/v1; the page shows the OpenAI and Anthropic SDKs pointed at it, and Grok models can also be called through the OpenAI-compatible endpoint. xAI is one of the providers Cloudflare Unified Billing can pay for.",
      "src": [
        "s1",
        "s2"
      ]
    }
  ],
  "pricing": {
    "model": "usage-based",
    "plans": [
      {
        "prices": {},
        "name": "API usage",
        "billing": "per-transaction",
        "rate": "grok-4.7: US$2.00 per 1M input tokens and US$6.00 per 1M output tokens",
        "per": "usage-based; page shows $ without a currency code, read as USD",
        "src": [
          "s3"
        ]
      }
    ]
  },
  "regions": {
    "supported": [
      "GLOBAL"
    ],
    "basis": "no-restriction-stated",
    "src": [
      "s1"
    ],
    "label": "No regional restriction stated"
  },
  "requirements": {
    "ecosystem_plan_min": "unknown",
    "ecosystem_features_required": [],
    "src": [
      "s1"
    ]
  },
  "limitations": [
    {
      "summary": "Needs an active xAI API token, unless the requests are paid with Cloudflare Unified Billing credits",
      "severity": "minor",
      "src": [
        "s1",
        "s2"
      ]
    },
    {
      "summary": "Paying through Cloudflare Unified Billing adds a 5% fee to the credits bought; provider rates are passed through without markup",
      "severity": "minor",
      "src": [
        "s2"
      ]
    }
  ],
  "alternatives": [],
  "editorial": {
    "answer_summary": "xAI works with Cloudflare: models through AI Gateway. Usage-based: grok-4.7: US$2.00 per 1M input tokens and US$6.00 per 1M output tokens.",
    "best_for": [],
    "not_ideal_for": []
  },
  "profile": {
    "status": "listed"
  },
  "sources": [
    {
      "id": "s1",
      "url": "https://developers.cloudflare.com/ai-gateway/usage/providers/grok/index.md",
      "title": "https://developers.cloudflare.com/ai-gateway/usage/providers/grok/index.md",
      "type": "platform-docs",
      "retrieved_at": "2026-11-26T22:22:13Z",
      "archived": {
        "fetched_at": "2026-11-28T17:05:24.064Z",
        "sha256": "16395a74dc7da8cd68a99bd2af9462975630a659e828080533b6b727c25bd401",
        "text_sha256": "f1f746ffa0c12bcafb19d61263cb57623a286245ee0462e6ede09f8e00ad4782"
      }
    },
    {
      "id": "s2",
      "url": "https://developers.cloudflare.com/ai-gateway/features/unified-billing/index.md",
      "title": "https://developers.cloudflare.com/ai-gateway/features/unified-billing/index.md",
      "type": "platform-docs",
      "retrieved_at": "2026-11-26T22:22:32Z",
      "archived": {
        "fetched_at": "2026-11-28T17:05:24.064Z",
        "sha256": "d4082610b3b4642d610ce00eb73bd78eadd39f0d1e4adf1217e29d4200bc2b64",
        "text_sha256": "3cdb25a4c801fc55e06f05f11164ae785e785c9804295c62432d63d3342271fa"
      }
    },
    {
      "id": "s3",
      "url": "https://docs.x.ai/developers/models",
      "title": "Grok Models & Pricing | SpaceXSI Docs",
      "type": "vendor-pricing",
      "retrieved_at": "2026-11-24T04:11:38Z",
      "archived": {
        "fetched_at": "2026-11-28T17:05:24.064Z",
        "sha256": "ecc1dbfa3d8ecfe72106d999217216567abffb944aefca0f9f746f6432595f7d",
        "text_sha256": "e46095b0bc8bbbda6f6bb529af03d53bfaf6d811302d3f529662ae1cd957afd9"
      }
    }
  ],
  "verification": {
    "status": "verified",
    "last_verified": "2026-11-27",
    "verified_by": [
      "research-agent",
      "verifier-agent"
    ],
    "open_flags": []
  },
  "publishing": {
    "state": "live",
    "batch": "LOD-157 batch 2 group C2"
  },
  "changelog": [
    {
      "date": "2026-11-27",
      "change": "Record created from public sources (LOD-157 batch 2 group C2): https://developers.cloudflare.com/ai-gateway/usage/providers/grok/index.md; https://developers.cloudflare.com/ai-gateway/features/unified-billing/index.md."
    },
    {
      "date": "2026-11-27",
      "change": "Price reused from xai--langchain (read 24-11-2026): Grok Models & Pricing | SpaceXSI Docs; the app's own plans exactly as recorded there, source kept with its original read time."
    },
    {
      "date": "2026-11-29",
      "change": "Answer summary now names the currency next to each price (LOD-200)."
    }
  ],
  "not_documented": [
    "dashboard-integration",
    "hyperdrive",
    "workers-sdk",
    "pages-plugin",
    "git-deploy",
    "ci-deploy",
    "database",
    "background-jobs",
    "email-sending",
    "auth",
    "rate-limiting",
    "observability",
    "logpush",
    "remote-mcp",
    "dns-records",
    "access-sso"
  ],
  "vendor": {
    "id": "xai",
    "name": "xAI",
    "api": "https://trylode.io/api/vendors/xai.json"
  },
  "url": "https://trylode.io/cloudflare/xai/",
  "facts": [
    {
      "id": "sync-ai-gateway",
      "topic": "sync",
      "statement": "xAI models can be called through Cloudflare AI Gateway.",
      "label": "Lode-verified",
      "verified": "2026-11-27",
      "src": [
        "s1",
        "s2"
      ],
      "url": "https://trylode.io/cloudflare/xai/#sync-ai-gateway"
    },
    {
      "id": "price-api-usage",
      "topic": "pricing",
      "statement": "xAI's API usage plan charges grok-4.7: $2.00 per 1M input tokens and $6.00 per 1M output tokens.",
      "label": "Lode-verified",
      "verified": "2026-11-27",
      "src": [
        "s3"
      ],
      "url": "https://trylode.io/cloudflare/xai/#price-api-usage"
    },
    {
      "id": "regions",
      "topic": "regions",
      "statement": "The sources don't limit xAI to particular countries.",
      "label": "Lode-verified",
      "verified": "2026-11-27",
      "src": [
        "s1"
      ],
      "url": "https://trylode.io/cloudflare/xai/#regions"
    },
    {
      "id": "limitation-1",
      "topic": "limitation",
      "statement": "Needs an active xAI API token, unless the requests are paid with Cloudflare Unified Billing credits.",
      "label": "Lode-verified",
      "verified": "2026-11-27",
      "src": [
        "s1",
        "s2"
      ],
      "url": "https://trylode.io/cloudflare/xai/#limitation-1"
    },
    {
      "id": "limitation-2",
      "topic": "limitation",
      "statement": "Paying through Cloudflare Unified Billing adds a 5% fee to the credits bought; provider rates are passed through without markup.",
      "label": "Lode-verified",
      "verified": "2026-11-27",
      "src": [
        "s2"
      ],
      "url": "https://trylode.io/cloudflare/xai/#limitation-2"
    }
  ],
  "cite_as": "Lode (trylode.io), xAI + Cloudflare, verified 2026-11-27",
  "lode": {
    "publish_state": "live",
    "stale": false,
    "completeness": 0.7
  }
}