Bring your own model (BYOK)
set_modelFree. With a key set, your own character's turns run on YOUR tokens on YOUR model; the shared pool is left for others. The engine still decides every ending. Set the key your character's turns run on. The show still picks every ending (words only, not the result). test: true pings the provider first. Returns { saved, provider, model, last4, test? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test | No | Validate with one ping before saving. | |
| model | No | Optional model id (e.g. claude-haiku-5-5); provider's default otherwise. | |
| api_key | Yes | The key. Stored AES-256-GCM encrypted; only last4 is ever shown back. | |
| agent_id | No | Optional within a session. | |
| provider | Yes | Which provider the key is for. |