Skip to content
Subako Docs
English
Esc
↑↓navigate↵open⌘Jpreview

List model providers

GET/v1/model-providers
Authorization
AuthorizationBearer token · headerrequired
Query parameters
limitinteger<int64>
min 1 · max 200
afterstring<uuid>
Rows past this id in `order`'s direction: a page's `next_cursor`.
beforestring<uuid>
Rows just before this id, still in `order`'s direction: a page's `prev_cursor`.
orderOrderParam
Newest first when omitted.
Allowed:ascdesc
typeModelProviderTypeParam
Only the providers of this type: `platform` for those the deployment runs, `byok` for the workspace's own. Both when omitted.
Allowed:platformbyok
Header parameters
Kikuvi-Workspacestring<uuid>
Workspace to list from. Required for a user caller; implied by the key for an API key caller.
Responses
200One page, newest first unless order=asc.
itemsModelProviderBody[]required
Show properties
Array of ModelProviderBody
One of:
object
created_atstring<date-time>required
descriptionstringrequired
display_namestringrequired
formatModelProviderFormatBodyrequired
The wire format a provider speaks, which decides the shape of the model settings an agent config may carry for it.
Allowed:anthropicopenai_responses
idstring<uuid>required
updated_atstring<date-time>required
When the provider last changed: a rename, a new endpoint, or a new key.
modelsPlatformModelBody[]required
Models available through this platform provider.
Show properties
Array of PlatformModelBody
descriptionstringrequired
display_namestringrequired
modelstringrequired
priceany | ModelPriceBodyrequired
Show properties
One of:
any
any
ModelPriceBody
One of:
object
formatstringrequired
Allowed:anthropic
per_tokenAnthropicPriceBodyrequired
Show properties
cache_readinteger<int64>required
cache_writeinteger<int64>required
inputinteger<int64>required
outputinteger<int64>required
object
formatstringrequired
Allowed:openai_responses
per_tokenOpenaiResponsesPriceBodyrequired
`input` prices the input neither read from nor written to the cache, `cached_input` the part read and `cache_write` the part written; `output` prices every output token, reasoning included.
Show properties
cache_writeinteger<int64>required
cached_inputinteger<int64>required
inputinteger<int64>required
outputinteger<int64>required
typestringrequired
Allowed:platform
object
created_atstring<date-time>required
descriptionstringrequired
display_namestringrequired
formatModelProviderFormatBodyrequired
The wire format a provider speaks, which decides the shape of the model settings an agent config may carry for it.
Allowed:anthropicopenai_responses
idstring<uuid>required
updated_atstring<date-time>required
When the provider last changed: a rename, a new endpoint, or a new key.
base_urlstringrequired
Where the proxy sends this provider's calls, as the workspace set it. Its API key never comes back.
workspace_idstring<uuid>required
typestringrequired
Allowed:byok
next_cursorstring<uuid> | nullrequired
Pass back as `after` for the next page; `null` on the last page.
prev_cursorstring<uuid> | nullrequired
Pass back as `before` for the previous page; `null` on the first page.
400Bad limit, cursor, order, or type, a malformed workspace header, or a user caller with no workspace header.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
401Missing, malformed, or invalid bearer token.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
403Caller lacks model_provider.read, or an API key's Kikuvi-Workspace header names another workspace.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
404No such workspace, or the caller cannot see it.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
Try it
Server
Authorization
Parameters
Request
curl -X GET "https://api.us.cloud.subako.ai/v1/model-providers" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "items": [
    {
      "created_at": "2019-08-24T14:15:22Z",
      "description": "string",
      "display_name": "string",
      "format": "anthropic",
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "updated_at": "2019-08-24T14:15:22Z",
      "models": [
        {
          "description": "string",
          "display_name": "string",
          "model": "string",
          "price": {}
        }
      ],
      "type": "platform"
    }
  ],
  "next_cursor": "a7ec8888-a9c3-4732-a281-9a08510f220b",
  "prev_cursor": "2ffdd032-1f96-48c2-8179-571201598694"
}