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"pricing*inputs?For a media model, each input it accepts.
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": [ {} ] }, "inputs": {}}