Home / Servers / OpenAI API / usage_images

Images

An MCP tool from the OpenAI API server, hosted on mcp.hjlabs.in.

Images Get images usage details for the organization. [GET /organization/usage/images]

Name on the gateway: openai_api__usage_images · read-only.

Parameters

NameTypeDescription
start_time requiredintegerStart time (Unix seconds) of the query time range, inclusive.
end_timeintegerEnd time (Unix seconds) of the query time range, exclusive.
bucket_width1m | 1h | 1dWidth of each time bucket in response. Currently 1m, 1h and 1d are supported…
sourcesarrayReturn only usages for these sources. Possible values are image.generation…
sizesarrayReturn only usages for these image sizes. Possible values are 256x256…
project_idsarrayReturn only usage for these projects.
user_idsarrayReturn only usage for these users.
api_key_idsarrayReturn only usage for these API keys.
modelsarrayReturn only usage for these models.
group_byarrayGroup the usage data by the specified fields. Support fields include…
limitintegerSpecifies the number of buckets to return. - bucket_width=1d: default: 7, max…
pagestringA cursor for use in pagination. Corresponding to the next_page field from the…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "openai_api__usage_images",
  "arguments": {
    "start_time": 0
  }
}

Or connect the OpenAI API server directly, which lists 371 tools including this one:

Run in your terminal
claude mcp add --transport http hj-openai-api https://mcp.hjlabs.in/mcp/openai-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the images tool with start_time set to ….

More from OpenAI API