setOrgModelKey
Set or rotate the organization's model key: an OpenRouter API key. With it, assistant turns run on the organization's own OpenRouter account and skip LLM credits; compute (backtests, hyperopts, bots) is still charged. The key is only ever sent to the OpenRouter API host; there is no custom base URL. Needs org__aikey__manage, a plan with ai_model_key (Pro and above) and a browser step-up. The key is never returned. Fails with extensions.code ORG_MODEL_KEY_INVALID (not an OpenRouter key) or ORG_MODEL_KEY_UNAVAILABLE (encryption at rest is not configured).
setOrgModelKey(
orgID: String!
apiKey: String!
): OrgModelKeyStatus!
Arguments
setOrgModelKey.orgID ● String! non-null scalar
setOrgModelKey.apiKey ● String! non-null scalar
Type
OrgModelKeyStatus object
What is shown about the organization's own model key: never the key itself.