- Single-turn Q&A with the Answer endpoint
- Multi-turn conversations with context
- Real-time streaming responses
- Autonomous agents with tool calling
- File-enhanced AI with document context
- Advanced research capabilities
🔑
Get your Incredible API key
Generate a key to start calling the API—takes 30 seconds
→
Quick Reference
| Endpoint | Use Case | Key Feature |
|---|---|---|
/v1/answer | Single-turn Q&A, JSON extraction | Stateless, fast responses |
/v1/conversation | Multi-turn chat, contextual dialogue | History-aware conversations |
/v1/agent | Tool calling, complex workflows | Autonomous function execution |
/v1/web-search | Real-time web search | Current information retrieval |
/v1/deep-research | Multi-step research | Comprehensive reports with citations |
/v1/files/* | Document processing | PDF, CSV, images with OCR |
1) Answer - Single-turn Q&A
The Answer endpoint is perfect for stateless interactions where you need a quick, direct response. No conversation history needed—just ask and get an answer. Best for:- FAQ systems and knowledge bases
- Quick facts and definitions
- JSON extraction from text
- Data transformation tasks
Structured JSON Output
The Answer endpoint can return structured data by providing aresponse_format schema:
2) Conversation - Multi-turn Dialogue
The Conversation endpoint maintains context across multiple exchanges, making it ideal for chatbots and interactive applications. You provide the full conversation history with each request. Best for:- Chatbots and virtual assistants
- Customer support interfaces
- Interactive tutorials and guides
- Contextual dialogue systems
Adding System Instructions
Control the assistant’s behavior with asystem_prompt:
3) Streaming - Real-time Responses
Addstream: true to any endpoint to receive responses as they’re generated. This creates a natural, chat-like experience and reduces perceived latency.
Why use streaming:
- Better UX - Users see progress immediately instead of waiting
- Reduced perceived latency - Engagement starts while the response generates
- Cancellation support - Users can stop long responses early
- Natural feel - Mimics human typing for chat interfaces
content- Text chunks as generatedthinking- Internal reasoning (visible with some models)done- Completion signalerror- Error information if something fails
4) Agent - Autonomous Tool Calling
The Agent endpoint enables your AI to autonomously decide when and how to use tools (functions). Perfect for complex workflows, external integrations, and multi-step tasks. Best for:- Database queries and API calls
- Mathematical calculations
- External service integrations (email, CRM, payments)
- Multi-step workflows
- Real-time data lookups
- Define tools the agent can use
- Agent analyzes user request and decides which tools to call
- Agent returns tool calls with arguments (doesn’t execute)
- Your app executes tools securely
- Send results back for final response
Complete Tool Calling Pattern
Here’s the full agentic workflow:- Descriptive tool names - Use clear names like
search_productsnotsearch_db - Detailed descriptions - Explain what the tool does, when to use it, and what it returns
- Parameter descriptions - Describe each input parameter clearly
- Error handling - Always handle tool execution failures gracefully
- Security - Validate tool inputs and restrict dangerous operations
5) Files - Document Context
Upload files once and reuse them across unlimited API requests. The Files API supports PDFs, images, spreadsheets, and more with automatic OCR and content extraction. Best for:- Document Q&A and analysis
- Resume parsing and extraction
- Invoice and receipt processing
- Report summarization
- Image analysis with text
- PDFs - Automatic OCR text extraction
- Images - PNG, JPEG, GIF, WebP with OCR
- Spreadsheets - CSV, Excel with column analysis
- Documents - TXT, Markdown, JSON
file_id, reuse forever. Don’t re-upload the same file repeatedly.
What Happens During Processing
When you confirm upload, files are automatically processed:| File Type | Processing | Extracted Data |
|---|---|---|
| OCR text extraction | Page count, full text, structure | |
| Images | Vision + OCR | Text from image, visual analysis |
| CSV/Excel | Structure parsing | Columns, types, row count, preview |
| JSON | Schema analysis | Keys, structure, data types |
Best Practices
Upload once, reuse forever:6) Web Search - Real-time Information
Access current web information with the Web Search endpoint. Perfect for AI applications that need real-time data beyond the model’s training cutoff. Best for:- Current events and news
- Real-time data lookups
- Fact-checking with sources
- Research and discovery
7) Deep Research - Comprehensive Reports
For complex research tasks, Deep Research conducts autonomous multi-step investigations and generates comprehensive reports with citations. Best for:- Market research
- Competitive analysis
- Academic literature reviews
- Due diligence
- Strategic planning
quick- 10-15 sources, 5-10 minstandard- 20-30 sources, 10-20 minthorough- 40+ sources, 20-40 min
Next Steps & Resources
📚 Explore the Docs
💡 Quick Tips
Authentication:- Get your API key from the platform dashboard
- Include in headers:
Authorization: Bearer YOUR_API_KEY - Keep keys secure, never commit to version control
- Generous limits on all plans
- 429 status code if exceeded
- Implement exponential backoff for retries
- Use Answer for single-turn, Conversation for multi-turn
- Only use Agent when you need tool calling
- Upload files once, store and reuse file_id
- Enable streaming for better UX on long responses
- Write clear, descriptive tool definitions
🔧 Common Patterns
Building a chatbot:🆘 Need Help?
- API Status: status.incredible.one
- Discord Community: Join Discord
- GitHub Examples: API Cookbook
- Blog & Tutorials: web.incredible.one/blog
