{"uid":"cap_R12N1MrA3AuXY5rGmIz_F","slug":"delx-commerce-random-choice-api-7020081c","name":"Delx Commerce Random Choice API","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/random-choice?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{}},"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_ZQoql0Q3VKscSe9gfaIUv","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":"Randomly selects one item from a provided set of options, returning a single chosen value via pay-per-result API with USDC micropayment.","exampleAgentPrompt":"Randomly pick one option from this list for me: ['pizza', 'sushi', 'tacos', 'burgers'] — just give me one result.","exampleUseCases":[{"title":"Random winner selection from entries","prompt":"I have a list of contest entries — ['Alice', 'Bob', 'Carol', 'Dave', 'Eve'] — pick one winner at random for me."},{"title":"Random daily task assignment","prompt":"Randomly assign today's team standup facilitator from this list: ['Jordan', 'Morgan', 'Taylor', 'Riley']."},{"title":"Random A/B variant selection","prompt":"I need to randomly pick one variant for a user experiment — choose from ['variant_control', 'variant_A', 'variant_B'] and tell me which one was selected."}],"resultDescription":"A JSON object containing the randomly selected item from the provided input set. The response reflects one chosen element from the options passed in the request body.","failureModes":["Empty or missing input body returns a validation error","Malformed JSON body causes a 400 bad request","Payment failure or insufficient USDC balance blocks the call via x402 protocol","Input not conforming to required schema (missing 'input' or 'output' fields) returns an error","Non-POST method returns method-not-allowed"],"whenToPreferThis":"Choose this endpoint when you need a verifiable, pay-per-use random selection with no signup or API key — ideal for AI agents that require transparent micropayment accountability (USDC on Base or Solana) and need to make one-off random choices programmatically without managing a subscription or rate limit.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:57.910Z","isFirstParty":false,"canonicalSlug":"delx-commerce-random-choice-api-7020081c"}