# MiniChan Code Generation — NVIDIA NIM MiniMax-M3

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

Generates code in a specified programming language from a natural language prompt using the MiniMax-M3 428B MoE model via NVIDIA NIM

## Facts

- Endpoint: POST https://minichan.vercel.app/api/code-gen
- Price: $0.1/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-generation-nvidia-nim-minimax-m3-df9614b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PLTxSGPCaR1HjwXgyTqwL

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

Example prompt: Generate a Python function that reads a CSV file and returns the rows as a list of dictionaries — use the MiniMax-M3 code gen endpoint.

## When to prefer this

Choose this endpoint when you need on-demand AI-generated code from a large-scale MoE model (MiniMax-M3 428B) and can pay per-call in USDC on Base via x402. Prefer this over generic LLM APIs when you want a dedicated code-generation endpoint with a clear per-call pricing model and no subscription required.

## Known failure modes

- Missing required 'prompt' field returns a 400 validation error
- Payment not sent or insufficient USDC on Base causes a 402 Payment Required response
- Unsupported or ambiguous language parameter may result in fallback to a default language
- Model overload or NVIDIA NIM backend error returns a 500 or 503
- Prompt too vague may produce syntactically correct but semantically unhelpful code

## 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 generated code in the requested programming language, produced by the MiniMax-M3 428B MoE model via NVIDIA NIM, addressing the provided natural language 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-df9614b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minichan.vercel.app](https://www.zero.xyz/host/minichan.vercel.app/llms.txt)
