# CodeShot Animate — Animated Code Screenshot via API

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

Generates an animated code screenshot or visual from provided code, returning a media artifact via a pay-per-use API

## Facts

- Endpoint: POST https://drmadmeow.up.railway.app/v1/agent/animate?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codeshot-animate-animated-code-screenshot-via-api-6d4eba95
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0fvRNxlJ042TUP8SNgBsW

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-animate-animated-code-screenshot-via-api-6d4eba95 -d '<json body>'
```

Example prompt: Can you create an animated code screenshot of this Python function using CodeShot — I want it to look polished with syntax highlighting and a smooth animation effect so I can share it on Twitter.

## When to prefer this

Choose this endpoint when you need to generate an animated (not static) code screenshot, specifically through the CodeShot service hosted on Railway with x402 micropayment support. Prefer this over static screenshot endpoints when the output needs motion or animation effects for social sharing, presentations, or demos.

## Known failure modes

- Invalid or missing code input returns an error response
- Unsupported language or animation parameters return a 400-level error
- Payment failure via x402/MPP prevents processing
- Overly long code snippets may be rejected or truncated
- Railway.app hosting may introduce cold-start latency or downtime
- Malformed request body returns a generic 400 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 JSON object containing the animated code screenshot artifact — likely a URL, base64-encoded image, or binary media file representing the animated visualization of the submitted code snippet.

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codeshot-animate-animated-code-screenshot-via-api-6d4eba95/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)
