The ultimate unified gateway for high-performance AI models and advanced services.
0
Endpoints
0
Uptime
0
Latency
POST
/api/vision
POST /api/vision
Description: Extracts intelligent JSON structured information from images.
Input Parameters (FormData):
- image (File, required if no message) — The image to analyze.
- message (String, optional) — Text Query.
Javascript Implementation:
async function getVisionPrompt(userText, imageFile) {
const data = new FormData();
if (userText) data.append('message', userText);
data.append('image', imageFile);
// Add Authorization if you have an API key
if (API_KEY) data.append('authorization', `Bearer ${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;
}
Expected JSON Response:
{
"user_question": "...",
"image_details": {
"overall_description": "...",
"identified_subjects": [
{
"name": "...",
"action_or_context": "...",
"location_in_image": "..."
}
],
"colors_and_theme": ["...", "..."],
"extracted_text": "...",
"objects_and_layout": "..."
}
}
Extracts intelligent JSON structured information from images. Passes background visual context back dynamically.
Input Parameters (FormData)
imageFilerequired*
The image file to analyze. Required if no message is provided.
messageStringoptional
Text Query, e.g. "what error is in this?" or "describe this image".
authorizationStringrequired*
Bearer devx-xxxx-xxxx from bot.
Javascript Implementation
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
}
Expected JSON Response
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
POST /api/chat
Description: Robust conversational endpoint maintaining chat memory history. Supports image uploads.
Input Parameters (FormData):
- message (String) — The text prompt.
- history (Stringified Array) — Conversation history format: [{"role": "user", "content": "hi"}].
- image (File, optional) — Image file for multimodal chat.
- authorization (String, required) — Bearer YOUR_API_KEY.
Javascript Implementation:
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;
}
Expected JSON Response:
{
"reply": "..."
}
Robust conversational endpoint maintaining chat memory history. Now supports image uploads for multimodal queries.
Input Parameters (FormData)
messageStringrequired*
The text prompt or question to send to the AI.
historyArray (Stringified)optional
Conversation history in format: [{"role": "user", "content": "hi"}].
imageFileoptional
Image file for multimodal chat with visual context.
authorizationStringrequired*
Bearer devx-xxxx-xxxx from bot.
Javascript Implementation
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
}
Expected JSON Response
response.json
{
"reply": "Here is the summary of the topic according to what you asked...",
"credit": {
"tg": "@ScriptDevX",
"developer": "@Dhiraj_9619"
}
}
POST
/api/deepsearch
POST /api/deepsearch
Description: Real-time web-grounded AI answers with conversation history support.
Input Parameters (FormData):
- query (String) — The search query or question to ask.
- history (Stringified Array, optional) — Conversation history format: [{"role": "user", "content": "hi"}].
- authorization (String, required) — Bearer YOUR_API_KEY.
Javascript Implementation:
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;
}
Expected JSON Response:
{
"reply": "According to the latest sources...",
"sources": [
{
"title": "Example Source",
"url": "https://example.com"
}
]
}
Real-time web-grounded AI answers powered by Live Web Search results, keeping your conversation context intact.
Input Parameters (FormData)
queryStringrequired*
The search query or question to ask the Web-enabled AI.
historyArray (Stringified)optional
Conversation history for follow-up questions. Format: [{"role": "user", "content": "hi"}].
authorizationStringrequired*
Bearer devx-xxxx-xxxx from bot.
Javascript Implementation
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
}
Expected JSON Response
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"
}
}