Skip to content

Programs from intent

A delivered program

Specification

Output
pauhu.ai/code
Routes
POST /v1/code/synthesize
Price
Drawn from a prepaid balance by the tokens each call uses
Delivered
a delivered program
Not charged
a request with no delivered program, or a bad request, draws nothing
Seller
Pauhu AI Ltd

Buy by program

  1. Call the route. Without payment a paid route answers HTTP 402 with the price and a quote_id.
  2. Top up: POST https://api.pauhu.ai/v1/lds/balance/topup answers HTTP 402 with a payment challenge; repeat it with the payment credential. The answer returns a balance token.
  3. Repeat the call with its quote_id and Authorization: Bearer <balance token>. Cap any price with the pauhu-max-price header.