Get API Key
API Gateway Live

Developed by Dhiraj 💖

The ultimate unified gateway for high-performance AI models and advanced services.

0
Endpoints
0
Uptime
0
Latency
POST

/api/vision

Extracts intelligent JSON structured information from images. Passes background visual context back dynamically.

vision.js
async function getVisionPrompt(userText, imageFile) {
    const data = new FormData();
    if (userText) data.append('message', userText);
    data.append('image', imageFile);
    data.append('authorization', 'Bearer YOUR_API_KEY');

    const res = await fetch("https://dev-x-vision.vercel.app/api/vision", {
        method: 'POST', body: data
    });
    const json = await res.json();
    return json.reply; // Returns structured JSON data
}
response.json
{
  "user_question": "Is image me kya ghalti hai or detail me btaao colors wagerah sab",
  "image_details": {
    "overall_description": "The image features a dark background with a dotted pattern. In the center, there is a glowing container with text.",
    "identified_subjects": [
      {
        "name": "DEV-X Interface Element",
        "action_or_context": "Displaying main app content",
        "location_in_image": "Center"
      }
    ],
    "colors_and_theme": ["dark blue", "pink gradient", "purple", "white"],
    "extracted_text": "DEV-X TTS BOT, Convert any text into realistic audio voices!, 20 Voices Available",
    "objects_and_layout": "On the left is a microphone icon with sound waves. On the right, some arrow symbols. The layout is centered and card-based."
  },
  "credit": {
    "tg": "@ScriptDevX",
    "developer": "@Dhiraj_9619"
  }
}
POST

/api/chat

Robust conversational endpoint maintaining chat memory history. Now supports image uploads for multimodal queries.

chat.js
async function normalChat(messageText, chatHistory = [], imageFile = null) {
    const data = new FormData();
    data.append('message', messageText);
    data.append('history', JSON.stringify(chatHistory));
    if (imageFile) data.append('image', imageFile);
    data.append('authorization', 'Bearer YOUR_API_KEY');

    const res = await fetch("https://dev-x-vision.vercel.app/api/chat", {
        method: 'POST', body: data
    });
    const json = await res.json();
    return json.reply; // Returns clear text string
}
response.json
{
  "reply": "Here is the summary of the topic according to what you asked...",
  "credit": {
    "tg": "@ScriptDevX",
    "developer": "@Dhiraj_9619"
  }
}
POST

/api/deepsearch

Real-time web-grounded AI answers powered by Live Web Search results, keeping your conversation context intact.

deepsearch.js
async function deepSearch(queryText, chatHistory = []) {
    const data = new FormData();
    data.append('query', queryText);
    data.append('history', JSON.stringify(chatHistory));
    data.append('authorization', 'Bearer YOUR_API_KEY');

    const res = await fetch("https://dev-x-vision.vercel.app/api/deepsearch", {
        method: 'POST', body: data
    });
    const json = await res.json();
    return json.reply; // Returns clear text string with findings
}
response.json
{
  "reply": "Based on my search, the sky appears blue because of a phenomenon called Rayleigh scattering...",
  "sources": [
    {
      "title": "Why is the sky blue?",
      "url": "https://example.com/science/sky-blue"
    }
  ],
  "credit": {
    "tg": "@ScriptDevX",
    "developer": "@Dhiraj_9619"
  }
}
Built with ❤️ by Dhiraj