Cinema Studio

Read a project's usage

What a project's members made and spent, by member, model and day, for a member who may view usage. The window is days in UTC, both ends counted, at most 366; left out, the thirty days to today. Takes a key holding studio:read (or studio:write, which reads too) — Account offers both unticked — or the desktop's own session key. Spends nothing.

GET
/v1/studio/projects/{project}/usage
GET
/v1/studio/projects/{project}/usage
Read a project's usage
What a project's members made and spent, by member, model and day, for a member who may view usage.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
projectstringrequired
sincestring
untilstring
memberstring
One member's, by their membership id.
modelstring
One model's, by its address or id. 0 to 200 characters.
Read a project's usage
curl --request GET \
  --url 'https://api.auray.ai/v1/studio/projects/{project}/usage' \
  --header 'Authorization: Bearer <api-key>'
{
  "object": "<string>",
  "project_id": "<string>",
  "since": "<string>",
  "until": "<string>",
  "totals": {
    "generations": 123,
    "credits_spent": 123,
    "members": 123,
    "models": 123
  },
  "by_member": [
    {
      "member": {
        "member_id": "<string>",
        "name": "<string>",
        "handle": "<string>",
        "avatar_url": "<string>",
        "left": true
      },
      "generations": 123,
      "credits_spent": 123,
      "last_at": "<string>"
    }
  ],
  "by_model": [
    {
      "model": {
        "address": "<string>",
        "id": "<string>",
        "label": "<string>"
      },
      "generations": 123,
      "credits_spent": 123
    }
  ],
  "by_day": [
    {
      "day": "<string>",
      "generations": 123,
      "credits_spent": 123
    }
  ],
  "storage": {
    "generations": 123,
    "uploads": 123
  },
  "rows": [
    {
      "day": "<string>",
      "member": {
        "member_id": "<string>",
        "name": "<string>",
        "handle": "<string>",
        "avatar_url": "<string>",
        "left": true
      },
      "product": "<string>",
      "model": {
        "address": "<string>",
        "id": "<string>",
        "label": "<string>"
      },
      "generations": 123,
      "credits_spent": 123
    }
  ],
  "request_id": "<string>"
}
Read a project's usage
curl https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/usage \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "object": "<string>",
  "project_id": "<string>",
  "since": "<string>",
  "until": "<string>",
  "totals": {
    "generations": 123,
    "credits_spent": 123,
    "members": 123,
    "models": 123
  },
  "by_member": [
    {
      "member": {
        "member_id": "<string>",
        "name": "<string>",
        "handle": "<string>",
        "avatar_url": "<string>",
        "left": true
      },
      "generations": 123,
      "credits_spent": 123,
      "last_at": "<string>"
    }
  ],
  "by_model": [
    {
      "model": {
        "address": "<string>",
        "id": "<string>",
        "label": "<string>"
      },
      "generations": 123,
      "credits_spent": 123
    }
  ],
  "by_day": [
    {
      "day": "<string>",
      "generations": 123,
      "credits_spent": 123
    }
  ],
  "storage": {
    "generations": 123,
    "uploads": 123
  },
  "rows": [
    {
      "day": "<string>",
      "member": {
        "member_id": "<string>",
        "name": "<string>",
        "handle": "<string>",
        "avatar_url": "<string>",
        "left": true
      },
      "product": "<string>",
      "model": {
        "address": "<string>",
        "id": "<string>",
        "label": "<string>"
      },
      "generations": 123,
      "credits_spent": 123
    }
  ],
  "request_id": "<string>"
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — a key with the scope the route names.

Path Parameters

projectstringrequired

Query Parameters

sincestring
untilstring
memberstring
One member's, by their membership id.
modelstring
One model's, by its address or id. 0 to 200 characters.

Response

application/json

OK.

objectstringrequired
One of "usage".
project_idstringrequired
sincestringrequired
untilstringrequired
totalsobjectrequired
Show child attributes
generationsintegerrequired
credits_spentintegerrequired
membersintegerrequired
modelsintegerrequired
by_memberobject[]required
Show child attributes
memberobjectrequired
Somebody as a project shows them: their membership's id while they are in it and the public Community profile they chose — never an account or an address.
Show child attributes
member_idstringrequired
May be null.
namestringrequired
May be null.
handlestringrequired
May be null.
avatar_urlstringrequired
A URL. May be null.
leftbooleanrequired
Gone from the project since; what they wrote stays, with their name.
generationsintegerrequired
credits_spentintegerrequired
last_atstringrequired
May be null.
by_modelobject[]required
Show child attributes
modelobjectrequired
The model an item was made with: its address and id as GET /models lists it, and the name a person reads. All three are null for the person's own upload; a frame the AI Director cut from a model's clip is named by that clip's model.
Show child attributes
addressstringrequired
May be null.
idstringrequired
May be null.
labelstringrequired
May be null.
generationsintegerrequired
credits_spentintegerrequired
by_dayobject[]required
Show child attributes
daystringrequired
generationsintegerrequired
credits_spentintegerrequired
storageobjectrequired
The bytes the project keeps now, by where they came from.
Show child attributes
generationsintegerrequired
uploadsintegerrequired
rowsobject[]required
One line per member, model and day: what a usage export lists.
Show child attributes
daystringrequired
memberobjectrequired
Somebody as a project shows them: their membership's id while they are in it and the public Community profile they chose — never an account or an address.
Show child attributes
member_idstringrequired
May be null.
namestringrequired
May be null.
handlestringrequired
May be null.
avatar_urlstringrequired
A URL. May be null.
leftbooleanrequired
Gone from the project since; what they wrote stays, with their name.
productstringrequired
One of "photo", "video", "music", "threed", "external", "director".
modelobjectrequired
The model an item was made with: its address and id as GET /models lists it, and the name a person reads. All three are null for the person's own upload; a frame the AI Director cut from a model's clip is named by that clip's model.
Show child attributes
addressstringrequired
May be null.
idstringrequired
May be null.
labelstringrequired
May be null.
generationsintegerrequired
credits_spentintegerrequired
request_idstring
Mirrored in the X-Request-Id header.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-ResetUnix seconds. The X- spelling is what client libraries read.
X-Request-Id

Was this page helpful?

Read a project's usage
curl https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/usage \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "object": "<string>",
  "project_id": "<string>",
  "since": "<string>",
  "until": "<string>",
  "totals": {
    "generations": 123,
    "credits_spent": 123,
    "members": 123,
    "models": 123
  },
  "by_member": [
    {
      "member": {
        "member_id": "<string>",
        "name": "<string>",
        "handle": "<string>",
        "avatar_url": "<string>",
        "left": true
      },
      "generations": 123,
      "credits_spent": 123,
      "last_at": "<string>"
    }
  ],
  "by_model": [
    {
      "model": {
        "address": "<string>",
        "id": "<string>",
        "label": "<string>"
      },
      "generations": 123,
      "credits_spent": 123
    }
  ],
  "by_day": [
    {
      "day": "<string>",
      "generations": 123,
      "credits_spent": 123
    }
  ],
  "storage": {
    "generations": 123,
    "uploads": 123
  },
  "rows": [
    {
      "day": "<string>",
      "member": {
        "member_id": "<string>",
        "name": "<string>",
        "handle": "<string>",
        "avatar_url": "<string>",
        "left": true
      },
      "product": "<string>",
      "model": {
        "address": "<string>",
        "id": "<string>",
        "label": "<string>"
      },
      "generations": 123,
      "credits_spent": 123
    }
  ],
  "request_id": "<string>"
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.