API reference · Account

List available models

GEThttps://api.imagemcpserver.com/v1/models
💳 Free🛠️ MCP tool: list_modelsimagemcp.js models:list

Returns the models currently marked live for image output, ordered by priority. Each entry carries the costPerReq that model-priced tools bill, so an agent can pick a cheaper model when the balance is low. The call is free, but like every other /v1 endpoint it needs a key.

Overview

List every live image model you can pass as the model parameter, with its credit cost.

This endpoint never deducts credits.

Request

Headers

FieldTypeDescription
AuthorizationrequiredstringBearer <IMAGEMCP_API_KEY>. The header x-api-key: <key> is accepted as an alternative.

This endpoint takes no parameters — only the authorization header.

Examples

The same call in every form we support. The MCP tab is what an MCP client sends under the hood; the CLI tab is what an agent with the agent skill runs.

list_models
curl "https://api.imagemcpserver.com/v1/models" \
  -H "Authorization: Bearer $IMAGEMCP_API_KEY"

Response

Response fields

FieldTypeDescription
countnumberNumber of models returned.
models[].modelIdstringValue to pass as the model parameter.
models[].namestringHuman-readable model name.
models[].costPerReqnumberCredits deducted per request on model-priced tools.
models[].prioritynumberRouting priority; higher sorts first.
models[].isLivebooleanWhether the model is currently selectable.
200 OK
{
  "success": true,
  "count": 3,
  "models": [
    {
      "modelId": "google/gemini-2.5-flash-image",
      "name": "Google: Gemini 2.5 Flash Image",
      "costPerReq": 15,
      "priority": 100,
      "outputsSupported": ["image"],
      "isLive": true
    },
    {
      "modelId": "black-forest-labs/flux-1.1-pro",
      "name": "Black Forest Labs: FLUX 1.1 Pro",
      "costPerReq": 20,
      "priority": 80,
      "outputsSupported": ["image"],
      "isLive": true
    }
  ]
}

When it fails

Errors return success: false with a message. See errors & troubleshooting for the status codes and whether a retry is worth it.

FAQ

Which model is used when I omit the model parameter?

Requests fall back to google/gemini-2.5-flash-image. The same fallback applies when the model you pass is not an image model.

How do I know what a model will cost me?

Read costPerReq on the model entry. Model-priced tools deduct exactly that amount, or 15 credits when a model has no cost recorded.