List Model Access
Code Mode: praxis.model.modelAccess.list
HTTP: GET /model/v1/model-access
List the models your organization must enable before use, together with the grants it already has. Read it to check whether a model is enabled before an inference call, or to show which marked models still need enabling; use each item’s model as the id for enableModelAccess or disableModelAccess (PUT or DELETE /model/v1/models/{model}/access). Items cover every model the catalog marks access_required, granted or not, so the gated class stays discoverable, plus any other model this organization has enabled, one item per model. access_required says whether the catalog gates the model; granted says whether your organization has a grant; the prices are the model’s current sell prices, what the next call costs, not the price recorded when the grant was created.
签名
praxis.model.modelAccess.list(args?:Record<string,never>):Promise<{/** One entry per model: every model the catalogue marks access_required (granted or not) plus every other model this organization has enabled. */ items:Array<{/** Model id to pass when enabling or disabling; the catalog id, including any creator prefix. */ model:string;/** True when the catalog requires this model to be enabled before any call. */ access_required:boolean;/** True when this organization already has a grant for this model. */ granted:boolean;/** Who enabled it, or null when this organization has no grant. */ granted_by:string|null;/** RFC 3339 timestamp of the enable, or null when there is no grant. */ granted_at:string|null;/** Current sell price in USD per million input tokens; null when unpriced. */ sell_input_price:number|null;/** Current sell price in USD per million output tokens; null when unpriced. */ sell_output_price:number|null}>}>;响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | Marked models and this organization’s grants, one item per model |
| 401 | application/problem+json | Missing or invalid API credentials; supply a valid platform API key in Authorization: Bearer. |
| default | application/problem+json | Canonical problem |