وثائق API

كل ما تحتاجه للدمج مع بوابة API الذكاء الاصطناعي الموحدة لدينا. ابدأ في دقائق مع أدلة وأمثلة شاملة.

Documentation

Completion68%

17 of 25 topics completed

01

Sign Up

Create a free account and get your API key instantly. No credit card required.

Get API Key
02

Install SDK

Install our official SDK for Python, JavaScript, or use direct HTTP requests.

View SDKs
03

Make First Request

Start making API calls immediately. Access 400+ AI models with one unified interface.

Try API
Quick Start Example
# Install the SDK
pip install barq

# Initialize client
from barq import AIClient

client = AIClient(api_key="your_api_key")

# Make your first request
response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

API Reference

Core endpoints and authentication

Authentication

All API requests require an API key in the Authorization header.

Authorization: Bearer your_api_key
POST/v1/chat/completionsCreate a chat completionAuth required
POST/v1/embeddingsCreate embeddingsAuth required
GET/v1/modelsList available modelsAuth required
GET/v1/usageGet usage statisticsAuth required

Why Choose Our Platform?

Global Edge Network

15+ regions worldwide with <100ms latency

99.9% uptime

400+ AI Models

Access to all major providers in one API

Unified interface

Enterprise Security

SOC 2 compliant with end-to-end encryption

Zero data retention

High Performance

Optimized routing and automatic failover

<50ms response time

Advanced Analytics

Real-time usage monitoring and cost optimization

35% average savings

Frequently Asked Questions

How does pricing work?

We offer a free tier with $10 in credits. Paid plans start at $29/month with higher limits and advanced features. See our pricing page for details.

Which AI models are supported?

We support 400+ models including GPT-4, Claude 3, Gemini Pro, Llama 3, and many more. New models are added weekly.

Is my data secure?

Yes. We are SOC 2 compliant, use end-to-end encryption, and have a strict zero data retention policy. Your data never leaves our secure infrastructure.

What happens if a model goes down?

Our platform automatically routes requests to alternative models with similar capabilities, ensuring 99.9% uptime.

Need Help?

Our support team is available 24/7 to help you with any questions or issues.

مستعد للبدء؟

سجل مجانًا واحصل على مفتاح API الخاص بك في ثوانٍ. لا حاجة لبطاقة ائتمان.