# CodeShot Annotate — Code Annotation Screenshot API

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

Generates a beautifully styled, annotated screenshot image of code via a POST API call, pay-per-use for AI agents.

## Facts

- Endpoint: POST https://drmadmeow.up.railway.app/v1/agent/annotate
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codeshot-annotate-code-annotation-screenshot-api-e1e7cb11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rS7gMFy5hyuPY1CueAgXi

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-annotate-code-annotation-screenshot-api-e1e7cb11 -d '<json body>'
```

Example prompt: Can you create a beautiful annotated screenshot of this Python function for me — with syntax highlighting and a dark theme — so I can share it on Twitter? Here's the code: `def greet(name): return f'Hello, {name}!'`

## When to prefer this

Choose this endpoint when an AI agent needs to produce a visually polished, annotated screenshot of a code snippet — for sharing on social media, in documentation, or in tutorials — rather than just syntax-highlighted plain text or a raw image capture.

## Known failure modes

- Invalid or missing code input returns an error object
- Unsupported language or annotation format returns a descriptive error
- Payment failure via x402/MPP results in a 402 Payment Required response
- Malformed request body results in a 400 Bad Request
- Service unavailability on Railway hosting returns a 503 or timeout

## 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 image object (likely base64-encoded or a URL) representing a styled, annotated screenshot of the submitted code snippet, suitable for sharing or embedding in documentation.

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codeshot-annotate-code-annotation-screenshot-api-e1e7cb11/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)
