The project's AI provider settings — shaped by the caller's role
const url = 'https://beta-api.plune.ai/v1/settings/ai';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://beta-api.plune.ai/v1/settings/ai \ --header 'Authorization: Bearer <token>'An owner reads everything but the credentials themselves (AC-12): provider, model, language, when and by whom credentials were saved, the last provider issue if any, and the current calendar month’s usage (AC-15, UTC). A member reads only whether AI is enabled and which provider/model (AC-06) — the same shape as the “AI enabled, provider X” line on SCR-01’s explanation. A reader gets 403: this section does not exist for them at all (AC-06), unlike the draft-availability check, which a reader may still read.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Settings, role-shaped
What an owner reads — AiSettingsStatus plus AC-05/AC-09/AC-15. Never includes the credentials themselves (AC-12).
object
Whether a provider has ever been connected (an ai_settings row exists).
Present exactly when configured is true.
Present exactly when configured is true.
#829: the fallback slot - provider and model only (AC-05). Present when one is set.
object
ADR-0004 — the ways to connect a provider on this feature; each later addition is its own task. plune (#1427): Plune AI, the platform’s own key through OpenRouter, paid for in credits — the model is the plan’s (Free a low-cost one, a paid plan Haiku 5.5), no key and no fallback of the owner’s. Only the case draft runs on it; every other AI action reads a project on plune as one with no provider connected.
#829: the owner’s view of the fallback slot; present when one is set.
object
ADR-0004 — the ways to connect a provider on this feature; each later addition is its own task. plune (#1427): Plune AI, the platform’s own key through OpenRouter, paid for in credits — the model is the plan’s (Free a low-cost one, a paid plan Haiku 5.5), no key and no fallback of the owner’s. Only the case draft runs on it; every other AI action reads a project on plune as one with no provider connected.
Present when provider is custom.
userId of the owner who last connected or replaced the fallback’s credentials.
The fallback’s own most recent provider issue, apart from the primary’s: a primary that fell back stays in the primary’s.
Present when provider is custom.
#1286: the owner’s monthly limit in USD; null = none. At 80% usage.cap.state is warning, at 100% new draft requests are refused.
Draft language, default en (AC-05) — a project setting, not the reader’s interface language.
Present exactly when configured is true (AC-05, AC-12 — “коли й ким”, never the value).
userId of the owner who last connected or replaced credentials.
AC-09 — the most recent provider issue, if any; null otherwise. Never aborted-shaped: a timeout is not a provider failure.
Present exactly when configured is true.
object
Calendar month, UTC.
object
#829: how many of the attempts above the fallback made, so an owner sees it really works (ADR 0052 §3).
object
Sum of costUsd over calls whose model had a known price at call time.
Count of calls whose tokens the provider reported but whose model has no price — “ціна невідома” — never folded into knownUsd as zero (SAD §8 rule 6). A call that reported no tokens (a timeout, a rejected key) has nothing to price and is counted in calls, not here.
#1286: the same two numbers split by who asked. agent is a model acting for a person (a bearer token with X-Plune-Session, an agent actor in the audit log); human is everyone else. The halves add up to the totals.
object
object
object
#1286: where the month stands against the owner’s limit (AiSettingsFull.monthlyCapUsd); absent when no limit is set. warning from 80% of it, spent at 100%. Only calls with a known price count.
object
GET, owner only (#896): the model the platform recommends for each provider it lists — none for custom, whose owner names the model. The connect form offers it first; always a model with a known price (AC-15).
object
GET, owner only (#898): the models the connect form lets the owner choose from for each provider the platform lists — the ones it has a price for, the recommended first, each with that price. None for custom. A model that is not listed is still allowed (model is free text): the list is a help, not a gate.
object
One model the connect form lists (#898): the id as a provider writes it and what the platform’s own price table charges for it, per million tokens (AC-15).
object
USD for a million input tokens.
USD for a million output tokens.
The segment the connect form groups the model under (#2915): low is «Low cost», balanced is «Balanced». Absent = none; such a model is listed after the segmented ones.
One model the connect form lists (#898): the id as a provider writes it and what the platform’s own price table charges for it, per million tokens (AC-15).
object
USD for a million input tokens.
USD for a million output tokens.
The segment the connect form groups the model under (#2915): low is «Low cost», balanced is «Balanced». Absent = none; such a model is listed after the segmented ones.
GET, owner only (#1427): true when the platform key is set, so Plune AI can be chosen.
Examples
Owner view — connected and enabled
{ "configured": true, "enabled": true, "provider": "anthropic", "model": "claude-sonnet-5", "language": "en", "credentialsSavedAt": "2026-09-16T09:12:04.151Z", "credentialsSavedBy": "u-owner1", "recommendedModels": { "anthropic": "claude-sonnet-5-5", "openrouter": "qwen/qwen3.7-flash" }, "models": { "anthropic": [ { "id": "claude-sonnet-5-5", "inputUsdPerMillion": 2, "outputUsdPerMillion": 10 }, { "id": "claude-haiku-4-5", "inputUsdPerMillion": 1, "outputUsdPerMillion": 5 } ], "openrouter": [ { "id": "qwen/qwen3.7-flash", "inputUsdPerMillion": 0.03, "outputUsdPerMillion": 0.13, "tier": "low" }, { "id": "z-ai/glm-5.3-flash", "inputUsdPerMillion": 0.0399, "outputUsdPerMillion": 0.0784, "tier": "low" }, { "id": "openai/gpt-6.1-terra", "inputUsdPerMillion": 1, "outputUsdPerMillion": 5, "tier": "balanced" }, { "id": "minimax/minimax-m3", "inputUsdPerMillion": 0.3, "outputUsdPerMillion": 1.2, "tier": "balanced" }, { "id": "anthropic/claude-haiku-4-5", "inputUsdPerMillion": 1, "outputUsdPerMillion": 5 }, { "id": "anthropic/claude-haiku-5-5", "inputUsdPerMillion": 0.1, "outputUsdPerMillion": 0.5 }, { "id": "deepseek/deepseek-v4.1-flash", "inputUsdPerMillion": 0.051, "outputUsdPerMillion": 0.567 } ] }}Owner view — nothing connected yet (AC-07’s "provider not connected")
{ "configured": false, "enabled": false, "recommendedModels": { "anthropic": "claude-sonnet-5-5", "openrouter": "qwen/qwen3.7-flash" }, "models": { "anthropic": [ { "id": "claude-sonnet-5-5", "inputUsdPerMillion": 2, "outputUsdPerMillion": 10 }, { "id": "claude-haiku-4-5", "inputUsdPerMillion": 1, "outputUsdPerMillion": 5 } ], "openrouter": [ { "id": "qwen/qwen3.7-flash", "inputUsdPerMillion": 0.03, "outputUsdPerMillion": 0.13, "tier": "low" }, { "id": "z-ai/glm-5.3-flash", "inputUsdPerMillion": 0.0399, "outputUsdPerMillion": 0.0784, "tier": "low" }, { "id": "openai/gpt-6.1-terra", "inputUsdPerMillion": 1, "outputUsdPerMillion": 5, "tier": "balanced" }, { "id": "minimax/minimax-m3", "inputUsdPerMillion": 0.3, "outputUsdPerMillion": 1.2, "tier": "balanced" }, { "id": "anthropic/claude-haiku-4-5", "inputUsdPerMillion": 1, "outputUsdPerMillion": 5 }, { "id": "anthropic/claude-haiku-5-5", "inputUsdPerMillion": 0.1, "outputUsdPerMillion": 0.5 }, { "id": "deepseek/deepseek-v4.1-flash", "inputUsdPerMillion": 0.051, "outputUsdPerMillion": 0.567 } ] }}Member view — state, provider and model only (AC-06)
{ "configured": true, "enabled": true, "provider": "anthropic", "model": "claude-sonnet-5"}No / invalid token or session
A reader asked (AC-06)
object
Example
{ "error": "AI settings are not visible to a reader"}