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 Bot

Make 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
/chat

Send 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
/models

Get a list of available models for your tier

Request Body
{
  "key": "your_api_key"
}
GET
/health

Check 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

Free

$0
10 requests per day
10 AI models
Email support
Get Started
POPULAR

Pro

₹50/mo
100 requests per day
70 AI models
Priority routing
Priority support
Upgrade to Pro

Enterprise

₹300/mo
Unlimited requests
All 168 models
Dedicated support
Custom infrastructure
Contact Sales

Need Help?

Our community is here to help. Join us on Telegram or Discord for support and updates.