Openai integration
List models (OpenAI format)
GET
/openai/v1/modelsLists available models in OpenAI format.
Note: This endpoint also works without the /v1 prefix (e.g., /openai/models).
Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:8080/openai/v1/models"{
"object": "list",
"data": [
{
"id": "string",
"object": "model",
"owned_by": "string",
"created": 0,
"active": true,
"context_window": 0
}
]
}{
"event_id": "string",
"type": "string",
"is_bifrost_error": true,
"status_code": 0,
"error": {
"type": "string",
"code": "string",
"message": "string",
"param": "string",
"event_id": "string"
},
"extra_fields": {
"provider": "openai",
"model_requested": "string",
"request_type": "string"
}
}{
"event_id": "string",
"type": "string",
"is_bifrost_error": true,
"status_code": 0,
"error": {
"type": "string",
"code": "string",
"message": "string",
"param": "string",
"event_id": "string"
},
"extra_fields": {
"provider": "openai",
"model_requested": "string",
"request_type": "string"
}
}List files (OpenAI format) GET
Lists uploaded files. Note: This endpoint also works without the /v1 prefix (e.g., /openai/files).
Retrieve batch job (OpenAI format) GET
Retrieves details of a batch processing job. Note: This endpoint also works without the /v1 prefix (e.g., /openai/batches/{batch_id}).