Static API · dev
APIreference
Authorization: Bearer vl_…), an x402 payment, or a trial cookie; account endpoints take your session.Quick start
# 1. Sign in with your wallet at /signin, then create a key at /app/keys
# 2. Call any model with the OpenAI shape
curl https://<this host>/v1/chat/completions \
-H "authorization: Bearer $STATIC_KEY" -H "content-type: application/json" \
-d '{"model":"claude-haiku-5.5","messages":[{"role":"user","content":"hi"}],"stream":true}'
# Every response carries x-static-call-id, x-static-cost-micro and x-static-receipt-leaf.
# Streams end with a ": receipt {...}" comment before [DONE].auth
- GET
/api/auth/nonceGet a one-time nonce for a Sign-In with Ethereum message
- POST
/api/auth/verifySign in with a signed SIWE message (EOA, EIP-1271 or EIP-6492 wallets)
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "message": { "type": "string", "minLength": 20, "maxLength": 4000 }, "signature": { "type": "string", "pattern": "^0x[0-9a-fA-F]+$" } }, "required": [ "message", "signature" ] } - POST
/api/auth/logoutEnd this session
- POST
/api/auth/logout-allEnd every session of this account
- POST
/api/auth/wallets/linkLink another wallet to this account (sign a SIWE message with it)
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "message": { "type": "string", "minLength": 20, "maxLength": 4000 }, "signature": { "type": "string", "pattern": "^0x[0-9a-fA-F]+$" } }, "required": [ "message", "signature" ] } - DELETE
/api/auth/wallets/{address}Unlink a wallet (not the last one)
account
- GET
/api/meThe signed-in account, its wallets, orgs and deposit details
- GET
/api/me/balanceAvailable, held (open calls) and withdrawing balance
- GET
/api/me/ledgerLedger entries, newest first
- GET
/api/me/usageSpend and tokens per day and model
- GET
/api/me/activityRecent calls with their receipt leaves (no prompts or replies are ever stored)
keys
- GET
/api/keysList API keys
- POST
/api/keysCreate an API key (the full key is shown once)
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "name": { "default": "Untitled key", "type": "string", "maxLength": 60 }, "scopes": { "minItems": 1, "type": "array", "items": { "type": "string", "enum": [ "inference", "jobs", "usage:read" ] } }, "models": { "maxItems": 100, "type": "array", "items": { "type": "string" } }, "cap_usd": { "type": [ "string", "number", "null" ] }, "expires_days": { "anyOf": [ { "type": "integer", "minimum": 1, "maximum": 3650 }, { "type": "null" } ] }, "rate_limit_rpm": { "anyOf": [ { "type": "integer", "minimum": 1, "maximum": 100000 }, { "type": "null" } ] } } } - PATCH
/api/keys/{id}Rename a key or change its cap, model allow-list or rate limit
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "name": { "type": "string", "maxLength": 60 }, "models": { "maxItems": 100, "type": "array", "items": { "type": "string" } }, "cap_usd": { "type": [ "string", "number", "null" ] }, "rate_limit_rpm": { "anyOf": [ { "type": "integer", "minimum": 1, "maximum": 100000 }, { "type": "null" } ] } } } - DELETE
/api/keys/{id}Revoke a key (takes effect immediately)
trial
- GET
/api/trial/challengeGet a small proof-of-work puzzle; solving it starts a free trial
- POST
/api/trial/startRedeem a solved puzzle for a trial cookie
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, "nonce": { "type": "string", "maxLength": 32 } }, "required": [ "id", "nonce" ] } - GET
/api/trial/statusFree prompts left today, and how much of today's shared free budget is used
billing
- POST
/api/withdrawalsWithdraw stablecoins to one of your linked wallets
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "amount_usd": { "type": [ "string", "number" ] }, "chain_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "token": { "type": "string" }, "to": { "type": "string", "pattern": "^0x[0-9a-fA-F]{40}$" } }, "required": [ "amount_usd", "chain_id", "token" ] } - GET
/api/withdrawalsYour withdrawals; ready ones include the signed voucher and ready-to-send calldata
verify
- GET
/api/epochsClosed epochs: receipts root and count, anchor transaction, rewards root and total (public)
- GET
/api/receipts/{callId}A call's receipt, its leaf and (once its epoch is built) the Merkle proof to the anchored root
rewards
- GET
/api/rewardsStaking rewards for your wallets: amounts, proofs and ready-to-send claim calldata
media
- POST
/v1/media/generationsStart an image, video or audio job (priced per unit, held up front, charged only on success)
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "model": { "type": "string" }, "prompt": { "type": "string", "minLength": 1, "maxLength": 4000 }, "seconds": { "type": "integer", "minimum": 1, "maximum": 30 }, "n": { "type": "integer", "minimum": 1, "maximum": 4 }, "webhook_url": { "type": "string", "maxLength": 2000, "format": "uri" } }, "required": [ "model", "prompt" ] } - GET
/v1/media/jobs/{id}Job status
- GET
/v1/media/jobs/{id}/eventsJob progress as server-sent events until it finishes
- GET
/v1/media/jobs/{id}/contentDownload the result. Single use: the file is deleted once delivered.
sealed
- GET
/v1/sealed/attestationThe enclave's attestation: encrypt to its public key after verifying it yourself (the SDK does)
- POST
/v1/sealed/chat/completionsChat with an encrypted request; the reply comes back encrypted to your ephemeral key
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "model": { "type": "string" }, "sealed": { "type": "object", "properties": { "epk": { "type": "string", "maxLength": 4000000, "pattern": "^[A-Za-z0-9+/=]+$" }, "iv": { "type": "string", "maxLength": 4000000, "pattern": "^[A-Za-z0-9+/=]+$" }, "ct": { "type": "string", "maxLength": 4000000, "pattern": "^[A-Za-z0-9+/=]+$" } }, "required": [ "epk", "iv", "ct" ] }, "max_tokens": { "default": 1024, "type": "integer", "exclusiveMinimum": 0, "maximum": 32000 } }, "required": [ "model", "sealed" ] }
orgs
- POST
/api/orgsCreate an organization (you become its owner)
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 80 } }, "required": [ "name" ] } - GET
/api/orgsOrganizations you belong to
- GET
/api/orgs/{id}/membersMembers and roles
- POST
/api/orgs/{id}/membersAdd a member by wallet address
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "address": { "type": "string", "pattern": "^0x[0-9a-fA-F]{40}$" }, "role": { "type": "string", "enum": [ "owner", "admin", "developer", "billing", "viewer" ] } }, "required": [ "address", "role" ] } - PATCH
/api/orgs/{id}/members/{memberId}Change a member's role
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "role": { "type": "string", "enum": [ "owner", "admin", "developer", "billing", "viewer" ] } }, "required": [ "role" ] } - DELETE
/api/orgs/{id}/members/{memberId}Remove a member (or leave)
webhooks
- GET
/api/webhooksWebhook endpoints, and the secret that signs per-job webhook_url callbacks
- POST
/api/webhooksAdd an endpoint (https, public address). Its signing secret is shown once.
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "url": { "type": "string", "maxLength": 2000, "format": "uri" }, "events": { "minItems": 1, "type": "array", "items": { "type": "string", "enum": [ "job.succeeded", "job.failed", "deposit.credited", "withdrawal.ready", "withdrawal.executed" ] } } }, "required": [ "url", "events" ] } - DELETE
/api/webhooks/{id}Remove an endpoint
status
- GET
/statusPublic status: each model's hosts and circuit state, chain sync, last anchored epoch
admin
- GET
/api/admin/overviewLedger health, platform totals, review queues, dead jobs
- PATCH
/api/admin/models/{id}Enable/disable a model, change its routes or trial flag
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "enabled": { "type": "boolean" }, "free": { "type": "boolean" }, "routes": { "minItems": 1, "type": "array", "items": { "type": "string", "pattern": "^[a-z0-9]+:.+" } } } } - POST
/api/admin/models/{id}/pricesPublish a new price version (old calls keep the version they were billed at)
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "input_per_1m_usd": { "type": [ "string", "number" ] }, "output_per_1m_usd": { "type": [ "string", "number" ] }, "unit_usd": { "type": [ "string", "number" ] }, "list_input_per_1m_usd": { "type": [ "string", "number", "null" ] }, "list_output_per_1m_usd": { "type": [ "string", "number", "null" ] }, "list_unit_usd": { "type": [ "string", "number", "null" ] }, "list_source": { "anyOf": [ { "type": "string", "maxLength": 200 }, { "type": "null" } ] } } } - GET
/api/admin/depositsDeposits by status (default: waiting for review)
- POST
/api/admin/deposits/{id}/approveCredit a deposit under review, at the USD value you set
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "usd": { "type": [ "string", "number" ] } }, "required": [ "usd" ] } - POST
/api/admin/deposits/{id}/rejectReject a deposit under review (return the tokens off-platform)
- GET
/api/admin/inflowsTransfers we could not match to an account
- POST
/api/admin/inflows/{id}/assignCredit an unmatched transfer to an account
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "account_id": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, "usd": { "type": [ "string", "number" ] } }, "required": [ "account_id", "usd" ] } - POST
/api/admin/accounts/{id}/freezeFreeze or unfreeze an account
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "frozen": { "type": "boolean" }, "reason": { "type": "string", "maxLength": 300 } }, "required": [ "frozen", "reason" ] } - POST
/api/admin/promoGrant promotional credit
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "account_id": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, "usd": { "type": [ "string", "number" ] }, "reason": { "type": "string", "minLength": 3, "maxLength": 300 }, "idempotency_key": { "type": "string", "maxLength": 100 } }, "required": [ "account_id", "usd", "reason", "idempotency_key" ] } - PUT
/api/admin/flags/{key}Set a feature flag
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "value": {} }, "required": [ "value" ] } - GET
/api/admin/queue/deadDead-lettered jobs
- POST
/api/admin/queue/{id}/retryRetry a dead job
- GET
/api/admin/auditAudit log, newest first
inference
- GET
/v1/modelsModels with prices, list prices and live availability
- POST
/v1/chat/completionsOpenAI-compatible chat completions (streaming or not). Identity fields are stripped before any host sees the request.
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "model": { "type": "string", "minLength": 1 }, "messages": { "minItems": 1, "maxItems": 2000, "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": [ "system", "developer", "user", "assistant", "tool" ] }, "content": {} }, "required": [ "role", "content" ], "additionalProperties": {} } }, "stream": { "type": "boolean" }, "max_tokens": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "max_completion_tokens": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "temperature": { "type": "number", "minimum": 0, "maximum": 2 }, "top_p": { "type": "number", "minimum": 0, "maximum": 1 }, "tools": { "maxItems": 128, "type": "array", "items": {} }, "tool_choice": {}, "stop": { "anyOf": [ { "type": "string" }, { "maxItems": 4, "type": "array", "items": { "type": "string" } } ] } }, "required": [ "model", "messages" ], "additionalProperties": {} } - POST
/v1/messagesAnthropic Messages-compatible endpoint (text, images, tools; streaming or not)
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "model": { "type": "string", "minLength": 1 }, "max_tokens": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "messages": { "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": [ "user", "assistant" ] }, "content": {} }, "required": [ "role", "content" ] } }, "system": {}, "stream": { "type": "boolean" }, "temperature": { "type": "number", "minimum": 0, "maximum": 1 }, "top_p": { "type": "number" }, "stop_sequences": { "type": "array", "items": { "type": "string" } }, "tools": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "input_schema": {} }, "required": [ "name", "input_schema" ] } }, "tool_choice": {} }, "required": [ "model", "max_tokens", "messages" ], "additionalProperties": {} } - POST
/v1/embeddingsOpenAI-compatible embeddings
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "model": { "type": "string" }, "input": { "anyOf": [ { "type": "string" }, { "minItems": 1, "maxItems": 2048, "type": "array", "items": { "type": "string" } } ] } }, "required": [ "model", "input" ] }
transparency
- POST
/v1/outgoingShow exactly what would be sent to the model host for this request (nothing is sent, nothing is charged)
Request body
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "model": { "type": "string", "minLength": 1 }, "messages": { "minItems": 1, "maxItems": 2000, "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": [ "system", "developer", "user", "assistant", "tool" ] }, "content": {} }, "required": [ "role", "content" ], "additionalProperties": {} } }, "stream": { "type": "boolean" }, "max_tokens": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "max_completion_tokens": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "temperature": { "type": "number", "minimum": 0, "maximum": 2 }, "top_p": { "type": "number", "minimum": 0, "maximum": 1 }, "tools": { "maxItems": 128, "type": "array", "items": {} }, "tool_choice": {}, "stop": { "anyOf": [ { "type": "string" }, { "maxItems": 4, "type": "array", "items": { "type": "string" } } ] } }, "required": [ "model", "messages" ], "additionalProperties": {} }