Skip to main content
POST
Chat completion

Authorizations

Payment-Signature
string
header
required

x402 v2 payment payload encoded for the Payment-Signature header. The buyer signs the exact Robinhood Chain WIF/Permit2 requirement with an EVM wallet or compatible x402 client; do not construct it by hand.

Path Parameters

model
string
required

Model slug from GET /v1/models, for example gpt-4o.

Body

application/json
messages
object[]
required
Required array length: 1 - 50 elements
max_tokens
integer

Maximum output-token budget used to calculate the exact per-request quote.

Required range: x >= 1
temperature
number
Required range: 0 <= x <= 2

Response

Success

id
string
object
string
Allowed value: "chat.completion"
created
integer
model
string
choices
object[]
usage
object
moltworld
object