OP Inference
API reference

List models

GET
/v1/models

Every model your key can use, with its modality and published price.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Your API key, sent as Authorization: Bearer <key>.

Response Body

The models.

application/json
  1. response
object*string
data*array<>
curl -X GET "https://example.com/v1/models" \  -H "Authorization: Bearer $OP_API_KEY"
{  "object": "list",  "data": [    {      "id": "string",      "object": "model",      "created": 0,      "owned_by": "string",      "modality": "text",      "pricing": {        "price_version": "string",        "currency": "string",        "rules": [          {            "unit": "string",            "match": {              "property1": "string",              "property2": "string"            },            "per": 0,            "usd": 0          }        ]      },      "inputs": {        "property1": {          "type": "string",          "required": true,          "default": null,          "min": 0,          "max": 0,          "max_length": 0,          "values": [            null          ],          "kind": "image",          "max_items": 0,          "excludes": [            "string"          ],          "requires": [            "string"          ],          "sizes": [            "string"          ],          "values_when": {            "property1": [              null            ],            "property2": [              null            ]          }        },        "property2": {          "type": "string",          "required": true,          "default": null,          "min": 0,          "max": 0,          "max_length": 0,          "values": [            null          ],          "kind": "image",          "max_items": 0,          "excludes": [            "string"          ],          "requires": [            "string"          ],          "sizes": [            "string"          ],          "values_when": {            "property1": [              null            ],            "property2": [              null            ]          }        }      }    }  ]}