Back to Home
Alexzo Logo
API Documentation

API Documentation

Explore our APIs to generate stunning images, perform intelligent searches, and access real-time global news and weather with the advanced Alexzo AI model. Free to use with no restrictions.

Welcome to Alexzo AI API

Our AI-powered APIs allow you to generate stunning images, perform intelligent web searches, and access real-time global news. Completely free to use with no rate limits or restrictions.

Base URL

https://alexzo.vercel.app/api

Model

alexzo-ai-v1

Quick Setup Steps

  1. Create your account and sign in
  2. Generate an API key from your API section
  3. Include your API key in the Authorization header
  4. Make requests to our image, search, news, or weather endpoints
  5. Enjoy building amazing AI-powered applications!
AI-Powered Search
POST

Get intelligent, real-time search results for any query.

POST https://alexzo.vercel.app/api/search
Request Parameters
query
Required

The search term or question

Type: String

Response Format
{
  "results": [
    {
      "title": "...",
      "link": "...",
      "snippet": "..."
    }
  ],
  "related_searches": [
    "..."
  ]
}
Example Request (JavaScript)
// AI-Powered Search - Free Use
const response = await fetch('https://alexzo.vercel.app/api/search', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer alexzo_your_api_key_here',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    query: 'What are the latest advancements in AI?'
  })
});

const data = await response.json();
console.log(data); // Search results
Alexzo News API
GET

Alexzo News API – A free and unlimited API for fetching news results based on search queries.

GET https://alexzo.vercel.app/api/news?q=query
Request Parameters
q
Required

The news search query

Type: String

Example Request (JavaScript)
// Alexzo News API - Free Use
const response = await fetch('https://alexzo.vercel.app/api/news?q=technology', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer alexzo_your_api_key_here',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data); // News results
Alexzo Weather API
GET

Fetch real-time weather data for any location globally.

GET https://alexzo.vercel.app/api/weather?location=Tokyo
Example Request (JavaScript)
// Alexzo Weather API - Free Use
const response = await fetch('https://alexzo.vercel.app/api/weather?location=Tokyo', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer alexzo_your_api_key_here',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data); // Weather results
JavaScript Example (Weather)
// Alexzo Weather API - Free Use
const response = await fetch('https://alexzo.vercel.app/api/weather?location=Tokyo', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer alexzo_your_api_key_here',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data); // Weather results
Python Example (Weather)
import requests
import json

# Alexzo Weather API with Python
def get_weather(location, api_key, units='metric'):
    url = f"https://alexzo.vercel.app/api/weather?location={location}&units={units}"

    headers = {
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json"
    }

    response = requests.get(url, headers=headers)

    if response.status_code == 200:
        return response.json()
    else:
        print(f"Error: {response.json()}")
        return None

# Usage
api_key = "alexzo_your_api_key_here"
location = "Tokyo"
weather_data = get_weather(location, api_key)

if weather_data:
    print(json.dumps(weather_data, indent=2))
cURL Example (Weather)
# Alexzo Weather API with cURL
curl -X GET "https://alexzo.vercel.app/api/weather?location=Tokyo" \
  -H "Authorization: Bearer alexzo_your_api_key_here" \
  -H "Content-Type: application/json"

Ready to Start Creating?

Join thousands of developers and creators using our Alexzo AI API to generate stunning images. Get your API key and start building today - completely free!

Get Started Now