Api models for a specific feature

Is there a possibility to get available models for specific functions. For my case I would need a list of all models that can be used for api.openai.com/v1/chat/completitons. Currently the only functionality is calling api.openai.com/v1/models which will return all possible models and I don’t know how to get information on which of these can be used for chat completitions.

I can’t post links, but the question with a title “API models endpoint with model features, pricing, context length? (yes - with this Python code)” is basically the same question but @_j has deleted(?) the credited answer or the answer is otherwise not visible to me.

1 Like

This?

Is it @_j’s answer still in the thread , user may of removed granted solution but solution should still be in topic.

Excactly, the answer that wclayf and sashirestela credits doesn’t seem to be available. Wondering if there is a reason.

1 Like

Because who posted the thread decides who gets solutions and looks like they unchecked it for some reason

The user ie the person who made the post can check and uncheck solution as thread evolves.

Also welcome to the forum it is a great rabbit hole :rabbit::hole:

1 Like

Not sure if we understood eachother correctly :slight_smile: I was wondering what was the answer by @_j that these two comments are responding to as there isn’t anything and that seems to be the solution.

1 Like

The question also still stands as this is something I would need to access via API/C# and not Python.

Yes I know J will probably respond to you, I was just explaining why solution may be gone. You kind of asked two questions what is the solution and why is it gone… I answered the latter…

And if he gives you the solution you can check the box and reward @_j for his work… most folks don’t check solution lol.

1 Like

The list of API AI models is here:

https://platform.openai.com/docs/models

Just yesterday I posted a bit of code that will filter the list of models from the models endpoint down to those which can be used with the chat completions endpoint.

You’ll likely want to “chat” with either gpt-4o-2024-11-20, or gpt-4-turbo. Alternately, submit a single question needing problem-solving ability as just a user message to o1-preview.

2 Likes

You can grab a list of models for each endpoint using the OpenAI OpenAPI spec.

Breakdown of Models by Endpoint

1. /v1/chat/completions (Chat Completions)

  • Operation ID: createChatCompletion
  • Models:
    • o3-mini
    • o3-mini-2025-01-31
    • o1
    • o1-2024-12-17
    • o1-preview
    • o1-preview-2024-09-12
    • o1-mini
    • o1-mini-2024-09-12
    • gpt-4o
    • gpt-4o-2024-11-20
    • gpt-4o-2024-08-06
    • gpt-4o-2024-05-13
    • gpt-4o-audio-preview
    • gpt-4o-audio-preview-2024-10-01
    • gpt-4o-audio-preview-2024-12-17
    • gpt-4o-mini-audio-preview
    • gpt-4o-mini-audio-preview-2024-12-17
    • chatgpt-4o-latest
    • gpt-4o-mini
    • gpt-4o-mini-2024-07-18
    • gpt-4-turbo
    • gpt-4-turbo-2024-04-09
    • gpt-4-0125-preview
    • gpt-4-turbo-preview
    • gpt-4-1106-preview
    • gpt-4-vision-preview
    • gpt-4
    • gpt-4-0314
    • gpt-4-0613
    • gpt-4-32k
    • gpt-4-32k-0314
    • gpt-4-32k-0613
    • gpt-3.5-turbo
    • gpt-3.5-turbo-16k
    • gpt-3.5-turbo-0301
    • gpt-3.5-turbo-0613
    • gpt-3.5-turbo-1106
    • gpt-3.5-turbo-0125
    • gpt-3.5-turbo-16k-0613

2. /v1/completions (Completions - Legacy)

  • Operation ID: createCompletion
  • Models:
    • gpt-3.5-turbo-instruct
    • davinci-002
    • babbage-002

3. /v1/embeddings (Embeddings)

  • Operation ID: createEmbedding
  • Models:
    • text-embedding-ada-002
    • text-embedding-3-small
    • text-embedding-3-large

4. /v1/audio/speech (Text-to-Speech)

  • Operation ID: createSpeech
  • Models:
    • tts-1
    • tts-1-hd

5. /v1/audio/transcriptions (Audio Transcription)

  • Operation ID: createTranscription
  • Models:
    • whisper-1

6. /v1/audio/translations (Audio Translation)

  • Operation ID: createTranslation
  • Models:
    • whisper-1

7. /v1/images/generations (Image Generation)

  • Operation ID: createImage
  • Models:
    • dall-e-2
    • dall-e-3

8. /v1/images/edits (Image Editing)

  • Operation ID: createImageEdit
  • Models:
    • dall-e-2

9. /v1/images/variations (Image Variation)

  • Operation ID: createImageVariation
  • Models:
    • dall-e-2

10. /v1/moderations (Moderation)

  • Operation ID: createModeration
  • Models:
    • omni-moderation-latest
    • omni-moderation-2024-09-26
    • text-moderation-latest
    • text-moderation-stable

11. /v1/fine_tuning/jobs (Fine-tuning)

  • Models:
    • babbage-002
    • davinci-002
    • gpt-3.5-turbo
    • gpt-4o-mini

12. /realtime/sessions (Realtime API)

  • Models:
    • gpt-4o-realtime-preview
    • gpt-4o-realtime-preview-2024-10-01
    • gpt-4o-realtime-preview-2024-12-17
    • gpt-4o-mini-realtime-preview
    • gpt-4o-mini-realtime-preview-2024-12-17

Summary Table

Endpoint Models
/v1/chat/completions gpt-4o, gpt-4o-mini, gpt-4-turbo, gpt-4, gpt-4-32k, gpt-3.5-turbo, o3-mini, o1, gpt-4o-audio-preview, chatgpt-4o-latest
/v1/completions (Legacy) gpt-3.5-turbo-instruct, davinci-002, babbage-002
/v1/embeddings text-embedding-ada-002, text-embedding-3-small, text-embedding-3-large
/v1/audio/speech tts-1, tts-1-hd
/v1/audio/transcriptions, /v1/audio/translations whisper-1
/v1/images/generations dall-e-2, dall-e-3
/v1/images/edits, /v1/images/variations dall-e-2
/v1/moderations text-moderation-latest, text-moderation-stable, omni-moderation-latest, omni-moderation-2024-09-26
/v1/fine_tuning/jobs babbage-002, davinci-002, gpt-3.5-turbo, gpt-4o-mini
/realtime/sessions gpt-4o-realtime-preview, gpt-4o-mini-realtime-preview
4 Likes