API reference
List models
GET
Every model your key can use, with its modality and published price.
bearerAuthheader
AuthorizationBearer <token>Your API key, sent as Authorization: Bearer <key>.
The models.
application/json- response
object*stringdata*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 ] } } } } ]}List a model's providers GET
Every provider that serves the model for your key, with what you pay through it and its own rate, sorted by provider. A tool answers 404.
List tasks GET
The latest version of every task your key may call: a key may call a task only if it may use every model the task lists. Each entry carries its input and output schema and an estimated price. Accuracy targets, each a target and not a measurement: field F1 of at least 0.90 for `receipt-extract` and `entities`, and at least 0.80 for `keywords`, scored against a committed corpus of at least 50 cases per task.