Getting Started: Your First AI Request in 5 Minutes
Welcome to TarqaAI! This guide will get you up and running with AI-powered applications in just 5 minutes.
Step 1: Create Your Account (2 minutes)
1
Visit app.tarqaai.com/signup
2
Choose the free tier
3
Verify your email
4
Complete your profile
Your free account includes:
- 1,000 free API calls per month
- Access to all major AI models
- Basic analytics and monitoring
Step 2: Generate Your API Key (30 seconds)
1
Navigate to "API Keys" in your dashboard
2
Click "Create API Key"
3
Name it "development-key"
4
Copy and save it securely
bash
# Your API key will look like this:
tarqa_sk_1234567890abcdef...Important: Never commit API keys to version control!
Step 3: Install the SDK (30 seconds)
bash
# JavaScript/Node.js
npm install @tarqa/sdk
# Python
pip install tarqa-sdkStep 4: Make Your First Request (1 minute)
JavaScript Example
javascript
import { TarqaAI } from '@tarqa/sdk';
async function main() {
const client = new TarqaAI({
apiKey: process.env.TARQA_API_KEY
});
const response = await client.chat.completions.create({
model: 'gemini-2.0-flash',
messages: [
{ role: 'user', content: 'Hello! Tell me a fun fact about AI.' }
],
max_tokens: 150
});
console.log('🤖 AI Response:', response.choices[0].message.content);
}
main();Python Example
python
from tarqa import TarqaAI
import os
def main():
client = TarqaAI(api_key=os.getenv('TARQA_API_KEY'))
response = client.chat.completions.create(
model='gemini-2.0-flash',
messages=[
{'role': 'user', 'content': 'Hello! Tell me a fun fact about AI.'}
],
max_tokens=150
)
print('🤖 AI Response:', response.choices[0].message.content)
if __name__ == '__main__':
main()Step 5: Run and Celebrate! 🎉
bash
# Set your API key
export TARQA_API_KEY="your-api-key-here"
# Run the script
node hello-ai.js
# or
python hello_ai.pyYou should see an AI-generated response! You're now ready to build amazing applications with TarqaAI.
Next Steps
1
Try different models (GPT-4o, Claude 3.5 Sonnet, etc.)
2
Explore streaming responses
3
Set up monitoring in your dashboard
4
Build something awesome!
Welcome to the world of unified AI! 🚀
