Retrieves public models

v1
get
/1/ai/{product_id}/openai/models

Retrieves a list of models in the OpenAI standard (https://platform.openai.com/docs/api-reference/models/list)

Path parameters

product_id
requiredstring
Examples:example

Response Body

application/json
resultstring
Possible values:successerrorasynchronous

Result of the HTTP request

Examples:success
datarequiredOpenAI Model

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/{product_id}/openai/models', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
            

Example response

application/json
                
                    
{
"result":"success",
"data":{
"id":"model-id-0",
"object":"model",
"created":1742971676,
"owned_by":"system"
}
}