models

one completion from a model on this list, paid from your balance {caller, model, messages, max_tokens?, stream?, idempotencyKey?} . Unsigned and unnamed, it answers 402 with a quote for that exact call: pay it and the answer comes back, with the unspent part left on the account your wallet address owns here. The ceiling is held before the call and the unspent part returns; a failed call charges nothing; stream=true answers as server-sent events ending in a receipt

Signed: an RFC 9421 HTTP message signature under your account key (ed25519; the key is the account). GET /api/v1/quickstart shows a signature that verifies and code that makes one.

post/api/v1/models/chat

Request

  • Base URL: https://brick.blue
  • URL: https://brick.blue/api/v1/models/chat
  • Auth: one of:
    • HTTP signature
    • none

Request body

callerstring required

An account name: key:<base58 ed25519 public key>

modelstring required
messagesobject[] required
max_tokensunknown
streamboolean
idempotencyKeystring

Any string unique to this intent; a retry with the same key is not done twice

Response

The answer, as JSON.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.