{"uid":"cap_4yDXznqqDh-wuG-JrAzaE","slug":"delx-commerce-seeded-multivariate-assignment-0b9ed32a","name":"Delx Commerce — Seeded Multivariate Assignment","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-multivariate-assignment?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Multivariate Assignment; used only for this bounded calculation and processed in memory without retention."},"subject":{"type":"string","maxLength":8192,"description":"Subject supplied to Seeded Multivariate Assignment; used only for this bounded calculation and processed in memory without retention."},"weights":{"type":"array","items":{"type":"number"},"maxItems":256,"description":"Weights supplied to Seeded Multivariate Assignment; used only for this bounded calculation and processed in memory without retention."},"variants":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Variants supplied to Seeded Multivariate Assignment; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"index":2,"variant":"copy-b"},"schema":"delx/util-seeded-multivariate-assignment/v1","status":"pass","evidence":{"retained":false,"input_sha256":"d4cc54b28dc2c9127391313e2d1f0fdfeb7409cb441c2107a91ae423c62cc39c","external_calls":0},"operation":"seeded_decision:seeded_multivariate_assignment"}},"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_Z6gW_bVqnwLbF2CDiNlg4","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 assigns a subject to one of N weighted variants using a seed, returning the selected variant and its index with cryptographic evidence of no data retention.","exampleAgentPrompt":"For user ID 'user-8821', use seed 'exp-launch-v3' and assign them to one of three variants — 'control', 'copy-a', 'copy-b' — with weights 50, 25, 25.","exampleUseCases":[{"title":"A/B test headline assignment","prompt":"I need to assign visitor 'session-4492' to one of two landing page headlines — 'Save More Today' or 'Start Saving Now' — with equal 50/50 weights, using seed 'homepage-headline-test-q2'."},{"title":"Weighted feature flag rollout","prompt":"Roll out a new checkout flow to users — assign user 'acct-9901' to either 'legacy', 'beta', or 'new' with weights 60, 30, 10 using seed 'checkout-rollout-may'."},{"title":"Reproducible content personalization","prompt":"Assign customer 'cust-1123' to one of three email subject lines — 'Your deal is waiting', 'Don't miss out', 'Exclusive offer inside' — with weights 40, 35, 25 and seed 'email-campaign-june-wk2', and make sure the same customer always gets the same variant."}],"resultDescription":"Returns a JSON object with the selected variant name and its index in the variants array, plus cryptographic evidence including an SHA-256 hash of the input and confirmation that no data was retained and zero external calls were made. The schema identifier and operation name are also included for auditability.","failureModes":["Mismatched variants and weights array lengths causing validation error","Weights summing to zero leading to undefined selection","Seed or subject strings exceeding 8192 character limit","Variants array exceeding 256-item limit causing rejection","Payment failure over x402 protocol blocking the request","Malformed JSON body returning a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need deterministic, reproducible variant assignment — i.e. the same seed+subject combination must always yield the same variant — without storing any user data server-side. It is ideal for AI agents running experiments or feature flag logic that require verifiable, auditable decisions with cryptographic proof of no retention. Prefer it over stateful experimentation platforms when zero data retention and pay-per-call billing (no subscription) are priorities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:41:08.130Z","isFirstParty":false,"canonicalSlug":"delx-commerce-seeded-multivariate-assignment-0b9ed32a"}