# X402-NVIDIA Gemma-4-31B NIM Chat Completions

> X402-NVIDIA Gemma-4-31B NIM Chat Completions is a paid API for AI agents from x402-nvidia.vercel.app, paid per call via x402, $0.186144/call, status unknown (last checked 2026-09-14).

Runs inference on NVIDIA's Gemma-4-31B NIM model via x402 micropayments, returning chat completion responses

## Facts

- Endpoint: POST https://x402-nvidia.vercel.app/api/gemma-4-31b
- Price: $0.186144/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-nvidia-gemma-4-31b-nim-chat-completions-02983d0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9YDgKeTYdqu-O0YDnGiwI

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 x402-nvidia-gemma-4-31b-nim-chat-completions-02983d0c -d '<json body>'
```

Example prompt: Ask the Gemma-4-31B model hosted on NVIDIA NIM to explain the difference between supervised and unsupervised learning in simple terms — pay per call using my x402 wallet.

## When to prefer this

Choose this endpoint when you need chat completions from Google's Gemma-4-31B model specifically, hosted on NVIDIA's NIM infrastructure, and want to pay per call via x402 USDC micropayments without a subscription. Ideal for agents that need pay-as-you-go LLM inference without pre-committing to API keys or monthly plans.

## Known failure modes

- Payment failure if x402 wallet has insufficient USDC funds
- Model overload or NVIDIA NIM upstream timeout returning 5xx
- Invalid or malformed request body missing required message fields
- Rate limiting or quota exceeded on the NVIDIA NIM backend
- Model not available or temporarily offline returning 503

## How this service works

Access 48+ NVIDIA NIM AI models via x402 micropayments. Chat completions, vision, safety, translation, and more.

## Output

Returns a JSON object with a 'choices' array containing the model's generated assistant message, including the role ('assistant') and content text of the response.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "choices": [
   {
    "message": {
     "role": "assistant",
     "content": "Hello!"
    }
   }
  ]
 },
 "properties": {
  "choices": {
   "type": "array",
   "description": "Model responses"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-nvidia-gemma-4-31b-nim-chat-completions-02983d0c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-nvidia.vercel.app](https://www.zero.xyz/host/x402-nvidia.vercel.app/llms.txt)
