# MiniChan Code Generation — NVIDIA NIM MiniMax-M3

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

Generates source code in a specified programming language from a natural language prompt, powered by NVIDIA NIM's MiniMax-M3 428B MoE model.

## Facts

- Endpoint: POST https://app-minichi.vercel.app/api/code-gen?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minichan-code-generation-nvidia-nim-minimax-m3-6f8ec1b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4umaaQ2r9CgvcPCXL9VBQ

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-6f8ec1b9 -d '<json body>'
```

Example prompt: Write me a Python function that takes a list of dictionaries and returns them sorted by a given key — use MiniMax-M3 to generate clean, production-ready code.

## When to prefer this

Choose this endpoint when you need on-demand, LLM-powered code generation backed by a large 428B MoE model (MiniMax-M3 via NVIDIA NIM), especially for complex or nuanced coding tasks where model quality matters. It is well-suited for agents that pay per call in USDC via the x402 protocol on Base, avoiding subscription overhead. Prefer it over generic LLM APIs when you want a specialized code-gen route with a known per-call cost.

## Known failure modes

- Vague or ambiguous prompt may produce incorrect or incomplete code
- Missing or unsupported language specification may default to a generic output
- Payment failure (insufficient USDC on Base) results in 402 response and no code generated
- Model may hallucinate API signatures or library functions that do not exist
- Very long or complex code requests may be truncated or incomplete

## 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 source code for the requested programming task in the specified language, produced by the MiniMax-M3 428B MoE model via NVIDIA NIM.

## 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-6f8ec1b9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from app-minichi.vercel.app](https://www.zero.xyz/host/app-minichi.vercel.app/llms.txt)
