{
  "data": {
    "a": {
      "slug": "swe-2-flash",
      "name": "SWE-2 Flash",
      "vendor": "Cognition AI, Inc.",
      "vendorUrl": "https://cognition.com/blog/swe-2-flash",
      "kind": "model",
      "category": "inference",
      "summary": "SWE-2 Flash is Cognition's small, fast coding model, mid-trained and reinforcement-trained from Thinking Machines' Inkling-Small (276B total, 12B active parameters). It runs inside Devin Desktop and Devin CLI, with no model API of its own and no public weights.",
      "url": "https://www.anchorterminal.com/tools/swe-2-flash",
      "markdownUrl": "https://www.anchorterminal.com/tools/swe-2-flash.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/swe-2-flash.min.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/swe-2-flash.json",
      "dns": "swe-2-flash.grade.anchorterminal.com",
      "license": "Proprietary model, used through Devin Desktop and Devin CLI under Cognition's Platform Terms of Service. The weights are not public; Cognition says it is building a programme to share them with industry partners and researchers",
      "transports": [],
      "packages": [],
      "auth": "mixed",
      "authNotes": "No model API or key of its own. A person signs in to Devin Desktop, or runs `devin auth login` for Devin CLI, through a browser (enterprise users through their identity provider). The CLI then keeps an API token in credentials.toml that by default is persistent and does not expire, and the docs warn that anyone with the file can authenticate as that user. Enterprise admins choose which models a team may use with a model allowlist.",
      "pricing": "freemium",
      "pricingNotes": "Free in Devin Desktop and Devin CLI through 30 November 2026, per the launch post. Afterwards it is billed against the plan's daily and weekly quota, then extra usage at API pricing. The post says one-fifth the price of SWE-2, whose list price is $3.00 input, $0.30 cached input and $15.00 output per million tokens, but no SWE-2 Flash figure is published: the docs' cost table loads in the browser and the models pages don't list it yet (checked 2026-11-04). Plans are Free $0, Pro $20 a month, Max $200 a month and Teams $80 a month plus $40 per full seat. The docs say Free tier users only have SWE-1.6, so whether Free reaches SWE-2 Flash is unconfirmed.",
      "priceSummary": "Freemium",
      "where": "local",
      "x402": {
        "level": "no",
        "evidence": "No model endpoint to pay. No x402, MPP or L402 on the Devin pricing page, the Devin Desktop models page or the launch post (checked 2026-11-04).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": null,
        "npmWeekly": null,
        "pypiWeekly": null,
        "asOf": "2026-11-04"
      },
      "docsUrl": "https://docs.devin.ai/desktop/models",
      "llmsTxt": "https://docs.devin.ai/llms.txt",
      "capabilities": [
        "inference.llm"
      ],
      "tags": [
        "official",
        "hosted",
        "model",
        "closed-source",
        "coding",
        "moe",
        "cli",
        "desktop-app",
        "llms-txt",
        "status-page",
        "soc2",
        "iso27001",
        "sla",
        "freemium",
        "new"
      ],
      "lastRelease": "2026-11-04",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 36.4,
        "grade": "F",
        "agentReady": false,
        "rank": 1388,
        "ranked": true,
        "rankOf": 1510,
        "categoryRank": 40,
        "methodology": "0.7",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 10,
          "maintenance": 53,
          "payments": 20,
          "reliability": 50,
          "schema": 29,
          "security": 53,
          "transparency": 64
        },
        "pending": [
          "performance",
          "tasks"
        ],
        "assessment": {
          "confidence": "low",
          "date": "2026-11-04"
        },
        "negative": -2,
        "negativeNotes": [
          "The launch post says 'On leading evals, SWE-2 Flash outperforms all American open-weight models'. The post's own table, a first-hand source, gives Meta's Muse Spark Open (American, open weights, released 15 October 2026) 54.0 on SWE-Atlas QA against SWE-2 Flash's 50.0, and Meta's own figure for Muse Spark Open is 58. A 'surpasses' claim a first-hand source shows false is a deduction of 2 (research/new-2026-11-04-ripple-swe2/NEWLIST.md, rule 4). The case against: SWE-2 Flash leads every other row it shares with the American open-weight models in the table, and DeepSWE 1.1 is 60.1 to 60.0, so 'on leading evals' can be read as overall. Proposed for the founder to confirm at landing, as xiaomi-ocr-0's was"
        ],
        "verdict": "A new small coding model from Cognition that anyone can try free in Devin Desktop and Devin CLI until 30 November 2026, with strong vendor-reported coding scores. It has no model API, no published per-token price, context length or model card, and no public weights, so an agent can reach it only by driving Devin's own CLI.",
        "bestFor": "People already using Devin Desktop or Devin CLI who want a cheaper, faster model for routine coding work such as automations, reviews and small changes, while it is free in November 2026.",
        "strengths": [
          "Free in Devin Desktop and Devin CLI through 30 November 2026, and selectable per run with `devin --model` or `/model`",
          "Cognition reports large gains over its base model, Terminal-Bench 4.0 from 0.9 to 20.0 and FrontierCode 2.0 from 3.2 to 24.0, with the full benchmark table in the post",
          "Runs inside Devin CLI's sandbox, permissions and hooks, and enterprise admins can allow or block it per team",
          "Cognition holds SOC 2 Type II and ISO/IEC 27001:2022 and publishes an SLA for contracts that include one",
          "Status page with a Desktop Agent component, and in the 90 days to 4 November no incident names Desktop or the CLI, only a scheduled extension marketplace maintenance on 7 August"
        ],
        "weaknesses": [
          "No model API, OpenAPI entry or model card. The Devin API's session agents list SWE-2 but not SWE-2 Flash",
          "No per-token price, context length, output limit or reasoning settings published for it, and the docs' models pages don't list it yet",
          "The weights are withheld for now, with a partner and researcher programme promised but not yet described",
          "Customer data may be used for model training by default on self-serve plans, with the opt-out on paid plans only",
          "The CLI's login token is persistent and doesn't expire by default, and no rate limit figures or retry guidance are published"
        ],
        "agentNotes": [
          "There is no endpoint to call. Run Devin CLI single-turn with `devin -p` and pick the model with `--model`; the SWE-2 Flash model ID isn't documented yet, so check `/model` in the CLI first",
          "Don't rely on the short name `swe`. The docs say it resolves to the latest model in the family, which may be SWE-2 rather than SWE-2 Flash",
          "Plan for billing to start on 1 December 2026. The free period covers Devin Desktop and CLI only, not Devin cloud sessions",
          "Treat Cognition's benchmark figures as the vendor's. No independent result for SWE-2 Flash was found",
          "Keep `credentials.toml` private. The token in it doesn't expire by default and carries the signed-in user's access"
        ],
        "metrics": {
          "kind": "remote",
          "measured": false
        },
        "reviewCount": 0,
        "avgRating": 0,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "low",
            "grade": "F",
            "methodology": "0.7",
            "pending": [
              "performance",
              "tasks"
            ],
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 36.4
          }
        ],
        "editorialScores": {
          "ergonomics": 10,
          "maintenance": 53,
          "payments": 20,
          "reliability": 50,
          "schema": 29,
          "security": 53,
          "transparency": 56
        },
        "provenanceScore": 72,
        "checked": {
          "categories": {
            "ergonomics": "2026-11-04",
            "maintenance": "2026-11-04",
            "payments": "2026-11-04",
            "reliability": "2026-11-04",
            "schema": "2026-11-04",
            "security": "2026-11-04",
            "transparency": "2026-11-04"
          },
          "last": "2026-11-04",
          "oldest": "2026-11-04",
          "stale": false,
          "staleAfterDays": 90
        }
      },
      "connect": {
        "install": "Install Devin CLI or Devin Desktop from https://devin.ai/download, sign in with `devin auth login`, then choose SWE-2 Flash with `/model`"
      },
      "letme": {
        "capability": "https://letme.dev/inference.llm",
        "tool": "https://letme.dev/swe-2-flash"
      },
      "area": "models",
      "provenance": {
        "legalEntity": "Cognition AI, Inc.",
        "domain": "cognition.com",
        "domainRegistered": "",
        "domainNote": "Not looked up: RDAP isn't requested under the 1 November 2026 rules. The product runs on devin.ai, registered 2022-12-06 per the devin listing's RDAP check of 8 October 2026.",
        "endpointOnVendorDomain": true,
        "terms": "https://cognition.com/legal/platform-terms-of-service",
        "privacy": "https://cognition.com/legal/privacy-policy",
        "statusPage": "https://www.devinstatus.com",
        "changelog": "https://docs.devin.ai/release-notes/overview",
        "securityTxt": "none",
        "checked": "2026-11-04",
        "notes": [
          "The launch post is on cognition.com, signed by the Cognition Team, and the Devin docs, pricing page and status page link the same company. The platform terms (30 June 2026) name Cognition AI, Inc.",
          "The website terms of use (13 May 2024) and platform terms were read for automated-access limits and have none. cognition.com's robots.txt disallows only /downloads/, devin.ai's only /top-secret and /assets/downloads/, docs.devin.ai's /cdn-cgi/ and /_next/ (with Content-Signal ai-input=yes), and www.devinstatus.com's /api/ and /embed/.",
          "security.txt is none per the devin listing's 8 October check, not re-read. The docs give a security address for vulnerability reports.",
          "No SWE-2 Flash entry in the Devin release notes, whose newest is 2 November 2026."
        ],
        "score": 72
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/swe-2-flash.json",
      "live": {
        "slug": "swe-2-flash",
        "vendorStatus": {
          "page": "https://www.devinstatus.com",
          "indicator": "none",
          "summary": "All Systems Operational",
          "checkedAt": "2026-11-07T19:23:48.980207839Z"
        },
        "securityTxt": {
          "url": "https://cognition.com/.well-known/security.txt",
          "state": "none",
          "checkedAt": "2026-11-07T16:02:03.835336065Z"
        },
        "llmsTxt": {
          "url": "https://docs.devin.ai/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-11-07T15:34:04.732499344Z"
        },
        "updatedAt": "2026-11-07T19:23:48.980207839Z"
      }
    },
    "answer": "xAI API (Grok) scores 71.7 (BB) on agent readiness against SWE-2 Flash's 36.4 (F), and leads in 5 of 7 scored categories.",
    "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": 152,
        "ranked": true,
        "rankOf": 1510,
        "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-07T19:22:45.426736159Z",
          "lastOk": true,
          "lastStatus": 404,
          "lastMs": 193,
          "authRequired": false,
          "uptime24h": 100,
          "uptime30d": 100,
          "p50ms24h": 178,
          "p95ms24h": 276,
          "samples24h": 210,
          "samples30d": 210,
          "days": [
            {
              "date": "2026-11-06",
              "probes": 13,
              "ok": 13
            },
            {
              "date": "2026-11-07",
              "probes": 197,
              "ok": 197
            }
          ]
        },
        "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-07T19:22:45.426736159Z"
      }
    },
    "edges": [
      {
        "by": 80,
        "category": "ergonomics",
        "leads": "xai-api",
        "name": "Agent ergonomics",
        "reasons": {
          "a": "Model reading (tool use, structured output, caching, context, batch, SDKs). Tool use is Devin's harness, not something a caller configures; no context length, output limit or cache price is published for SWE-2 Flash (5 of 25). No documented output-size or reasoning controls for this model; SWE-2's effort levels aren't stated for Flash (0 of 20). No model-level error documentation (0 of 20). No idempotency or retry guidance (0 of 20). One flag or picker selects it and `devin -p` runs a single turn and prints to stdout, but there is no SDK or direct endpoint (5 of 15). 5 + 0 + 0 + 0 + 5 = 10.",
          "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": 10,
          "b": 90
        }
      },
      {
        "by": 59,
        "category": "schema",
        "leads": "xai-api",
        "name": "Schema \u0026 documentation",
        "reasons": {
          "a": "Model reading. No model API, so no OpenAPI entry; the Devin v3 OpenAPI file lists SWE-2 agents only, and no model card was found (0). docs.devin.ai serves llms.txt and Markdown copies of every page (10). The launch post says what it is for (automations, code review, feature development, documentation) and the CLI docs say when to pick a SWE model, but the models pages don't list SWE-2 Flash yet (6 of 20). No documented model ID, reasoning settings, context or output limits to type (0 of 15). The CLI pages show `--model` and `/model` examples, with no model-specific errors (3 of 15). Named, dated model versions on Cognition's blog and public release notes, but no release note for SWE-2 Flash yet; the newest is 2 November (10 of 15). 0 + 10 + 6 + 0 + 3 + 10 = 29.",
          "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": 29,
          "b": 88
        }
      },
      {
        "by": 44,
        "category": "security",
        "leads": "xai-api",
        "name": "Security \u0026 auth",
        "reasons": {
          "a": "Read as a hosted model reached through Devin's local clients. The CLI signs in through a browser, or the enterprise identity provider, and stores an API token in credentials.toml that by default is persistent and does not expire and carries the user's access, with no scopes found for it (10 of 30). Devin CLI documents an OS-level sandbox with network filtering, hooks that can block tool calls, and enterprise model allowlists and team settings (14 of 20). Guardrails against prompt injection are Enterprise only and cover user messages, as on the devin listing (8 of 15). Enterprise analytics count tool calls and consumption by model and user; no per-user audit log for the CLI was found (8 of 15). SOC 2 Type II and ISO/IEC 27001:2022, a disclosure address, no bug bounty and no security.txt, per the devin listing (13 of 20). Training: self-serve customer data may train Cognition's models by default, with an opt-out on paid plans that also turns on zero data retention at model providers. Cognition withheld the weights over cyber misuse, which is recorded as a fact, not scored. 10 + 14 + 8 + 8 + 13 = 53.",
          "b": "Model reading. Team API keys with ACLs per endpoint and per model, QPM and TPM caps, expiry, and create, rotate, disable and delete through the Management API, plus documented mTLS. GitHub secret scanning disables leaked keys and emails the owner (30). The security FAQ says SpaceXSI never trains on API inputs or outputs without explicit permission (20). Requests and responses are kept 30 days for abuse auditing, then deleted, and team admins can switch on zero data retention themselves, confirmed by an `x-zero-data-retention` header on every response (15). Console audit log and a Management API audit-events endpoint, plus optional per-key request logging (15). security.txt valid to 2027-06-29 with a HackerOne bug bounty and a separate safety contact for prompt-injection issues. SOC 2 Type 2 is claimed in the security FAQ with the reports behind an NDA in the trust centre, so 17 of 20. Remote MCP doesn't support `require_approval`, which the model checklist doesn't score but reviewers should see. New in October, a `guidelines` array lets the caller make the model decline nsfw, violence or profanity content, which the checklist doesn't score."
        },
        "scores": {
          "a": 53,
          "b": 97
        }
      },
      {
        "by": 24,
        "category": "maintenance",
        "leads": "xai-api",
        "name": "Maintenance \u0026 community",
        "reasons": {
          "a": "Model reading. Released 4 November 2026 (30). Churn and notice in place of release counts: SWE-1.6, SWE-1.7, SWE-1.7 Lightning, SWE-2 (10 September) and now SWE-2 Flash in a few months, with no model deprecation notice period found and short names that move to the newest model (10 of 20). Public release notes and a support address, no public tracker (10 of 25). No official SDK for the model (0 of 15). The docs are kept current but don't yet cover this model (3 of 10). 30 + 10 + 10 + 0 + 3 = 53.",
          "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": 53,
          "b": 77
        }
      },
      {
        "by": 5,
        "category": "reliability",
        "leads": "xai-api",
        "name": "Reliability",
        "reasons": {
          "a": "Model reading, for the surface it runs on, Devin Desktop and Devin CLI. Status page at www.devinstatus.com (Atlassian Statuspage) with Desktop Agent and Desktop Tab components besides the cloud ones, read on 4 November 2026 (20). The history feed for the 90 days from 6 August lists 'Devin unavailable' for 20 minutes on 13 August with no component named, read as across the board and a major as on the devin listing; Devin Cloud unavailable on 13 August and the web app down on 24 September name cloud surfaces this model doesn't use; the rest are degraded-performance incidents (new sessions on 3 September, 'multiple services' on 17 September, Ask Devin on 26 October, automation triggers on 4 November) and session queuing on 10 and 11 August, read as minor and a scheduled Devin Desktop extension marketplace upgrade on 7 August, read as maintenance. One major (10). No rate limit figures for the model or the CLI; usage is a daily and weekly quota with no numbers (0). No 429, backoff or retry guidance for this surface (0). Cognition publishes an SLA (25 February 2026) with uptime and response times that applies when included in an order form, read as a contractual SLA on Enterprise, as on other listings (10). The launch post makes it available today with no preview or beta label (10). 20 + 10 + 0 + 0 + 10 + 10 = 50.",
          "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": 50,
          "b": 55
        }
      }
    ],
    "facts": [
      {
        "a": "Model API",
        "b": "Model API",
        "name": "Kind"
      },
      {
        "a": "Cognition AI, Inc.",
        "b": "SpaceXSI (xAI)",
        "name": "Vendor"
      },
      {
        "a": "no (local only)",
        "b": "https://api.x.ai/v1",
        "name": "Hosted endpoint"
      },
      {
        "a": "",
        "b": "HTTP",
        "name": "Transports"
      },
      {
        "a": "OAuth or key",
        "b": "API key",
        "name": "Auth"
      },
      {
        "a": "Freemium",
        "b": "Pay per use",
        "name": "Pricing"
      },
      {
        "a": "no",
        "b": "no",
        "name": "x402"
      },
      {
        "a": "Proprietary model, used through Devin Desktop and Devin CLI under Cognition's Platform Terms of Service. The weights are not public; Cognition says it is building a programme to share them with industry partners and researchers",
        "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-11-04",
        "b": "2026-11-02",
        "name": "Last release"
      },
      {
        "a": "2026-06-30",
        "b": "2026-10-27",
        "name": "Terms last updated"
      },
      {
        "a": "2026-03-09",
        "b": "2026-10-27",
        "name": "Privacy policy last updated"
      },
      {
        "a": "yes, with an opt-out",
        "b": "yes",
        "name": "Customer content may train models"
      },
      {
        "a": "not found in the text",
        "b": "not found in the text",
        "name": "Terms restrict automated access"
      },
      {
        "a": "yes",
        "b": "not found in the text",
        "name": "Terms restrict benchmarking"
      },
      {
        "a": "not found in the text",
        "b": "not found in the text",
        "name": "Terms or service can change without notice"
      },
      {
        "a": "yes",
        "b": "yes",
        "name": "Arbitration or class-action waiver"
      },
      {
        "a": "none",
        "b": "597 stars, 912k PyPI/wk",
        "name": "Popularity"
      }
    ],
    "faq": [
      {
        "answer": "xAI API (Grok) scores 71.7 (BB) on agent readiness against SWE-2 Flash's 36.4 (F), and leads in 5 of 7 scored categories.",
        "question": "Which is better for AI agents, SWE-2 Flash or xAI API (Grok)?"
      },
      {
        "answer": "SWE-2 Flash takes an API key or an OAuth sign-in. xAI API (Grok) needs an API key.",
        "question": "Do SWE-2 Flash and xAI API (Grok) need an API key?"
      },
      {
        "answer": "No hosted endpoint is listed for SWE-2 Flash. xAI API (Grok) has a hosted endpoint at https://api.x.ai/v1.",
        "question": "Can an agent call SWE-2 Flash and xAI API (Grok) without installing anything?"
      }
    ],
    "goodFor": [
      {
        "aheadOn": null,
        "also": null,
        "goodFor": "People already using Devin Desktop or Devin CLI who want a cheaper, faster model for routine coding work such as automations, reviews and small changes, while it is free in November 2026.",
        "slug": "swe-2-flash",
        "watchFor": "No model API, OpenAPI entry or model card. The Devin API's session agents list SWE-2 but not SWE-2 Flash"
      },
      {
        "aheadOn": [
          "Reliability, 55 against 50",
          "Schema \u0026 documentation, 88 against 29",
          "Agent ergonomics, 90 against 10",
          "Security \u0026 auth, 97 against 53",
          "Maintenance \u0026 community, 77 against 53"
        ],
        "also": [
          "Agent-ready, a grade of BB or better",
          "A hosted endpoint, with nothing to install"
        ],
        "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": null,
    "job": {
      "capability": "inference.llm",
      "name": "LLM inference"
    },
    "others": [
      {
        "json": "https://www.anchorterminal.com/compare/amazon-bedrock-vs-swe-2-flash.json",
        "title": "Amazon Bedrock vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/amazon-bedrock-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Claude API vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/anthropic-api-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Antseed vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/antseed-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Azure OpenAI in Foundry Models vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/azure-openai-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "BlockRun.AI vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/blockrun-ai-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Cerebras Inference vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/cerebras-inference-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Cloudflare AI Gateway vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-swe-2-flash"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-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-swe-2-flash.json",
        "title": "Cloudflare Workers AI vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/cloudflare-workers-ai-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Cohere Chat API (Command models) vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/cohere-chat-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "DeepInfra vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/deepinfra-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "DeepSeek API vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/deepseek-api-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Eden AI vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/eden-ai-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Glimpse vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/elorian-glimpse-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Fireworks AI Inference vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/fireworks-inference-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Gemini Developer API vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/gemini-api-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "GroqCloud vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/groq-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Hugging Face Inference Providers vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/hugging-face-inference-providers-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Inkling 2 Small vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/inkling-2-small-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Jais 3 vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/jais-3-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Meta Model API vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/meta-model-api-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "MiniMax API vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/minimax-api-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Mistral AI API vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/mistral-api-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Muse Spark Open vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/muse-spark-open-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Nemotron 3.5 Super VL vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Novita AI vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/novita-ai-vs-swe-2-flash"
      },
      {
        "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-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-xai-api.json",
        "title": "OpenAI API vs xAI API (Grok)",
        "url": "https://www.anchorterminal.com/compare/openai-api-vs-xai-api"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openrouter-vs-swe-2-flash.json",
        "title": "OpenRouter vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/openrouter-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Prism Inference vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/prism-inference-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Router.com (Ramp Router) vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/ramp-router-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Beam 1.0 vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/reflection-beam-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "RouterPlus vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/routerplus-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "SambaCloud vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/sambanova-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "SiliconFlow vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/siliconflow-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "Simplismart vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/simplismart-vs-swe-2-flash"
      },
      {
        "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-swe-2-flash.json",
        "title": "StepFun API vs SWE-2 Flash",
        "url": "https://www.anchorterminal.com/compare/stepfun-api-vs-swe-2-flash"
      },
      {
        "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-tencent-tokenhub.json",
        "title": "SWE-2 Flash vs Tencent Cloud TokenHub",
        "url": "https://www.anchorterminal.com/compare/swe-2-flash-vs-tencent-tokenhub"
      },
      {
        "json": "https://www.anchorterminal.com/compare/swe-2-flash-vs-together-inference.json",
        "title": "SWE-2 Flash vs Together AI Inference",
        "url": "https://www.anchorterminal.com/compare/swe-2-flash-vs-together-inference"
      },
      {
        "json": "https://www.anchorterminal.com/compare/swe-2-flash-vs-vercel-ai-gateway.json",
        "title": "SWE-2 Flash vs Vercel AI Gateway",
        "url": "https://www.anchorterminal.com/compare/swe-2-flash-vs-vercel-ai-gateway"
      },
      {
        "json": "https://www.anchorterminal.com/compare/swe-2-flash-vs-vertex-ai.json",
        "title": "SWE-2 Flash vs Vertex AI (Gemini Enterprise Agent Platform)",
        "url": "https://www.anchorterminal.com/compare/swe-2-flash-vs-vertex-ai"
      },
      {
        "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": 5,
        "edge": "xai-api",
        "key": "reliability",
        "name": "Reliability",
        "swe-2-flash": 50,
        "weight": 16,
        "xai-api": 55
      },
      {
        "key": "performance",
        "name": "Performance",
        "pending": true,
        "weight": 10
      },
      {
        "by": 59,
        "edge": "xai-api",
        "key": "schema",
        "name": "Schema \u0026 documentation",
        "swe-2-flash": 29,
        "weight": 13,
        "xai-api": 88
      },
      {
        "by": 80,
        "edge": "xai-api",
        "key": "ergonomics",
        "name": "Agent ergonomics",
        "swe-2-flash": 10,
        "weight": 13,
        "xai-api": 90
      },
      {
        "by": 44,
        "edge": "xai-api",
        "key": "security",
        "name": "Security \u0026 auth",
        "swe-2-flash": 53,
        "weight": 14,
        "xai-api": 97
      },
      {
        "by": 0,
        "edge": "",
        "key": "payments",
        "name": "Payments \u0026 pricing",
        "swe-2-flash": 20,
        "weight": 10,
        "xai-api": 20
      },
      {
        "key": "tasks",
        "name": "Task success",
        "pending": true,
        "weight": 10
      },
      {
        "by": 24,
        "edge": "xai-api",
        "key": "maintenance",
        "name": "Maintenance \u0026 community",
        "swe-2-flash": 53,
        "weight": 7,
        "xai-api": 77
      },
      {
        "by": 1,
        "edge": "swe-2-flash",
        "key": "transparency",
        "name": "Transparency \u0026 trust",
        "swe-2-flash": 64,
        "weight": 7,
        "xai-api": 63
      }
    ],
    "summary": "xAI API (Grok) scores 71.7 (BB) on agent readiness against SWE-2 Flash's 36.4 (F), and leads in 5 of 7 scored categories. Both do llm inference.",
    "tasks": null,
    "tutorials": [],
    "verdicts": {
      "swe-2-flash": "A new small coding model from Cognition that anyone can try free in Devin Desktop and Devin CLI until 30 November 2026, with strong vendor-reported coding scores. It has no model API, no published per-token price, context length or model card, and no public weights, so an agent can reach it only by driving Devin's own CLI.",
      "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/swe-2-flash-vs-xai-api",
    "json": "https://www.anchorterminal.com/compare/swe-2-flash-vs-xai-api.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/compare/swe-2-flash-vs-xai-api.md",
    "mcp": "https://www.anchorterminal.com/mcp",
    "slim": "https://www.anchorterminal.com/compare/swe-2-flash-vs-xai-api.min.md"
  },
  "markdown": "xAI API (Grok) scores 71.7 (BB) on agent readiness against SWE-2 Flash's 36.4 (F), and leads in 5 of 7 scored categories. Both do llm inference.\n\n- SWE-2 Flash: grade F, 36.4/100, rank #1388 of 1510. Markdown https://www.anchorterminal.com/tools/swe-2-flash.md · JSON https://www.anchorterminal.com/api/v1/tools/swe-2-flash.json\n- xAI API (Grok): grade BB, 71.7/100, rank #152 of 1510. 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### SWE-2 Flash (F)\n\nGood for: People already using Devin Desktop or Devin CLI who want a cheaper, faster model for routine coding work such as automations, reviews and small changes, while it is free in November 2026.\n\nWatch for: No model API, OpenAPI entry or model card. The Devin API's session agents list SWE-2 but not SWE-2 Flash\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\nAhead on:\n- Reliability, 55 against 50\n- Schema \u0026 documentation, 88 against 29\n- Agent ergonomics, 90 against 10\n- Security \u0026 auth, 97 against 53\n- Maintenance \u0026 community, 77 against 53\n\nAlso in its favour:\n- Agent-ready, a grade of BB or better\n- A hosted endpoint, with nothing to install\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### Agent ergonomics: xAI API (Grok) +80\n\n- SWE-2 Flash (10): Model reading (tool use, structured output, caching, context, batch, SDKs). Tool use is Devin's harness, not something a caller configures; no context length, output limit or cache price is published for SWE-2 Flash (5 of 25). No documented output-size or reasoning controls for this model; SWE-2's effort levels aren't stated for Flash (0 of 20). No model-level error documentation (0 of 20). No idempotency or retry guidance (0 of 20). One flag or picker selects it and `devin -p` runs a single turn and prints to stdout, but there is no SDK or direct endpoint (5 of 15). 5 + 0 + 0 + 0 + 5 = 10.\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### Schema \u0026 documentation: xAI API (Grok) +59\n\n- SWE-2 Flash (29): Model reading. No model API, so no OpenAPI entry; the Devin v3 OpenAPI file lists SWE-2 agents only, and no model card was found (0). docs.devin.ai serves llms.txt and Markdown copies of every page (10). The launch post says what it is for (automations, code review, feature development, documentation) and the CLI docs say when to pick a SWE model, but the models pages don't list SWE-2 Flash yet (6 of 20). No documented model ID, reasoning settings, context or output limits to type (0 of 15). The CLI pages show `--model` and `/model` examples, with no model-specific errors (3 of 15). Named, dated model versions on Cognition's blog and public release notes, but no release note for SWE-2 Flash yet; the newest is 2 November (10 of 15). 0 + 10 + 6 + 0 + 3 + 10 = 29.\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### Security \u0026 auth: xAI API (Grok) +44\n\n- SWE-2 Flash (53): Read as a hosted model reached through Devin's local clients. The CLI signs in through a browser, or the enterprise identity provider, and stores an API token in credentials.toml that by default is persistent and does not expire and carries the user's access, with no scopes found for it (10 of 30). Devin CLI documents an OS-level sandbox with network filtering, hooks that can block tool calls, and enterprise model allowlists and team settings (14 of 20). Guardrails against prompt injection are Enterprise only and cover user messages, as on the devin listing (8 of 15). Enterprise analytics count tool calls and consumption by model and user; no per-user audit log for the CLI was found (8 of 15). SOC 2 Type II and ISO/IEC 27001:2022, a disclosure address, no bug bounty and no security.txt, per the devin listing (13 of 20). Training: self-serve customer data may train Cognition's models by default, with an opt-out on paid plans that also turns on zero data retention at model providers. Cognition withheld the weights over cyber misuse, which is recorded as a fact, not scored. 10 + 14 + 8 + 8 + 13 = 53.\n- xAI API (Grok) (97): Model reading. Team API keys with ACLs per endpoint and per model, QPM and TPM caps, expiry, and create, rotate, disable and delete through the Management API, plus documented mTLS. GitHub secret scanning disables leaked keys and emails the owner (30). The security FAQ says SpaceXSI never trains on API inputs or outputs without explicit permission (20). Requests and responses are kept 30 days for abuse auditing, then deleted, and team admins can switch on zero data retention themselves, confirmed by an `x-zero-data-retention` header on every response (15). Console audit log and a Management API audit-events endpoint, plus optional per-key request logging (15). security.txt valid to 2027-06-29 with a HackerOne bug bounty and a separate safety contact for prompt-injection issues. SOC 2 Type 2 is claimed in the security FAQ with the reports behind an NDA in the trust centre, so 17 of 20. Remote MCP doesn't support `require_approval`, which the model checklist doesn't score but reviewers should see. New in October, a `guidelines` array lets the caller make the model decline nsfw, violence or profanity content, which the checklist doesn't score.\n\n### Maintenance \u0026 community: xAI API (Grok) +24\n\n- SWE-2 Flash (53): Model reading. Released 4 November 2026 (30). Churn and notice in place of release counts: SWE-1.6, SWE-1.7, SWE-1.7 Lightning, SWE-2 (10 September) and now SWE-2 Flash in a few months, with no model deprecation notice period found and short names that move to the newest model (10 of 20). Public release notes and a support address, no public tracker (10 of 25). No official SDK for the model (0 of 15). The docs are kept current but don't yet cover this model (3 of 10). 30 + 10 + 10 + 0 + 3 = 53.\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### Reliability: xAI API (Grok) +5\n\n- SWE-2 Flash (50): Model reading, for the surface it runs on, Devin Desktop and Devin CLI. Status page at www.devinstatus.com (Atlassian Statuspage) with Desktop Agent and Desktop Tab components besides the cloud ones, read on 4 November 2026 (20). The history feed for the 90 days from 6 August lists 'Devin unavailable' for 20 minutes on 13 August with no component named, read as across the board and a major as on the devin listing; Devin Cloud unavailable on 13 August and the web app down on 24 September name cloud surfaces this model doesn't use; the rest are degraded-performance incidents (new sessions on 3 September, 'multiple services' on 17 September, Ask Devin on 26 October, automation triggers on 4 November) and session queuing on 10 and 11 August, read as minor and a scheduled Devin Desktop extension marketplace upgrade on 7 August, read as maintenance. One major (10). No rate limit figures for the model or the CLI; usage is a daily and weekly quota with no numbers (0). No 429, backoff or retry guidance for this surface (0). Cognition publishes an SLA (25 February 2026) with uptime and response times that applies when included in an order form, read as a contractual SLA on Enterprise, as on other listings (10). The launch post makes it available today with no preview or beta label (10). 20 + 10 + 0 + 0 + 10 + 10 = 50.\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## Score by category\n\n| Category | Weight | SWE-2 Flash | xAI API (Grok) | Edge |\n| --- | --- | --- | --- | --- |\n| Reliability | 16% (20 this run) | 50 | 55 | xAI API (Grok) +5 |\n| Performance | 10%, pending | pending | pending | not scored in this run |\n| Schema \u0026 documentation | 13% (16.2 this run) | 29 | 88 | xAI API (Grok) +59 |\n| Agent ergonomics | 13% (16.2 this run) | 10 | 90 | xAI API (Grok) +80 |\n| Security \u0026 auth | 14% (17.5 this run) | 53 | 97 | xAI API (Grok) +44 |\n| Payments \u0026 pricing | 10% (12.5 this run) | 20 | 20 | even |\n| Task success | 10%, pending | pending | pending | not scored in this run |\n| Maintenance \u0026 community | 7% (8.8 this run) | 53 | 77 | xAI API (Grok) +24 |\n| Transparency \u0026 trust | 7% (8.8 this run) | 64 | 63 | SWE-2 Flash +1 |\n| Negative events | ≤15 | -2 | 0 | |\n| **Total** | | **36.4 · F** | **71.7 · BB** | |\n\n## Facts side by side\n\n| Fact | SWE-2 Flash | xAI API (Grok) |\n| --- | --- | --- |\n| Kind | Model API | Model API |\n| Vendor | Cognition AI, Inc. | SpaceXSI (xAI) |\n| Hosted endpoint | no (local only) | `https://api.x.ai/v1` |\n| Transports |  | HTTP |\n| Auth | OAuth or key | API key |\n| Pricing | Freemium | Pay per use |\n| x402 | no | no |\n| Licence | Proprietary model, used through Devin Desktop and Devin CLI under Cognition's Platform Terms of Service. The weights are not public; Cognition says it is building a programme to share them with industry partners and researchers | 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-11-04 | 2026-11-02 |\n| Terms last updated | 2026-06-30 | 2026-10-27 |\n| Privacy policy last updated | 2026-03-09 | 2026-10-27 |\n| Customer content may train models | yes, with an opt-out | yes |\n| Terms restrict automated access | not found in the text | not found in the text |\n| Terms restrict benchmarking | yes | not found in the text |\n| Terms or service can change without notice | not found in the text | not found in the text |\n| Arbitration or class-action waiver | yes | yes |\n| Popularity | none | 597 stars, 912k PyPI/wk |\n\n## Verdicts\n\n**SWE-2 Flash.** A new small coding model from Cognition that anyone can try free in Devin Desktop and Devin CLI until 30 November 2026, with strong vendor-reported coding scores. It has no model API, no published per-token price, context length or model card, and no public weights, so an agent can reach it only by driving Devin's own CLI.\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### SWE-2 Flash\n\n1. There is no endpoint to call. Run Devin CLI single-turn with `devin -p` and pick the model with `--model`; the SWE-2 Flash model ID isn't documented yet, so check `/model` in the CLI first\n2. Don't rely on the short name `swe`. The docs say it resolves to the latest model in the family, which may be SWE-2 rather than SWE-2 Flash\n3. Plan for billing to start on 1 December 2026. The free period covers Devin Desktop and CLI only, not Devin cloud sessions\n4. Treat Cognition's benchmark figures as the vendor's. No independent result for SWE-2 Flash was found\n5. Keep `credentials.toml` private. The token in it doesn't expire by default and carries the signed-in user's access\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, SWE-2 Flash or xAI API (Grok)?\n\nxAI API (Grok) scores 71.7 (BB) on agent readiness against SWE-2 Flash's 36.4 (F), and leads in 5 of 7 scored categories.\n\n### Do SWE-2 Flash and xAI API (Grok) need an API key?\n\nSWE-2 Flash takes an API key or an OAuth sign-in. xAI API (Grok) needs an API key.\n\n### Can an agent call SWE-2 Flash and xAI API (Grok) without installing anything?\n\nNo hosted endpoint is listed for SWE-2 Flash. xAI API (Grok) has a hosted endpoint at https://api.x.ai/v1.\n\n\n## For agents\n\n- This comparison as JSON: https://www.anchorterminal.com/compare/swe-2-flash-vs-xai-api.json, and with the fewest tokens: https://www.anchorterminal.com/compare/swe-2-flash-vs-xai-api.min.md\n- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {\"a\": \"swe-2-flash\", \"b\": \"xai-api\"}`. From a terminal: `anchor compare swe-2-flash xai-api`\n- Each listing in full: https://www.anchorterminal.com/api/v1/tools/swe-2-flash.json and https://www.anchorterminal.com/api/v1/tools/xai-api.json\n\n## Other comparisons with SWE-2 Flash or xAI API (Grok)\n\n- [Amazon Bedrock vs SWE-2 Flash](https://www.anchorterminal.com/compare/amazon-bedrock-vs-swe-2-flash.md)\n- [Amazon Bedrock vs xAI API (Grok)](https://www.anchorterminal.com/compare/amazon-bedrock-vs-xai-api.md)\n- [Claude API vs SWE-2 Flash](https://www.anchorterminal.com/compare/anthropic-api-vs-swe-2-flash.md)\n- [Claude API vs xAI API (Grok)](https://www.anchorterminal.com/compare/anthropic-api-vs-xai-api.md)\n- [Antseed vs SWE-2 Flash](https://www.anchorterminal.com/compare/antseed-vs-swe-2-flash.md)\n- [Antseed vs xAI API (Grok)](https://www.anchorterminal.com/compare/antseed-vs-xai-api.md)\n- [Azure OpenAI in Foundry Models vs SWE-2 Flash](https://www.anchorterminal.com/compare/azure-openai-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/blockrun-ai-vs-swe-2-flash.md)\n- [BlockRun.AI vs xAI API (Grok)](https://www.anchorterminal.com/compare/blockrun-ai-vs-xai-api.md)\n- [Cerebras Inference vs SWE-2 Flash](https://www.anchorterminal.com/compare/cerebras-inference-vs-swe-2-flash.md)\n- [Cerebras Inference vs xAI API (Grok)](https://www.anchorterminal.com/compare/cerebras-inference-vs-xai-api.md)\n- [Cloudflare AI Gateway vs SWE-2 Flash](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-swe-2-flash.md)\n- [Cloudflare AI Gateway vs xAI API (Grok)](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-xai-api.md)\n- [Cloudflare Workers AI vs SWE-2 Flash](https://www.anchorterminal.com/compare/cloudflare-workers-ai-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/cohere-chat-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/deepinfra-vs-swe-2-flash.md)\n- [DeepInfra vs xAI API (Grok)](https://www.anchorterminal.com/compare/deepinfra-vs-xai-api.md)\n- [DeepSeek API vs SWE-2 Flash](https://www.anchorterminal.com/compare/deepseek-api-vs-swe-2-flash.md)\n- [DeepSeek API vs xAI API (Grok)](https://www.anchorterminal.com/compare/deepseek-api-vs-xai-api.md)\n- [Eden AI vs SWE-2 Flash](https://www.anchorterminal.com/compare/eden-ai-vs-swe-2-flash.md)\n- [Eden AI vs xAI API (Grok)](https://www.anchorterminal.com/compare/eden-ai-vs-xai-api.md)\n- [Glimpse vs SWE-2 Flash](https://www.anchorterminal.com/compare/elorian-glimpse-vs-swe-2-flash.md)\n- [Glimpse vs xAI API (Grok)](https://www.anchorterminal.com/compare/elorian-glimpse-vs-xai-api.md)\n- [Fireworks AI Inference vs SWE-2 Flash](https://www.anchorterminal.com/compare/fireworks-inference-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/gemini-api-vs-swe-2-flash.md)\n- [Gemini Developer API vs xAI API (Grok)](https://www.anchorterminal.com/compare/gemini-api-vs-xai-api.md)\n- [GroqCloud vs SWE-2 Flash](https://www.anchorterminal.com/compare/groq-vs-swe-2-flash.md)\n- [GroqCloud vs xAI API (Grok)](https://www.anchorterminal.com/compare/groq-vs-xai-api.md)\n- [Hugging Face Inference Providers vs SWE-2 Flash](https://www.anchorterminal.com/compare/hugging-face-inference-providers-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/inkling-2-small-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/jais-3-vs-swe-2-flash.md)\n- [Jais 3 vs xAI API (Grok)](https://www.anchorterminal.com/compare/jais-3-vs-xai-api.md)\n- [Meta Model API vs SWE-2 Flash](https://www.anchorterminal.com/compare/meta-model-api-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/minimax-api-vs-swe-2-flash.md)\n- [MiniMax API vs xAI API (Grok)](https://www.anchorterminal.com/compare/minimax-api-vs-xai-api.md)\n- [Mistral AI API vs SWE-2 Flash](https://www.anchorterminal.com/compare/mistral-api-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/muse-spark-open-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/novita-ai-vs-swe-2-flash.md)\n- [Novita AI vs xAI API (Grok)](https://www.anchorterminal.com/compare/novita-ai-vs-xai-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 xAI API (Grok)](https://www.anchorterminal.com/compare/openai-api-vs-xai-api.md)\n- [OpenRouter vs SWE-2 Flash](https://www.anchorterminal.com/compare/openrouter-vs-swe-2-flash.md)\n- [OpenRouter vs xAI API (Grok)](https://www.anchorterminal.com/compare/openrouter-vs-xai-api.md)\n- [Prism Inference vs SWE-2 Flash](https://www.anchorterminal.com/compare/prism-inference-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/ramp-router-vs-swe-2-flash.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 SWE-2 Flash](https://www.anchorterminal.com/compare/reflection-beam-vs-swe-2-flash.md)\n- [Beam 1.0 vs xAI API (Grok)](https://www.anchorterminal.com/compare/reflection-beam-vs-xai-api.md)\n- [RouterPlus vs SWE-2 Flash](https://www.anchorterminal.com/compare/routerplus-vs-swe-2-flash.md)\n- [RouterPlus vs xAI API (Grok)](https://www.anchorterminal.com/compare/routerplus-vs-xai-api.md)\n- [SambaCloud vs SWE-2 Flash](https://www.anchorterminal.com/compare/sambanova-vs-swe-2-flash.md)\n- [SambaCloud vs xAI API (Grok)](https://www.anchorterminal.com/compare/sambanova-vs-xai-api.md)\n- [SiliconFlow vs SWE-2 Flash](https://www.anchorterminal.com/compare/siliconflow-vs-swe-2-flash.md)\n- [SiliconFlow vs xAI API (Grok)](https://www.anchorterminal.com/compare/siliconflow-vs-xai-api.md)\n- [Simplismart vs SWE-2 Flash](https://www.anchorterminal.com/compare/simplismart-vs-swe-2-flash.md)\n- [Simplismart vs xAI API (Grok)](https://www.anchorterminal.com/compare/simplismart-vs-xai-api.md)\n- [StepFun API vs SWE-2 Flash](https://www.anchorterminal.com/compare/stepfun-api-vs-swe-2-flash.md)\n- [StepFun API vs xAI API (Grok)](https://www.anchorterminal.com/compare/stepfun-api-vs-xai-api.md)\n- [SWE-2 Flash vs Tencent Cloud TokenHub](https://www.anchorterminal.com/compare/swe-2-flash-vs-tencent-tokenhub.md)\n- [SWE-2 Flash vs Together AI Inference](https://www.anchorterminal.com/compare/swe-2-flash-vs-together-inference.md)\n- [SWE-2 Flash vs Vercel AI Gateway](https://www.anchorterminal.com/compare/swe-2-flash-vs-vercel-ai-gateway.md)\n- [SWE-2 Flash vs Vertex AI (Gemini Enterprise Agent Platform)](https://www.anchorterminal.com/compare/swe-2-flash-vs-vertex-ai.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": "SWE-2 Flash vs xAI API (Grok)",
        "url": ""
      }
    ],
    "description": "xAI scores 71.7 (BB) to SWE-2 Flash's 36.4 (F) for llm inference. Prices, MCP, x402, uptime and agent notes side by side.",
    "facts": [
      "SWE-2 Flash F 36.4",
      "xAI API (Grok) BB 71.7",
      "scores"
    ],
    "h1": "SWE-2 Flash vs xAI API (Grok)",
    "image": "https://www.anchorterminal.com/assets/og/default.png",
    "path": "/compare/swe-2-flash-vs-xai-api",
    "published": "2026-10-01",
    "section": "tools",
    "title": "SWE-2 Flash vs xAI for AI agents in 2026: scores and prices",
    "toc": null,
    "updated": "2026-11-07",
    "url": "https://www.anchorterminal.com/compare/swe-2-flash-vs-xai-api"
  },
  "tokens": {
    "markdown": 6550,
    "slim": 3230
  },
  "version": 1
}
