# Craft & Maker Calc – Stitch Count for Area

> Craft & Maker Calc – Stitch Count for Area is a paid API for AI agents from craft-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Calculates the number of stitches and rows needed to cover a given width and height based on your stitch and row gauge, plus total stitch count.

## Facts

- Endpoint: GET https://craft-calc.x402tookit.com/stitch-count-area?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/craft-maker-calc-stitch-count-for-area-19ce0ac7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DMrCg_NKvvMahud1G-ILq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability craft-maker-calc-stitch-count-for-area-19ce0ac7
```

Example prompt: I'm knitting a scarf that should be 6 inches wide and 60 inches long — my gauge is 5 stitches per inch and 7 rows per inch. How many stitches do I need to cast on and how many rows will I knit?

## When to prefer this

Use this endpoint when you need to determine how many stitches to cast on and how many rows to work for a knitting or crochet project given a target finished size and your personal gauge. Ideal for pattern-agnostic stitch planning where you know your gauge and your desired dimensions. Prefer over manual calculation or generic calculators when you also need the repeat-multiple rounding feature for stitch patterns.

## Known failure modes

- Missing required query parameters (widthInches, heightInches, stitchesPerInch, rowsPerInch) returns an error
- Non-numeric or zero/negative values for gauge or dimensions may return an error or nonsensical result
- Payment failure (x402 flow) if USDC balance is insufficient or wallet not configured
- Extremely large dimensions or very small gauge values may produce very large stitch counts but should still compute correctly

## How this service works

Stitches and rows needed to cover a width and height at your stitch and row gauge, with total stitches.

## Output

Returns stitches (rounded), rows (rounded), exact stitch count, exact row count, total stitches, actual width and height in inches after rounding, and optional rounding metadata. If a repeat multiple is provided, stitches are rounded up to the nearest multiple.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "widthInches",
      "heightInches",
      "stitchesPerInch",
      "rowsPerInch"
     ],
     "properties": {
      "rowsPerInch": {
       "type": "number",
       "description": "Your row gauge (rows per inch)"
      },
      "widthInches": {
       "type": "number",
       "description": "Finished width in inches"
      },
      "heightInches": {
       "type": "number",
       "description": "Finished height in inches"
      },
      "repeatMultiple": {
       "type": "integer",
       "description": "Round the stitch count to a multiple of this, for stitch patterns (default 1)"
      },
      "stitchesPerInch": {
       "type": "number",
       "description": "Your stitch gauge (stitches per inch)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "rows": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "stitches": {
       "type": [
        "null",
        "number"
       ]
      },
      "rowsExact": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "stitchesExact": {
       "type": [
        "null",
        "number"

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/craft-maker-calc-stitch-count-for-area-19ce0ac7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from craft-calc.x402tookit.com](https://www.zero.xyz/host/craft-calc.x402tookit.com/llms.txt)
