---
title: "Run an OpenAI-compatible chat completion via x402"
method: POST
path: "/swish/v1/chat/completions"
---

# Run an OpenAI-compatible chat completion via x402

`POST /swish/v1/chat/completions`

## Request

- Base URL: `https://api.gadgethumans.com`
- URL: `https://api.gadgethumans.com/swish/v1/chat/completions`
- Auth: none declared

OpenAI-compatible chat completions. One $0.005 payment mints a 1-hour key (20k tokens).

## Request body

- object
  - `messages` object[], required: OpenAI-style chat messages in order: [{role: 'system'|'user'|'assistant', content: string}].
  - `model` string: Model id; the hub serves its configured default when omitted.

## Response `200`

Completion

- object

## Other responses

- `402`: Payment Required: x402 exact scheme, USDC on Base

---

[API](https://skmtc.dev/gadgethumans/apis/gadgethumans-api-hub.md) · [All operations](https://skmtc.dev/gadgethumans/apis/gadgethumans-api-hub/llms.txt) · [OpenAPI document](https://skmtc.dev/gadgethumans/apis/gadgethumans-api-hub/revisions/7e0ce6386a0d?raw)
