spraay_chat
Send a message to 200+ AI models including GPT-4o, Claude, and Gemini. Pay $0.005 USDC per request via the Spraay x402 Gateway.
Instructions
Send a message to 200+ AI models (GPT-4o, Claude, Llama 3, Gemini, Mistral, etc.) via the Spraay x402 Gateway. Returns the model's completion. Use spraay_models to discover available model IDs. Costs $0.005 USDC.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model ID in OpenRouter format (e.g. 'openai/gpt-4o-mini', 'anthropic/claude-3.5-sonnet', 'meta-llama/llama-3-70b-instruct'). Use spraay_models to list all. | openai/gpt-4o-mini |
| message | Yes | User message to send to the model | |
| systemPrompt | No | Optional system prompt to set model behavior and context |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the gateway call succeeded; false when it returned an error. | |
| data | No | The gateway response payload on success. The exact shape depends on the tool (see the tool description and the JSON in the text content block). | |
| error | No | Human-readable error message, present only when ok is false. |