Docs/Getting Started/Quick Start
Quick Start
Get up and running with Alphagent in minutes. Our API is fully compatible with OpenAI SDKs—just change the endpoint and start building.
OpenAI Compatible
Drop-in replacement—just change the base_url.
Multi-Agent Models
Specialized agents for financial research.
Streaming Support
Real-time SSE responses for interactive apps.
#1. Get Your API Key
Create your API key
Generate one in your dashboard. Your key will look like ik_live_...
#2. Install the SDK
Install the OpenAI SDK for your language. Alphagent is fully compatible with OpenAI's client libraries.
Python
$ pip install openaiNode.js
$ npm install openai#3. Make Your First Request
Initialize the client with the Alphagent endpoint and make a request.
Python
import os from openai import OpenAI client = OpenAI( api_key=os.environ["ALPHAGENT_API_KEY"], base_url="https://api.alphagent.co/v1" ) response = client.responses.create( model="alphagent-smart", input="What is AAPL trading at?" ) print(response.output_text)
TypeScript
import OpenAI from 'openai'; const client = new OpenAI({ apiKey: process.env.ALPHAGENT_API_KEY, baseURL: 'https://api.alphagent.co/v1', }); const response = await client.responses.create({ model: 'alphagent-smart', input: 'What is AAPL trading at?', }); console.log(response.output_text);