# X402-NVIDIA Sarvam-M via NIM API

> X402-NVIDIA Sarvam-M via NIM API is a paid API for AI agents from x402-nvidia.vercel.app, paid per call via x402, $0.132956/call, status unknown (last checked 2026-09-14).

Run inference on Sarvam-M via NVIDIA NIM, paid per-call with x402 USDC micropayments, returning chat completion responses.

## Facts

- Endpoint: POST https://x402-nvidia.vercel.app/api/sarvam-m
- Price: $0.132956/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-sarvam-m-via-nim-api-eac35d65
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O_N9R3PLwSrFNDoIt20tl

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-sarvam-m-via-nim-api-eac35d65 -d '<json body>'
```

Example prompt: Use Sarvam-M on NVIDIA NIM to answer this in Hindi: 'What are the main festivals celebrated in India and when do they occur?'

## When to prefer this

Choose this endpoint when you need Sarvam-M specifically — a model optimized for Indian languages and multilingual tasks — hosted on NVIDIA NIM infrastructure, and you want pay-per-call billing via x402 USDC micropayments with no subscription required.

## Known failure modes

- Payment failure or insufficient USDC balance returns 402 Payment Required
- Malformed input schema returns 400 Bad Request
- Model unavailable or NIM backend error returns 500 or 503
- Rate limiting or quota exceeded returns 429
- Invalid x402 payment header returns authentication error

## How this service works

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

## Output

A JSON object with a 'choices' array containing one or more assistant message objects, each with a 'role' of 'assistant' and a 'content' string holding the model's generated text 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-sarvam-m-via-nim-api-eac35d65/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)
