Skip to main content
GET

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Workspace ID.

Example:

"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"

id
string
required

Model ID

Example:

"model_01HXKD2E5NQM3T9AYWCFKJ4GED"

Response

OK

metadata
object
required

Resource metadata

spec
object
required

Model specification

state
enum<string>
required
read-only

Whether the model is usable in this workspace. Output only. Use the :enable and :disable actions to transition.

Available options:
STATE_UNSPECIFIED,
STATE_ENABLED,
STATE_DISABLED
provenance
enum<string>
required
read-only

Where this definition came from. Output only; set at creation. Synced models reject edits to metadata.name and spec, manually entered models accept them.

Available options:
PROVENANCE_UNSPECIFIED,
PROVENANCE_SYNCED_FROM_PROVIDER,
PROVENANCE_MANUALLY_ENTERED
basePricing
object
required

The rates before any customer override: the catalog rate for a synced model, the entered rate for a manually entered one. Output only. When a side matches the spec price, an override may still be present; inspect pricing_override field presence to determine whether an override is set.

info
object

Server-populated info (e.g. the AI provider this model routes through). Populated on reads when requested; see ListModelsRequest.include_info.

pricingOverride
object

Customer price overrides. Output only here; set through UpdateModel with pricing_override.* mask paths. When an override is present, spec's price fields already reflect it (they are the effective prices).