API reference · Account

List available models

GEThttps://api.imagemcpserver.com/playground/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. Authentication is optional here, but sending your key keeps the response consistent with what your account can use.

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
AuthorizationstringOptional. Bearer <IMAGEMCP_API_KEY>.

This endpoint takes no parameters — only the authorization header.

Examples

The same call in five forms. 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/playground/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.