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/chatmodel

Advanced configurable conversational endpoint supporting deep reasoning effort, stream mode, and custom model selection.

chatmodel.js
async function chatModel(messageText, model = 'deepseek-v4-flash', provider = 'auto', type = 'chat', effort = 'Medium', stream = 'false') {
    const data = new FormData();
    data.append('message', messageText);
    data.append('model', model);
    data.append('modelProvider', provider);
    data.append('modelType', type);
    data.append('effort', effort);
    data.append('stream', stream);
    data.append('authorization', 'Bearer YOUR_API_KEY');

    const res = await fetch("https://devx-free-api.onrender.com/api/chatmodel", {
        method: 'POST', body: data
    });
    const json = await res.json();
    return json.reply; // Returns clear text response
}
response.json
{
  "reply": "Hello! How can I assist you today?",
  "reasoning": "The user is saying hi, I should respond politely...",
  "credit": {
    "tg": "@ScriptDevX",
    "developer": "@Dhiraj_9619"
  }
}
POST

/api/songgen

Generates AI songs with original lyrics and cover art based on a theme.

songgen.js
async function generateSong(theme) {
    const data = new FormData();
    data.append('theme', theme);
    data.append('authorization', 'Bearer YOUR_API_KEY');

    const res = await fetch("https://devx-free-api.onrender.com/api/songgen", {
        method: 'POST', body: data
    });
    const json = await res.json();
    return json.reply; // Returns title, genre, cover_art, and mp3_url
}
response.json
{
  "reply": {
    "title": "Summer Vibes",
    "genre": "Pop",
    "cover_art": "https://media.coocent.net/DJ/AIMusic/AICover/pop_happy_3.webp",
    "mp3_url": "https://agent.coocent.com/storage/music/..."
  },
  "credit": {
    "tg": "@ScriptDevX",
    "developer": "@Dhiraj_9619"
  }
}
POST

/api/bgremove

High-quality background removal using professional AI models. Perfectly handles hair, shadows, and complex edges. Returns the processed image as a PNG file.

bgremove.js
async function removeBackground(imageFile) {
    const data = new FormData();
    data.append('image', imageFile);
    data.append('authorization', 'Bearer YOUR_API_KEY');

    const res = await fetch("https://devx-free-api.onrender.com/api/bgremove", {
        method: 'POST', body: data
    });
    
    if (res.ok) {
        const blob = await res.blob();
        return URL.createObjectURL(blob); // URL to the processed image
    }
    const error = await res.json();
    console.error(error);
}

This endpoint returns binary image data (image/png). On error, it returns a JSON response with the error details.

POST

/api/uncensoredchat

Uncensored chat model ensuring high creative freedom with built-in thinking capability, running a fresh session per request.

uncensored.js
async function uncensoredChat(messageText, modelVersion = "v1", thinkMode = "false", chatHistory = []) {
    const data = new FormData();
    data.append('message', messageText);
    data.append('model', modelVersion);
    data.append('think_mode', thinkMode);
    data.append('history', JSON.stringify(chatHistory));
    data.append('authorization', 'Bearer YOUR_API_KEY');

    const res = await fetch("https://devx-free-api.onrender.com/api/uncensoredchat", {
        method: 'POST', body: data
    });
    const json = await res.json();
    return json.reply;
}
response.json
{
  "reply": "Here is the raw, unrestricted response...",
  "credit": {
    "tg": "@ScriptDevX",
    "developer": "@Dhiraj_9619"
  }
}
Built with ❤️ by Dhiraj