Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/pzero-studio:pzero-studio-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: Pzero Studio Account API
version: 1.0.0
contact:
url: /
description: 'Operations tagged account across 2 of this provider''s published API definitions: pzero-studio-openapi.json, pzero-studio-openapi2.json. Each path carries the servers of the definition it was published in.'
servers:
- url: /
description: Same origin that served this OpenAPI document
tags:
- name: Account
description: Buyer account (session cookie)
paths:
/v1/me:
get:
tags:
- Account
summary: Session account identity
operationId: getMe
security:
- sessionCookie: []
responses:
'200':
description: Signed-in account
content:
application/json:
schema:
type: object
properties:
accountId:
type: string
format: uuid
walletAddress:
type: string
authProvider:
type: string
enum:
- privy
- siwe
required:
- accountId
- walletAddress
- authProvider
'401':
$ref: '#/components/responses/Unauthorized'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/account:
get:
tags:
- Account
summary: Balances, max price, and recent ledger
operationId: getAccount
security:
- sessionCookie: []
responses:
'200':
description: Account summary. confirmedUsdc funds inference; pending top-ups do not. hasEverFunded / firstFundedAt distinguish never-funded from spent-to-zero.
content:
application/json:
schema:
type: object
additionalProperties: true
'401':
$ref: '#/components/responses/Unauthorized'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/account/max-price:
patch:
tags:
- Account
summary: Set buyer max clearing price
operationId: patchMaxPrice
security:
- sessionCookie: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
maxPriceCentsPerDollar:
type: integer
minimum: 30
maximum: 80
required:
- maxPriceCentsPerDollar
responses:
'200':
description: Updated max price
content:
application/json:
schema:
type: object
properties:
walletAddress:
type: string
maxPriceCentsPerDollar:
type: integer
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/account/api-keys:
post:
tags:
- Account
summary: Create a pzero_... API key
description: 'Plaintext key is returned once and never again. Use it as Authorization: Bearer pzero_... on POST /v1/chat/completions.'
operationId: createApiKey
security:
- sessionCookie: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 64
required:
- name
responses:
'201':
description: Key created; plaintext shown once
content:
application/json:
schema:
type: object
properties:
name:
type: string
apiKey:
type: string
description: Plaintext pzero_... key
required:
- name
- apiKey
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/account/api-keys/{id}:
delete:
tags:
- Account
summary: Revoke an API key
operationId: revokeApiKey
security:
- sessionCookie: []
parameters:
- $ref: '#/components/parameters/UuidId'
responses:
'200':
description: Key revoked
content:
application/json:
schema:
$ref: '#/components/schemas/StatusOk'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/account/inference-history:
get:
tags:
- Account
summary: Buyer inference history
operationId: getBuyerInferenceHistory
security:
- sessionCookie: []
responses:
'200':
description: Paginated buyer inference rows
content:
application/json:
schema:
type: object
additionalProperties: true
'401':
$ref: '#/components/responses/Unauthorized'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/account/savings:
get:
tags:
- Account
summary: Savings vs face and ceiling
operationId: getSavings
security:
- sessionCookie: []
responses:
'200':
description: Savings summary
content:
application/json:
schema:
type: object
additionalProperties: true
'401':
$ref: '#/components/responses/Unauthorized'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/x402/top-up:
post:
tags:
- Account
summary: Fund prepaid USDC credits (x402 exact scheme)
description: Account funding, not per-request payment. First call without X-PAYMENT returns HTTP 402 with payment requirements. Sign EIP-3009 (scheme exact, Base USDC) and retry with the same body plus the X-PAYMENT header. Payer wallet must match the signed-in session wallet. Top-ups confirm after 20 blocks on Base mainnet; pending balances do not fund inference.
operationId: topUp
security:
- sessionCookie: []
parameters:
- name: X-PAYMENT
in: header
required: false
schema:
type: string
description: Base64-encoded signed x402 payment payload. Omit on the first call to receive requirements.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
amountMicroUsdc:
type: integer
format: int64
minimum: 1000000
maximum: 1000000000
description: Integer micro-USDC (6 decimals on Base). 1000000 = 1.000000 USDC. Not a decimal string — send 1234567 for 1.234567 USDC.
required:
- amountMicroUsdc
responses:
'200':
description: Payment settled; credit recorded (pending until confirmed on-chain)
headers:
X-PAYMENT-RESPONSE:
schema:
type: string
description: Base64 settlement receipt
content:
application/json:
schema:
$ref: '#/components/schemas/TopUpSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
description: 'Payment required: requirements in accepts[], or the submitted payment failed before settlement. A 402 always carries accepts and always means no money moved. Settled money that could not be credited is 409.'
content:
application/json:
schema:
$ref: '#/components/schemas/TopUpPaymentRequired'
'403':
description: Payment payer does not match signed-in wallet
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: 'Settled but not completed. The payment moved on chain and the request did not finish; the body carries transaction and reconciling. reconciling: true means the payment is queued and will be credited from the chain; reconciling: false means even that write failed and a human has to recover it. Do not send the payment again.'
headers:
X-PAYMENT-RESPONSE:
schema:
type: string
description: Base64 settlement receipt
content:
application/json:
schema:
$ref: '#/components/schemas/SettledIncomplete'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/x402/signup:
post:
tags:
- Account
summary: Create a funded account and an API key with one payment
description: 'No authentication: the settled payment is the credential. The account wallet is the payer the facilitator verified and the chain confirmed, so no walletAddress request field exists. First call without X-PAYMENT returns HTTP 402 with payment requirements and performs no facilitator call and no writes. Account, credit, and key commit in one transaction. The credit lands pending, so poll GET /v1/agent/me until confirmedUsdc covers the first request. Presenting a settlement that was already credited returns HTTP 200 with idempotent true and no apiKey, so a replay cannot mint a second key. This route cannot attribute callers behind the proxy chain, so it carries a global fuse on outbound facilitator calls rather than a per-IP quota.'
operationId: x402Signup
parameters:
- name: X-PAYMENT
in: header
required: false
schema:
type: string
description: Base64-encoded signed x402 payment payload. Omit on the first call to receive requirements.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
amountMicroUsdc:
type: integer
format: int64
minimum: 1000000
maximum: 1000000000
description: Integer micro-USDC (6 decimals on Base). 1000000 = 1.000000 USDC. Not a decimal string — send 1234567 for 1.234567 USDC.
keyName:
type: string
maxLength: 64
description: Name for the minted key. Defaults to x402-signup.
maxPriceCentsPerDollar:
type: integer
minimum: 30
maximum: 80
description: Buyer max clearing price for the new account. Omitted defaults to 80. Change it later via PATCH /v1/agent/max-price.
required:
- amountMicroUsdc
responses:
'200':
description: Payment settled. Either the account and key were created, or this settlement was already credited (idempotent true, no apiKey).
headers:
X-PAYMENT-RESPONSE:
schema:
type: string
description: Base64 settlement receipt
content:
application/json:
schema:
$ref: '#/components/schemas/SignupSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'402':
description: 'Payment required: requirements in accepts[], or the submitted payment failed before settlement. A 402 always carries accepts and always means no money moved. Settled money that could not be credited is 409.'
content:
application/json:
schema:
$ref: '#/components/schemas/TopUpPaymentRequired'
'409':
description: 'Settled but not completed. The payment moved on chain and the request did not finish; the body carries transaction and reconciling. reconciling: true means the payment is queued and will be credited from the chain; reconciling: false means even that write failed and a human has to recover it. A paid signup on a wallet already holding the maximum active keys answers here too, with credited: true and no key issued. Do not send the payment again.'
headers:
X-PAYMENT-RESPONSE:
schema:
type: string
description: Base64 settlement receipt
content:
application/json:
schema:
$ref: '#/components/schemas/SettledIncomplete'
'429':
description: Global signup facilitator fuse tripped; retry after the Retry-After interval
headers:
Retry-After:
schema:
type: string
description: Seconds until the fuse window resets
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Unexpected server error before any payment settled.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security: []
servers:
- url: /
description: Same origin that served this OpenAPI document
components:
schemas:
SettledIncomplete:
type: object
description: 'A payment that settled on chain and could not be turned into balance. Carries no accepts: the money already moved, so there is nothing to pay again. Reconciliation credits whatever the chain confirms.'
properties:
error:
type: string
description: What stopped the request after settlement
transaction:
type: string
description: 'Settlement transaction hash. Keep this value: it is the handle on the money.'
reconciling:
type: boolean
description: 'True when the payment is queued for reconciliation, which credits whatever the chain confirms with no further action from you. False when even that queue write failed: the money still moved, so do not pay again — keep transaction and quote it to support.'
example: true
message:
type: string
credited:
type: boolean
description: 'Signup only: true when the payment was credited but no API key was issued because the wallet is at the active key limit'
maxActiveApiKeys:
type: integer
description: 'Signup only: the active key ceiling that refused the mint'
example: 10
additionalProperties: true
SignupSuccess:
type: object
description: apiKey is present only when this payment created the account. A replayed settlement returns idempotent true with balances and no key.
properties:
apiKey:
type: string
description: Plaintext pzero_... key, shown once
keyName:
type: string
keyPrefix:
type: string
walletAddress:
type: string
description: The verified payer; never a request field
accountId:
type: string
format: uuid
pendingUsdc:
type: string
description: The signup credit lands pending, so this is normally the full amount
confirmedUsdc:
type: string
description: Spendable balance; normally 0.000000 immediately after signup
topUpAmountUsdc:
type: string
maxPriceCentsPerDollar:
type: integer
transaction:
type: string
description: Settlement transaction hash
confirmationBlocks:
type: integer
description: Blocks until the pending credit becomes spendable
idempotent:
type: boolean
description: True when this settlement was already credited; no key is issued
Error:
type: object
properties:
error:
type: string
description: HTTP status text
message:
type: string
TopUpPaymentRequired:
type: object
properties:
x402Version:
type: integer
example: 1
amountMicroUsdc:
type: integer
format: int64
description: Integer micro-USDC echoed from the request (1000000 = 1.000000 USDC).
error:
type: string
description: Present when a submitted payment failed
accepts:
type: array
items:
$ref: '#/components/schemas/X402Requirement'
additionalProperties: true
TopUpSuccess:
type: object
properties:
balanceUsdc:
type: string
description: Alias of confirmedUsdc
confirmedUsdc:
type: string
pendingUsdc:
type: string
topUpAmountUsdc:
type: string
walletAddress:
type: string
idempotent:
type: boolean
description: True when this transaction was already credited
confirmationBlocks:
type: integer
description: Confirmations required before a pending top-up becomes spendable
example: 20
X402Requirement:
type: object
properties:
scheme:
type: string
example: exact
network:
type: string
example: base
maxAmountRequired:
type: string
example: '10000000'
resource:
type: string
example: https://api.example/v1/x402/top-up
description:
type: string
mimeType:
type: string
payTo:
type: string
description: Deployment settlement address
maxTimeoutSeconds:
type: integer
asset:
type: string
example: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
description: USDC on Base mainnet
extra:
type: object
additionalProperties: true
StatusOk:
type: object
properties:
status:
type: string
example: ok
parameters:
UuidId:
name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Valid session or credential required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Persistent pzero_... API key. Inference only; rejected on account and supply routes.
sessionCookie:
type: apiKey
in: cookie
name: pzero_session
description: HttpOnly session cookie from POST /auth/privy/verify. Rejected on POST /v1/chat/completions.
x-refined-from:
- pzero-studio-openapi.json
- pzero-studio-openapi2.json