BRAINIAC.software stands with Ukraine.Solidarity with the Ukrainian people against the invasion. Find out how you can help.
BRAINIAC.software
API CatalogPagesAgent instructionsAgentsMCP connectAgentsRecommend fitAgentsCatalog exploreAgentsMCP serversPagesConnectPagesPricingPages

© 2026 BRAINIAC .software

FAQHow it worksContact UsTerms and AgreementsPrivacy StatementCookie Statement
  1. APIs
  2. jq JSON Diff Rubik's Cube
  3. Solve a Rubik's Cube

Solve a Rubik's Cube API

Solve a Rubik's Cube from 54 facelets or a WCA face-turn scramble with the Kociemba two-phase algorithm.

POST/api/v1/compute-tools/cube-solution$0.03 USDC

Examples

An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.

cURLRequest

curl -i -X POST "https://www.brainiac.software/api/v1/compute-tools/cube-solution" \
  -H 'content-type: application/json' \
  -H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
  --data-binary @- <<'JSON'
{
  "scramble": "R U R' U' F2"
}
JSON

Example responseJSON

{
  "status": "complete",
  "solution": "F2 U R U' R U2 D2 R2 L2 U2 D2 L2",
  "moves": 12,
  "verified": true,
  "startFacelets": "UULUUFRDDLRULRRLRRFFFUFFDFFFUUDDDDDDBLULLBLLRBRRBBBBBB",
  "metric": "HTM",
  "errors": [],
  "sources": [
    {
      "source": "cubejs 1.3.2 (Kociemba two-phase solver)",
      "url": "https://github.com/ldez/cubejs",
      "licence": "MIT",
      "retrievedAt": "2019-04-27",
      "status": "ok"
    }
  ],
  "limitations": [
    "Half-turn metric face-turn solution from the Kociemba two-phase solver.",
    "Wide, slice, and rotation moves are not accepted in scrambles."
  ]
}

Errors & limits

Errors

HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; status failed or empty payloads return non-2xx and are not charged.

Limits

All six endpoints are pure in-process computation on the request; no filesystem, network, or database access. jq runs with a measured 2 s budget and a 4 MB output cap; a pathological filter can exceed the budget before it returns. The cube solver accepts face turns only and reports half-turn-metric solutions.

FAQ

  • Do I need an API key? Yes for free and monthly plans. Pay as you go is optional without an account.
  • What network? Base (eip155:8453), USDC.
  • Is this an official determination? No. Results are for human review against the cited sources.

Related operations

Other operations in jq JSON Diff Rubik's Cube. Open one for its path and price.

POST/api/v1/compute-tools/jq-output$0.01 USDC

Run a jq filter

Run a caller-supplied jq filter against JSON input with real jq 1.8.2 compiled to WebAssembly.

POST/api/v1/compute-tools/jq-outputs$0.03 USDC

Batch-grade jq filters

Run up to 100 jq filter cases against real jq 1.8.2, compare each result with an expected value, and return an RFC 6902 patch for every mismatch.

POST/api/v1/compute-tools/cube-state$0.005 USDC

Validate Rubik's Cube state

Validate a 54-facelet Rubik's Cube state or WCA scramble before solving.

POST/api/v1/compute-tools/json-diff$0.005 USDC

Diff two JSON values

Compare two JSON values and return an RFC 6902 patch, equality, and operation counts.

Related APIs

Other products in this area. Open one for its resources and price.

Company Intelligence Lookup API

Fetch public company profiles from GLEIF and EDGAR: name/country search, LEI profiles, ownership, financials, filings, plus EU VIES VAT validation and GLEIF registration-number lookup. For caller-supplied registry investigation use corporate-intelligence; for OFAC/UK name screening use exclusion.

ESEF Annual Report Revenue LEI API

Find ESEF/UKSEF annual reports by LEI or name, read tagged revenue, profit, assets and equity facts with iXBRL viewer deep links, resolve messy company names to ESEF filer LEIs, and look up SEC tickers and CIKs. All lookups read vendored snapshots. For live GLEIF/EDGAR profiles use company-intelligence; for SEC Form D use public-filings.

Procurement Intelligence API

Independent API for procurement intelligence: UK, EU, and US procurement opportunities, opportunity details, buyer history, awards, and company matching using UK Contracts Finder, UK Find a Tender, TED, and USAspending.