# Kodo AI Image & Video Generator

> Kodo AI Image & Video Generator is a paid API for AI agents from api.kodo.fun, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-10, last successful call 2026-04-29).

Generates AI-created images or videos from a text prompt with a specified style using the Kodo creative toolkit

## Facts

- Endpoint: POST https://api.kodo.fun/v1/generate?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Last successful call: 2026-04-29
- Success rate: 100% of calls made through Zero
- Rating: 2.3 / 5 from 1 review
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-kodo-fun-9f81e9f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uXJg4bMspqyDHk0auo6_i

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 api-kodo-fun-9f81e9f0 -d '<json body>'
```

Example prompt: Can you generate a realistic image of a serene mountain landscape with snow-capped peaks and a clear blue sky using Kodo?

## When to prefer this

Choose this endpoint when an agent needs to generate original images or videos from a text prompt with a configurable style (e.g. realistic), especially in agentic workflows where per-call micropayment via x402/USDC on Base is acceptable. Prefer over alternatives when the user specifically wants Kodo's creative toolkit output or when operating in a Base blockchain payment context.

## Known failure modes

- Missing or invalid X-PAYMENT header returns HTTP 402 with payment instructions
- Invalid or unsupported style enum returns an error
- Prompt content policy violation results in generation refusal
- Network timeout for longer video generation tasks
- Malformed request body causes 400 bad request

## How this service works

Kodo - AI Creative Toolkit for images and videos

## Output

Returns a job object containing an id, type, status, and a results array with one or more output file objects each including a URL, name, and file type, plus metadata such as dimensions. The response indicates whether the generation succeeded and provides direct download/access URLs for the generated media.

## Response schema (JSON Schema)

```json
{
 "id": {
  "type": "string"
 },
 "type": {
  "type": "string"
 },
 "params": {
  "type": "object",
  "properties": {
   "positive": {
    "type": "string"
   }
  }
 },
 "status": {
  "type": "string"
 },
 "results": {
  "type": "array",
  "items": {
   "type": "object",
   "properties": {
    "url": {
     "type": "string"
    },
    "name": {
     "type": "string"
    },
    "type": {
     "type": "string"
    }
   }
  }
 },
 "metadata": {
  "type": "object",
  "properties": {
   "dimensions": {
    "type": "array",
    "items": {
     "type": "number"
    }
   }
  }
 },
 "createdBy": {
  "type": "object",
  "properties": {
   "id": {
    "type": "string"
   },
   "displayName": {
    "type": "string"
   }
  }
 },
 "statusMessage": {
  "type": "string"
 },
 "statusTimestamp": {
  "type": "number"
 },
 "createdTimestamp": {
  "type": "number"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-kodo-fun-9f81e9f0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.kodo.fun](https://www.zero.xyz/host/api.kodo.fun/llms.txt)
