AI Inference · x402

gpt-4o-mini API call (~128 tokens)

gpt-4o-mini API call (~128 tokens)

by token4u.ai · discovered, not yet claimed by its owner · updated 2026-08-10

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

gpt-4o-mini API call (~128 tokens)

Tags: bazaar

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/11009.json for the price and payment options.
  3. Pay. Call GET https://token4u.ai/v1/chat/completions. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.009 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Uptime
1 of the last 1 checks answered
Calls (30d)
1 · 1 unique payers (third-party data from the public x402 Bazaar)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
uptoBase
eip155:8453
USDC$0.0090x3ccC6565511f404716cAD2D578851ff3Ff95Fd85300s
uptoBase
eip155:8453
USDC$0.0090x6D20a02E3F6afE5465397380e10B974cEd8564E0300s
accepts[] (raw JSON)
[
  {
    "scheme": "upto",
    "network": "eip155:8453",
    "payTo": "0x3ccC6565511f404716cAD2D578851ff3Ff95Fd85",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "9000",
    "amountUsd": 0.009,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "upto",
    "network": "eip155:8453",
    "payTo": "0x6D20a02E3F6afE5465397380e10B974cEd8564E0",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "9000",
    "amountUsd": 0.009,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "bazaar": {
    "info": {
      "input": {
        "body": {
          "messages": [
            {
              "content": "Hello, how are you?",
              "role": "user"
            }
          ],
          "model": "gpt-4o-mini"
        },
        "bodyType": "json",
        "method": "POST",
        "type": "http"
      },
      "output": {
        "example": {
          "choices": [
            {
              "finish_reason": "stop",
              "index": 0,
              "message": {
                "content": "Hello! How can I help you today?",
                "role": "assistant"
              }
            }
          ],
          "created": 1753000000,
          "id": "chatcmpl-abc123",
          "model": "gpt-4o-mini",
          "object": "chat.completion",
          "usage": {
            "completion_tokens": 8,
            "prompt_tokens": 10,
            "total_tokens": 18
          }
        },
        "format": "application/json",
        "type": "json"
      }
    },
    "schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "input": {
          "additionalProperties": false,
          "properties": {
            "body": {
              "properties": {
                "max_tokens": {
                  "description": "Maximum tokens to generate.",
                  "minimum": 1,
                  "type": "integer"
                },
                "messages": {
                  "description": "Array of message objects in OpenAI chat format.",
                  "items": {
                    "properties": {
                      "content": {
                        "description": "Text content of the message.",
                        "type": "string"
                      },
                      "role": {
                        "enum": [
                          "system",
                          "user",
                          "assistant"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "role",
                      "content"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "model": {
                  "description": "Model name to use. See /v1/models for the full list.",
                  "type": "string"
                },
                "stream": {
                  "description": "Enable streaming via SSE.",
                  "type": "boolean"
                },
                "temperature": {
                  "description": "Sampling temperature.",
                  "maximum": 2,
                  "minimum": 0,
                  "type": "number"
                },
                "top_p": {
                  "description": "Nucleus sampling.",
                  "maximum": 1,
                  "minimum": 0,
                  "type": "number"
                }
              },
              "required": [
                "model",
                "messages"
              ],
              "type": "object"
            },
            "bodyType": {
              "enum": [
                "json",
                "form-data",
                "text"
              ],
              "type": "string"
            },
            "method": {
              "enum": [
                "POST"
              ],
              "type": "string"
            },
            "type": {
              "const": "http",
              "type": "string"
            }
          },
          "required": [
            "type",
            "method",
            "bodyType",
            "body"
          ],
          "type": "object"
        },
        "output": {
          "properties": {
            "example": {
              "properties": {
                "choices": {
                  "items": {
                    "properties": {
                      "finish_reason": {
                        "enum": [
                          "stop",
                          "length",
                          "content_filter"
                        ],
                        "type": "string"
                      },
                      "index": {
                        "type": "integer"
                      },
                      "message": {
                        "properties": {
                          "content": {
                            "type": "string"
                          },
                          "role": {
                            "const": "assistant",
                            "type": "string"
                          }
                        },
                        "required": [
                          "role",
                          "content"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "index",
                      "message",
                      "finish_reason"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "created": {
                  "description": "Unix timestamp of creation.",
                  "type": "integer"
                },
                "id": {
                  "description": "Unique completion identifier.",
                  "type": "string"
                },
                "model": {
                  "description": "Model used for the completion.",
                  "type": "string"
                },
                "object": {
                  "const": "chat.completion",
                  "type": "string"
                },
                "usage": {
                  "properties": {
                    "completion_tokens": {
                      "type": "integer"
                    },
                    "prompt_tokens": {
                      "type": "integer"
                    },
                    "total_tokens": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "prompt_tokens",
                    "completion_tokens",
                    "total_tokens"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "id",
                "object",
                "created",
                "model",
                "choices",
                "usage"
              ],
              "type": "object"
            },
            "type": {
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "type": "object"
        }
      },
      "required": [
        "input"
      ],
      "type": "object"
    }
  }
}
Example shape — generated from the schema, not a captured live response
null

Examples

curl
curl "https://token4u.ai/v1/chat/completions"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://token4u.ai/v1/chat/completions");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://token4u.ai/v1/chat/completions")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
token4u.ai
Endpoint
https://token4u.ai/v1/chat/completions
Machine-readable
/resources/11009.json