1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

APIから見えるOpenAIのモデル一覧

Posted at

たまに古いモデルをテストしたい時があって、公式ページにはモデルの情報はもう乗っていなかったりするので、利用できるモデルを整理してみました。

利用したAPIの詳細は以下の通りです。
https://platform.openai.com/docs/api-reference/models/list

なお、利用できなくなったモデルたちは以下のURLで確認できます。
https://platform.openai.com/docs/deprecations

モデル一覧

Model ID Created Owned By
text-embedding-ada-002 2022-12-16 19:01:39 openai-internal
whisper-1 2023-02-27 21:13:04 openai-internal
gpt-3.5-turbo 2023-02-28 18:56:42 openai
tts-1 2023-04-19 21:49:11 openai-internal
gpt-3.5-turbo-16k 2023-05-10 22:35:02 openai-internal
gpt-4-0613 2023-06-12 16:54:56 openai
gpt-4 2023-06-27 16:13:31 openai
davinci-002 2023-08-21 16:11:41 system
babbage-002 2023-08-21 16:16:55 system
gpt-3.5-turbo-instruct 2023-08-24 18:23:47 system
gpt-3.5-turbo-instruct-0914 2023-09-07 21:34:32 system
dall-e-3 2023-10-31 20:46:29 system
dall-e-2 2023-11-01 00:22:57 system
gpt-4-1106-preview 2023-11-02 20:33:26 system
gpt-3.5-turbo-1106 2023-11-02 21:15:48 system
tts-1-hd 2023-11-03 21:13:35 system
tts-1-1106 2023-11-03 23:14:01 system
tts-1-hd-1106 2023-11-03 23:18:53 system
text-embedding-3-small 2024-01-22 18:43:17 system
text-embedding-3-large 2024-01-22 19:53:00 system
gpt-4-0125-preview 2024-01-23 19:20:12 system
gpt-4-turbo-preview 2024-01-23 19:22:57 system
gpt-3.5-turbo-0125 2024-01-23 22:19:18 system
gpt-4-turbo 2024-04-05 23:57:21 system
gpt-4-turbo-2024-04-09 2024-04-08 18:41:17 system
gpt-4o 2024-05-10 18:50:49 system
gpt-4o-2024-05-13 2024-05-10 19:08:52 system
gpt-4o-mini-2024-07-18 2024-07-16 23:31:57 system
gpt-4o-mini 2024-07-16 23:32:21 system
gpt-4o-2024-08-06 2024-08-04 23:38:39 system
chatgpt-4o-latest 2024-08-13 02:12:11 system
o1-preview-2024-09-12 2024-09-06 18:54:25 system
o1-preview 2024-09-06 18:54:57 system
o1-mini-2024-09-12 2024-09-06 18:56:19 system
o1-mini 2024-09-06 18:56:48 system
gpt-4o-realtime-preview-2024-10-01 2024-09-23 22:49:26 system
gpt-4o-audio-preview-2024-10-01 2024-09-26 22:17:22 system
gpt-4o-audio-preview 2024-09-27 18:07:23 system
gpt-4o-realtime-preview 2024-09-30 01:33:18 system
omni-moderation-latest 2024-11-15 16:47:45 system
omni-moderation-2024-09-26 2024-11-27 19:07:46 system
gpt-4o-realtime-preview-2024-12-17 2024-12-11 19:30:30 system
gpt-4o-audio-preview-2024-12-17 2024-12-12 20:10:39 system
gpt-4o-mini-realtime-preview-2024-12-17 2024-12-13 17:56:41 system
gpt-4o-mini-audio-preview-2024-12-17 2024-12-13 18:52:00 system
o1-2024-12-17 2024-12-16 05:29:36 system
o1 2024-12-16 19:03:36 system
gpt-4o-mini-realtime-preview 2024-12-16 22:16:20 system
gpt-4o-mini-audio-preview 2024-12-16 22:17:04 system
computer-use-preview 2024-12-20 00:47:57 system
o3-mini 2025-01-17 20:39:43 system
o3-mini-2025-01-31 2025-01-27 20:36:40 system
gpt-4o-2024-11-20 2025-02-12 03:39:03 system
computer-use-preview-2025-03-11 2025-03-07 19:50:21 system
gpt-4o-search-preview-2025-03-11 2025-03-07 22:56:10 system
gpt-4o-search-preview 2025-03-07 23:05:20 system
gpt-4o-mini-search-preview-2025-03-11 2025-03-07 23:40:58 system
gpt-4o-mini-search-preview 2025-03-07 23:46:01 system
gpt-4o-transcribe 2025-03-15 19:54:23 system
gpt-4o-mini-transcribe 2025-03-15 19:56:36 system
o1-pro-2025-03-19 2025-03-17 22:45:04 system
o1-pro 2025-03-17 22:49:51 system
gpt-4o-mini-tts 2025-03-19 17:05:59 system
o3-2025-04-16 2025-04-08 17:28:21 system
o4-mini-2025-04-16 2025-04-08 17:31:46 system
o3 2025-04-09 19:01:48 system
o4-mini 2025-04-09 19:02:31 system
gpt-4.1-2025-04-14 2025-04-10 20:09:06 system
gpt-4.1 2025-04-10 20:22:22 system
gpt-4.1-mini-2025-04-14 2025-04-10 20:39:07 system
gpt-4.1-mini 2025-04-10 20:49:33 system
gpt-4.1-nano-2025-04-14 2025-04-10 21:37:05 system
gpt-4.1-nano 2025-04-10 21:48:27 system
gpt-image-1 2025-04-24 17:50:30 system
codex-mini-latest 2025-05-08 03:00:57 system
o3-pro 2025-05-28 23:35:49 system
gpt-4o-realtime-preview-2025-06-03 2025-06-02 23:43:58 system
gpt-4o-audio-preview-2025-06-03 2025-06-02 23:54:58 system
o3-pro-2025-06-10 2025-06-05 23:39:21 system
o4-mini-deep-research 2025-06-11 23:44:45 system
o3-deep-research 2025-06-13 18:42:01 system
o3-deep-research-2025-06-26 2025-06-25 15:26:59 system
o4-mini-deep-research-2025-06-26 2025-06-25 15:42:01 system

上記の情報を取得するためのPython

# get_models.py
import openai
import os
from datetime import datetime, UTC

# Set your API key
openai.api_key = os.getenv("OPENAI_API_KEY")

# Filter owners to include
ALLOWED_OWNERS = {"openai", "openai-internal", "system"}

def list_models():
  try:
    models = list(openai.models.list())
    filtered_models = [m for m in models if m.owned_by in ALLOWED_OWNERS]
    filtered_models.sort(key=lambda m: m.created)

    print("| Model ID | Created | Owned By |")
    print("|---|---|---|")

    for model in filtered_models:
      created = datetime.fromtimestamp(model.created, UTC).strftime('%Y-%m-%d %H:%M:%S')
      print(f"| `{model.id}` | {created} | {model.owned_by} |")

  except Exception as e:
    print(f"Error fetching models: {e}")

if __name__ == "__main__":
  list_models()

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?