AI Chat
ai_chat[read] Chat with one of the merchant's AI accounts (see list_ai_accounts) and get the model's reply as text. Costs the account's own provider spend (and Seliee tokens) like the panel's chat. provider = openai|claude|gemini|perplexity|llama|xai|deepseek|kimi|meta|glm|minimax|groq|mistral|azure; account_id = _account_id (or pass account_uuid = account_uuid instead). message = the new user turn; messages = earlier turns [{role: user|assistant, content}] oldest first, to continue a conversation (the caller keeps the history, send it back each call); system = optional system prompt; model = optional model name (default: the account's configured / provider default model); max_tokens = reply cap (<= 8192). Answers {text, provider, account_id, account_uuid, model}; the account's daily / monthly USD limit and empty balance surface as ERR_AI_ACCOUNT*, a lack of Seliee tokens as ERR_TOKENS_INSUFFICIENT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| system | No | ||
| message | Yes | ||
| messages | No | ||
| provider | Yes | ||
| account_id | No | ||
| max_tokens | No | ||
| account_uuid | No |