# Which models for which API

**URL:** <https://community.openai.com/t/which-models-for-which-api/147818>\
**Category:** API\
**Tags:** api, rust\
**Created:** [April 9, 2023, 12:12am UTC](https://community.openai.com/t/which-models-for-which-api/147818 "2023-04-09T00:12:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mustmolenberg](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/mustmolenberg/32/117460_2.png) [@mustmolenberg](https://community.openai.com/u/mustmolenberg)\
**Post date:** [April 9, 2023, 12:12am UTC](https://community.openai.com/t/which-models-for-which-api/147818/1 "2023-04-09T00:12:02Z")

</div>

I am writing a small CLI interface in Rust to access the API  
([Here](https://github.com/worikgh/open_ai_chat_gpt3.git) if any body cares)

When switching between models and completions and chat it would be useful to filter the available models to the API endpoint.

How can I tell, at runtime, which models are suitable for which API?

Is there a definitive list anywhere?

Is it stable? Do models shift roles at all?

---

<div class="post-metadata">

**Author:** ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)\
**Post date:** [April 9, 2023, 4:42am UTC](https://community.openai.com/t/which-models-for-which-api/147818/2 "2023-04-09T04:42:35Z")

</div>

Welcome to the forum.

You mean something like this?

> **[OpenAI API](https://platform.openai.com/docs/models/model-endpoint-compatibility)**
>
> An API for accessing new AI models developed by OpenAI

---

<div class="post-metadata">

**Author:** ![mustmolenberg](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/mustmolenberg/32/117460_2.png) [@mustmolenberg](https://community.openai.com/u/mustmolenberg)\
**Post date:** [April 9, 2023, 5:28am UTC](https://community.openai.com/t/which-models-for-which-api/147818/3 "2023-04-09T05:28:00Z")

</div>

> Is there a definitive list anywhere?

Yes there is! And that is it. Thank you.

I have two prongs of my question left, one important, one less so.

- Is this stable? Do models change roles?

I am expecting they do not But I have not seen that in the documentation

- Is there a way of getting this information at run time?

I can see nothing in the permissions block (at [https://api.openai.com/v1/models/](https://api.openai.com/v1/models/)) that looks useful.

I expecting I need to hard code the data from [https://platform.openai.com/docs/models/model-endpoint-compatibility](https://platform.openai.com/docs/models/model-endpoint-compatibility)

---

<div class="post-metadata">

**Author:** ![grzegorz](https://avatars.discourse-cdn.com/v4/letter/g/58f4c7/32.png) [@grzegorz](https://community.openai.com/u/grzegorz)\
**Post date:** [July 13, 2023, 4:17pm UTC](https://community.openai.com/t/which-models-for-which-api/147818/4 "2023-07-13T16:17:17Z")

</div>

As you are working with Rust @mustmolenberg ,  
you maybe interested in effort to bring Rustceans together and organize posts better with better set of Rust related tags?

> [@Rustceans! Tag your posts! And connect with other Rustceans!](https://community.openai.com/t/rustceans-tag-your-posts-and-connect-with-other-rustceans/287051/6):
>
> My tag requests: rust-macros frameworks-rust (as different to library-rust) rust-script-org (for those who want to generate [rust-script.org](http://rust-script.org) one-file rust programs , instead e.g. of python or bash ones wink ) post to be tagged: [How to generate/modify rust-scripts sourcecode with OpenAI API?](https://community.openai.com/t/how-to-generate-modify-rust-scripts-sourcecode-with-openai-api/267190)
