Build with DataPilot AI
Integrate our powerful AI into your applications. Access comprehensive APIs, SDKs, and examples to get started quickly.
Quick Start Guide
Get up and running with DataPilot AI in three simple steps.
Get Your API Key
Sign up for a free account and generate an API key from your dashboard.
Install SDK
Choose your language and install our official, lightweight SDK.
Make Your First Call
Use a code example to make your first API call in minutes.
Live SQL Demo
Type a natural language query and see it converted to SQL in real-time.
Natural Language Query
Try: "Top 10 customers by revenue", "Count users in each country"
Generated SQL
SQL output will appear here...
Code Examples
Ready-to-use code snippets for our most popular endpoints.
import requests
api_key = "YOUR_API_KEY"
headers = {"Authorization": f"Bearer {api_key}"}
def query_Nexusai(prompt):
response = requests.post(
"https://api.datapilot.ai/v1/Nexusai/completions",
headers=headers,
json={"prompt": prompt, "max_tokens": 150}
)
return response.json()
print(query_Nexusai("Explain quantum computing."))
const axios = require('axios');
const apiKey = 'YOUR_API_KEY';
const headers = {'Authorization': `Bearer ${apiKey}`};
async function queryNexusAI(prompt) {
const response = await axios.post(
'https://api.datapilot.ai/v1/Nexusai/completions',
{ prompt: prompt, max_tokens: 150 },
{ headers }
);
return response.data;
}
queryNexusAI("Explain quantum computing.").then(console.log);
import java.net.URI;
import java.net.http.*;
public class DataPilotExample {
public static void main(String[] args) throws Exception {
var apiKey = "YOUR_API_KEY";
var requestBody = "{\"prompt\":\"Explain quantum computing.\",\"max_tokens\":150}";
var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
.uri(URI.create("https://api.datapilot.ai/v1/Nexusai/completions"))
.header("Authorization", "Bearer " + apiKey)
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(requestBody))
.build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
Official SDKs
Install our official SDKs to simplify integration.
Ready to Build?
Explore our powerful APIs and start building your next application today.
Get Started for Free