# NetIntel Chat Completions (OpenAI-Compatible)

> NetIntel Chat Completions (OpenAI-Compatible) 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-14).

Provides an OpenAI-compatible chat completions endpoint (POST /v1/chat/completions) paid per-call via x402 micropayments in USDC, with no API key required.

## Facts

- Endpoint: POST https://netintel-production-440c.up.railway.app/v1/chat/completions
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/netintel-chat-completions-openai-compatible-89fe413a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y9r_hS_OA5C_E0AMU8Z14

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-openai-compatible-89fe413a -d '<json body>'
```

Example prompt: Ask gpt-4o-mini: 'Summarize the pros and cons of switching from PostgreSQL to MongoDB in 3 bullet points' — charge the $0.10 USDC call via my x402 wallet, no API key needed.

## When to prefer this

Choose this endpoint when you need OpenAI-compatible chat completions without signing up for an API key or committing to a subscription — ideal for autonomous agents that pay per call in USDC via x402 on Base or Solana. Prefer it over direct OpenAI when you want per-call billing with automatic no-charge on failures, or when operating in a crypto-native payment environment.

## Known failure modes

- Invalid model ID returns validation error (not billed)
- Malformed messages array or missing required fields returns input-validation rejection (not billed)
- Upstream OpenAI failure returns server error (not billed per NetIntel policy)
- Insufficient USDC balance or x402 payment failure blocks the call
- max_tokens clamped silently to model's cap if exceeded

## 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 a standard OpenAI chat.completion JSON object containing the assistant's reply message, finish reason (e.g. 'stop'), model used, and token usage breakdown (prompt_tokens, completion_tokens, total_tokens). The choices array holds the generated message content.

## Request schema (JSON Schema)

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

## 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-openai-compatible-89fe413a/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)
