💎 Pilihan Paket API KEY:

🔑 API Key Bulanan

💰 Harga: Rp 1000

🔄 Limit: 100 request/hari

🎯 Pay-Per-Request

💰 Harga: Rp 100

✨ Tidak ada batasan waktu

🎁 Bayar sesuai penggunaan

🔑 Beli API Key Bulanan 🎯 Beli Pay-Per-Request

🔍 Cek Limit API KEY

Multi Method Support

Kami menyediakan fleksibilitas dalam mengakses API dengan mendukung multiple HTTP methods:

GET Method

GET https://xiex.my.id/api/endpoint
?apikey=APIKEY
&param1=value1

POST Method

POST https://xiex.my.id/api/endpoint
Content-Type: application/json

{
  "apikey": "APIKEY",
  "param1": "value1"
}

AI

✨ Dokumentasi API AI - Unlock the Power of Artificial Intelligence ✨

Using NPM OpenAI

const OPENAI = require('openai');
const openai = new OPENAI({
  apiKey: 'APIKEY',
  baseURL: 'https://xiex.my.id/api/ai',
});

openai.chat.completions.create({
  model: 'brainxiex',
  messages: [{ role: 'user', content: 'Apakah Rapunzel suka makan kerupuk ?' }]
}).then((res) => {
  console.log(res);
});

Using NPM Brainxiex

const brainxiex = require('brainxiex')({
  apikey: 'APIKEY', // Un-comment this line to use an API key
  session_local: true // Set to true for local session management
});

brainxiex.ai.LLM({
  messages: [{ role: "user", content: "Apakah Rapunzel suka makan kerupuk?"}],
  model: "brainxiex",
  // sessionID: "brainxiex_module123",
  // Jangan gunakan sessionID jika tidak diperlukan
}).then(res => console.log(res.answer));

Using NPM Axios

const axios = require('axios');

axios.post('https://xiex.my.id/api/ai/chat/completions', {
  apikey: 'APIKEY',
  model: 'brainxiex',
  messages: [{ role: 'user', content: 'Apakah Rapunzel suka makan kerupuk ?' }]
}).then(res => console.log(res.data.answer));

Using Python

import requests
import json

url = 'https://xiex.my.id/api/ai/chat/completions'
headers = {'Content-Type': 'application/json'}
data = {
    'apikey': 'APIKEY',
    'model': 'brainxiex',
    'messages': [{
        'role': 'user',
        'content': 'Apakah Rapunzel suka makan kerupuk ?'
    }]
}

response = requests.post(url, headers=headers, data=json.dumps(data))
print(response.json()['answer'])

Using PHP

$data = array(
    'apikey' => 'APIKEY',
    'model' => 'brainxiex',
    'messages' => array(
        array(
            'role' => 'user',
            'content' => 'Apakah Rapunzel suka makan kerupuk ?'
        )
    )
);

$options = array(
    'http' => array(
        'method'  => 'POST',
        'header'  => 'Content-Type: application/json',
        'content' => json_encode($data)
    )
);

$context = stream_context_create($options);
$result = file_get_contents('https://xiex.my.id/api/ai/chat/completions', false, $context);
$response = json_decode($result);
echo $response->answer;

Using cURL

curl -X POST 'https://xiex.my.id/api/ai/chat/completions' \
-H 'Content-Type: application/json'" \
-d '{
    "apikey": "APIKEY",
    "model": "brainxiex",
    "messages": [{
        "role": "user",
        "content": "Apakah Rapunzel suka makan kerupuk ?"
    }]
}'

PlayGround

✨ List API & Test ✨

Aku berputar tapi tak pernah pusing

Aku berjalan tapi tak pernah sampai

Aku bekerja tapi tak pernah lelah

Apakah aku?

(Jawaban: Loading spinner/indicator)