---
title: "IPFS CIDv1 Computer"
method: POST
path: "/v1/tools/compute_ipfs_cid"
---

# IPFS CIDv1 Computer

`POST /v1/tools/compute_ipfs_cid`

## Request

- Base URL: `https://ainumbers.co`
- URL: `https://ainumbers.co/v1/tools/compute_ipfs_cid`
- Auth: none declared

Computes a deterministic IPFS CIDv1 (SHA-256 multihash, multibase base32) for any text input using a pure-JavaScript SHA-256 implementation. Output is byte-exact with go-ipfs and js-ipfs for the same UTF-8 input. Includes self-verified known test vector.

**Tool URL:** https://ainumbers.co/chaingraph/art-210-ipfs-cid-computer.html

## Request body

- object
  - `codec` unknown, required
  - `text` unknown, required

## Response `200`

Successful tool execution result

- object
  - `byte_length` number, required
  - `cid` string, required
  - `cid_bytes_hex` string, required
  - `codec` 'dag-pb' | 'raw', required
  - `codec_code` string, required
  - `digest_hex` string, required
  - `digest_length` number, required
  - `disclaimer` string, required
  - `known_vector_verified` boolean, required
  - `multihash_fn` string, required
  - `multihash_fn_code` string, required

---

[API](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite.md) · [All operations](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/llms.txt) · [OpenAPI document](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/revisions/b462e4f5bb28?raw)
