API Documentation
Developer Docs
Everything you need to integrate 168+ AI models into your applications. Simple, fast, and powerful.
Quick Start Guide
Get Your API Key
Start by obtaining your API key from our Telegram bot. It's instant and free to get started.
Open Telegram BotMake Your First Request
Send a simple POST request to start using AI models. Here's a basic example with curl:
curl -X POST https://api.crosure.tech/chat \
-H "Content-Type: application/json" \
-d '{
"key": "your_api_key_here",
"model": "deepseek-chat",
"prompt": "Explain quantum computing in simple terms"
}'Integrate Into Your App
Use your favorite programming language. Here are examples in Python and JavaScript:
Python
import requests
response = requests.post(
"https://api.crosure.tech/chat",
json={
"key": "your_api_key_here",
"model": "deepseek-chat",
"prompt": "Hello, AI!"
}
)
print(response.json())JavaScript
const response = await fetch('https://api.crosure.tech/chat', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
key: 'your_api_key_here',
model: 'deepseek-chat',
prompt: 'Hello, AI!'
})
});
const data = await response.json();
console.log(data);API Endpoints
POST
/chatSend a prompt to any AI model and get a response
Request Body
{
"key": "your_api_key",
"model": "gpt-4o",
"prompt": "Your question here",
"temperature": 0.7, // optional
"max_tokens": 1000 // optional
}POST
/modelsGet a list of available models for your tier
Request Body
{
"key": "your_api_key"
}GET
/healthCheck API status and uptime
Response Format
All successful responses return JSON with the following structure:
{
"status": "success",
"model": "gpt-4o",
"response": "The AI's response to your prompt...",
"usage": {
"prompt_tokens": 15,
"completion_tokens": 120,
"total_tokens": 135
},
"request_id": "req_abc123xyz"
}Error Responses
If an error occurs, you'll receive:
{
"status": "error",
"error": "Invalid API key",
"code": "AUTH_ERROR"
}Pricing & Rate Limits
Enterprise
₹300/mo
Unlimited requests
All 168 models
Dedicated support
Custom infrastructure
Need Help?
Our community is here to help. Join us on Telegram or Discord for support and updates.