{"uid":"cap_xEbz3Q0pcztlBOBVHIzcx","slug":"24k-labs-ai-automation-script-generator-0c1d29fc","name":"24K Labs AI Automation Script Generator","description":"A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.","url":"https://api.24klabs.ai/api/automation-script","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string","description":"Primary input content"},"context":{"type":"string","description":"Optional context or instructions"},"language":{"type":"string","description":"Programming language (code services)"}}},"responseSchema":{"type":"json","example":{"model":"claude-sonnet-4-5","result":"#!/usr/bin/env python3\nimport watchdog, smtplib...","tokens_used":530}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.35","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.35/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cxJKjSSMrBF_zAfZXuucA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.35","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates automation scripts (e.g. Python, Bash) from a description or code input, powered by Claude Sonnet, billed per request in USDC on Base L2","exampleAgentPrompt":"Write me a Python automation script that monitors a folder for new CSV files and sends an email alert whenever one appears — pay per request, no API key needed.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the generated automation script as a string (e.g. a complete Python or Bash script), the model used (claude-sonnet-4-5), and the number of tokens consumed in the request.","failureModes":["Missing or empty 'code' field may result in a vague or unusable script output","Unsupported or misspelled 'language' value may cause the model to default to Python","Overly vague context may produce a generic script that does not match the desired automation","Payment failure via x402/USDC on Base L2 will block the request entirely","Rate limiting or model unavailability may cause intermittent 500 errors"],"whenToPreferThis":"Choose this endpoint when you need a ready-to-run automation script generated on demand without subscribing to a platform or managing API keys — ideal for agents that need pay-as-you-go code generation billed in USDC on Base L2. Best for file monitoring, scheduled tasks, notification pipelines, and other scripted automation tasks where Claude Sonnet's code generation quality is preferred.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:49:50.156Z","isFirstParty":false}