# OpenAI GPT-4.1 Mini Chat Completions (x402/USDC)

> OpenAI GPT-4.1 Mini Chat Completions (x402/USDC) is a paid API for AI agents from openai.mm.family, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Runs OpenAI GPT-4.1 Mini chat completions via an x402 pay-per-call USDC micropayment gateway, with configurable service tiers (standard/fast) and optional tool use.

## Facts

- Endpoint: POST https://openai.mm.family/x402/v1/models/gpt-4.1-mini/chat/completions?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openai-gpt-4-1-mini-chat-completions-x402-usdc-a391e488
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xm59-qGQ6kd-uUiJIfP01

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 openai-gpt-4-1-mini-chat-completions-x402-usdc-a391e488 -d '<json body>'
```

Example prompt: Using GPT-4.1 Mini via the x402 gateway, send this conversation — system: 'You are a helpful assistant', user: 'Summarize the key benefits of renewable energy in 3 bullet points' — with a max of 300 tokens and the standard service tier.

## When to prefer this

Choose this endpoint when you need cost-effective GPT-4.1 Mini chat completions billed in USDC on a per-call basis via the x402 protocol — ideal for AI agents operating in crypto-native environments, or when you want fine-grained per-call spending control without a monthly subscription. Prefer this over gpt-4.1 or o3 endpoints on the same gateway when task complexity does not require a larger model, and over gpt-4.1-nano when you need slightly more capability at a modest price increase.

## Known failure modes

- Insufficient USDC balance or failed x402 payment — returns 402 Payment Required
- Invalid or missing messages array — returns 400 Bad Request
- max_tokens set too high relative to quote budget — may be rejected or truncated
- Empty/trivial assistant response — billed as free (no charge for empty answers)
- Rate limits or upstream OpenAI errors — may return 429 or 500
- Unsupported service_tier value — rejected with validation error

## How this service works

gpt-4.1-mini: OpenAI GPT 4.1 Mini chat completions, paid per call in USDC. Per 1M tokens in/out: Standard (default) 0.4/1.6, Fast 0.7/2.8; pick with service_tier. Plus $0.0005 (Base) or $0.0005 (Solana) per call; the quote charges input plus 10% of max_tokens. Empty answers are free. Rates: https://openai.mm.family/x402/pricing

## Output

Returns a JSON chat completion object containing the assistant's reply message, finish reason (e.g. 'stop'), token usage counts (prompt, completion, total), a completion ID, the model name, and the service tier used. The response mirrors the OpenAI Chat Completions API format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "gpt-4.1-mini"
   ],
   "type": "string"
  },
  "tools": {
   "type": "array"
  },
  "stream": {
   "type": "boolean"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "type": "string"
     },
     "content": {
      "type": "string"
     }
    }
   }
  },
  "max_tokens": {
   "type": "integer"
  },
  "service_tier": {
   "enum": [
    "flex",
    "default",
    "standard",
    "auto",
    "fast",
    "priority"
   ],
   "type": "string"
  },
  "response_format": {
   "type": "object"
  },
  "reasoning_effort": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-x",
  "model": "gpt-4.1-mini",
  "usage": {
   "total_tokens": 9,
   "prompt_tokens": 8,
   "completion_tokens": 1
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Hello",
     "refusal": null
    },
    "finish_reason": "stop"
   }
  ],
  "service_tier": "default"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openai-gpt-4-1-mini-chat-completions-x402-usdc-a391e488/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from openai.mm.family](https://www.zero.xyz/host/openai.mm.family/llms.txt)
