Usage API
List your team's finished API tasks and the credits each one used, for billing exports and cost reports.
Moving from v1? The parameters and records are the same as on GET /openapi/v1/usage/tasks. The response is {"data": [...], "has_more": ...} instead of a bare array. See Endpoint paths in the migration reference.
To call this endpoint, use an API key of an active member of a Studio or Enterprise team. Any member can call it, not only owners and admins. With any other API key, the request returns 403.
List usage records
Returns one page of your team's usage records, newest first by default. Without start_time and end_time, the records cover the last 30 days. Calling this endpoint is free.
The records include these tasks:
- API tasks that finished as
SUCCEEDEDorFAILED - Tasks of every current member of the team, from any of their API keys
- Tasks you deleted, and tasks whose files have expired
The records leave out these tasks:
- Tasks that are still
PENDINGorIN_PROGRESS, andCANCELEDtasks - Tasks of people who have left the team
They also leave out these tasks, even though they use the same credits:
- Creative Lab tasks
- Tasks that Meshy's AI agents ran
- Work done in the Meshy web app
A task appears after it finishes, in the window of its created_at. Before you reconcile, pull recent windows again.
If your team has a data retention period, the window starts no earlier than that period allows.
Request
# List September's usage, 50 records per page
curl "https://api.meshy.ai/openapi/v2/usage/tasks?page_size=50&start_time=2026-09-01T00:00:00Z&end_time=2026-10-01T00:00:00Z" \
-H "Authorization: Bearer ${MESHY_API_KEY}"
Response
{
"data": [
{
"task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"endpoint": "image-to-3d",
"status": "SUCCEEDED",
"created_at": 1790640079880,
"finished_at": 1790640138211,
"consumed_credits": 30,
"api_key_name": "production",
"api_key_suffix": "a1b2",
"metadata": {
"user": "alex@example.com",
"team": "fab"
}
},
{
"task_id": "018a210d-1c22-7e0f-9d3a-4a5b6c7d8e9f",
"endpoint": "text-to-3d",
"status": "FAILED",
"created_at": 1790639000000,
"finished_at": 1790639030000,
"consumed_credits": 0,
"api_key_name": "production",
"api_key_suffix": "a1b2",
"metadata": {}
}
],
"has_more": true
}
Parameters
- Name
- start_time
- Type
- string
- Description
The start of the window, as an RFC 3339 timestamp, for example
2026-09-01T00:00:00Z. The records include tasks created at or after this time. Leave it out to start the window 30 days beforeend_time.The window can span at most 366 days. A longer window returns
400, so split a longer export into several windows.In a URL, write the
+of an offset such as+08:00as%2B, or useZ. Otherwise the+is read as a space, and the request returns400.
- Name
- end_time
- Type
- string
- Description
The end of the window, as an RFC 3339 timestamp. The records include tasks created before this time. Leave it out to end the window at the time of your request.
- Name
- endpoints
- Type
- string
- Description
A comma-separated list of the endpoints to include, by the same names as the
endpointfield. Leave it out to include every endpoint. An unknown name returns400.Available values:
text-to-3d: one-call, preview, and refine Text to 3D taskstext-to-3d-preview: preview tasks onlytext-to-3d-refine: refine tasks onlyimage-to-3dmulti-image-to-3dremeshconvertresizeuv-unwrapretexturerigrig-checkanimatetext-to-motiontext-to-imageimage-to-imageprint-multi-colorprint-analyzeprint-repairprint-splitrelief
- Name
- status
- Type
- string
- Description
The status to include,
SUCCEEDEDorFAILED. Leave it out to include both. Any other value returns400.
- Name
- page_num
- Type
- integer
- default 1
- Description
The page to return, from
1to255. A value above255returns400. One window holds at most 255 pages, so split a large export into shorter windows.
- Name
- page_size
- Type
- integer
- default 10
- Description
Number of records per page, from
1to100. A value from101to255returns 100 records, and a value above255returns400.
- Name
- sort_by
- Type
- string
- default -created_at
- Description
The sort order.
Available values:
-created_at: newest first+created_at: oldest first
In a URL, write
+as%2B. Otherwise the+is read as a space, and the request returns400.
Returns
- Name
- data
- Type
- array
- Description
The usage records on this page. An empty array when there are none.
- Name
- has_more
- Type
- boolean
- Description
Whether there's another page. If
true, request the next page withpage_numplus one.falseon the last page.
The response has no total count.
Failure modes
- Name
400 - Bad Request- Description
A parameter is invalid. The error message says which one. For example:
start_time must be an RFC 3339 timestamp, e.g. 2026-01-01T00:00:00Zend_time must be after start_timetime range cannot exceed 1 yearinvalid endpoint: "rigging"invalid sort_by: " created_at"
Fix the parameter, then send the request again. See Errors.
- Name
401 - Unauthorized- Description
The API key is missing or invalid. Check the
Authorizationheader.
- Name
403 - Forbidden- Description
The API key's account isn't an active member of a Studio or Enterprise team. The message is
This endpoint is available on Studio and Enterprise plans. Use an API key of a Studio or Enterprise team member.
- Name
429 - Too Many Requests- Description
You sent too many requests. Wait the number of seconds in
Retry-After, then retry.
Usage record object
Usage record
{
"task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"endpoint": "image-to-3d",
"status": "SUCCEEDED",
"created_at": 1790640079880,
"finished_at": 1790640138211,
"consumed_credits": 30,
"api_key_name": "production",
"api_key_suffix": "a1b2",
"metadata": {
"user": "alex@example.com",
"team": "fab"
}
}
- Name
- task_id
- Type
- string
- Description
The task ID. To read a task you created, use
GET /openapi/v2/tasks/{id}until the task is deleted or expires. A task that a teammate created returns404there, because each API key reads only its own account's tasks.
- Name
- endpoint
- Type
- string
- Description
The task's type, for example
image-to-3d,rig, orprint-repair. A one-call Text to 3D task showstext-to-3d, and a preview or refine task showstext-to-3d-previewortext-to-3d-refine.Older records can have names of retired endpoints, which the
endpointsfilter doesn't accept.
- Name
- status
- Type
- string
- Description
The task's final status,
SUCCEEDEDorFAILED.
- Name
- created_at
- Type
- integer
- Description
Time the task was created, in Unix milliseconds.
- Name
- finished_at
- Type
- integer | null
- Description
Time the task finished, in Unix milliseconds.
nullif the task has no finish time.
- Name
- consumed_credits
- Type
- integer
- Description
Number of credits the task used, after refunds.
0for a failed task, and for free tasks such as Analyze Printability.
- Name
- api_key_name
- Type
- string
- Description
The name of the API key that ran the task. For a task run with a Meshy CLI login, it's
Meshy CLI.It's an empty string in these cases:
- The task was never charged, for example an Analyze Printability task, which is free.
- The API key has been deleted.
- The task ran through another app's login.
- The API key was created in the last few minutes.
- Name
- api_key_suffix
- Type
- string
- Description
The last four characters of that API key, to tell keys with the same name apart. An empty string whenever
api_key_nameis empty, and for Meshy CLI logins.
- Name
- metadata
- Type
- object
- Description
The tags sent in the
X-Meshy-Metadataheader when the task was created.{}if none. See Metadata.