{"uid":"cap_nNhHJca-t7h-kzpsylTRL","slug":"codeshot-diff-screenshot-api-7335b76a","name":"CodeShot Diff Screenshot API","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/diff","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VQYyF4tmpZexfqnpPvIt9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders a code diff as a beautiful, styled screenshot image via API","exampleAgentPrompt":"Generate a beautiful screenshot of this code diff — the old version removes `console.log(err)` and the new version adds `logger.error(err, { context: 'auth' })` — use a dark theme and show it as a side-by-side comparison.","exampleUseCases":[{"title":"Shareable PR diff for social","prompt":"I just shipped a refactor that replaces our old fetch calls with async/await — can you turn that git diff into a beautiful styled screenshot I can post on Twitter? Use a dark theme and make it look clean."},{"title":"Documentation code change visual","prompt":"I'm writing a migration guide and need a polished before/after image showing how the old `connect()` function was replaced with the new `createClient()` API. Generate a styled screenshot of that diff I can drop into the docs."},{"title":"Pull request preview image","prompt":"For my pull request description, create a visual screenshot of the diff where we removed the deprecated `_.extend` call and replaced it with the native `Object.assign` — something that reviewers can glance at without reading raw text."}],"resultDescription":"Returns a rendered image (URL or binary) showing the code diff in a visually styled format with syntax highlighting and diff markers, suitable for sharing in documentation, social media, or PRs.","failureModes":["Invalid or malformed diff input returns an error","Unsupported programming language may fall back to plain text highlighting","Payment failure via x402 results in 402 response before processing","Large diffs may timeout or be truncated","Missing required code fields returns a validation error"],"whenToPreferThis":"Use this endpoint when you need to visually communicate code changes in a polished, shareable format — for PR previews, documentation screenshots, social posts about code, or any scenario where a raw text diff is insufficient and a styled image is preferred.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:34:26.835Z","isFirstParty":false}