ai_chat
ActiveTool of aeX402 RPC (Solana + Robinhood Chain)
declared in 0.1.0
Send a chat completion request to an AI model (GPT-4o, Claude, Llama, Gemini). Uses OpenRouter. Free tier: 3 calls/day. Paid: deducts credits based on token usage.
Parameters schema
{
"type": "object",
"required": [
"messages"
],
"properties": {
"model": {
"type": "string",
"description": "Model ID or alias: gpt-4o-mini (default), gpt-4o, claude-sonnet, claude-haiku, llama-70b, llama-8b, gemini-flash"
},
"messages": {
"type": "array",
"items": {
"type": "object",
"required": [
"role",
"content"
],
"properties": {
"role": {
"type": "string",
"description": "Message role: system, user, or assistant"
},
"content": {
"type": "string",
"description": "Message content"
}
}
},
"description": "Chat messages array [{role: \"user\"|\"system\"|\"assistant\", content: \"...\"}]"
},
"max_tokens": {
"type": "number",
"description": "Maximum tokens to generate (model-dependent default)"
},
"temperature": {
"type": "number",
"description": "Sampling temperature (0-2)"
},
"reasoning_effort": {
"type": "string",
"description": "low | medium | high — ask a reasoning-capable model to think harder. The chain-of-thought comes back in the tool result _meta (\"com.aex402/reasoning\")."
}
}
}Parent server
aeX402 RPC (Solana + Robinhood Chain)
1/7 registries