{
  "x402Version": 2,
  "id": 11009,
  "slug": "11009",
  "resource": "https://token4u.ai/v1/chat/completions",
  "description": "gpt-4o-mini API call (~128 tokens)",
  "type": "http",
  "accepts": [
    {
      "scheme": "upto",
      "network": "eip155:8453",
      "payTo": "0x3ccC6565511f404716cAD2D578851ff3Ff95Fd85",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "9000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "upto",
      "network": "eip155:8453",
      "payTo": "0x6D20a02E3F6afE5465397380e10B974cEd8564E0",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "9000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "token4u.ai",
  "lastUpdated": "2026-08-10T04:01:58.124Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-20T08:15:06.019Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "token4u.ai",
    "manifest_name": "token4u.ai",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}