Get per-step model_call_logs for a workflow run
curl --request GET \
--url https://api.infery.ai/v1/workflows/runs/{id}/logs \
--header 'Authorization: <api-key>'import requests
url = "https://api.infery.ai/v1/workflows/runs/{id}/logs"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.infery.ai/v1/workflows/runs/{id}/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.infery.ai/v1/workflows/runs/{id}/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: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.infery.ai/v1/workflows/runs/{id}/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.infery.ai/v1/workflows/runs/{id}/logs")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.infery.ai/v1/workflows/runs/{id}/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "d21f6c0e-1a44-4a92-9d0b-58c7e3a1b904",
"step_id": "summarise",
"attempt": 1,
"status": "succeeded",
"input_tokens": 1240,
"output_tokens": 380,
"settled_credits": 1.284,
"error_message": "upstream provider returned 502",
"started_at": "2026-05-04T09:15:23.401Z",
"completed_at": "2026-05-04T09:15:25.544Z"
}
]
}{
"error": {
"message": "Model not found",
"type": "invalid_request_error",
"code": "model_not_found",
"param": "model",
"job_id": "job_1hR9xTPZqK4mVLc2nJ7fY5wB"
}
}{
"error": {
"message": "Model not found",
"type": "invalid_request_error",
"code": "model_not_found",
"param": "model",
"job_id": "job_1hR9xTPZqK4mVLc2nJ7fY5wB"
}
}Workflows
Run logs
GET /v1/workflows/runs//logs
GET
/
v1
/
workflows
/
runs
/
{id}
/
logs
Get per-step model_call_logs for a workflow run
curl --request GET \
--url https://api.infery.ai/v1/workflows/runs/{id}/logs \
--header 'Authorization: <api-key>'import requests
url = "https://api.infery.ai/v1/workflows/runs/{id}/logs"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.infery.ai/v1/workflows/runs/{id}/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.infery.ai/v1/workflows/runs/{id}/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: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.infery.ai/v1/workflows/runs/{id}/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.infery.ai/v1/workflows/runs/{id}/logs")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.infery.ai/v1/workflows/runs/{id}/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "d21f6c0e-1a44-4a92-9d0b-58c7e3a1b904",
"step_id": "summarise",
"attempt": 1,
"status": "succeeded",
"input_tokens": 1240,
"output_tokens": 380,
"settled_credits": 1.284,
"error_message": "upstream provider returned 502",
"started_at": "2026-05-04T09:15:23.401Z",
"completed_at": "2026-05-04T09:15:25.544Z"
}
]
}{
"error": {
"message": "Model not found",
"type": "invalid_request_error",
"code": "model_not_found",
"param": "model",
"job_id": "job_1hR9xTPZqK4mVLc2nJ7fY5wB"
}
}{
"error": {
"message": "Model not found",
"type": "invalid_request_error",
"code": "model_not_found",
"param": "model",
"job_id": "job_1hR9xTPZqK4mVLc2nJ7fY5wB"
}
}The per-step model calls behind a run: which model, how many tokens, what it cost.
Use it to answer “why did this run cost that” — the run itself reports one total, and this is the breakdown.
Authorizations
API key in format: Bearer inf_***
Path Parameters
Run UUID.
Example:
"3c9a7e51-8b24-4f0d-9a17-6e2b5c4d8a03"
Response
Model call rows for this run, oldest first.
The run's model and media calls, oldest first. [] is a normal answer — for a workflow whose steps call no model, and for any run older than the 7-day retention window.
Show child attributes
Show child attributes