API reference
Get a model
GET
One model, including the inputs a media model accepts. Model ids contain a slash, which is part of the path.
bearerAuthheader
AuthorizationBearer <token>Your API key, sent as Authorization: Bearer <key>.
id*stringThe model id, in author/slug form.
The model.
application/json- response
id*stringobject*stringcreated*integerowned_by*stringmodality*stringValue in
"text""embeddings""image""video""audio_tts""audio_stt""music""tool"pricing*inputs?For a media model, each input it accepts, keyed by input name.
curl -X GET "https://example.com/v1/models/openai/gpt-oss-120b" \ -H "Authorization: Bearer $OP_API_KEY"{ "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 ] } } }}