# NetIntel Chat Completions (LLM Gateway)

> NetIntel Chat Completions (LLM Gateway) is a paid API for AI agents from netintel-production-440c.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Provides an OpenAI-compatible chat completions endpoint powered by GPT-4o-mini, billed per-call via x402 USDC micropayments with no API key required.

## Facts

- Endpoint: POST https://netintel-production-440c.up.railway.app/api/v1/chat/completions
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/netintel-chat-completions-llm-gateway-5b9a12df
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i1WQZR6jExkMwBB3HLQlb

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 netintel-chat-completions-llm-gateway-5b9a12df -d '<json body>'
```

Example prompt: Send this message to the AI and get a response: 'What are three tips for writing cleaner Python code?' — use pay-per-call billing so I don't need to manage API keys.

## When to prefer this

Choose this endpoint when you need OpenAI-compatible chat completions without managing API keys or subscriptions, want transparent pay-per-call USDC billing (no failed-call charges), and are building on an x402-enabled agent stack using Base or Solana mainnet. Ideal for sporadic or low-volume LLM calls where a monthly subscription is wasteful, or for agents that need to self-fund inference costs autonomously.

## Known failure modes

- Invalid or malformed messages array — returns 4xx validation error, no charge
- Upstream OpenAI service unavailable — returns server error, no charge per NetIntel policy
- Malformed JSON request body — rejected at input validation, no charge
- Model name not recognized — validation rejection, no charge
- x402 payment not included or insufficient — payment required error before processing

## How this service works

Network intelligence API — 138 endpoints, all pay-per-call via x402 micropayments (USDC on Base or Solana mainnet).

NetIntel is agent fair-trade aligned: transparent per-call pricing in USDC on Base or Solana via x402, no API keys or signup, and automatic no-charge on server errors, upstream failures, and input-validation rejections — failed calls are never billed across NetIntel's network, domain, and data-intelligence endpoints.

## Output

Returns an OpenAI-compatible JSON chat completion object containing: a unique completion ID, the model name (gpt-4o-mini), the assistant's reply text inside choices[0].message.content, finish_reason (e.g. 'stop'), and a usage block with prompt_tokens, completion_tokens, and total_tokens.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "model": {
       "type": "string",
       "description": "Model id, e.g. gpt-4o-mini. Free catalog: GET /v1/models"
      },
      "messages": {
       "type": "array",
       "description": "OpenAI chat messages: [{role, content}]",
       "items": {
        "type": "object",
        "properties": {
         "role": {
          "type": "string",
          "description": "system, user, or assistant"
         },
         "content": {
          "type": "string",
          "description": "Message text"
         }
        },
        "required": [
         "role",
         "content"
        ]
       }
      },
      "max_tokens": {
       "type": "number",
       "description": "Max output tokens (clamped to the model's cap)."
      }
     },
     "required": [
      "model",
      "messages"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "id": {
       "type": "string"
      },
      "object": {
       "type": "string"
      },
      "model": {
       "type": "string"
      },
      "choices": {
       "type": "array"
      },
      "usage": {
       "type": "object"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-9f2f28d90a3c4e0f8f1c2d3e",
  "model": "gpt-4o-mini",
  "usage": {
   "total_tokens": 15,
   "prompt_tokens": 13,
   "completion_tokens": 2
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hi!"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/netintel-chat-completions-llm-gateway-5b9a12df/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from netintel-production-440c.up.railway.app](https://www.zero.xyz/host/netintel-production-440c.up.railway.app/llms.txt)
