Retrieves public models
v1
get
/1/ai/models
Retrieves a collection of enabled and public Artificial Intelligence (AI) models.
Response Body
application/json
resultrequiredstring
Possible values:successerrorasynchronous
Result of the HTTP request
Examples:success
dataarrayofstring
Example request
<?php
use GuzzleHttp\Client;
$client = new Client();
$headers = [
'Authorization' => 'Bearer YOUR-TOKEN-HERE',
'Content-Type' => 'application/json'
];
$request = new Request('GET', 'https://api.infomaniak.com/1/ai/models', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":["example"]}