API reference

API reference · Account

Withdraw as a provider

DELETE/api/marketplace/providerSigned in session

Stops all traffic. What the provider is owed stays owed. Same origin. A 404 while the operator has the marketplace off.

Answer 200

The record.

Fields of the 200 answer
FieldTypeWhat it is
providerobject or null
provider.providerobject
provider.provider.idinteger
provider.provider.namestring or null
provider.provider.base_urlstring or null
provider.provider.has_api_keyboolean
provider.provider.payout_addressstring or null
provider.provider.data_retentionstringOne of "collects", "none", "zdr".
provider.provider.retention_verifiedboolean
provider.provider.statusstringOne of "pending", "approved", "rejected", "suspended", "withdrawn", "erased".
provider.provider.status_reasonstring or null
provider.provider.created_atinteger
provider.endpointsarray of object
provider.endpoints[].idinteger
provider.endpoints[].model_idstring
provider.endpoints[].upstream_modelstring
provider.endpoints[].namestring or null
provider.endpoints[].context_lengthinteger or null
provider.endpoints[].input_price_per_1mnumber
provider.endpoints[].output_price_per_1mnumber
provider.endpoints[].toolsboolean
provider.endpoints[].jsonboolean
provider.endpoints[].statusstringOne of "pending", "verified", "paused", "removed".
provider.endpoints[].status_reasonstring or null
provider.endpoints[].ttft_msinteger or null
provider.endpoints[].qualitynumber or nullTask probes passed, 0 to 1.
provider.endpoints[].tools_okboolean or null
provider.endpoints[].json_okboolean or null
provider.endpoints[].verified_atinteger or null
provider.endpoints[].checked_atinteger or null
provider.earningsobjectMicro USD: owed is every accrual (the provider's price times each settled request's tokens), paid is every payout the operator recorded, balance the difference.
provider.earnings.owed_microsinteger
provider.earnings.paid_microsinteger
provider.earnings.balance_microsinteger
provider.trafficarray of objectThe last 30 days, by UTC day.
provider.traffic[].daystring
provider.traffic[].requestsinteger
provider.traffic[].prompt_tokensinteger
provider.traffic[].completion_tokensinteger
provider.traffic[].owed_microsinteger
provider.checksarray of objectThe newest verification checks.
provider.checks[].endpoint_idinteger
provider.checks[].kindstringOne of "latency", "tools", "json", "code", "extract", "reason", "correctness", "usage".
provider.checks[].okboolean or null
provider.checks[].msinteger or null
provider.checks[].detailstring or null
provider.checks[].atinteger
provider.payoutsarray of object
provider.payouts[].microsinteger
provider.payouts[].tx_hashstring
provider.payouts[].chainstring or null
provider.payouts[].atinteger

Errors

  • 401OpenAI shaped error.
  • 403OpenAI shaped error.
  • 404OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter