# MiniChan Code-from-Image API

> MiniChan Code-from-Image API is a paid API for AI agents from app-minichwaan.vercel.app, paid per call via x402, $0.2/call, status unknown (last checked 2026-09-15).

Analyzes an image and generates working source code that reproduces or implements what is depicted in it

## Facts

- Endpoint: POST https://app-minichwaan.vercel.app/api/code-from-image
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minichan-code-from-image-api-67ffa5f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TxikiVZkylopUnslaxzrr

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 minichan-code-from-image-api-67ffa5f1 -d '<json body>'
```

Example prompt: Look at this screenshot of a login form UI at https://example.com/login-mockup.png and generate the HTML, CSS, and JavaScript code to recreate it.

## When to prefer this

Choose this endpoint when you need to convert a visual representation — such as a UI screenshot, wireframe, whiteboard diagram, or photo of handwritten code — directly into executable source code. It is specifically optimized for image-to-code transformation using a powerful 428B multimodal model, making it superior to general-purpose vision APIs for developer-focused tasks.

## Known failure modes

- Invalid or inaccessible image URL returns an error
- Image content is unclear or ambiguous, leading to incomplete or incorrect code
- Unsupported image format may cause parsing failure
- Image contains no recognizable code or UI patterns, resulting in a generic or empty response
- Payment via USDC on Base fails or is insufficient, blocking the request

## How this service works

NVIDIA NIM MiniMax-M3 (428B MoE) powered API for AI agents. 15 multimodal endpoints — text, vision, code, reasoning, creative. Pay with USDC on Base via x402.

## Output

Returns generated source code that implements or reproduces what is shown in the provided image, potentially including HTML, CSS, JavaScript, Python, or other languages depending on what the image depicts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "image_url"
 ],
 "properties": {
  "image_url": {
   "type": "string",
   "description": "URL of the image to analyze"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minichan-code-from-image-api-67ffa5f1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from app-minichwaan.vercel.app](https://www.zero.xyz/host/app-minichwaan.vercel.app/llms.txt)
