Get Logs
curl --request GET \
--url https://api.modellix.ai/api/v1/logs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.modellix.ai/api/v1/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.modellix.ai/api/v1/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.modellix.ai/api/v1/logs")
.header("Authorization", "Bearer <token>")
.asString();const url = 'https://api.modellix.ai/api/v1/logs';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.modellix.ai/api/v1/logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.modellix.ai/api/v1/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyimport Foundation
let url = URL(string: "https://api.modellix.ai/api/v1/logs")!
var request = URLRequest(url: url)
request.httpMethod = "GET"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Authorization": "Bearer <token>"]
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$response = Invoke-WebRequest -Uri 'https://api.modellix.ai/api/v1/logs' -Method GET -Headers $headers{
"requests": [
{
"task_id": "task-abc123",
"status": "success",
"model": {
"provider": "alibaba",
"model_name": "qwen-image-plus"
},
"created_at": 1700000100,
"cost": 12
}
],
"total": 1,
"page": 1,
"page_size": 10
}Get Logs
Returns paginated media model request logs for the team that owns the API Key. Requires a time window of at most 30 days. Optional mdlx_user_id filters by the end-user id sent as X-Mdlx-User-Id on async inference. Subject to the query rate limit (separate from media generation RPM); responses may include X-RateLimit-* headers.
GET
/
api
/
v1
/
logs
Get Logs
curl --request GET \
--url https://api.modellix.ai/api/v1/logs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.modellix.ai/api/v1/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.modellix.ai/api/v1/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.modellix.ai/api/v1/logs")
.header("Authorization", "Bearer <token>")
.asString();const url = 'https://api.modellix.ai/api/v1/logs';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.modellix.ai/api/v1/logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.modellix.ai/api/v1/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyimport Foundation
let url = URL(string: "https://api.modellix.ai/api/v1/logs")!
var request = URLRequest(url: url)
request.httpMethod = "GET"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Authorization": "Bearer <token>"]
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$response = Invoke-WebRequest -Uri 'https://api.modellix.ai/api/v1/logs' -Method GET -Headers $headers{
"requests": [
{
"task_id": "task-abc123",
"status": "success",
"model": {
"provider": "alibaba",
"model_name": "qwen-image-plus"
},
"created_at": 1700000100,
"cost": 12
}
],
"total": 1,
"page": 1,
"page_size": 10
}Authorizations
Authorization: Bearer
Query Parameters
Window start (UNIX seconds)
Required range:
x >= 1Example:
1700000000
Window end (UNIX seconds). Must be greater than start_time; span ≤ 30 days.
Required range:
x >= 1Example:
1700086400
Exact match filter; same rules as X-Mdlx-User-Id (length 8–128; ASCII letters, digits, -, _).
Required string length:
8 - 128Pattern:
^[A-Za-z0-9_-]+$Example:
"end_user_01"
Required range:
x >= 1Required range:
1 <= x <= 100