{"uid":"cap_-VlCTU7k1rqosLsqqAGi9","slug":"delx-commerce-seeded-balanced-groups-a1930df2","name":"Delx Commerce — Seeded Balanced Groups","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/seeded-balanced-groups?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Balanced Groups; used only for this bounded calculation and processed in memory without retention."},"items":{"type":"array","items":{"type":"integer"},"maxItems":256,"description":"Items supplied to Seeded Balanced Groups; used only for this bounded calculation and processed in memory without retention."},"group_count":{"type":"integer","description":"Group Count supplied to Seeded Balanced Groups; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"groups":[[3,6,5],[2,1],[7,4]]},"schema":"delx/util-seeded-balanced-groups/v1","status":"pass","evidence":{"retained":false,"input_sha256":"5e73677b9e39056c1e2a57b5393da0a22a4c5722d878e5d471fb8ea36275c80d","external_calls":0},"operation":"seeded_decision:seeded_balanced_groups"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OMA4OjYwBR8ckhKyyTJHG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deterministically splits a list of integers into balanced groups using a seed for reproducible, verifiable partitioning.","exampleAgentPrompt":"Split the items [1, 2, 3, 4, 5, 6, 7] into 3 balanced groups using the seed 'experiment-42' — I need the same grouping every time I run it.","exampleUseCases":[{"title":"Reproducible A/B/C test assignment","prompt":"I have user IDs [101, 102, 103, 104, 105, 106] and I need to split them into 2 balanced test groups using the seed 'ab-test-2024' so the assignment stays consistent across runs."},{"title":"Fair team drafting for a game","prompt":"We have players numbered 1 through 8 and need to split them into 4 balanced teams — use the seed 'draft-night-finals' so everyone agrees the split was fair and reproducible."},{"title":"Workload distribution across agents","prompt":"I have tasks numbered 0 to 11 that need to be evenly distributed across 3 worker agents. Use the seed 'batch-job-20250601' to partition them deterministically so I can replay the same assignment later."}],"resultDescription":"Returns a JSON object containing: groups (an array of arrays, each holding the integer items assigned to that group), the operation schema identifier, a status of 'pass', and an evidence object with a SHA-256 hash of the input, a flag confirming no data was retained, and a count of external calls made (always 0). The result is deterministic for a given seed and input.","failureModes":["Invalid or missing group_count (e.g. zero or negative) may cause an error response","Exceeding the 256-item limit on the items array will be rejected","Seed string exceeding 8192 characters will be rejected","Non-integer values in the items array will fail schema validation","Payment failure via x402 will prevent the computation from running"],"whenToPreferThis":"Choose this endpoint when you need deterministic, reproducible, verifiable partitioning of integer IDs or indices into balanced groups — especially when auditability matters (the SHA-256 input hash and no-retention evidence make the result verifiable). It is ideal for agents that need fair assignment (teams, workloads, experiment buckets) where the same seed must always produce the same split. It is not suitable for partitioning non-integer items or when you need weighted/unbalanced groups.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:41:08.127Z","isFirstParty":false,"canonicalSlug":"delx-commerce-seeded-balanced-groups-a1930df2"}