Learn to build AI agents with the Incredible API through hands-on, executable examples.
A powerful API for creating AI agents with:
- Chat completion with advanced models (
small-1,big-1,huge-1coming soon) - Function calling to extend AI capabilities
- Streaming responses for real-time interaction
- Integrations with Gmail, Google Sheets, Perplexity AI, and more
# 1. Clone and navigate
git clone https://github.com/yourusername/incredible-api-cookbook.git
cd incredible-api-cookbook/01-getting-started
# 2. Install dependencies
pip install -r requirements.txt
# 3. Set up API key
cp env.example .env
# Edit .env with your credentials
# 4. Run first example
python 0_hello_world.pyGet your API key: https://incredible.one
Getting Started - Master the Fundamentals
cd 01-getting-startedProgressive tutorials:
- 🌟 Hello World - Perfect for complete beginners
- 🔰 Basic Chat - Your first API call
- 🤖 Multiple Models - Try different AI models
- 💬 Conversations - Chat back and forth
- 🌊 Streaming - Real-time responses
- ⚡ Functions - Give AI special powers
Function Calling - Give AI Superpowers
cd 02-function-callingTransform AI from chatbot to action-taker:
- 🧮 Calculator - Basic function calling
- 🛠️ Multiple Tools - AI chooses right function
- 📊 JSON Extraction - Structured data output
- 🚀 Advanced Workflow - Multi-step automation
- 📈 Stock Analysis - Real-world example with Yahoo Finance
- 🐉 Dungeon Master - Experience AI-powered storytelling with real game mechanics
- 🎨 Content Creator - Complete content pipeline from research to publication
{
"result": {
"response": [{ "content": "AI response here", "role": "assistant" }]
}
}data: {"content": {"type": "content_chunk", "content": "word"}}
data: {"content": "[DONE]"}
Prerequisites:
- Python 3.8+
- Incredible API account
Environment variables (.env):
INCREDIBLE_API_KEY=your_api_key_here
USER_ID=your_user_id_hereWe welcome improvements! See CONTRIBUTING.md for details.
MIT License - see LICENSE for details.
Ready to master the Incredible API? Start with python 0_hello_world.py and build your first AI agent! 🚀