API Key
Requirements
Creating an API key



Managing API keys
Authentication
Billing
API reference
Chat
Format: Authorization: Bearer <YOUR_API_KEY>
Required. Model mode: 'fast' for quick responses, 'expert' for in-depth analysis.
Required. Set to true for streaming (SSE), false for standard JSON response.
Successful response
Unique conversation ID.
Unique message ID for this response.
The AI-generated response content.
Usage statistics for the request.
Unauthorized - Invalid or missing API key
Intent to swap transaction
Format: Authorization: Bearer <YOUR_API_KEY>
Required. Natural language swap intent (e.g., 'swap 0.1 ETH to USDC').
Required. User wallet address (0x...).
Optional. Chain name (e.g., 'base', 'ethereum', 'bsc', 'arbitrum', 'optimism').
Swap transaction generated
Unauthorized - Invalid or missing API key
Perpetual trading suggestion
Format: Authorization: Bearer <YOUR_API_KEY>
Required. Trading symbol (e.g., 'BTC', 'ETH', 'SOL').
Optional. Trading style: 'scalping', 'day-trading', or 'swing-trading'. Default: 'scalping'.
scalpingPossible values: Optional. Margin in USD. Default: 1000.
1000Optional. Leverage multiplier (max: 40). Default: 10.
10Optional. Strategy type. Default: 'max-profit'. More strategies coming soon.
max-profitPerpetual trading suggestion
Recommended entry price.
Trading side recommendation.
Recommended stop loss price.
Recommended take profit price.
Confidence score (0-100).
Analysis reasons based on technical indicators.
Risk factors to consider.
Unauthorized - Invalid or missing API key
Prediction market analysis
Format: Authorization: Bearer <YOUR_API_KEY>
Required. Prediction market page link (e.g., Polymarket event URL).
Required. Chat mode: 'fast' or 'expert'.
Optional. Only return prediction probabilities without reasoning. Default: false.
falseOptional. Custom instructions to guide the analysis. Use this to specify focus areas, risk preferences, or analysis style.
Prediction market analysis
AI reasoning and analysis (empty if only_result=true).
Unauthorized - Invalid or missing API key
Last updated
Was this helpful?

