# netintel.dev Chat Completions (Claude Sonnet)

> netintel.dev Chat Completions (Claude Sonnet) is a paid API for AI agents from netintel.dev, paid per call via x402, $0.06/call, status unknown (last checked 2026-09-14).

Sends a chat message array to Claude Sonnet via a pay-per-call x402 micropayment proxy and returns an OpenAI-compatible chat completion response.

## Facts

- Endpoint: POST https://netintel.dev/messages
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/netintel-dev-chat-completions-claude-sonnet-79193bcc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TyaZjL4XFI-5PUHA2D-V3

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-dev-chat-completions-claude-sonnet-79193bcc -d '<json body>'
```

Example prompt: Ask Claude Sonnet: 'Summarize the key differences between TCP and UDP in plain English' — use a temperature of 0.7 and limit the response to 512 tokens.

## When to prefer this

Choose this endpoint when you need one-off or low-volume Claude Sonnet inference without committing to an Anthropic subscription or API key — ideal for agents that pay per call via x402 USDC micropayments on Base mainnet. Prefer this over direct Anthropic API when you want usage-based billing with no setup, or when operating in a micropayment-native agentic stack. Not suitable for streaming responses, tool/function calling, or completions requiring more than 1024 output tokens.

## Known failure modes

- Payment not included or insufficient USDC — 402 Payment Required
- Messages array missing or empty — 400 Bad Request
- Unsupported model name specified — 400 or fallback to default
- max_tokens exceeds cap of 1024 — silently capped or error
- Malformed message role (not system/user/assistant) — 400 Bad Request
- Upstream Anthropic API unavailability — 502 or 503
- Rate limit exceeded — 429 Too Many Requests

## How this service works

OpenAI-compatible chat completions over x402, answered by Claude Sonnet 4.6 — send a messages array and get an assistant reply for Q&A, reasoning, agent planning, coding help, summarization, extraction, and classification. Body is OpenAI chat.completions-shaped ({model?, messages:[{role,content}], max_tokens?, temperature?}); response is a chat.completion object. Flat $0.06; inputs capped ~6KB, max_tokens 1024; no streaming in v1.

## Output

Returns an OpenAI-compatible chat.completion object containing: one or more choices with the assistant's reply text and a finish_reason (stop, length, content_filter, or tool_calls), a Unix timestamp, the model name, a unique completion ID, and a usage object with prompt_tokens, completion_tokens, and total_tokens counts.

## 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": {
      "model": {
       "type": "string",
       "description": "Model to use. Supported: claude-sonnet-4-6 (aliases: balanced, sonnet). Optional — defaults to claude-sonnet-4-6."
      },
      "top_p": {
       "type": "number",
       "description": "Nucleus sampling (0–1). Optional; ignored if temperature is set."
      },
      "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": "Chat messages in OpenAI format. Each item is {role: 'system'|'user'|'assistant', content: string}. System messages are applied as the system prompt."
      },
      "max_tokens": {
       "type": "number",
       "description": "Maximum output tokens. Optional — defaults to 1024, capped at 1024."
      },
      "temperature": {
       "type": "number",
       "description": "Sampling temperature (0–1). 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": "One choice with the assistant message and a finish_re
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-abc123",
  "model": "claude-sonnet-4-6",
  "usage": {
   "total_tokens": 22,
   "prompt_tokens": 14,
   "completion_tokens": 8
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "The capital of France is Paris."
    },
    "finish_reason": "stop"
   }
  ],
  "created": 1735689600
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/netintel-dev-chat-completions-claude-sonnet-79193bcc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from netintel.dev](https://www.zero.xyz/host/netintel.dev/llms.txt)
