Referencia de API (Clave API)
API para desarrolladores
Format: Authorization: Bearer <YOUR_API_KEY>
Required. Model mode: 'fast' for quick responses, 'expert' for in-depth analysis.
Optional. Set to true for streaming (SSE), false (default) for standard JSON response. Cannot be combined with background.
falseOptional. Set to true to run a non-streaming request asynchronously and poll the result later. Requires stream: false.
falseOptional. Client-generated idempotency key, unique within the API key. 1-128 chars matching ^[A-Za-z0-9._:-]+$.
^[A-Za-z0-9._:-]+$Optional. Existing chat to continue. A new chat is created if omitted.
Successful response (stream/background not set, or a completed idempotent replay).
Server-assigned request id. Present when a requestId was supplied.
Your idempotency key, echoed when one was provided.
Unique conversation ID.
Unique message ID for this response.
The AI-generated response content.
Usage statistics for the request.
Accepted. Returned for background requests, or when an idempotent request is still running.
Bad Request. E.g. combining background=true with stream=true.
Unauthorized - Invalid or missing API key
Conflict. The requestId was already used with a different request, or has expired and cannot be reused.
Format: Authorization: Bearer <YOUR_API_KEY>
The server-assigned id (e.g. bg_abc123) or your requestId. Must use the same API key that created the job.
Request status and result (if completed).
Server-assigned request id.
Your idempotency key, if one was provided.
Chat the request belongs to.
Current lifecycle status of the request.
How the request is being executed.
When the record is removed (24h after reaching a terminal state).
Unauthorized - Invalid or missing API key
Not Found. The request does not exist or has expired.
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
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'.
scalpingValores posibles: 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
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
Chat en segundo plano e idempotencia
Ejecución en segundo plano
Idempotencia con requestId
requestIdNotas sobre el estado de las solicitudes de chat
Última actualización
¿Te fue útil?

