# MiniChan Code Generation — NVIDIA NIM MiniMax-M3

> MiniChan Code Generation — NVIDIA NIM MiniMax-M3 is a paid API for AI agents from app-minichwaan.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Generates code in a specified programming language from a natural language prompt using NVIDIA NIM's MiniMax-M3 428B MoE model, paid per-call via USDC on Base.

## Facts

- Endpoint: POST https://app-minichwaan.vercel.app/api/code-gen
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minichan-code-generation-nvidia-nim-minimax-m3-760e3f82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a3T_a-xNoS8psIl_1MgA0

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-generation-nvidia-nim-minimax-m3-760e3f82 -d '<json body>'
```

Example prompt: Write me a Python function that connects to a PostgreSQL database, queries a users table for all active accounts, and returns the results as a list of dictionaries.

## When to prefer this

Choose this endpoint when you need on-demand code generation backed by a very large MoE model (428B parameters) and want to pay per-call in USDC without a subscription. It is especially suitable for AI agent workflows that require programmatic code synthesis as a step, and where the x402 micropayment protocol is already integrated into the agent stack.

## Known failure modes

- Missing required 'prompt' field returns a 400-level error
- Ambiguous or underspecified prompt may produce incorrect or incomplete code
- Unsupported or misspelled language identifier may produce generic output
- Payment failure in USDC/x402 protocol results in 402 Payment Required
- Model hallucination may produce syntactically incorrect code for complex tasks
- Timeout on very long or complex generation requests

## 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 a JSON object containing the generated code, typically as a string field with the implementation in the requested programming language based on the input prompt.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "prompt"
 ],
 "properties": {
  "prompt": {
   "type": "string",
   "description": "What code to generate"
  },
  "language": {
   "type": "string",
   "description": "Target language (Python, JS, etc.)"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minichan-code-generation-nvidia-nim-minimax-m3-760e3f82/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)
