# CodeShot Diff Screenshot API

> CodeShot Diff Screenshot API is a paid API for AI agents from drmadmeow.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Renders a code diff as a beautiful, styled screenshot image via API

## Facts

- Endpoint: POST https://drmadmeow.up.railway.app/v1/agent/diff
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codeshot-diff-screenshot-api-7335b76a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nNhHJca-t7h-kzpsylTRL

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability codeshot-diff-screenshot-api-7335b76a -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Beautiful code screenshots and web tools via API. Pay-per-use for AI agents via x402 and MPP.

## Output

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.

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codeshot-diff-screenshot-api-7335b76a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from drmadmeow.up.railway.app](https://www.zero.xyz/host/drmadmeow.up.railway.app/llms.txt)
