# CodeShot Agent Preview — Code Screenshot Generator

> CodeShot Agent Preview — Code Screenshot Generator is a paid API for AI agents from drmadmeow.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Generates a beautiful screenshot preview of code for use by AI agents, billed per-use via x402 micropayments

## Facts

- Endpoint: POST https://drmadmeow.up.railway.app/v1/agent/preview?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codeshot-agent-preview-code-screenshot-generator-b27dd56d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DUpN9krWbIj4rIMxDbq1Q

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-agent-preview-code-screenshot-generator-b27dd56d -d '<json body>'
```

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

def greet(name):
    return f'Hello, {name}!'

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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

## Output

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.

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codeshot-agent-preview-code-screenshot-generator-b27dd56d/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)
