docs.title
docs.description
Demo Mode - Mock Data
API Reference
Authentication
API Key Authentication Barq uses API keys for authentication. Include your key in every request via the Authorization header....
Read more
Chat Completions API
Endpoint POST https://api.barqapi.com/v1/chat/completions Request Body Parameter...
Read more
Streaming
Server-Sent Events (SSE) Streaming Set "stream": true in your request to receive tokens as they are generated. This is ideal ...
Read more
Error Codes
HTTP Status Codes CodeMeaningAction 200Success...
Read more
Guides
Quick Start Guide
π Get Your API Key Sign up at barqapi.com/signup. After email verification, you'll receive $5 free credi...
Read more
Available Models
AI Models via Barq Barq provides unified access to 40+ AI models from leading providers. All models share the same OpenAI-compatible API f...
Read more
Rate Limits & Quotas
Rate Limit Headers Every API response includes rate limit information in the headers: HeaderDescription...
Read more
Tutorials
Build a Chatbot with Python
Build a Multi-Turn Chatbot in 5 Minutes This tutorial walks through building a terminal-based AI chatbot using Barq's API. 1. Ins...
Read more
FAQ
Frequently Asked Questions
General What is Barq? Barq is a unified AI API gateway β one API key, 40+ AI models. We handle routing, billing, rate limiting, ...
Read more
Report
Get Free Tokens
Invite a friend, both get free tokens!
Copy
Share on X
Share on WhatsApp
π‘ Login to get your personal referral link
Read our referral program policy β