# Animica Video Generation & Editing API

> Animica Video Generation & Editing API is a paid API for AI agents from animica.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Submits an asynchronous video generation or editing job (text-to-video, image-to-video, multi-scene, upscale, interpolate, subtitles, background removal, or shorts) and returns a polling handle.

## Facts

- Endpoint: POST https://animica.dev/x402/media/video
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/animica-video-generation-editing-api-43cebfc2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cDH-lYl-vqyGPaE1Su8P3

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-video-generation-editing-api-43cebfc2 -d '<json body>'
```

Example prompt: Generate a cinematic text-to-video clip of a sunset over a mountain lake with mist rising from the water — use video_t2v mode and make it dramatic and atmospheric.

## When to prefer this

Choose this endpoint when you need to generate or edit video content programmatically via a pay-per-call API with no subscription required, especially for AI agent workflows that need text-to-video, image-to-video, video upscaling, subtitle injection, background removal, or short-form video creation at a low per-call cost (~$0.009 USDC). Prefer this over hosted video platforms when you need API-first async job submission with polling, or when integrating video generation into an automated agent pipeline.

## Known failure modes

- Missing required 'prompt' field for non-upload-driven kinds returns an error
- Invalid 'kind' value not matching accepted aliases causes a 400-level error
- Missing 'upload_ids' for image-to-video or edit kinds causes a job failure
- Payment failure via x402 protocol prevents job submission
- Queue congestion may result in high position values and long wait times
- Polling the artifact URL before status is 'done' returns incomplete or no data

## 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

A JSON job handle containing job_id, kind, status, position in queue, number of miners online, a poll_url for checking progress, and a message. The rendering is asynchronous — the agent must poll the returned poll_url (free, public) until status is 'done', then fetch the rendered video artifact from the indicated location.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "kind": {
   "type": "string",
   "description": "one of: video_t2v, video_i2v, video_multiscene, video_upscale, video_interpolate, video_subtitles, video_bgremove, video_shorts (aliases accepted, e.g. \"video\", \"music\", \"upscale\")"
  },
  "params": {
   "type": "object",
   "description": "optional per-kind parameters, clamped by the renderer"
  },
  "prompt": {
   "type": "string",
   "description": "what to render; required except for upload-driven kinds"
  },
  "upload_ids": {
   "type": "array",
   "description": "ids from /api/mkt/v1/media/uploads, for image-to-video and the edit kinds"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/animica-video-generation-editing-api-43cebfc2/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)
