{
  "x402Version": 2,
  "id": 40924,
  "slug": "40924",
  "resource": "https://x402.onhub.ai/v1/chat/completions",
  "description": "Text completion using the model selected in the request body.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x53884EF9A486b805bfa5e4F55290Ff66dca7C457",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "choices": {
            "items": {
              "properties": {
                "message": {
                  "properties": {
                    "content": {
                      "type": "string"
                    },
                    "role": {
                      "const": "assistant",
                      "type": "string"
                    }
                  },
                  "required": [
                    "role",
                    "content"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "message"
              ],
              "type": "object"
            },
            "minItems": 1,
            "type": "array"
          },
          "model": {
            "type": "string"
          },
          "object": {
            "const": "chat.completion",
            "type": "string"
          }
        },
        "required": [
          "object",
          "model",
          "choices"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "messages": [
              {
                "content": "Say hello in one sentence.",
                "role": "user"
              }
            ]
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "choices": [
              {
                "finish_reason": "stop",
                "index": 0,
                "message": {
                  "content": "Hello.",
                  "role": "assistant"
                }
              }
            ],
            "model": "openai/gpt-oss-20b",
            "object": "chat.completion"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "enable_thinking": {
                    "description": "For reasoning-capable Workers AI models. Defaults to false for GPT-OSS chat reliability.",
                    "type": "boolean"
                  },
                  "max_tokens": {
                    "default": 1024,
                    "maximum": 2048,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "messages": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "content": {
                          "type": "string"
                        },
                        "role": {
                          "enum": [
                            "system",
                            "user",
                            "assistant"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "role",
                        "content"
                      ],
                      "type": "object"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "model": {
                    "description": "Optional; must match the model in the selected route.",
                    "type": "string"
                  },
                  "reasoning_effort": {
                    "description": "For reasoning-capable Workers AI models.",
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      null
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "stream": {
                    "const": false,
                    "default": false,
                    "type": "boolean"
                  },
                  "temperature": {
                    "maximum": 2,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "required": [
                  "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": {
                        "message": {
                          "properties": {
                            "content": {
                              "type": "string"
                            },
                            "role": {
                              "const": "assistant",
                              "type": "string"
                            }
                          },
                          "required": [
                            "role",
                            "content"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "message"
                      ],
                      "type": "object"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "model": {
                    "type": "string"
                  },
                  "object": {
                    "const": "chat.completion",
                    "type": "string"
                  }
                },
                "required": [
                  "object",
                  "model",
                  "choices"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "onhub",
        "s": [
          "cdp_sdk_server"
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "eip2612GasSponsoring": {},
    "erc20ApprovalGasSponsoring": {}
  },
  "tags": [
    "bazaar",
    "builder-code",
    "eip2612GasSponsoring",
    "erc20ApprovalGasSponsoring"
  ],
  "sourceHost": "x402.onhub.ai",
  "lastUpdated": "2026-10-07T12:00:47.95Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-07T12:00:47.35Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "messages": [
                {
                  "content": "Say hello in one sentence.",
                  "role": "user"
                }
              ]
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "choices": [
                {
                  "finish_reason": "stop",
                  "index": 0,
                  "message": {
                    "content": "Hello.",
                    "role": "assistant"
                  }
                }
              ],
              "model": "openai/gpt-oss-20b",
              "object": "chat.completion"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "enable_thinking": {
                      "description": "For reasoning-capable Workers AI models. Defaults to false for GPT-OSS chat reliability.",
                      "type": "boolean"
                    },
                    "max_tokens": {
                      "default": 1024,
                      "maximum": 2048,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "messages": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "content": {
                            "type": "string"
                          },
                          "role": {
                            "enum": [
                              "system",
                              "user",
                              "assistant"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "role",
                          "content"
                        ],
                        "type": "object"
                      },
                      "minItems": 1,
                      "type": "array"
                    },
                    "model": {
                      "description": "Optional; must match the model in the selected route.",
                      "type": "string"
                    },
                    "reasoning_effort": {
                      "description": "For reasoning-capable Workers AI models.",
                      "enum": [
                        "low",
                        "medium",
                        "high",
                        null
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "stream": {
                      "const": false,
                      "default": false,
                      "type": "boolean"
                    },
                    "temperature": {
                      "maximum": 2,
                      "minimum": 0,
                      "type": "number"
                    }
                  },
                  "required": [
                    "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": {
                          "message": {
                            "properties": {
                              "content": {
                                "type": "string"
                              },
                              "role": {
                                "const": "assistant",
                                "type": "string"
                              }
                            },
                            "required": [
                              "role",
                              "content"
                            ],
                            "type": "object"
                          }
                        },
                        "required": [
                          "message"
                        ],
                        "type": "object"
                      },
                      "minItems": 1,
                      "type": "array"
                    },
                    "model": {
                      "type": "string"
                    },
                    "object": {
                      "const": "chat.completion",
                      "type": "string"
                    }
                  },
                  "required": [
                    "object",
                    "model",
                    "choices"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "onhub",
          "s": [
            "cdp_sdk_server"
          ]
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "eip2612GasSponsoring": {},
      "erc20ApprovalGasSponsoring": {}
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.onhub.ai",
    "manifest_name": "x402.onhub.ai",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-13T15:56:53.641Z"
  },
  "exampleResponse": {
    "example": {
      "choices": [
        {
          "message": {
            "content": "string",
            "role": "string"
          }
        }
      ],
      "model": "string",
      "object": "string"
    },
    "type": "string"
  }
}