{
  "data": {
    "a": {
      "slug": "openai-api",
      "name": "OpenAI API",
      "vendor": "OpenAI",
      "vendorUrl": "https://developers.openai.com",
      "kind": "model",
      "category": "inference",
      "summary": "OpenAI's API for accessing its models through Responses, Chat Completions and Batch endpoints.",
      "url": "https://www.anchorterminal.com/tools/openai-api",
      "markdownUrl": "https://www.anchorterminal.com/tools/openai-api.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/openai-api.min.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/openai-api.json",
      "dns": "openai-api.grade.anchorterminal.com",
      "repo": "https://github.com/openai/openai-python",
      "license": "Apache-2.0 (SDKs)",
      "transports": [
        "http"
      ],
      "remoteUrl": "https://api.openai.com/v1",
      "packages": [
        {
          "registry": "pypi",
          "name": "openai",
          "main": true
        },
        {
          "registry": "npm",
          "name": "openai",
          "main": true
        }
      ],
      "auth": "api-key",
      "authNotes": "`Authorization: Bearer` with a project key. Some models and tools need business or ID verification first.",
      "pricing": "usage",
      "pricingNotes": "Prepaid credit, with the Build tier reached at $5 in credit purchases, Launch at $100 and Grow at $500. Long context over 272K tokens costs 2x input and 1.5x output. Cache reads 0.1x input (0.05x on GPT-6.1 Sol and GPT-6.1 Terra), cache writes 1.25x from GPT-5.6 on, or 2.5x for the 12-hour lifetime in the Responses API since 20 October. Batch and Flex half price, Fast mode 2x, Ultrafast 6x (GPT-6 Astra, and GPT-6.1 Sol since 8 October). Data residency endpoints add 10% for models released on or after 5 March 2026, and FedRAMP endpoints add 10% from 1 November 2026. Web search $10 per 1,000 calls plus search content tokens, file search $2.50 per 1,000, hosted containers from $0.03 per 20-minute session (https://developers.openai.com/api/docs/pricing).",
      "priceSummary": "from $0.10 / 1M in",
      "where": "hosted",
      "x402": {
        "level": "no",
        "evidence": "No machine payment. Access needs an account with prepaid credit.",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": 31300,
        "npmWeekly": null,
        "pypiWeekly": null,
        "asOf": "2026-09-26"
      },
      "docsUrl": "https://developers.openai.com/api/docs",
      "rateLimitsUrl": "https://developers.openai.com/api/docs/guides/rate-limits",
      "llmsTxt": "https://developers.openai.com/llms.txt",
      "openapi": "https://github.com/openai/openai-openapi",
      "capabilities": [
        "inference.llm"
      ],
      "tags": [
        "official",
        "hosted",
        "model",
        "card-required",
        "openapi",
        "llms-txt"
      ],
      "lastRelease": "2026-10-30",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 83.9,
        "grade": "A",
        "agentReady": true,
        "rank": 6,
        "ranked": true,
        "rankOf": 1486,
        "categoryRank": 2,
        "methodology": "0.7",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 98,
          "maintenance": 87,
          "payments": 30,
          "reliability": 75,
          "schema": 100,
          "security": 100,
          "transparency": 90
        },
        "pending": [
          "performance",
          "tasks"
        ],
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-01"
        },
        "negative": 0,
        "verdict": "Official OpenAPI document and an llms.txt index. Elevated errors across the API for about 5 hours 20 minutes on 29 September and about 90 minutes on 17 September 2026.",
        "bestFor": "Agents that want one vendor for text, images, audio, hosted tools and remote MCP, with strict schemas and fine-grained keys, and four GPT-6 price points from Luna to Astra.",
        "strengths": [
          "Official OpenAPI document and an llms.txt index",
          "Project keys can be restricted per endpoint to None, Read or Write, and mutual TLS workload identity is GA",
          "A dated deprecations page, and `GET /v1/models` returns each model's `shutdown_date`",
          "GPT-6 Luna at $0.10/$0.50 per million tokens with the same 1.05M context as Astra",
          "Scale Tier comes with a 99.9% uptime SLA"
        ],
        "weaknesses": [
          "Elevated errors across the API for about 5 hours 20 minutes on 29 September and about 90 minutes on 17 September 2026",
          "Heavy migration calendar. Assistants API gone on 2026-08-26, Agent Builder, Evals and `v1/prompts` on 2026-11-30, GPT-5 and o3 on 2026-12-11",
          "GPT-6 models aren't available on the Free tier, so a card and prepaid credit come first in practice",
          "GPT-6 Astra has no custom temperature, no logprobs and no tool calling outside the Responses API",
          "GPT-4o and GPT-4.1 snapshots got 92 days' notice on 14 October, against the 6 months the deprecations page promises GA models"
        ],
        "agentNotes": [
          "Build on the Responses API. Astra calls tools only there",
          "Use `gpt-6-luna` for routing and extraction, `gpt-6.1-terra` for screens, images and computer use at half Sol's price, and `gpt-6.1-sol` for most work. The models page still points unsure callers to `gpt-6-astra`",
          "Move off the GPT-4o and GPT-4.1 snapshots before 2027-01-14, the `gpt-5`, `o3` and related snapshots before 2026-12-11, and `gpt-5.1`, `gpt-5.3-codex` and `gpt-5.4-nano` before 2027-04-01. Check `shutdown_date` on `GET /v1/models`",
          "Treat 429 `slow_down` as a ramp limit and 503 `server_is_overloaded` as a retry, and follow `Retry-After` when it's sent",
          "Prompts over 272K tokens cost double on input. Trim before you pay for it"
        ],
        "metrics": {
          "kind": "remote",
          "measured": false
        },
        "reviewCount": 8,
        "avgRating": 3.5,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "A",
            "methodology": "0.7",
            "pending": [
              "performance",
              "tasks"
            ],
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 83.9
          }
        ],
        "editorialScores": {
          "ergonomics": 98,
          "maintenance": 87,
          "payments": 30,
          "reliability": 75,
          "schema": 100,
          "security": 100,
          "transparency": 85
        },
        "provenanceScore": 95,
        "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-01",
          "oldest": "2026-11-01",
          "stale": false,
          "staleAfterDays": 90
        }
      },
      "connect": {
        "install": "pip install openai   # or: npm i openai",
        "http": "curl https://api.openai.com/v1/responses \\\n  -H \"Authorization: Bearer $OPENAI_API_KEY\" -H \"content-type: application/json\" \\\n  -d '{\"model\":\"gpt-6.1-sol\",\"input\":\"hello\"}'"
      },
      "letme": {
        "capability": "https://letme.dev/inference.llm",
        "tool": "https://letme.dev/openai-api"
      },
      "sameCompany": [
        "openai-embeddings",
        "openai-guardrails",
        "openai-moderation",
        "openai-image-api",
        "openai-sora",
        "openai-speech-to-text",
        "gpt-live",
        "openai-realtime",
        "openai-agents-sdk",
        "openai-decisions-api",
        "openai-agents-api",
        "openai-codex",
        "gpt-oss-120b",
        "gpt-oss-20b"
      ],
      "area": "models",
      "unitPrices": [
        {
          "item": "Web search tool",
          "unit": "1k-requests",
          "usd": 10
        },
        {
          "item": "File search tool",
          "unit": "1k-requests",
          "usd": 2.5
        }
      ],
      "provenance": {
        "legalEntity": "OpenAI OpCo, LLC",
        "domain": "openai.com",
        "domainRegistered": "2007-01-19",
        "domainNote": "openai.com was registered in 2007, before OpenAI existed.",
        "endpointOnVendorDomain": true,
        "terms": "https://openai.com/policies/services-agreement/",
        "privacy": "https://openai.com/policies/privacy-policy/",
        "statusPage": "https://status.openai.com",
        "changelog": "https://developers.openai.com/api/docs/changelog",
        "securityTxt": "valid",
        "checked": "2026-09-26",
        "score": 95
      },
      "requirements": {
        "setupChecked": true,
        "complianceChecked": true,
        "card": "paid-only",
        "freeTier": true,
        "minutes": 5,
        "credential": "api-key",
        "hosting": [
          "US",
          "EU",
          "UK",
          "CA",
          "APAC"
        ],
        "euResidency": "enterprise",
        "trainsOnData": "no",
        "zeroRetention": "enterprise",
        "certifications": [
          "SOC 2 Type II",
          "ISO 27001",
          "ISO 27701",
          "ISO 42001",
          "CSA STAR",
          "HIPAA (BAA available)",
          "GDPR"
        ],
        "dpa": true,
        "selfHost": "no"
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/openai-api.json",
      "live": {
        "slug": "openai-api",
        "probe": {
          "target": "https://api.openai.com/v1",
          "method": "get",
          "lastAt": "2026-11-07T18:20:44.067865534Z",
          "lastOk": true,
          "lastStatus": 404,
          "lastMs": 221,
          "authRequired": false,
          "uptime24h": 100,
          "uptime30d": 100,
          "p50ms24h": 162,
          "p95ms24h": 234,
          "samples24h": 239,
          "samples30d": 7910,
          "days": [
            {
              "date": "2026-10-07",
              "probes": 272,
              "ok": 272
            },
            {
              "date": "2026-10-08",
              "probes": 268,
              "ok": 268
            },
            {
              "date": "2026-10-09",
              "probes": 250,
              "ok": 250
            },
            {
              "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": 250,
              "ok": 250
            },
            {
              "date": "2026-10-29",
              "probes": 249,
              "ok": 249
            },
            {
              "date": "2026-10-30",
              "probes": 249,
              "ok": 249
            },
            {
              "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": 187,
              "ok": 187
            }
          ]
        },
        "vendorStatus": {
          "page": "https://status.openai.com",
          "indicator": "none",
          "summary": "All Systems Operational",
          "checkedAt": "2026-11-07T18:21:36.727476942Z"
        },
        "versions": [
          {
            "registry": "github",
            "name": "openai/openai-python",
            "version": "v3.47.0",
            "released": "2026-11-05",
            "seenAt": "2026-11-06T23:51:37.406349789Z"
          },
          {
            "registry": "npm",
            "name": "openai",
            "version": "7.53.0",
            "seenAt": "2026-11-06T23:51:37.371631502Z"
          },
          {
            "registry": "pypi",
            "name": "openai",
            "version": "3.46.0",
            "released": "2026-11-05",
            "seenAt": "2026-11-06T23:51:37.252770105Z"
          }
        ],
        "githubStars": 32064,
        "npmWeekly": 56543040,
        "pypiWeekly": 91156146,
        "securityTxt": {
          "url": "https://openai.com/.well-known/security.txt",
          "state": "valid",
          "checkedAt": "2026-11-07T16:00:49.231731777Z"
        },
        "llmsTxt": {
          "url": "https://developers.openai.com/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-11-07T15:33:24.635854536Z"
        },
        "domain": {
          "domain": "openai.com",
          "registered": "2007-01-19",
          "source": "https://rdap.verisign.com/com/v1/domain/openai.com",
          "checkedAt": "2026-11-01T14:19:18.345389832Z"
        },
        "pages": [
          {
            "url": "https://developers.openai.com/api/docs/changelog",
            "kind": "changelog",
            "status": 200,
            "checkedAt": "2026-10-16T22:20:47.232011113Z",
            "changedAt": "2026-10-16T22:20:47.232011113Z",
            "fingerprint": "3261efc5e241"
          },
          {
            "url": "https://developers.openai.com/api/docs/deprecations",
            "kind": "deprecations",
            "status": 304,
            "checkedAt": "2026-11-07T14:04:23.062971759Z",
            "changedAt": "2026-11-06T13:26:58.963754521Z",
            "fingerprint": "0e64ced508a8"
          },
          {
            "url": "https://developers.openai.com/api/docs/pricing",
            "kind": "pricing",
            "status": 304,
            "checkedAt": "2026-11-07T14:04:25.090876509Z",
            "changedAt": "2026-11-06T13:27:00.948019243Z",
            "fingerprint": "a83cd96e6a1c"
          }
        ],
        "models": {
          "gpt-6-astra": {
            "openrouterId": "openai/gpt-6-astra",
            "tools": true,
            "structuredOutputs": true,
            "jsonMode": true,
            "reasoning": true,
            "input": [
              "file",
              "image",
              "text"
            ],
            "promptCaching": true,
            "contextTokens": 1050000,
            "maxOutput": 128000,
            "checkedAt": "2026-11-06T23:49:25.225778715Z"
          },
          "gpt-6-luna": {
            "openrouterId": "openai/gpt-6-luna",
            "tools": true,
            "structuredOutputs": true,
            "jsonMode": true,
            "reasoning": true,
            "input": [
              "file",
              "image",
              "text"
            ],
            "promptCaching": true,
            "contextTokens": 1050000,
            "maxOutput": 128000,
            "checkedAt": "2026-11-06T23:49:25.225778715Z"
          },
          "gpt-6-sol": {
            "openrouterId": "openai/gpt-6-sol",
            "tools": true,
            "structuredOutputs": true,
            "jsonMode": true,
            "reasoning": true,
            "input": [
              "file",
              "image",
              "text"
            ],
            "promptCaching": true,
            "contextTokens": 1050000,
            "maxOutput": 128000,
            "checkedAt": "2026-10-04T21:56:15.872733218Z"
          },
          "gpt-6.1-sol": {
            "openrouterId": "openai/gpt-6.1-sol",
            "tools": true,
            "structuredOutputs": true,
            "jsonMode": true,
            "reasoning": true,
            "input": [
              "file",
              "image",
              "text"
            ],
            "promptCaching": true,
            "contextTokens": 1050000,
            "maxOutput": 128000,
            "checkedAt": "2026-11-06T23:49:25.225778715Z"
          },
          "gpt-6.1-terra": {
            "openrouterId": "openai/gpt-6.1-terra",
            "tools": true,
            "structuredOutputs": true,
            "jsonMode": true,
            "reasoning": true,
            "input": [
              "file",
              "image",
              "text"
            ],
            "promptCaching": true,
            "contextTokens": 1050000,
            "maxOutput": 128000,
            "checkedAt": "2026-11-06T23:49:25.225778715Z"
          }
        },
        "github": {
          "repo": "openai/openai-python",
          "checkedAt": "2026-11-02T09:13:10.459648475Z",
          "stars": 32015,
          "archived": false,
          "issuesEnabled": true,
          "pushedAt": "2026-11-02T03:47:02Z",
          "openIssues": 40,
          "openPRs": 54,
          "issuesOpened90d": 42,
          "issuesClosed90d": 220,
          "prsMerged90d": 437,
          "ci": {
            "branch": "main",
            "runs": 50,
            "success": 50,
            "failure": 0,
            "other": 0,
            "latest": "success",
            "latestAt": "2026-11-02T03:19:31Z"
          },
          "replies": {
            "sampled": 25,
            "unanswered": 9,
            "medianDays": 3.6
          }
        },
        "updatedAt": "2026-11-07T18:21:36.727476942Z"
      }
    },
    "answer": "OpenAI API scores 83.9 (A) on agent readiness against xAI API (Grok)'s 71.7 (BB), and leads in every scored category.",
    "b": {
      "slug": "xai-api",
      "name": "xAI API (Grok)",
      "vendor": "SpaceXSI (xAI)",
      "vendorUrl": "https://x.ai",
      "kind": "model",
      "category": "inference",
      "summary": "xAI's API for its Grok models (the docs now name the company SpaceXSI), with text, image, video and voice endpoints, server-side search and remote MCP tools, through an OpenAI-compatible REST API or gRPC.",
      "url": "https://www.anchorterminal.com/tools/xai-api",
      "markdownUrl": "https://www.anchorterminal.com/tools/xai-api.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/xai-api.min.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/xai-api.json",
      "dns": "xai-api.grade.anchorterminal.com",
      "repo": "https://github.com/xai-org/xai-sdk-python",
      "license": "Proprietary service under xAI's enterprise terms of service. The Python SDK is Apache-2.0",
      "transports": [
        "http"
      ],
      "remoteUrl": "https://api.x.ai/v1",
      "packages": [
        {
          "registry": "pypi",
          "name": "xai-sdk"
        }
      ],
      "auth": "api-key",
      "authNotes": "`Authorization: Bearer` with a team API key from console.x.ai. Keys can be limited to endpoints and models by ACL, capped by QPM and TPM, given an expiry, and rotated or disabled through the Management API. mTLS is documented as an option, and GitHub secret scanning disables leaked keys.",
      "pricing": "usage",
      "pricingNotes": "Prepaid credits, then the default payment method at month end. Grok 4.7 costs $2 input, $0.50 cached input and $6 output per 1M tokens below 200K prompt tokens, and $4/$1/$12 above, applied to the whole request. Batch is 20% off on grok-4.7, 4.6, 4.5, 4.3 and the grok-4.20 models. Priority processing 2x, the US regional endpoint 1.1x. Web search, code execution and attachment search $5 per 1,000 calls, collections search $2.50, X search $5 per 1,000 posts. $0.05 fee for a request blocked before generation for a usage-policy violation (https://docs.x.ai/developers/pricing, checked 2026-11-06).",
      "priceSummary": "from $1.25 / 1M in",
      "where": "hosted",
      "x402": {
        "level": "no",
        "evidence": "No x402, MPP or L402 in the docs, llms.txt or the OpenAPI spec. Access needs a console account loaded with prepaid credits (checked 2026-11-06).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": 597,
        "npmWeekly": null,
        "pypiWeekly": 912149,
        "asOf": "2026-11-06"
      },
      "docsUrl": "https://docs.x.ai",
      "rateLimitsUrl": "https://docs.x.ai/developers/rate-limits",
      "llmsTxt": "https://docs.x.ai/llms.txt",
      "openapi": "https://docs.x.ai/openapi.json",
      "capabilities": [
        "inference.llm"
      ],
      "tags": [
        "official",
        "hosted",
        "model",
        "prepaid",
        "openapi",
        "llms-txt",
        "openai-compatible",
        "closed-source",
        "python",
        "batch",
        "status-page",
        "bug-bounty",
        "soc2"
      ],
      "lastRelease": "2026-11-02",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 71.7,
        "grade": "BB",
        "agentReady": true,
        "rank": 151,
        "ranked": true,
        "rankOf": 1486,
        "categoryRank": 8,
        "methodology": "0.7",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 90,
          "maintenance": 77,
          "payments": 20,
          "reliability": 55,
          "schema": 88,
          "security": 97,
          "transparency": 63
        },
        "pending": [
          "performance",
          "tasks"
        ],
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-06"
        },
        "negative": 0,
        "verdict": "Grok 4.7 at $2/$6 per million tokens, now 20% off in batch, with a public OpenAPI spec, llms.txt, API keys limited by endpoint and model, and self-serve zero data retention. The API endpoints had a 3 hour 40 minute models outage on 3 September 2026, no SLA was found, and there's no free tier or first-party SDK beyond Python.",
        "bestFor": "Agents that want a capable model at a low per-token price with built-in web and X search, remote MCP and voice, and teams that need self-serve ZDR or US-only processing.",
        "strengths": [
          "Grok 4.7 at $2/$6 per million tokens below 200K prompt tokens, with a 500K context and 20% off through the Batch API",
          "API keys restricted by endpoint and model ACLs, with QPM and TPM caps, expiry and a rotate endpoint",
          "Self-serve team-wide zero data retention, confirmed on every response by an `x-zero-data-retention` header",
          "OpenAPI 3.1 spec, llms.txt and a Markdown twin of every docs page",
          "security.txt valid to 2027-06-29 and a HackerOne bug bounty"
        ],
        "weaknesses": [
          "API models outage of about 3 hours 40 minutes on 3 September 2026, and high error rates on grok-4.6 and grok-4.5 on 17 August",
          "No SLA, no free tier for the text API, and no Retry-After header documented for 429s",
          "No stated minimum notice for retirements, and retired slugs are served by a different model at its price",
          "Remote MCP doesn't support `require_approval`, so server-side tool calls run without an approval step",
          "The terms, privacy policy and DPA at x.ai/legal answered a Cloudflare block on 6 October and 6 November 2026, so they weren't read"
        ],
        "agentNotes": [
          "Build on the Responses API at https://api.x.ai/v1. Chat Completions is labelled deprecated and the Anthropic-compatible endpoint fully deprecated",
          "Pin a dated model slug. A retired slug keeps answering from a replacement model, billed at the replacement's price",
          "Back off exponentially on 429. The per-second cap is the per-minute budget divided by 48, with a minimum of 2",
          "Set `allowed_tools` on remote MCP servers. There's no approval step, and every exposed tool enters the context",
          "Use https://us.api.x.ai/v1 when processing must stay in the US. It costs 1.1x and serves only grok-4.7 and grok-4.6"
        ],
        "metrics": {
          "kind": "remote",
          "measured": false
        },
        "reviewCount": 0,
        "avgRating": 0,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "BB",
            "methodology": "0.7",
            "pending": [
              "performance",
              "tasks"
            ],
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 71.7
          }
        ],
        "editorialScores": {
          "ergonomics": 90,
          "maintenance": 77,
          "payments": 20,
          "reliability": 55,
          "schema": 88,
          "security": 97,
          "transparency": 52
        },
        "provenanceScore": 73,
        "checked": {
          "categories": {
            "ergonomics": "2026-11-06",
            "maintenance": "2026-11-06",
            "payments": "2026-11-06",
            "reliability": "2026-11-06",
            "schema": "2026-11-06",
            "security": "2026-11-06",
            "transparency": "2026-11-06"
          },
          "last": "2026-11-06",
          "oldest": "2026-11-06",
          "stale": false,
          "staleAfterDays": 90
        }
      },
      "connect": {
        "install": "pip install xai-sdk   # or: pip install openai, with base_url https://api.x.ai/v1",
        "http": "curl https://api.x.ai/v1/responses \\\n  -H \"Authorization: Bearer $XAI_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"model\":\"grok-4.7\",\"input\":\"What is the meaning of life?\"}'"
      },
      "letme": {
        "capability": "https://letme.dev/inference.llm",
        "tool": "https://letme.dev/xai-api"
      },
      "area": "models",
      "unitPrices": [
        {
          "item": "Web search tool",
          "unit": "1k-requests",
          "usd": 5
        },
        {
          "item": "Code execution tool",
          "unit": "1k-requests",
          "usd": 5
        },
        {
          "item": "Collections search tool",
          "unit": "1k-requests",
          "usd": 2.5
        }
      ],
      "provenance": {
        "legalEntity": "",
        "domain": "x.ai",
        "domainRegistered": "2017-12-16",
        "domainNote": "x.ai was registered in 2017, before the company, and transferred on 2026-06-02 per RDAP. Every x.ai page except robots.txt and security.txt answered a Cloudflare block page (403) on 2026-11-06, as the legal pages did on 2026-10-06, so the contracting entity wasn't confirmed. The docs now use the name SpaceXSI and the status page SpaceXAI.",
        "endpointOnVendorDomain": true,
        "terms": "https://x.ai/legal/terms-of-service-enterprise",
        "privacy": "https://x.ai/legal/privacy-policy",
        "statusPage": "https://status.x.ai",
        "changelog": "https://docs.x.ai/developers/release-notes",
        "securityTxt": "valid",
        "checked": "2026-11-06",
        "notes": [
          "x.ai/robots.txt allows all but /tools/, with Content-Signal ai-train=yes, search=yes, ai-input=yes. docs.x.ai allows all with ai-input=yes. The x.ai pages that robots.txt allows answered a Cloudflare 'Attention Required' page, which we did not try to get past.",
          "security.txt at x.ai/.well-known/security.txt is valid to 2027-06-29, with vulnerabilities@x.ai and abuse@x.ai."
        ],
        "score": 73
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/xai-api.json",
      "live": {
        "slug": "xai-api",
        "probe": {
          "target": "https://api.x.ai/v1",
          "method": "get",
          "lastAt": "2026-11-07T18:21:06.440217402Z",
          "lastOk": true,
          "lastStatus": 404,
          "lastMs": 122,
          "authRequired": false,
          "uptime24h": 100,
          "uptime30d": 100,
          "p50ms24h": 178,
          "p95ms24h": 276,
          "samples24h": 200,
          "samples30d": 200,
          "days": [
            {
              "date": "2026-11-06",
              "probes": 13,
              "ok": 13
            },
            {
              "date": "2026-11-07",
              "probes": 187,
              "ok": 187
            }
          ]
        },
        "vendorStatus": {
          "page": "https://status.x.ai",
          "indicator": "unknown",
          "summary": "no machine-readable status found",
          "checkedAt": "2026-11-07T04:49:01.143662157Z"
        },
        "versions": [
          {
            "registry": "github",
            "name": "xai-org/xai-sdk-python",
            "version": "v1.21.0",
            "released": "2026-10-23",
            "seenAt": "2026-11-07T00:18:15.193708838Z"
          },
          {
            "registry": "pypi",
            "name": "xai-sdk",
            "version": "1.21.0",
            "released": "2026-10-23",
            "seenAt": "2026-11-07T00:18:15.09038487Z"
          }
        ],
        "githubStars": 598,
        "pypiWeekly": 912149,
        "securityTxt": {
          "url": "https://x.ai/.well-known/security.txt",
          "state": "valid",
          "expires": "2027-06-29T00:00:00.000Z",
          "checkedAt": "2026-11-07T16:01:43.978620532Z"
        },
        "llmsTxt": {
          "url": "https://docs.x.ai/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-11-07T15:34:24.762831371Z"
        },
        "pages": [
          {
            "url": "https://docs.x.ai/developers/migration/imagine-image-quality-nov-2",
            "kind": "deprecations",
            "status": 200,
            "checkedAt": "2026-11-07T14:08:46.034096807Z",
            "changedAt": "0001-01-01T00:00:00Z",
            "fingerprint": "1238569c8142"
          },
          {
            "url": "https://docs.x.ai/developers/migration/may-15-retirement",
            "kind": "deprecations",
            "status": 200,
            "checkedAt": "2026-11-07T14:08:48.207542223Z",
            "changedAt": "0001-01-01T00:00:00Z",
            "fingerprint": "813d0e188a0e"
          },
          {
            "url": "https://docs.x.ai/developers/release-notes",
            "kind": "deprecations",
            "status": 200,
            "checkedAt": "2026-11-07T14:08:52.143682141Z",
            "changedAt": "0001-01-01T00:00:00Z",
            "fingerprint": "7b37cfaf2576"
          },
          {
            "url": "https://docs.x.ai/developers/pricing",
            "kind": "pricing",
            "status": 200,
            "checkedAt": "2026-11-07T14:08:50.158330981Z",
            "changedAt": "0001-01-01T00:00:00Z",
            "fingerprint": "a563de9617fe"
          },
          {
            "url": "https://x.ai/legal/privacy-policy",
            "kind": "privacy",
            "status": 403,
            "checkedAt": "2026-11-07T14:38:04.991061235Z",
            "changedAt": "0001-01-01T00:00:00Z"
          },
          {
            "url": "https://x.ai/legal/terms-of-service-enterprise",
            "kind": "terms",
            "status": 403,
            "checkedAt": "2026-11-07T14:38:09.200382604Z",
            "changedAt": "0001-01-01T00:00:00Z"
          }
        ],
        "updatedAt": "2026-11-07T18:21:06.440217402Z"
      }
    },
    "edges": [
      {
        "by": 27,
        "category": "transparency",
        "leads": "openai-api",
        "name": "Transparency \u0026 trust",
        "reasons": {
          "a": "Closed service with clear terms, SDKs Apache-2.0 (15). The data-controls guide, re-read on 1 November, gives retention periods per endpoint, the training default and the ZDR route. The DPA, effective 1 January 2026, commits to return or deletion of customer data on termination, 30 days to object to a new subprocessor, and SCCs with the UK Addendum for transfers, and nothing in it conflicts with the guide, per the 4 October check, not re-read on 1 November (30). Deprecations page with announcement and shutdown dates, and `GET /v1/models` returns each model's `shutdown_date` (20). The subprocessor list, updated 9 July 2026, names its third-party subprocessors and OpenAI affiliates with the processing countries for each and a form to get notice of new ones, and data residency regions are listed, per the 4 October check, not re-read on 1 November (20).",
          "b": "Closed service under xAI's enterprise terms, with the Python SDK under Apache-2.0 (15). The docs agree with each other on no training, 30-day abuse retention, 30-day storage of stateful responses and the ZDR route, but the privacy policy, enterprise terms and DPA at x.ai/legal answered a Cloudflare block page on 6 October and again on 6 November, so they couldn't be compared (15 of 30). Dated migration guides and redirect tables for each retirement, but no written deprecation policy, and Chat Completions, Anthropic compatibility and grok-voice-2.0 are labelled deprecated with no date (12 of 20). The US regional endpoint states what stays in the US, the global endpoint guarantees no region, and no subprocessor list was readable (10 of 20)."
        },
        "scores": {
          "a": 90,
          "b": 63
        }
      },
      {
        "by": 20,
        "category": "reliability",
        "leads": "openai-api",
        "name": "Reliability",
        "reasons": {
          "a": "Status page at status.openai.com with component history (20). Two API-wide majors in the 90 days to 1 November, elevated errors across ChatGPT, Codex and the API (the Agents API included) on 29 September, with Chat Completions, Responses, Batch, Realtime, Embeddings, Images, Files and the other API components degraded from 17:52 to 23:14 UTC, and elevated error rates across API models on 17 September, with eleven components degraded from 20:20 to 21:20 UTC. Two majors give 5 of 30. The 25 July incident is now outside the window. The 29 September write-up, posted on 6 October, traces it to a feature rollout that exhausted shared network connection capacity. Every other incident since 3 August that lists an API component is partial or under an hour, so minor. Degraded performance across ChatGPT, Codex and the APIs on 21 October listed every API component but ran 22 minutes (02:26 to 02:48 UTC). Single-model incidents were GPT-5.6 Sol errors on 11 September (09:08 to 11:21 UTC), `gpt-5.6-luna` errors on 21 October (70 minutes) and GPT-6.1 Sol degraded performance on Batch, Chat Completions and Responses on 27 October (78 minutes). Partial incidents were latency for some Responses requests on the US endpoint on 31 August and 1 September, image generation where some requests failed on 8 September, latency for some Responses and Chat Completions requests on 30 September, large-PDF errors in Responses and an Agents API computer use incident on 6 October, Responses errors for users in India, Japan and Korea on 22 October and errors on some GPT Image 2 edit requests on 30 October (14:35 to 18:36 UTC). Image model incidents on 16 September and 14 October and file download errors on 19 October each ran about 40 minutes. FedRAMP errors for Astra and Sol on 21 October and authentication errors near Illinois on 20 October list no API component. Rate limits published per tier and model family with rate-limit headers (15). 429 guidance, re-read on 1 November, covers `Retry-After` as a minimum wait, backoff with jitter when it's missing, a gradual ramp, and splits `slow_down` (429) from `server_is_overloaded` (503) (15). Scale Tier carries a 99.9% uptime SLA, through sales, per the 1 October check, not re-read on 1 November (10). Responses and Chat Completions are GA (10). 20 + 5 + 15 + 15 + 10 + 10 = 75.",
          "b": "Status page at status.x.ai with components for the global and US API endpoints, voice, the consumer apps and, since the Cursor merger, Cursor's services, with an RSS feed (20). The feed, read on 6 November, now holds 267 incidents back to 11 August, so the whole 90-day window is readable. On the API components there were high error rates on grok-4.6 and grok-4.5 from 21:57 to 23:28 UTC on 17 August (about 90 minutes) and a models outage on the global and US endpoints from 13:30 to 17:09 UTC on 3 September (about 3 hours 40 minutes), so several majors. A 26-minute datacenter outage across the API on 22 September, voice disruptions of 12 and 28 minutes on 10 September and 6 October, a 63-minute voice and Imagine degradation on 30 October and a 37-second model degradation on 24 October add to the record (0). Rate limits published per model and tier, grok-4.7 at Tier 0 is 150 requests a second and 50M TPM, with the per-second cap derived as RPM divided by 48 (15). The rate-limits page shows exponential backoff on 429, but no Retry-After header or overload guidance was found (10 of 15). No SLA found in the docs or llms.txt (0). The Responses API has been GA since September 2025 and grok-4.7 carries no preview label (10)."
        },
        "scores": {
          "a": 75,
          "b": 55
        }
      },
      {
        "by": 12,
        "category": "schema",
        "leads": "openai-api",
        "name": "Schema \u0026 documentation",
        "reasons": {
          "a": "Official OpenAPI document (openapi.yaml and openapi.json) in the openai/openai-openapi repository, whose openapi.yaml (version 2.3.0, updated 31 October) lists `gpt-6.1-terra` (25). llms.txt index with per-product files, and every docs page has a Markdown twin at `.md` (10). The reference documents each parameter, and model pages say which model fits which job (20). Structured outputs with `strict: true` on schemas and function tools (15). Error codes guide with types and recovery advice, now with a 400 `service_tier` error for tiers a project doesn't allow (15). Dated model snapshots and a dated changelog, last entry 30 October (15).",
          "b": "OpenAPI 3.1 document at docs.x.ai/openapi.json, 39 paths and 205 schemas on 6 November, covering Responses, Chat Completions, files, images, videos and models. The batch endpoints documented in the REST reference still aren't in it (20 of 25, applied as for gemini-api's missing Interactions API). llms.txt and a Markdown twin of every page, plus a docs MCP server (10). The models page says which model to use for code, chat, images, video and voice, and reference pages list each parameter. Reference not read in full (18 of 20). Structured outputs are guaranteed to match the schema for supported keywords, and tool arguments always conform with `strict` implicitly true (15). Examples in Python, JavaScript and curl on every guide. The debugging page lists status codes with fixes, but the cause cells for 400, 403, 404 and 415 are still empty (13 of 15). Release notes are grouped by month without day dates, and model slugs come as aliases and dated versions (12 of 15)."
        },
        "scores": {
          "a": 100,
          "b": 88
        }
      },
      {
        "by": 10,
        "category": "payments",
        "leads": "openai-api",
        "name": "Payments \u0026 pricing",
        "reasons": {
          "a": "No machine payment protocol, and the pricing page names no machine or crypto payment on 1 November (0). Per-token prices published without a login (20). The rate-limits page, re-read on 1 November, lists a Free tier in allowed countries with a $100 monthly cap and doesn't say whether a card is needed, but the GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna model pages start their rate-limit tables at Build with no Free row, so half (10). Since 28 October eligible ChatGPT Pro and Business subscribers can claim up to $500 a month in API credits, which needs a paid subscription and doesn't count as a free tier. Signing up and making a key need a person in a browser (0).",
          "b": "No x402, MPP or L402 (0). Per-token and per-call prices published without a login on docs.x.ai/developers/pricing (20). No free tier found for the text API, and the quickstart says to load the account with credits (0). Sign-up is in the browser at console.x.ai. The Management API can create keys and top up prepaid credit, but only with a management key made by a person in the console, so no line credit (0)."
        },
        "scores": {
          "a": 30,
          "b": 20
        }
      },
      {
        "by": 10,
        "category": "maintenance",
        "leads": "openai-api",
        "name": "Maintenance \u0026 community",
        "reasons": {
          "a": "Model reading. GPT-6 Rosalind, a life-sciences model for approved organisations, launched on 30 October, after GPT-6.1 Terra on 26 October and the Decisions API GA on 22 October (30). Published minimum notice of 6 months for GA models, 3 months for specialised variants, as little as 2 weeks for previews. On 14 October GPT-4o (`gpt-4o-2024-08-06`, `gpt-4o-2024-11-20`), GPT-4o mini, GPT-4.1 and GPT-4.1 mini were given a shutdown date of 14 January 2027, 92 days, with no safety or compliance reason stated. These are GA models, so the page's own 6-month minimum wasn't kept, as with `gpt-5.4-cyber`'s 20 days in September. 8 of 12, the award for a minimum of two to three months in practice. Five shutdown dates in the 90 days to 1 November, the Assistants API on 26 August (announced in August 2025), `gpt-5.2-chat-latest` and `gpt-5.3-chat-latest` on 10 August (announced 8 May), `gpt-3.5-turbo-instruct`, `babbage-002`, `davinci-002` and `gpt-3.5-turbo-1106` on 28 September (announced 26 September 2025, missed in the 27 October count), `gpt-5.4-cyber` on 1 October and the legacy snapshots on 23 October (announced 22 April). Sora 2 and the Videos API (24 September) are scored on the openai-sora listing. Four of the five kept the published notice, so 4 of 8 as before, as amazon-bedrock has for four dates after full notice. Dated changelog several times a month and a help centre (15 of 15). openai-python had 215 open issues per the 1 October check, replies not sampled (5 of 10). Current official SDKs, `openai` 3.42.0 on PyPI (31 October) and npm `openai` 7.47.0 (15). Supported runtimes stated, Python 3.10 or later and Node 22 or later, the npm package's `engines` re-read on 1 November (10).",
          "b": "Model reading. grok-imagine-image-quality and grok-imagine-image-pro retired on 2 November 2026 as announced in September, Grok Voice 3.0 and custom moderation controls in October, Grok 4.7 on 21 September (30). No minimum notice period found. Retirements come as dated migration guides, retired slugs redirect to a replacement rather than failing, billed at the replacement's price, and grok-voice-2.0 was deprecated in October with no end date (4 of 12). Shutdowns in the last 90 days with dates given in advance, `grok-voice-transcribe-1.0` on 2 October and `grok-imagine-image-quality` on 2 November (8 of 8). Release notes several times a month but dated only by month, support by email and a Discord #help channel, not tested. On xai-sdk-python a collaborator commented on 2 of the 16 most recent threads with replies, and most outside pull requests since 23 October are open without a maintainer reply (10 of 15, down from 12). The repository has CI, release and version-bump workflows (5 of 10). One current first-party SDK, `xai-sdk` 1.21.0 tagged on 23 October, Python only (10 of 15). Supported runtimes stated, Python 3.10 or later (10)."
        },
        "scores": {
          "a": 87,
          "b": 77
        }
      },
      {
        "by": 8,
        "category": "ergonomics",
        "leads": "openai-api",
        "name": "Agent ergonomics",
        "reasons": {
          "a": "Model reading of the checklist (tool use, structured output, caching, context, batch, SDKs, errors). Tool use with parallel calls and forced tool choice, 18 of 20 because GPT-6 Astra, GPT-6.1 Sol and GPT-6.1 Terra call tools only through the Responses API (18). Strict structured outputs (15). Automatic prompt caching with cached input at 0.1x on Astra and Luna ($0.01 per million on Luna) and 0.05x on GPT-6.1 Sol ($0.10) and GPT-6.1 Terra ($0.05), and a 12-hour cache lifetime in the Responses API since 20 October (15). 1.05M context on Astra, GPT-6.1 Sol, GPT-6.1 Terra and Luna (15). Batch at half price (10). Official SDKs in Python, JavaScript and more (10). Documented error codes with retry guidance (15).",
          "b": "Model reading of the checklist (tool use, structured output, caching, context, batch, SDKs, errors). Function calling with parallel calls on by default and `tool_choice` of auto, required, none or a named function (20). Guaranteed structured outputs (15). Automatic prompt caching, cached input at 0.25x on grok-4.7 ($0.50 per million) and 0.16x on grok-4.3 (15). 500,000-token context on grok-4.7 and 1,000,000 on grok-4.3, 13 of 15 for the default model's 500K. The Batch API is now 20% off on grok-4.7, 4.6 and 4.5 as well as the older models, with batch requests outside the rate limits (10 of 10, up from 5 on 6 October). One first-party SDK, `xai-sdk` for Python, with the OpenAI SDKs and Vercel's AI SDK documented as alternatives (5 of 10). Status codes documented with fixes, no Retry-After header found (12 of 15)."
        },
        "scores": {
          "a": 98,
          "b": 90
        }
      }
    ],
    "facts": [
      {
        "a": "Model API",
        "b": "Model API",
        "name": "Kind"
      },
      {
        "a": "OpenAI",
        "b": "SpaceXSI (xAI)",
        "name": "Vendor"
      },
      {
        "a": "https://api.openai.com/v1",
        "b": "https://api.x.ai/v1",
        "name": "Hosted endpoint"
      },
      {
        "a": "HTTP",
        "b": "HTTP",
        "name": "Transports"
      },
      {
        "a": "API key",
        "b": "API key",
        "name": "Auth"
      },
      {
        "a": "Pay per use",
        "b": "Pay per use",
        "name": "Pricing"
      },
      {
        "a": "no",
        "b": "no",
        "name": "x402"
      },
      {
        "a": "Apache-2.0 (SDKs)",
        "b": "Proprietary service under xAI's enterprise terms of service. The Python SDK is Apache-2.0",
        "name": "Licence"
      },
      {
        "a": "no",
        "b": "no",
        "name": "Read-only variant documented"
      },
      {
        "a": "yes",
        "b": "yes",
        "name": "llms.txt"
      },
      {
        "a": "2026-10-30",
        "b": "2026-11-02",
        "name": "Last release"
      },
      {
        "a": "couldn't be read",
        "b": "2026-10-27",
        "name": "Terms last updated"
      },
      {
        "a": "couldn't be read",
        "b": "2026-10-27",
        "name": "Privacy policy last updated"
      },
      {
        "a": "couldn't be read",
        "b": "yes",
        "name": "Customer content may train models"
      },
      {
        "a": "couldn't be read",
        "b": "not found in the text",
        "name": "Terms restrict automated access"
      },
      {
        "a": "couldn't be read",
        "b": "not found in the text",
        "name": "Terms restrict benchmarking"
      },
      {
        "a": "couldn't be read",
        "b": "not found in the text",
        "name": "Terms or service can change without notice"
      },
      {
        "a": "couldn't be read",
        "b": "yes",
        "name": "Arbitration or class-action waiver"
      },
      {
        "a": "31k stars",
        "b": "597 stars, 912k PyPI/wk",
        "name": "Popularity"
      },
      {
        "a": "3.5/5 (8)",
        "b": "none",
        "name": "Agent reviews"
      }
    ],
    "faq": [
      {
        "answer": "OpenAI API scores 83.9 (A) on agent readiness against xAI API (Grok)'s 71.7 (BB), and leads in every scored category.",
        "question": "Which is better for AI agents, OpenAI API or xAI API (Grok)?"
      },
      {
        "answer": "Both need an API key.",
        "question": "Do OpenAI API and xAI API (Grok) need an API key?"
      },
      {
        "answer": "Yes. OpenAI API has a hosted endpoint at https://api.openai.com/v1 and xAI API (Grok) at https://api.x.ai/v1.",
        "question": "Can an agent call OpenAI API and xAI API (Grok) without installing anything?"
      }
    ],
    "goodFor": [
      {
        "aheadOn": [
          "Reliability, 75 against 55",
          "Schema \u0026 documentation, 100 against 88",
          "Agent ergonomics, 98 against 90",
          "Payments \u0026 pricing, 30 against 20",
          "Maintenance \u0026 community, 87 against 77",
          "Transparency \u0026 trust, 90 against 63"
        ],
        "also": null,
        "goodFor": "Agents that want one vendor for text, images, audio, hosted tools and remote MCP, with strict schemas and fine-grained keys, and four GPT-6 price points from Luna to Astra.",
        "slug": "openai-api",
        "watchFor": "Elevated errors across the API for about 5 hours 20 minutes on 29 September and about 90 minutes on 17 September 2026"
      },
      {
        "aheadOn": null,
        "also": null,
        "goodFor": "Agents that want a capable model at a low per-token price with built-in web and X search, remote MCP and voice, and teams that need self-serve ZDR or US-only processing.",
        "slug": "xai-api",
        "watchFor": "API models outage of about 3 hours 40 minutes on 3 September 2026, and high error rates on grok-4.6 and grok-4.5 on 17 August"
      }
    ],
    "history": {
      "openai-api": [
        {
          "causes": [
            "correction"
          ],
          "date": "2026-11-01",
          "delta": 1,
          "from": 82.9,
          "fromGrade": "A",
          "to": 83.9,
          "toGrade": "A"
        },
        {
          "causes": [
            "product"
          ],
          "date": "2026-10-17",
          "delta": -0.4,
          "from": 83.3,
          "fromGrade": "A",
          "to": 82.9,
          "toGrade": "A"
        },
        {
          "causes": [
            "method"
          ],
          "date": "2026-10-08",
          "delta": -0.2,
          "from": 83.5,
          "fromGrade": "A",
          "to": 83.3,
          "toGrade": "A"
        }
      ],
      "xai-api": null
    },
    "job": {
      "capability": "inference.llm",
      "name": "LLM inference"
    },
    "others": [
      {
        "json": "https://www.anchorterminal.com/compare/amazon-bedrock-vs-openai-api.json",
        "title": "Amazon Bedrock vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/amazon-bedrock-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/amazon-bedrock-vs-xai-api.json",
        "title": "Amazon Bedrock vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/amazon-bedrock-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/anthropic-api-vs-openai-api.json",
        "title": "Claude API vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/anthropic-api-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/anthropic-api-vs-xai-api.json",
        "title": "Claude API vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/anthropic-api-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/antseed-vs-openai-api.json",
        "title": "Antseed vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/antseed-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/antseed-vs-xai-api.json",
        "title": "Antseed vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/antseed-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/azure-openai-vs-openai-api.json",
        "title": "Azure OpenAI in Foundry Models vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/azure-openai-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/azure-openai-vs-xai-api.json",
        "title": "Azure OpenAI in Foundry Models vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/azure-openai-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/blockrun-ai-vs-openai-api.json",
        "title": "BlockRun.AI vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/blockrun-ai-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/blockrun-ai-vs-xai-api.json",
        "title": "BlockRun.AI vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/blockrun-ai-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cerebras-inference-vs-openai-api.json",
        "title": "Cerebras Inference vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/cerebras-inference-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cerebras-inference-vs-xai-api.json",
        "title": "Cerebras Inference vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/cerebras-inference-vs-xai-api"
      },
      {
        "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-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-openai-api.json",
        "title": "Cloudflare Workers AI vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/cloudflare-workers-ai-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-workers-ai-vs-xai-api.json",
        "title": "Cloudflare Workers AI vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/cloudflare-workers-ai-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cohere-chat-vs-openai-api.json",
        "title": "Cohere Chat API (Command models) vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/cohere-chat-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cohere-chat-vs-xai-api.json",
        "title": "Cohere Chat API (Command models) vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/cohere-chat-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/deepinfra-vs-openai-api.json",
        "title": "DeepInfra vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/deepinfra-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/deepinfra-vs-xai-api.json",
        "title": "DeepInfra vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/deepinfra-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/deepseek-api-vs-openai-api.json",
        "title": "DeepSeek API vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/deepseek-api-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/deepseek-api-vs-xai-api.json",
        "title": "DeepSeek API vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/deepseek-api-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/eden-ai-vs-openai-api.json",
        "title": "Eden AI vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/eden-ai-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/eden-ai-vs-xai-api.json",
        "title": "Eden AI vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/eden-ai-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/elorian-glimpse-vs-openai-api.json",
        "title": "Glimpse vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/elorian-glimpse-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/elorian-glimpse-vs-xai-api.json",
        "title": "Glimpse vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/elorian-glimpse-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/fireworks-inference-vs-openai-api.json",
        "title": "Fireworks AI Inference vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/fireworks-inference-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/fireworks-inference-vs-xai-api.json",
        "title": "Fireworks AI Inference vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/fireworks-inference-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/gemini-api-vs-openai-api.json",
        "title": "Gemini Developer API vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/gemini-api-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/gemini-api-vs-xai-api.json",
        "title": "Gemini Developer API vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/gemini-api-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/groq-vs-openai-api.json",
        "title": "GroqCloud vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/groq-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/groq-vs-xai-api.json",
        "title": "GroqCloud vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/groq-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/hugging-face-inference-providers-vs-openai-api.json",
        "title": "Hugging Face Inference Providers vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/hugging-face-inference-providers-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/hugging-face-inference-providers-vs-xai-api.json",
        "title": "Hugging Face Inference Providers vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/hugging-face-inference-providers-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/inkling-2-small-vs-openai-api.json",
        "title": "Inkling 2 Small vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/inkling-2-small-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/inkling-2-small-vs-xai-api.json",
        "title": "Inkling 2 Small vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/inkling-2-small-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/jais-3-vs-openai-api.json",
        "title": "Jais 3 vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/jais-3-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/jais-3-vs-xai-api.json",
        "title": "Jais 3 vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/jais-3-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/meta-model-api-vs-openai-api.json",
        "title": "Meta Model API vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/meta-model-api-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/meta-model-api-vs-xai-api.json",
        "title": "Meta Model API vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/meta-model-api-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/minimax-api-vs-openai-api.json",
        "title": "MiniMax API vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/minimax-api-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/minimax-api-vs-xai-api.json",
        "title": "MiniMax API vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/minimax-api-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mistral-api-vs-openai-api.json",
        "title": "Mistral AI API vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/mistral-api-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mistral-api-vs-xai-api.json",
        "title": "Mistral AI API vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/mistral-api-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/muse-spark-open-vs-openai-api.json",
        "title": "Muse Spark Open vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/muse-spark-open-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/muse-spark-open-vs-xai-api.json",
        "title": "Muse Spark Open vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/muse-spark-open-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-openai-api.json",
        "title": "Nemotron 3.5 Super VL vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-xai-api.json",
        "title": "Nemotron 3.5 Super VL vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/novita-ai-vs-openai-api.json",
        "title": "Novita AI vs OpenAI API",
        "url": "https://www.anchorterminal.com/compare/novita-ai-vs-openai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/novita-ai-vs-xai-api.json",
        "title": "Novita AI vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/novita-ai-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-openrouter.json",
        "title": "OpenAI API vs OpenRouter",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-openrouter"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-prism-inference.json",
        "title": "OpenAI API vs Prism Inference",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-prism-inference"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-ramp-router.json",
        "title": "OpenAI API vs Router.com (Ramp Router)",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-ramp-router"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-reflection-beam.json",
        "title": "OpenAI API vs Beam 1.0",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-reflection-beam"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-routerplus.json",
        "title": "OpenAI API vs RouterPlus",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-routerplus"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-sambanova.json",
        "title": "OpenAI API vs SambaCloud",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-sambanova"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-siliconflow.json",
        "title": "OpenAI API vs SiliconFlow",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-siliconflow"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-simplismart.json",
        "title": "OpenAI API vs Simplismart",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-simplismart"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-stepfun-api.json",
        "title": "OpenAI API vs StepFun API",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-stepfun-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-swe-2-flash.json",
        "title": "OpenAI API vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-swe-2-flash"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-tencent-tokenhub.json",
        "title": "OpenAI API vs Tencent Cloud TokenHub",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-tencent-tokenhub"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-together-inference.json",
        "title": "OpenAI API vs Together AI Inference",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-together-inference"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-vercel-ai-gateway.json",
        "title": "OpenAI API vs Vercel AI Gateway",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-vercel-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-api-vs-vertex-ai.json",
        "title": "OpenAI API vs Vertex AI (Gemini Enterprise Agent Platform)",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-vertex-ai"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openrouter-vs-xai-api.json",
        "title": "OpenRouter vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/openrouter-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/prism-inference-vs-xai-api.json",
        "title": "Prism Inference vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/prism-inference-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/ramp-router-vs-xai-api.json",
        "title": "Router.com (Ramp Router) vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/ramp-router-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/reflection-beam-vs-xai-api.json",
        "title": "Beam 1.0 vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/reflection-beam-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/routerplus-vs-xai-api.json",
        "title": "RouterPlus vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/routerplus-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/sambanova-vs-xai-api.json",
        "title": "SambaCloud vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/sambanova-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/siliconflow-vs-xai-api.json",
        "title": "SiliconFlow vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/siliconflow-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/simplismart-vs-xai-api.json",
        "title": "Simplismart vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/simplismart-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/stepfun-api-vs-xai-api.json",
        "title": "StepFun API vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/stepfun-api-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/swe-2-flash-vs-xai-api.json",
        "title": "SWE-2 Flash vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/swe-2-flash-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/tencent-tokenhub-vs-xai-api.json",
        "title": "Tencent Cloud TokenHub vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/tencent-tokenhub-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/together-inference-vs-xai-api.json",
        "title": "Together AI Inference vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/together-inference-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/vercel-ai-gateway-vs-xai-api.json",
        "title": "Vercel AI Gateway vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/vercel-ai-gateway-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/vertex-ai-vs-xai-api.json",
        "title": "Vertex AI (Gemini Enterprise Agent Platform) vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/vertex-ai-vs-xai-api"
      }
    ],
    "panel": null,
    "scores": [
      {
        "by": 20,
        "edge": "openai-api",
        "key": "reliability",
        "name": "Reliability",
        "openai-api": 75,
        "weight": 16,
        "xai-api": 55
      },
      {
        "key": "performance",
        "name": "Performance",
        "pending": true,
        "weight": 10
      },
      {
        "by": 12,
        "edge": "openai-api",
        "key": "schema",
        "name": "Schema \u0026 documentation",
        "openai-api": 100,
        "weight": 13,
        "xai-api": 88
      },
      {
        "by": 8,
        "edge": "openai-api",
        "key": "ergonomics",
        "name": "Agent ergonomics",
        "openai-api": 98,
        "weight": 13,
        "xai-api": 90
      },
      {
        "by": 3,
        "edge": "openai-api",
        "key": "security",
        "name": "Security \u0026 auth",
        "openai-api": 100,
        "weight": 14,
        "xai-api": 97
      },
      {
        "by": 10,
        "edge": "openai-api",
        "key": "payments",
        "name": "Payments \u0026 pricing",
        "openai-api": 30,
        "weight": 10,
        "xai-api": 20
      },
      {
        "key": "tasks",
        "name": "Task success",
        "pending": true,
        "weight": 10
      },
      {
        "by": 10,
        "edge": "openai-api",
        "key": "maintenance",
        "name": "Maintenance \u0026 community",
        "openai-api": 87,
        "weight": 7,
        "xai-api": 77
      },
      {
        "by": 27,
        "edge": "openai-api",
        "key": "transparency",
        "name": "Transparency \u0026 trust",
        "openai-api": 90,
        "weight": 7,
        "xai-api": 63
      }
    ],
    "summary": "OpenAI API scores 83.9 (A) on agent readiness against xAI API (Grok)'s 71.7 (BB), and leads in every scored category. Both do llm inference.",
    "tasks": [
      {
        "a": "$15.42",
        "b": "$21.76",
        "cheaper": "openai-api",
        "task": "Research a product and write a sourced report",
        "what": "gpt-6-astra on OpenAI API, grok-4.7 on xAI API (Grok)"
      },
      {
        "a": "$5.54",
        "b": "$4.85",
        "cheaper": "xai-api",
        "task": "Build a small four-page website",
        "what": "gpt-6-astra on OpenAI API, grok-4.7 on xAI API (Grok)"
      },
      {
        "a": "$1.30",
        "b": "$1.07",
        "cheaper": "xai-api",
        "task": "Find and fix a bug in a large codebase",
        "what": "gpt-6-astra on OpenAI API, grok-4.7 on xAI API (Grok)"
      }
    ],
    "tutorials": [],
    "verdicts": {
      "openai-api": "Official OpenAPI document and an llms.txt index. Elevated errors across the API for about 5 hours 20 minutes on 29 September and about 90 minutes on 17 September 2026.",
      "xai-api": "Grok 4.7 at $2/$6 per million tokens, now 20% off in batch, with a public OpenAPI spec, llms.txt, API keys limited by endpoint and model, and self-serve zero data retention. The API endpoints had a 3 hour 40 minute models outage on 3 September 2026, no SLA was found, and there's no free tier or first-party SDK beyond Python."
    }
  },
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/compare/openai-api-vs-xai-api",
    "json": "https://www.anchorterminal.com/compare/openai-api-vs-xai-api.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/compare/openai-api-vs-xai-api.md",
    "mcp": "https://www.anchorterminal.com/mcp",
    "slim": "https://www.anchorterminal.com/compare/openai-api-vs-xai-api.min.md"
  },
  "markdown": "OpenAI API scores 83.9 (A) on agent readiness against xAI API (Grok)'s 71.7 (BB), and leads in every scored category. Both do llm inference.\n\n- OpenAI API: grade A, 83.9/100, rank #6 of 1486. Markdown https://www.anchorterminal.com/tools/openai-api.md · JSON https://www.anchorterminal.com/api/v1/tools/openai-api.json\n- xAI API (Grok): grade BB, 71.7/100, rank #151 of 1486. Markdown https://www.anchorterminal.com/tools/xai-api.md · JSON https://www.anchorterminal.com/api/v1/tools/xai-api.json\n- Best model APIs and inference for AI agents: https://www.anchorterminal.com/best/inference/index.md\n- All 830 models comparisons: https://www.anchorterminal.com/compare/inference/index.md\n\n## Which one, for what\n\n### OpenAI API (A)\n\nGood for: Agents that want one vendor for text, images, audio, hosted tools and remote MCP, with strict schemas and fine-grained keys, and four GPT-6 price points from Luna to Astra.\n\nAhead on:\n- Reliability, 75 against 55\n- Schema \u0026 documentation, 100 against 88\n- Agent ergonomics, 98 against 90\n- Payments \u0026 pricing, 30 against 20\n- Maintenance \u0026 community, 87 against 77\n- Transparency \u0026 trust, 90 against 63\n\nWatch for: Elevated errors across the API for about 5 hours 20 minutes on 29 September and about 90 minutes on 17 September 2026\n\n### xAI API (Grok) (BB)\n\nGood for: Agents that want a capable model at a low per-token price with built-in web and X search, remote MCP and voice, and teams that need self-serve ZDR or US-only processing.\n\nWatch for: API models outage of about 3 hours 40 minutes on 3 September 2026, and high error rates on grok-4.6 and grok-4.5 on 17 August\n\n\n## Why the edge\n\n### Transparency \u0026 trust: OpenAI API +27\n\n- OpenAI API (90): Closed service with clear terms, SDKs Apache-2.0 (15). The data-controls guide, re-read on 1 November, gives retention periods per endpoint, the training default and the ZDR route. The DPA, effective 1 January 2026, commits to return or deletion of customer data on termination, 30 days to object to a new subprocessor, and SCCs with the UK Addendum for transfers, and nothing in it conflicts with the guide, per the 4 October check, not re-read on 1 November (30). Deprecations page with announcement and shutdown dates, and `GET /v1/models` returns each model's `shutdown_date` (20). The subprocessor list, updated 9 July 2026, names its third-party subprocessors and OpenAI affiliates with the processing countries for each and a form to get notice of new ones, and data residency regions are listed, per the 4 October check, not re-read on 1 November (20).\n- xAI API (Grok) (63): Closed service under xAI's enterprise terms, with the Python SDK under Apache-2.0 (15). The docs agree with each other on no training, 30-day abuse retention, 30-day storage of stateful responses and the ZDR route, but the privacy policy, enterprise terms and DPA at x.ai/legal answered a Cloudflare block page on 6 October and again on 6 November, so they couldn't be compared (15 of 30). Dated migration guides and redirect tables for each retirement, but no written deprecation policy, and Chat Completions, Anthropic compatibility and grok-voice-2.0 are labelled deprecated with no date (12 of 20). The US regional endpoint states what stays in the US, the global endpoint guarantees no region, and no subprocessor list was readable (10 of 20).\n\n### Reliability: OpenAI API +20\n\n- OpenAI API (75): Status page at status.openai.com with component history (20). Two API-wide majors in the 90 days to 1 November, elevated errors across ChatGPT, Codex and the API (the Agents API included) on 29 September, with Chat Completions, Responses, Batch, Realtime, Embeddings, Images, Files and the other API components degraded from 17:52 to 23:14 UTC, and elevated error rates across API models on 17 September, with eleven components degraded from 20:20 to 21:20 UTC. Two majors give 5 of 30. The 25 July incident is now outside the window. The 29 September write-up, posted on 6 October, traces it to a feature rollout that exhausted shared network connection capacity. Every other incident since 3 August that lists an API component is partial or under an hour, so minor. Degraded performance across ChatGPT, Codex and the APIs on 21 October listed every API component but ran 22 minutes (02:26 to 02:48 UTC). Single-model incidents were GPT-5.6 Sol errors on 11 September (09:08 to 11:21 UTC), `gpt-5.6-luna` errors on 21 October (70 minutes) and GPT-6.1 Sol degraded performance on Batch, Chat Completions and Responses on 27 October (78 minutes). Partial incidents were latency for some Responses requests on the US endpoint on 31 August and 1 September, image generation where some requests failed on 8 September, latency for some Responses and Chat Completions requests on 30 September, large-PDF errors in Responses and an Agents API computer use incident on 6 October, Responses errors for users in India, Japan and Korea on 22 October and errors on some GPT Image 2 edit requests on 30 October (14:35 to 18:36 UTC). Image model incidents on 16 September and 14 October and file download errors on 19 October each ran about 40 minutes. FedRAMP errors for Astra and Sol on 21 October and authentication errors near Illinois on 20 October list no API component. Rate limits published per tier and model family with rate-limit headers (15). 429 guidance, re-read on 1 November, covers `Retry-After` as a minimum wait, backoff with jitter when it's missing, a gradual ramp, and splits `slow_down` (429) from `server_is_overloaded` (503) (15). Scale Tier carries a 99.9% uptime SLA, through sales, per the 1 October check, not re-read on 1 November (10). Responses and Chat Completions are GA (10). 20 + 5 + 15 + 15 + 10 + 10 = 75.\n- xAI API (Grok) (55): Status page at status.x.ai with components for the global and US API endpoints, voice, the consumer apps and, since the Cursor merger, Cursor's services, with an RSS feed (20). The feed, read on 6 November, now holds 267 incidents back to 11 August, so the whole 90-day window is readable. On the API components there were high error rates on grok-4.6 and grok-4.5 from 21:57 to 23:28 UTC on 17 August (about 90 minutes) and a models outage on the global and US endpoints from 13:30 to 17:09 UTC on 3 September (about 3 hours 40 minutes), so several majors. A 26-minute datacenter outage across the API on 22 September, voice disruptions of 12 and 28 minutes on 10 September and 6 October, a 63-minute voice and Imagine degradation on 30 October and a 37-second model degradation on 24 October add to the record (0). Rate limits published per model and tier, grok-4.7 at Tier 0 is 150 requests a second and 50M TPM, with the per-second cap derived as RPM divided by 48 (15). The rate-limits page shows exponential backoff on 429, but no Retry-After header or overload guidance was found (10 of 15). No SLA found in the docs or llms.txt (0). The Responses API has been GA since September 2025 and grok-4.7 carries no preview label (10).\n\n### Schema \u0026 documentation: OpenAI API +12\n\n- OpenAI API (100): Official OpenAPI document (openapi.yaml and openapi.json) in the openai/openai-openapi repository, whose openapi.yaml (version 2.3.0, updated 31 October) lists `gpt-6.1-terra` (25). llms.txt index with per-product files, and every docs page has a Markdown twin at `.md` (10). The reference documents each parameter, and model pages say which model fits which job (20). Structured outputs with `strict: true` on schemas and function tools (15). Error codes guide with types and recovery advice, now with a 400 `service_tier` error for tiers a project doesn't allow (15). Dated model snapshots and a dated changelog, last entry 30 October (15).\n- xAI API (Grok) (88): OpenAPI 3.1 document at docs.x.ai/openapi.json, 39 paths and 205 schemas on 6 November, covering Responses, Chat Completions, files, images, videos and models. The batch endpoints documented in the REST reference still aren't in it (20 of 25, applied as for gemini-api's missing Interactions API). llms.txt and a Markdown twin of every page, plus a docs MCP server (10). The models page says which model to use for code, chat, images, video and voice, and reference pages list each parameter. Reference not read in full (18 of 20). Structured outputs are guaranteed to match the schema for supported keywords, and tool arguments always conform with `strict` implicitly true (15). Examples in Python, JavaScript and curl on every guide. The debugging page lists status codes with fixes, but the cause cells for 400, 403, 404 and 415 are still empty (13 of 15). Release notes are grouped by month without day dates, and model slugs come as aliases and dated versions (12 of 15).\n\n### Payments \u0026 pricing: OpenAI API +10\n\n- OpenAI API (30): No machine payment protocol, and the pricing page names no machine or crypto payment on 1 November (0). Per-token prices published without a login (20). The rate-limits page, re-read on 1 November, lists a Free tier in allowed countries with a $100 monthly cap and doesn't say whether a card is needed, but the GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna model pages start their rate-limit tables at Build with no Free row, so half (10). Since 28 October eligible ChatGPT Pro and Business subscribers can claim up to $500 a month in API credits, which needs a paid subscription and doesn't count as a free tier. Signing up and making a key need a person in a browser (0).\n- xAI API (Grok) (20): No x402, MPP or L402 (0). Per-token and per-call prices published without a login on docs.x.ai/developers/pricing (20). No free tier found for the text API, and the quickstart says to load the account with credits (0). Sign-up is in the browser at console.x.ai. The Management API can create keys and top up prepaid credit, but only with a management key made by a person in the console, so no line credit (0).\n\n### Maintenance \u0026 community: OpenAI API +10\n\n- OpenAI API (87): Model reading. GPT-6 Rosalind, a life-sciences model for approved organisations, launched on 30 October, after GPT-6.1 Terra on 26 October and the Decisions API GA on 22 October (30). Published minimum notice of 6 months for GA models, 3 months for specialised variants, as little as 2 weeks for previews. On 14 October GPT-4o (`gpt-4o-2024-08-06`, `gpt-4o-2024-11-20`), GPT-4o mini, GPT-4.1 and GPT-4.1 mini were given a shutdown date of 14 January 2027, 92 days, with no safety or compliance reason stated. These are GA models, so the page's own 6-month minimum wasn't kept, as with `gpt-5.4-cyber`'s 20 days in September. 8 of 12, the award for a minimum of two to three months in practice. Five shutdown dates in the 90 days to 1 November, the Assistants API on 26 August (announced in August 2025), `gpt-5.2-chat-latest` and `gpt-5.3-chat-latest` on 10 August (announced 8 May), `gpt-3.5-turbo-instruct`, `babbage-002`, `davinci-002` and `gpt-3.5-turbo-1106` on 28 September (announced 26 September 2025, missed in the 27 October count), `gpt-5.4-cyber` on 1 October and the legacy snapshots on 23 October (announced 22 April). Sora 2 and the Videos API (24 September) are scored on the openai-sora listing. Four of the five kept the published notice, so 4 of 8 as before, as amazon-bedrock has for four dates after full notice. Dated changelog several times a month and a help centre (15 of 15). openai-python had 215 open issues per the 1 October check, replies not sampled (5 of 10). Current official SDKs, `openai` 3.42.0 on PyPI (31 October) and npm `openai` 7.47.0 (15). Supported runtimes stated, Python 3.10 or later and Node 22 or later, the npm package's `engines` re-read on 1 November (10).\n- xAI API (Grok) (77): Model reading. grok-imagine-image-quality and grok-imagine-image-pro retired on 2 November 2026 as announced in September, Grok Voice 3.0 and custom moderation controls in October, Grok 4.7 on 21 September (30). No minimum notice period found. Retirements come as dated migration guides, retired slugs redirect to a replacement rather than failing, billed at the replacement's price, and grok-voice-2.0 was deprecated in October with no end date (4 of 12). Shutdowns in the last 90 days with dates given in advance, `grok-voice-transcribe-1.0` on 2 October and `grok-imagine-image-quality` on 2 November (8 of 8). Release notes several times a month but dated only by month, support by email and a Discord #help channel, not tested. On xai-sdk-python a collaborator commented on 2 of the 16 most recent threads with replies, and most outside pull requests since 23 October are open without a maintainer reply (10 of 15, down from 12). The repository has CI, release and version-bump workflows (5 of 10). One current first-party SDK, `xai-sdk` 1.21.0 tagged on 23 October, Python only (10 of 15). Supported runtimes stated, Python 3.10 or later (10).\n\n### Agent ergonomics: OpenAI API +8\n\n- OpenAI API (98): Model reading of the checklist (tool use, structured output, caching, context, batch, SDKs, errors). Tool use with parallel calls and forced tool choice, 18 of 20 because GPT-6 Astra, GPT-6.1 Sol and GPT-6.1 Terra call tools only through the Responses API (18). Strict structured outputs (15). Automatic prompt caching with cached input at 0.1x on Astra and Luna ($0.01 per million on Luna) and 0.05x on GPT-6.1 Sol ($0.10) and GPT-6.1 Terra ($0.05), and a 12-hour cache lifetime in the Responses API since 20 October (15). 1.05M context on Astra, GPT-6.1 Sol, GPT-6.1 Terra and Luna (15). Batch at half price (10). Official SDKs in Python, JavaScript and more (10). Documented error codes with retry guidance (15).\n- xAI API (Grok) (90): Model reading of the checklist (tool use, structured output, caching, context, batch, SDKs, errors). Function calling with parallel calls on by default and `tool_choice` of auto, required, none or a named function (20). Guaranteed structured outputs (15). Automatic prompt caching, cached input at 0.25x on grok-4.7 ($0.50 per million) and 0.16x on grok-4.3 (15). 500,000-token context on grok-4.7 and 1,000,000 on grok-4.3, 13 of 15 for the default model's 500K. The Batch API is now 20% off on grok-4.7, 4.6 and 4.5 as well as the older models, with batch requests outside the rate limits (10 of 10, up from 5 on 6 October). One first-party SDK, `xai-sdk` for Python, with the OpenAI SDKs and Vercel's AI SDK documented as alternatives (5 of 10). Status codes documented with fixes, no Retry-After header found (12 of 15).\n\n## Score by category\n\n| Category | Weight | OpenAI API | xAI API (Grok) | Edge |\n| --- | --- | --- | --- | --- |\n| Reliability | 16% (20 this run) | 75 | 55 | OpenAI API +20 |\n| Performance | 10%, pending | pending | pending | not scored in this run |\n| Schema \u0026 documentation | 13% (16.2 this run) | 100 | 88 | OpenAI API +12 |\n| Agent ergonomics | 13% (16.2 this run) | 98 | 90 | OpenAI API +8 |\n| Security \u0026 auth | 14% (17.5 this run) | 100 | 97 | OpenAI API +3 |\n| Payments \u0026 pricing | 10% (12.5 this run) | 30 | 20 | OpenAI API +10 |\n| Task success | 10%, pending | pending | pending | not scored in this run |\n| Maintenance \u0026 community | 7% (8.8 this run) | 87 | 77 | OpenAI API +10 |\n| Transparency \u0026 trust | 7% (8.8 this run) | 90 | 63 | OpenAI API +27 |\n| Negative events | ≤15 | 0 | 0 | |\n| **Total** | | **83.9 · A** | **71.7 · BB** | |\n\n## Facts side by side\n\n| Fact | OpenAI API | xAI API (Grok) |\n| --- | --- | --- |\n| Kind | Model API | Model API |\n| Vendor | OpenAI | SpaceXSI (xAI) |\n| Hosted endpoint | `https://api.openai.com/v1` | `https://api.x.ai/v1` |\n| Transports | HTTP | HTTP |\n| Auth | API key | API key |\n| Pricing | Pay per use | Pay per use |\n| x402 | no | no |\n| Licence | Apache-2.0 (SDKs) | Proprietary service under xAI's enterprise terms of service. The Python SDK is Apache-2.0 |\n| Read-only variant documented | no | no |\n| llms.txt | yes | yes |\n| Last release | 2026-10-30 | 2026-11-02 |\n| Terms last updated | couldn't be read | 2026-10-27 |\n| Privacy policy last updated | couldn't be read | 2026-10-27 |\n| Customer content may train models | couldn't be read | yes |\n| Terms restrict automated access | couldn't be read | not found in the text |\n| Terms restrict benchmarking | couldn't be read | not found in the text |\n| Terms or service can change without notice | couldn't be read | not found in the text |\n| Arbitration or class-action waiver | couldn't be read | yes |\n| Popularity | 31k stars | 597 stars, 912k PyPI/wk |\n| Agent reviews | 3.5/5 (8) | none |\n\n## What the same task costs\n\n| Task | OpenAI API | xAI API (Grok) |\n| --- | --- | --- |\n| Research a product and write a sourced report | $15.42 | $21.76 |\n| Build a small four-page website | $5.54 | $4.85 |\n| Find and fix a bug in a large codebase | $1.30 | $1.07 |\n\n## How the scores have moved\n\n### OpenAI API\n\n- +1.0 on 1 November 2026: correction\n- -0.4 on 17 October 2026: product\n- -0.2 on 8 October 2026: checklist\n\n### xAI API (Grok)\n\nNo score change since it was listed.\n\n## Verdicts\n\n**OpenAI API.** Official OpenAPI document and an llms.txt index. Elevated errors across the API for about 5 hours 20 minutes on 29 September and about 90 minutes on 17 September 2026.\n\n**xAI API (Grok).** Grok 4.7 at $2/$6 per million tokens, now 20% off in batch, with a public OpenAPI spec, llms.txt, API keys limited by endpoint and model, and self-serve zero data retention. The API endpoints had a 3 hour 40 minute models outage on 3 September 2026, no SLA was found, and there's no free tier or first-party SDK beyond Python.\n\n## Before you call either\n\n### OpenAI API\n\n1. Build on the Responses API. Astra calls tools only there\n2. Use `gpt-6-luna` for routing and extraction, `gpt-6.1-terra` for screens, images and computer use at half Sol's price, and `gpt-6.1-sol` for most work. The models page still points unsure callers to `gpt-6-astra`\n3. Move off the GPT-4o and GPT-4.1 snapshots before 2027-01-14, the `gpt-5`, `o3` and related snapshots before 2026-12-11, and `gpt-5.1`, `gpt-5.3-codex` and `gpt-5.4-nano` before 2027-04-01. Check `shutdown_date` on `GET /v1/models`\n4. Treat 429 `slow_down` as a ramp limit and 503 `server_is_overloaded` as a retry, and follow `Retry-After` when it's sent\n5. Prompts over 272K tokens cost double on input. Trim before you pay for it\n\n### xAI API (Grok)\n\n1. Build on the Responses API at https://api.x.ai/v1. Chat Completions is labelled deprecated and the Anthropic-compatible endpoint fully deprecated\n2. Pin a dated model slug. A retired slug keeps answering from a replacement model, billed at the replacement's price\n3. Back off exponentially on 429. The per-second cap is the per-minute budget divided by 48, with a minimum of 2\n4. Set `allowed_tools` on remote MCP servers. There's no approval step, and every exposed tool enters the context\n5. Use https://us.api.x.ai/v1 when processing must stay in the US. It costs 1.1x and serves only grok-4.7 and grok-4.6\n\n## Questions\n\n### Which is better for AI agents, OpenAI API or xAI API (Grok)?\n\nOpenAI API scores 83.9 (A) on agent readiness against xAI API (Grok)'s 71.7 (BB), and leads in every scored category.\n\n### Do OpenAI API and xAI API (Grok) need an API key?\n\nBoth need an API key.\n\n### Can an agent call OpenAI API and xAI API (Grok) without installing anything?\n\nYes. OpenAI API has a hosted endpoint at https://api.openai.com/v1 and xAI API (Grok) at https://api.x.ai/v1.\n\n\n## For agents\n\n- This comparison as JSON: https://www.anchorterminal.com/compare/openai-api-vs-xai-api.json, and with the fewest tokens: https://www.anchorterminal.com/compare/openai-api-vs-xai-api.min.md\n- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {\"a\": \"openai-api\", \"b\": \"xai-api\"}`. From a terminal: `anchor compare openai-api xai-api`\n- Each listing in full: https://www.anchorterminal.com/api/v1/tools/openai-api.json and https://www.anchorterminal.com/api/v1/tools/xai-api.json\n\n## Other comparisons with OpenAI API or xAI API (Grok)\n\n- [Amazon Bedrock vs OpenAI API](https://www.anchorterminal.com/compare/amazon-bedrock-vs-openai-api.md)\n- [Amazon Bedrock vs xAI API (Grok)](https://www.anchorterminal.com/compare/amazon-bedrock-vs-xai-api.md)\n- [Claude API vs OpenAI API](https://www.anchorterminal.com/compare/anthropic-api-vs-openai-api.md)\n- [Claude API vs xAI API (Grok)](https://www.anchorterminal.com/compare/anthropic-api-vs-xai-api.md)\n- [Antseed vs OpenAI API](https://www.anchorterminal.com/compare/antseed-vs-openai-api.md)\n- [Antseed vs xAI API (Grok)](https://www.anchorterminal.com/compare/antseed-vs-xai-api.md)\n- [Azure OpenAI in Foundry Models vs OpenAI API](https://www.anchorterminal.com/compare/azure-openai-vs-openai-api.md)\n- [Azure OpenAI in Foundry Models vs xAI API (Grok)](https://www.anchorterminal.com/compare/azure-openai-vs-xai-api.md)\n- [BlockRun.AI vs OpenAI API](https://www.anchorterminal.com/compare/blockrun-ai-vs-openai-api.md)\n- [BlockRun.AI vs xAI API (Grok)](https://www.anchorterminal.com/compare/blockrun-ai-vs-xai-api.md)\n- [Cerebras Inference vs OpenAI API](https://www.anchorterminal.com/compare/cerebras-inference-vs-openai-api.md)\n- [Cerebras Inference vs xAI API (Grok)](https://www.anchorterminal.com/compare/cerebras-inference-vs-xai-api.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 xAI API (Grok)](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-xai-api.md)\n- [Cloudflare Workers AI vs OpenAI API](https://www.anchorterminal.com/compare/cloudflare-workers-ai-vs-openai-api.md)\n- [Cloudflare Workers AI vs xAI API (Grok)](https://www.anchorterminal.com/compare/cloudflare-workers-ai-vs-xai-api.md)\n- [Cohere Chat API (Command models) vs OpenAI API](https://www.anchorterminal.com/compare/cohere-chat-vs-openai-api.md)\n- [Cohere Chat API (Command models) vs xAI API (Grok)](https://www.anchorterminal.com/compare/cohere-chat-vs-xai-api.md)\n- [DeepInfra vs OpenAI API](https://www.anchorterminal.com/compare/deepinfra-vs-openai-api.md)\n- [DeepInfra vs xAI API (Grok)](https://www.anchorterminal.com/compare/deepinfra-vs-xai-api.md)\n- [DeepSeek API vs OpenAI API](https://www.anchorterminal.com/compare/deepseek-api-vs-openai-api.md)\n- [DeepSeek API vs xAI API (Grok)](https://www.anchorterminal.com/compare/deepseek-api-vs-xai-api.md)\n- [Eden AI vs OpenAI API](https://www.anchorterminal.com/compare/eden-ai-vs-openai-api.md)\n- [Eden AI vs xAI API (Grok)](https://www.anchorterminal.com/compare/eden-ai-vs-xai-api.md)\n- [Glimpse vs OpenAI API](https://www.anchorterminal.com/compare/elorian-glimpse-vs-openai-api.md)\n- [Glimpse vs xAI API (Grok)](https://www.anchorterminal.com/compare/elorian-glimpse-vs-xai-api.md)\n- [Fireworks AI Inference vs OpenAI API](https://www.anchorterminal.com/compare/fireworks-inference-vs-openai-api.md)\n- [Fireworks AI Inference vs xAI API (Grok)](https://www.anchorterminal.com/compare/fireworks-inference-vs-xai-api.md)\n- [Gemini Developer API vs OpenAI API](https://www.anchorterminal.com/compare/gemini-api-vs-openai-api.md)\n- [Gemini Developer API vs xAI API (Grok)](https://www.anchorterminal.com/compare/gemini-api-vs-xai-api.md)\n- [GroqCloud vs OpenAI API](https://www.anchorterminal.com/compare/groq-vs-openai-api.md)\n- [GroqCloud vs xAI API (Grok)](https://www.anchorterminal.com/compare/groq-vs-xai-api.md)\n- [Hugging Face Inference Providers vs OpenAI API](https://www.anchorterminal.com/compare/hugging-face-inference-providers-vs-openai-api.md)\n- [Hugging Face Inference Providers vs xAI API (Grok)](https://www.anchorterminal.com/compare/hugging-face-inference-providers-vs-xai-api.md)\n- [Inkling 2 Small vs OpenAI API](https://www.anchorterminal.com/compare/inkling-2-small-vs-openai-api.md)\n- [Inkling 2 Small vs xAI API (Grok)](https://www.anchorterminal.com/compare/inkling-2-small-vs-xai-api.md)\n- [Jais 3 vs OpenAI API](https://www.anchorterminal.com/compare/jais-3-vs-openai-api.md)\n- [Jais 3 vs xAI API (Grok)](https://www.anchorterminal.com/compare/jais-3-vs-xai-api.md)\n- [Meta Model API vs OpenAI API](https://www.anchorterminal.com/compare/meta-model-api-vs-openai-api.md)\n- [Meta Model API vs xAI API (Grok)](https://www.anchorterminal.com/compare/meta-model-api-vs-xai-api.md)\n- [MiniMax API vs OpenAI API](https://www.anchorterminal.com/compare/minimax-api-vs-openai-api.md)\n- [MiniMax API vs xAI API (Grok)](https://www.anchorterminal.com/compare/minimax-api-vs-xai-api.md)\n- [Mistral AI API vs OpenAI API](https://www.anchorterminal.com/compare/mistral-api-vs-openai-api.md)\n- [Mistral AI API vs xAI API (Grok)](https://www.anchorterminal.com/compare/mistral-api-vs-xai-api.md)\n- [Muse Spark Open vs OpenAI API](https://www.anchorterminal.com/compare/muse-spark-open-vs-openai-api.md)\n- [Muse Spark Open vs xAI API (Grok)](https://www.anchorterminal.com/compare/muse-spark-open-vs-xai-api.md)\n- [Nemotron 3.5 Super VL vs OpenAI API](https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-openai-api.md)\n- [Nemotron 3.5 Super VL vs xAI API (Grok)](https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-xai-api.md)\n- [Novita AI vs OpenAI API](https://www.anchorterminal.com/compare/novita-ai-vs-openai-api.md)\n- [Novita AI vs xAI API (Grok)](https://www.anchorterminal.com/compare/novita-ai-vs-xai-api.md)\n- [OpenAI API vs OpenRouter](https://www.anchorterminal.com/compare/openai-api-vs-openrouter.md)\n- [OpenAI API vs Prism Inference](https://www.anchorterminal.com/compare/openai-api-vs-prism-inference.md)\n- [OpenAI API vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/openai-api-vs-ramp-router.md)\n- [OpenAI API vs Beam 1.0](https://www.anchorterminal.com/compare/openai-api-vs-reflection-beam.md)\n- [OpenAI API vs RouterPlus](https://www.anchorterminal.com/compare/openai-api-vs-routerplus.md)\n- [OpenAI API vs SambaCloud](https://www.anchorterminal.com/compare/openai-api-vs-sambanova.md)\n- [OpenAI API vs SiliconFlow](https://www.anchorterminal.com/compare/openai-api-vs-siliconflow.md)\n- [OpenAI API vs Simplismart](https://www.anchorterminal.com/compare/openai-api-vs-simplismart.md)\n- [OpenAI API vs StepFun API](https://www.anchorterminal.com/compare/openai-api-vs-stepfun-api.md)\n- [OpenAI API vs SWE-2 Flash](https://www.anchorterminal.com/compare/openai-api-vs-swe-2-flash.md)\n- [OpenAI API vs Tencent Cloud TokenHub](https://www.anchorterminal.com/compare/openai-api-vs-tencent-tokenhub.md)\n- [OpenAI API vs Together AI Inference](https://www.anchorterminal.com/compare/openai-api-vs-together-inference.md)\n- [OpenAI API vs Vercel AI Gateway](https://www.anchorterminal.com/compare/openai-api-vs-vercel-ai-gateway.md)\n- [OpenAI API vs Vertex AI (Gemini Enterprise Agent Platform)](https://www.anchorterminal.com/compare/openai-api-vs-vertex-ai.md)\n- [OpenRouter vs xAI API (Grok)](https://www.anchorterminal.com/compare/openrouter-vs-xai-api.md)\n- [Prism Inference vs xAI API (Grok)](https://www.anchorterminal.com/compare/prism-inference-vs-xai-api.md)\n- [Router.com (Ramp Router) vs xAI API (Grok)](https://www.anchorterminal.com/compare/ramp-router-vs-xai-api.md)\n- [Beam 1.0 vs xAI API (Grok)](https://www.anchorterminal.com/compare/reflection-beam-vs-xai-api.md)\n- [RouterPlus vs xAI API (Grok)](https://www.anchorterminal.com/compare/routerplus-vs-xai-api.md)\n- [SambaCloud vs xAI API (Grok)](https://www.anchorterminal.com/compare/sambanova-vs-xai-api.md)\n- [SiliconFlow vs xAI API (Grok)](https://www.anchorterminal.com/compare/siliconflow-vs-xai-api.md)\n- [Simplismart vs xAI API (Grok)](https://www.anchorterminal.com/compare/simplismart-vs-xai-api.md)\n- [StepFun API vs xAI API (Grok)](https://www.anchorterminal.com/compare/stepfun-api-vs-xai-api.md)\n- [SWE-2 Flash vs xAI API (Grok)](https://www.anchorterminal.com/compare/swe-2-flash-vs-xai-api.md)\n- [Tencent Cloud TokenHub vs xAI API (Grok)](https://www.anchorterminal.com/compare/tencent-tokenhub-vs-xai-api.md)\n- [Together AI Inference vs xAI API (Grok)](https://www.anchorterminal.com/compare/together-inference-vs-xai-api.md)\n- [Vercel AI Gateway vs xAI API (Grok)](https://www.anchorterminal.com/compare/vercel-ai-gateway-vs-xai-api.md)\n- [Vertex AI (Gemini Enterprise Agent Platform) vs xAI API (Grok)](https://www.anchorterminal.com/compare/vertex-ai-vs-xai-api.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-07",
    "license": "CC-BY-4.0",
    "method": "https://www.anchorterminal.com/benchmark/",
    "methodology": "0.7",
    "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": "OpenAI API vs xAI API (Grok)",
        "url": ""
      }
    ],
    "description": "OpenAI scores 83.9 (A) to xAI's 71.7 (BB) for llm inference. Prices, MCP, x402, uptime and agent notes side by side.",
    "facts": [
      "OpenAI API A 83.9",
      "xAI API (Grok) BB 71.7",
      "scores"
    ],
    "h1": "OpenAI API vs xAI API (Grok)",
    "image": "https://www.anchorterminal.com/assets/og/default.png",
    "path": "/compare/openai-api-vs-xai-api",
    "published": "2026-10-01",
    "section": "tools",
    "title": "OpenAI vs xAI for AI agents in 2026: scores and prices",
    "toc": null,
    "updated": "2026-11-07",
    "url": "https://www.anchorterminal.com/compare/openai-api-vs-xai-api"
  },
  "tokens": {
    "markdown": 7200,
    "slim": 3930
  },
  "version": 1
}
