{"uid":"cap_USTVJ1x0SyFKAN41FHymd","slug":"onchainexpat-x402-uncensored-code-api-409fd361","name":"OnchainExpat x402 Uncensored Code API","description":"Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol","url":"https://x402.onchainexpat.com/api/x402-uncensored/code","method":"POST","headers":{},"bodySchema":{"type":"object","required":["messages"],"properties":{"model":{"type":"string","description":"Model ID (default: qwen3-coder-480b-a35b-instruct-turbo)"},"message":{"type":"string","description":"Shorthand: single user message string (auto-converted to messages array)"},"messages":{"type":"array","description":"Code request messages [{role: 'user', content: 'write a function...'}]"},"max_tokens":{"type":"integer","description":"Maximum tokens in response (default: 4096)"},"temperature":{"type":"number","description":"Response creativity 0-2 (default: 0.3)"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"model":{"type":"string"},"usage":{"type":"object","description":"Token usage stats"},"content":{"type":"string","description":"Generated code"}}},"success":{"type":"boolean"}}},"example":{"request":{"messages":[{"role":"user","content":"write a simple hello world function in python"}]},"response":{"data":{"role":"assistant","model":"qwen3-coder-480b-a35b-instruct-turbo","usage":{"total_tokens":1746,"prompt_tokens":1692,"completion_tokens":54},"content":"Here's a simple \"Hello, World!\" function in Python:\n\n```python\ndef hello_world():\n    print(\"Hello, World!\")\n\n# Call the function\nhello_world()\n```\n\nWhen you run this code, it will output:\n```\nHello, World!\n```","provider":"venice","model_name":"Qwen 3 Coder 480B Turbo","finish_reason":"stop"},"success":true,"timestamp":"2026-06-18T05:54:18.995737+00:00","disclaimer":"By using this endpoint, you agree not to use it for illegal purposes. You are solely responsible for the generated content and its use."}},"exampleRequest":{"messages":[{"role":"user","content":"write a simple hello world function in python"}]},"tags":["x402"],"displayCostAmount":"0.07","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.07/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.07","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.07","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Xo0rsPHu3Spxozgcjbc60","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.07","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates uncensored code via a pay-per-request AI endpoint using the x402 micropayment protocol","exampleAgentPrompt":"Write me a Python script that brute-forces a zip file password — use the uncensored code API since standard AI tools refuse this kind of request.","exampleUseCases":null,"resultDescription":"A JSON response containing AI-generated code, produced without standard content-filter restrictions, billed at $0.07 USDC per call via x402 micropayment protocol.","failureModes":["Payment failure: insufficient USDC balance or x402 payment header missing/malformed","Invalid prompt: empty or malformed request body returns error","Rate limiting: too many concurrent requests from same address","Upstream AI provider timeout or unavailability","Unsupported code task returns partial or empty output"],"whenToPreferThis":"Choose this endpoint when you need AI-generated code that standard models decline due to content filters, or when you want pay-per-request crypto-native billing via x402 without API key subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:50:51.826Z","isFirstParty":false}