# NetIntel GPT-4.1 Chat Completions (via x402)

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

Runs a GPT-4.1 chat completion request (OpenAI-compatible format) billed per-call via x402 USDC micropayments, with no API key required.

## Facts

- Endpoint: POST https://netintel-production-440c.up.railway.app/openai/gpt-4-1
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/netintel-gpt-4-1-chat-completions-via-x402-07eea6da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F7otxz7CTw31pNliWjIV3

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-gpt-4-1-chat-completions-via-x402-07eea6da -d '<json body>'
```

Example prompt: Ask GPT-4.1 to write a concise executive summary of the following meeting transcript, keeping it under 200 words and using a professional tone — pay via USDC micropayment, no API key needed.

## When to prefer this

Choose this endpoint when you need GPT-4.1 chat completions without managing an OpenAI API key or subscription, especially for infrequent or bursty agent workloads where pay-per-call USDC micropayments are preferable to flat-rate billing. It is ideal for autonomous agents that need trustless, keyless LLM access on Base or Solana. Prefer alternatives (direct OpenAI API) when you need outputs longer than 2048 tokens, higher throughput with lower per-call overhead, or access to other OpenAI models.

## Known failure modes

- Input messages exceed ~48,000 character cap — request rejected, not billed
- max_tokens set above 2048 — capped silently or rejected
- Malformed messages array (missing role or content) — validation error, not billed
- Upstream OpenAI service failure — server error returned, not billed
- x402 payment failure or insufficient USDC balance — call not processed

## 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-format chat.completion JSON object containing the assistant's reply text, finish reason (e.g. 'stop'), a completion ID, the model name ('gpt-4.1'), Unix timestamp, and token usage breakdown (prompt_tokens, completion_tokens, total_tokens). Maximum output is 2048 tokens.

## 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": [
      "messages"
     ],
     "properties": {
      "top_p": {
       "type": "number",
       "description": "Nucleus sampling. Optional."
      },
      "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}]. Input capped ~48000 chars total."
      },
      "max_tokens": {
       "type": "number",
       "description": "Max output tokens. Optional — defaults to 2048, capped at 2048."
      },
      "temperature": {
       "type": "number",
       "description": "Sampling temperature. Optional."
      }
     }
    },
    "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",
       "description": "prompt_tokens, completion_tokens, total_tokens"
      },
      "object": {
       "type": "string",
       "description": "Always 'chat.completion'"
      },
      "choices": {
       "type": "array",
       "description": "Assistant message + finish_reason."
      },
      "created": {
       "type": "number",
       "description": "Unix timestamp (seconds)"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-abc123",
  "model": "gpt-4.1",
  "usage": {
   "total_tokens": 13,
   "prompt_tokens": 11,
   "completion_tokens": 2
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hi!"
    },
    "finish_reason": "stop"
   }
  ],
  "created": 1735689600
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/netintel-gpt-4-1-chat-completions-via-x402-07eea6da/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)
