Multipart Byte Plan
Plan contiguous half-open byte ranges for multipart transfer with caller-supplied part limits and optional alignment.
Custom requests cost 0.04 USDC on Base.
Download example JSON · OpenAPI · Source and usage
Pay with a browser wallet · Open example in checkout
POST a JSON request to /multipart-byte-plan/v1/check with an x402 V2 client.
Worked example
Request
{
"total_bytes": 40,
"min_regular_bytes": 8,
"max_part_bytes": 16,
"preferred_bytes": 8,
"alignment_bytes": 4,
"max_parts": 3
}Result
{
"total_bytes": 40,
"regular_part_bytes": 12,
"parts": [
{
"number": 1,
"start": 0,
"end": 12,
"bytes": 12
},
{
"number": 2,
"start": 12,
"end": 24,
"bytes": 12
},
{
"number": 3,
"start": 24,
"end": 40,
"bytes": 16
}
]
}Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter