List image models

Every image model, the fields it takes and its price. No key needed.

GET

The models POST /images serves, with the prices you pay. Prices are in dollars as decimal strings, one line for each thing a model bills: the images it makes, and the images or text it reads.

A model that bills for something a request can't bound, such as fonts, isn't listed. The list changes when models arrive or leave, at most every hour, so cache it for a few minutes.

No key needed. Anyone can read it.

Response

  • dataobject[]

    One entry per image model.

    • idstring

      The id to send as model.

    • namestring

      Its display name.

    • reads_imagesboolean

      Whether it takes input_references.

    • streamingboolean

      Whether it streams partial images.

    • parametersobject

      The fields it accepts, each with its values ({ "type": "enum", "values": [...] }) or range ({ "type": "range", "min": 1, "max": 4 }). A field not listed is not taken.

    • pricingobject[]

      What you pay, one line per billed item: billable (output_image, input_image, input_reference or input_text), unit (image, megapixel, token or request), usd as a decimal string, and variant when it applies to one tier or quality, such as 2k or low_1k.

Request
curl https://binference.io/api/v1/images/models
Response
{  "object": "list",  "data": [    {      "id": "recraft/recraft-v4.1-flash",      "object": "model",      "name": "Recraft: Recraft V4.1 Flash",      "reads_images": false,      "streaming": false,      "parameters": {        "aspect_ratio": {          "type": "enum",          "values": [            "1:1",            "4:3",            "3:4",            "16:9",            "9:16",            "auto"          ]        },        "n": {          "type": "range",          "min": 1,          "max": 6        }      },      "pricing": [        {          "billable": "output_image",          "unit": "image",          "usd": "0.0084"        }      ]    }  ]}