Save your own server or a vendor API key
create_supply_credentialSave your own server or a vendor API key
Saves, for selling, your own OpenAI-compatible server's https base URL and optional key (preset custom), or a vendor API key (today a Z.ai GLM Coding Plan key: preset zai). A preset marked comingSoon in the list_supply_presets tool is refused (422 preset_coming_soon). It is sealed at once to the box that serves requests (the console itself cannot read it back), never logged and never shown again: the answer carries a hint only. OAuth and session tokens are refused (400 key_refused). One listing per key: the same key saved again answers 200 with the credential already saved (alreadyAdded: true, nothing new is saved), and a key another account lists is refused (409 key_taken). Then discover its models with the discover_models tool. Sellers only: an account that has not accepted the selling terms gets 403 not_seller. At most 20 seller keys per account, and 100 new ones a day: past either, 409 limit_reached.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"preset": "<preset>"
},
"name": "create_supply_credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | The vendor API key (required for a vendor preset; optional bearer key for custom). Sealed at once to the serving box; never stored readable, logged or shown again. | |
| label | No | ||
| preset | Yes | ||
| baseUrl | No | custom only: the server's OpenAI-compatible base URL, https and a public host (port 443 or from 1024). Sealed with the key; the serving box checks every address it connects to. | |
| statement | No | The statementVersion of GET /sell/presets: records the seller's statement for this key (else it is asked at publish). | |
| idempotencyKey | No | Optional. A unique string so that repeating this call never creates twice. |