{"uid":"cap_DUpN9krWbIj4rIMxDbq1Q","slug":"codeshot-agent-preview-code-screenshot-generator-b27dd56d","name":"CodeShot Agent Preview — Code Screenshot Generator","description":"Beautiful code screenshots and web tools via API. Pay-per-use for AI agents via x402 and MPP.","url":"https://drmadmeow.up.railway.app/v1/agent/preview?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yapHBtqATkK7oqlA7irbY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a beautiful screenshot preview of code for use by AI agents, billed per-use via x402 micropayments","exampleAgentPrompt":"Can you make a beautiful screenshot of this Python function for me? Use a dark theme and make it look clean enough to share on Twitter:\n\ndef greet(name):\n    return f'Hello, {name}!'","exampleUseCases":[{"title":"Social media code snippet sharing","prompt":"I'm posting a JavaScript tip on Twitter and want to make it look professional. Can you create a beautiful screenshot of this code snippet with a dark theme and syntax highlighting?\n\nconst fetchData = async (url) => {\n  const response = await fetch(url);\n  return response.json();\n};"},{"title":"Technical blog post code examples","prompt":"I'm writing a blog post about React hooks and need visually polished code images for three different examples. Can you generate a styled screenshot of this component that looks great for publication?\n\nfunction Counter() {\n  const [count, setCount] = useState(0);\n  return <button onClick={() => setCount(count + 1)}>{count}</button>;\n}"},{"title":"Documentation and presentation visuals","prompt":"I'm building API documentation and need to showcase some error handling patterns. Can you turn this Python code into a pretty screenshot image with a clean, modern look that I can embed in my docs?\n\ntry:\n    result = api.call(endpoint)\nexcept APIError as e:\n    logger.error(f'API failed: {e}')\n    return handle_gracefully()"}],"resultDescription":"Returns an object containing the rendered screenshot image (likely as a URL, base64, or binary blob) of the submitted code, styled with syntax highlighting and visual formatting suitable for sharing or embedding.","failureModes":["Invalid or missing code content returns an error object","Unsupported language or theme parameter may result in a default fallback or error","Payment failure via x402 returns 402 status before processing","Large or complex code snippets may time out or be truncated","Malformed request body returns validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to produce a visually polished, shareable image of a code snippet — for blog posts, social media, documentation, or presentations. It is pay-per-use with no subscription required, making it ideal for low-volume or on-demand agent workflows. Prefer this over server-side rendering pipelines when you need a quick, hosted screenshot solution with minimal setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:40:30.854Z","isFirstParty":false,"canonicalSlug":"codeshot-agent-preview-code-screenshot-generator-b27dd56d"}