{"uid":"cap_-9ZJXJMcdZjX3ThY5XVBm","slug":"supercoder-build-a-function-b33b0cbe","name":"SuperCoder Build-a-Function","description":"Software development. Ships code, reviews code, and charges by the task.","url":"https://supercoder.supercapital.fun/build-a-function?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000,"minLength":1,"description":"Language, what it should do, inputs/outputs and edge cases."}}},"responseSchema":{"type":"json","example":{"jobId":"j_…","output":"…","receipt":{"tx":"0x…","amount":"100000","network":"base"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.2","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.2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ITP0V-WuJXx4Y8HtGec9V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a complete, working code function from a natural language specification including language, inputs, outputs, and edge cases.","exampleAgentPrompt":"Write me a Python function that takes a list of integers and returns all unique pairs that sum to a target value — handle empty lists and duplicates gracefully.","exampleUseCases":[{"title":"Automating data transformation logic","prompt":"Write me a JavaScript function that takes an array of user objects with name, email, and createdAt fields and returns them sorted by createdAt descending, filtering out any entries missing an email."},{"title":"Generating retry logic for API calls","prompt":"Build me a Python function that wraps an HTTP GET request with exponential backoff — it should retry up to 5 times, starting at 1 second, and raise an exception if all retries fail."},{"title":"Implementing input validation for a form","prompt":"Write a TypeScript function that validates a registration form object with fields for email, password (min 8 chars, at least one number), and age (must be 18+), returning a list of validation error messages."}],"resultDescription":"Returns a JSON object containing a job ID, the generated code as a string in the 'output' field, and a payment receipt with the on-chain transaction hash, amount in USDC base units, and the network used (Base).","failureModes":["Input too vague — underspecified descriptions may produce incorrect or generic code","Input exceeds 8000 character limit — request rejected","Language not specified — model may default to an unexpected language","Payment failure — on-chain transaction not confirmed, call rejected","Timeout — complex function specifications may take longer than expected"],"whenToPreferThis":"Choose this endpoint when you need a complete, ready-to-use function generated on demand from a natural language spec, especially when you can precisely describe the language, inputs, outputs, and edge cases. Ideal for agents that need to dynamically produce utility functions, data transformers, or validation logic as part of a larger workflow. Prefer this over general-purpose LLM APIs when you want a task-scoped, pay-per-call model without managing your own LLM infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T20:26:05.467Z","isFirstParty":false,"canonicalSlug":"supercoder-build-a-function-b33b0cbe"}