SXTREAM API

Explore and test our API endpoints directly from your browser

EXAMPLE CODE : GET
Javascript

const query = 'Halo Ai!';
const apiUrl = `https://api.sxtream.xyz/ai/gptweb?q=${encodeURIComponent(query)}`;

fetch(apiUrl)
  .then(response => {
    if (!response.ok) {
      throw new Error(`HTTP error! Status: ${response.status}`);
    }
    return response.json();
  })
  .then(data => {
    console.log('Response data:', data);
  })
  .catch(error => {
    console.error('Error fetching from API:', error);
  });
          
CURL

curl -X GET "https://api.sxtream.xyz/ai/gptweb?q=halo!"