# Animica Python Cloud Function Runner

> Animica Python Cloud Function Runner is a paid API for AI agents from animica.dev, paid per call via x402, $0.0036/call, status unknown (last checked 2026-09-15).

Executes a published Python function on Animica's cloud by slug, passing a JSON payload and returning the function's output

## Facts

- Endpoint: POST https://animica.dev/x402/run
- Price: $0.0036/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/animica-python-cloud-function-runner-2aacc144
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5GwZPKa5qJh6iFaHYfgl8

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 animica-python-cloud-function-runner-2aacc144 -d '<json body>'
```

Example prompt: Run the Animica cloud function with slug 'image-resizer' and pass it this payload: {"url": "https://example.com/photo.jpg", "width": 800, "height": 600}.

## When to prefer this

Choose this endpoint when you need to execute a specific, already-published Python function on the Animica marketplace by its catalog slug. It is ideal when a developer has deployed a specialized computation, transformation, or AI pipeline to animica.dev and you want to invoke it on demand with a custom payload, paying per call via x402 micropayment. Prefer this over general serverless platforms when you want access to the Animica function catalog and its pay-per-use monetization model, or when integrating with other Animica services like scheduled workers or free AI.

## Known failure modes

- Invalid or unknown slug — function not found in catalog
- Payload missing required fields expected by the function
- Function runtime error — the deployed Python code throws an exception
- Payment failure — x402 micropayment not settled, call rejected
- Malformed payload — non-JSON or schema mismatch
- Rate limiting or quota exceeded for the caller
- Function timeout — long-running computation exceeds allowed execution time

## How this service works

Animica Python Cloud: deploy a Python function to animica.dev, get a public endpoint, and earn ANM every time someone runs it. Free AI (OpenAI-compatible, no key), free scheduled Workers, and an 80/20 developer split.

## Output

Returns a JSON object containing the output produced by the executed Python function. The shape of the response depends entirely on what the specific published function returns — it could be a computed value, a transformed dataset, a model prediction, or any other JSON-serializable result.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "slug": {
   "type": "string",
   "description": "app slug of a published function, from GET /x402/run/catalog"
  },
  "payload": {
   "type": "object",
   "description": "JSON passed to the function as its input"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/animica-python-cloud-function-runner-2aacc144/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from animica.dev](https://www.zero.xyz/host/animica.dev/llms.txt)
