curl "$ATAI_API_ENDPOINT/inference/sessions?model=omega-embedding&status=running" \
-H "Authorization: Bearer $ATAI_API_KEY"
import os
import requests
base_url = os.environ["ATAI_API_ENDPOINT"]
api_key = os.environ["ATAI_API_KEY"]
response = requests.get(
f"{base_url}/inference/sessions",
headers={"Authorization": f"Bearer {api_key}"},
params={"model": "omega-embedding", "status": "running"},
)
for session in response.json()["data"]:
print(session["id"], session["status"])
const params = new URLSearchParams({ model: 'omega-embedding', status: 'running' });
const response = await fetch(`${process.env.ATAI_API_ENDPOINT}/inference/sessions?${params}`, {
headers: {
'Authorization': `Bearer ${process.env.ATAI_API_KEY}`
}
});
const body = await response.json();
for (const session of body.data) {
console.log(session.id, session.status);
}
{
"data": [
{
"id": "ses_01jcx4m8t2vq6xn3r7k5hbzw9e",
"model": "omega-embedding",
"status": "running",
"values": {"window_size": 1024, "step_size": 512},
"error": null,
"created_at": "2026-11-11T09:12:44Z",
"started_at": "2026-11-11T09:12:51Z",
"completed_at": null
}
],
"has_more": false,
"next_cursor": null,
"prev_cursor": null
}
Sessions
List Model Sessions
List your sessions on platform-hosted models, newest first
GET
/
api
/
inference
/
sessions
curl "$ATAI_API_ENDPOINT/inference/sessions?model=omega-embedding&status=running" \
-H "Authorization: Bearer $ATAI_API_KEY"
import os
import requests
base_url = os.environ["ATAI_API_ENDPOINT"]
api_key = os.environ["ATAI_API_KEY"]
response = requests.get(
f"{base_url}/inference/sessions",
headers={"Authorization": f"Bearer {api_key}"},
params={"model": "omega-embedding", "status": "running"},
)
for session in response.json()["data"]:
print(session["id"], session["status"])
const params = new URLSearchParams({ model: 'omega-embedding', status: 'running' });
const response = await fetch(`${process.env.ATAI_API_ENDPOINT}/inference/sessions?${params}`, {
headers: {
'Authorization': `Bearer ${process.env.ATAI_API_KEY}`
}
});
const body = await response.json();
for (const session of body.data) {
console.log(session.id, session.status);
}
{
"data": [
{
"id": "ses_01jcx4m8t2vq6xn3r7k5hbzw9e",
"model": "omega-embedding",
"status": "running",
"values": {"window_size": 1024, "step_size": 512},
"error": null,
"created_at": "2026-11-11T09:12:44Z",
"started_at": "2026-11-11T09:12:51Z",
"completed_at": null
}
],
"has_more": false,
"next_cursor": null,
"prev_cursor": null
}
Requires version 2.0.1 or later of the Archetype platform.
Overview
This endpoint lists your sessions on models, newest first. Ended sessions are listed too, until you delete them. You see the sessions you opened from any of your API keys or your Developer Console login. A service-account key sees the sessions of every service-account key in the organization, and an organization admin sees all of the organization’s.Request
Only sessions on this model, by any of its names. A name no model has returns an empty page. A
removed model’s name still lists its sessions.
Only sessions in this status:
running, completed, failed, or cancelled. Any other value
returns 400.Forward cursor. Pass the
next_cursor of the previous page to get older sessions. Can’t be combined
with before.Backward cursor. Pass the
prev_cursor of the current page to step back. Can’t be combined with
after.Response
The page of session objects, newest first.
curl "$ATAI_API_ENDPOINT/inference/sessions?model=omega-embedding&status=running" \
-H "Authorization: Bearer $ATAI_API_KEY"
import os
import requests
base_url = os.environ["ATAI_API_ENDPOINT"]
api_key = os.environ["ATAI_API_KEY"]
response = requests.get(
f"{base_url}/inference/sessions",
headers={"Authorization": f"Bearer {api_key}"},
params={"model": "omega-embedding", "status": "running"},
)
for session in response.json()["data"]:
print(session["id"], session["status"])
const params = new URLSearchParams({ model: 'omega-embedding', status: 'running' });
const response = await fetch(`${process.env.ATAI_API_ENDPOINT}/inference/sessions?${params}`, {
headers: {
'Authorization': `Bearer ${process.env.ATAI_API_KEY}`
}
});
const body = await response.json();
for (const session of body.data) {
console.log(session.id, session.status);
}
{
"data": [
{
"id": "ses_01jcx4m8t2vq6xn3r7k5hbzw9e",
"model": "omega-embedding",
"status": "running",
"values": {"window_size": 1024, "step_size": 512},
"error": null,
"created_at": "2026-11-11T09:12:44Z",
"started_at": "2026-11-11T09:12:51Z",
"completed_at": null
}
],
"has_more": false,
"next_cursor": null,
"prev_cursor": null
}
Important Notes
400means a malformed cursor orstatus, or bothafterandbefore.- Cursors are opaque. Never build one from session fields.
Was this page helpful?