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-supply-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 Supply API
version: 1.0.0
contact:
url: /
description: 'Operations tagged supply 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: Supply
description: Supplier operations (session cookie)
paths:
/v1/supply/venice-keys:
post:
tags:
- Supply
summary: Register a supplier Venice API key
description: Keys are encrypted at rest (AES-256-GCM). Revoke the upstream Venice key for immediate invalidation.
operationId: registerVeniceKey
security:
- sessionCookie: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
veniceApiKey:
type: string
label:
type: string
required:
- veniceApiKey
responses:
'201':
description: Key registered
content:
application/json:
schema:
$ref: '#/components/schemas/VeniceKey'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/supply/venice-keys/mine:
get:
tags:
- Supply
summary: List your registered Venice keys
operationId: listVeniceKeys
security:
- sessionCookie: []
responses:
'200':
description: Registered keys
content:
application/json:
schema:
type: object
properties:
keys:
type: array
items:
$ref: '#/components/schemas/VeniceKey'
'401':
$ref: '#/components/responses/Unauthorized'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/supply/venice-keys/{id}:
delete:
tags:
- Supply
summary: Revoke a registered Venice key
description: Marks the key revoked and sets its non-cancelled offers (active, paused, depleted, expired) to cancelled. Already-revoked keys still cancel leftover offers (heal). No ledger movement. Ciphertext retained for audit; posting again requires a new key row. Revoke the credential at Venice too for immediate upstream invalidation.
operationId: revokeVeniceKey
security:
- sessionCookie: []
parameters:
- $ref: '#/components/parameters/UuidId'
responses:
'204':
description: Key revoked; non-cancelled offers on the key cancelled
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/supply/venice-keys/{id}/sync:
post:
tags:
- Supply
summary: Re-sync a Venice key's DIEM caps from Venice
operationId: syncVeniceKey
security:
- sessionCookie: []
parameters:
- $ref: '#/components/parameters/UuidId'
responses:
'200':
description: Key with refreshed DIEM figures
content:
application/json:
schema:
$ref: '#/components/schemas/VeniceKey'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'502':
description: Could not sync from the Venice API
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/supply/offers:
post:
tags:
- Supply
summary: Post a DIEM supply offer
description: One live offer (status active or paused) per registered Venice key. Pause still occupies the slot; cancel or key revoke frees it. Platform keeps 10% of gross USDC per clear. DIEM expires at UTC midnight.
operationId: postOffer
security:
- sessionCookie: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
priceCentsPerDollar:
type: integer
minimum: 1
maximum: 80
quantityDiem:
type: string
example: '10.000000'
description: DIEM face value, decimal string with six places
veniceKeyId:
type: string
format: uuid
required:
- priceCentsPerDollar
- quantityDiem
- veniceKeyId
responses:
'201':
description: Offer posted
content:
application/json:
schema:
$ref: '#/components/schemas/Offer'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: An offer already exists for this Venice key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/supply/offers/mine:
get:
tags:
- Supply
summary: List your offers
description: Returns offers with status other than cancelled for the session wallet. Includes keyStatus on each row.
operationId: listOffers
security:
- sessionCookie: []
responses:
'200':
description: Your offers (excludes cancelled)
content:
application/json:
schema:
type: object
properties:
offers:
type: array
items:
$ref: '#/components/schemas/Offer'
'401':
$ref: '#/components/responses/Unauthorized'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/supply/offers/{id}:
patch:
tags:
- Supply
summary: Reprice, pause, or unpause an offer
description: Reprice (priceCentsPerDollar 1–80) or pause/unpause (status active|paused). paused stops routing; active resumes. Pause is not cancel — cancelled is terminal via DELETE /v1/supply/offers/{id} or key revoke. Unpause requires the backing Venice key to still be active.
operationId: patchOffer
security:
- sessionCookie: []
parameters:
- $ref: '#/components/parameters/UuidId'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
priceCentsPerDollar:
type: integer
minimum: 1
maximum: 80
status:
type: string
enum:
- active
- paused
minProperties: 1
responses:
'200':
description: Updated offer
content:
application/json:
schema:
$ref: '#/components/schemas/Offer'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
delete:
tags:
- Supply
summary: Cancel an offer
description: Sets status to cancelled for an active or paused offer owned by the session wallet. Frees the one-live-offer-per-key slot so a new offer can be posted on the same key. Depleted and expired offers return 404. Rows remain in DB; GET /v1/supply/offers/mine omits cancelled. No ledger movement.
operationId: deleteOffer
security:
- sessionCookie: []
parameters:
- $ref: '#/components/parameters/UuidId'
responses:
'204':
description: Offer cancelled
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/supply/ledger:
get:
tags:
- Supply
summary: Supplier ledger
operationId: getSupplyLedger
security:
- sessionCookie: []
responses:
'200':
description: Supplier accruals and payout debits
content:
application/json:
schema:
type: object
additionalProperties: true
'401':
$ref: '#/components/responses/Unauthorized'
servers:
- url: /
description: Same origin that served this OpenAPI document
/v1/supply/inference-history:
get:
tags:
- Supply
summary: Supplier inference history
operationId: getSupplyInferenceHistory
security:
- sessionCookie: []
responses:
'200':
description: Paginated supplier-side 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
components:
schemas:
Error:
type: object
properties:
error:
type: string
description: HTTP status text
message:
type: string
Offer:
type: object
properties:
id:
type: string
format: uuid
veniceKeyId:
type: string
format: uuid
priceCentsPerDollar:
type: integer
minimum: 1
maximum: 80
postedDiemCap:
type: string
quantityDiemRemaining:
type: string
keyDiemRemainingSynced:
type: string
status:
type: string
enum:
- active
- paused
- depleted
- cancelled
- expired
keyPermission:
type: string
keyStatus:
type: string
enum:
- active
- expired
- revoked
- depleted
keyLabel:
type: string
keyExpiresAt:
type: string
format: date-time
createdAt:
type: string
format: date-time
VeniceKey:
type: object
properties:
id:
type: string
format: uuid
label:
type: string
permission:
type: string
limitResetPeriod:
type: string
diemEpochCap:
type: string
diemRemainingSynced:
type: string
status:
type: string
createdAt:
type: string
format: date-time
expiresAt:
type: string
format: date-time
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