Creates a list of available AI methods for the given PROMPT or ENTITY. By specifying a prompt or entity, this function generates a list of associated ai methods that can be executed. It provides an overview of all AI actions that can be applied to the given input.
Result
The result provides a JSON or XML array that lists all available ai-related methods. Each method includes its name and a function URL, which uses the given entity or prompt to call the API.GET-Parameters
Parameters (Mandatory)
api_key
STRING
Your personal API key. This key is used to authenticate your requests. You can obtain it here.
Parameters (Optional)
entity
STRING
In the context of AI analysis, an entity is a clearly identifiable object or concept mentioned within a text. This can include companies or brands (e.g., SISTRIX, Nike), people (e.g., Angela Merkel), places (e.g., Berlin, New York), or products and services (e.g., Toolbox, iPhone).
prompt
STRING
Specifies the prompt for which the AI endpoints should be retrieved.
format
STRING
Specifies whether the response will be returned in XML or JSON format. By default, the result will be in XML format.
To be able to use the API documentation with real data, you have to create an API key in your account.
EXAMPLE
$baseUrl = "https://api.sistrix.com/ai";
$post = [
];
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $baseUrl);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl);
curl_close($curl);
import requests
baseUrl = 'https://api.sistrix.com/ai'
post = {
}
response = requests.post(baseUrl, post)
data = response.text
curl https://api.sistrix.com/ai \
let baseUrl = 'https://api.sistrix.com/ai';
let form = new FormData();
fetch(baseUrl, {
method: 'POST',
body: form
}).then(function(response){
return response.text();
}).then(function(data){
//data contains the results of the request
})