API models endpoint with model features, pricing, context length? (yes - with this Python code)

I’ve posted to github-q&a
similar to client.models.list(), is there any way to list available/valid models at respective capability level like client.chat.models.list() or client.embeddings.models.list() ?

if we pass model="text-embedding-ada-002" not suitable for chat.completion.create we get an error:

NotFoundError: Error code: 404 - {'error': {'message': 'This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to use v1/completions?', 'type': 'invalid_request_error', 'param': 'model', 'code': None}}