openai.json

  1{
  2  "name": "OpenAI",
  3  "id": "openai",
  4  "type": "openai",
  5  "api_key": "$OPENAI_API_KEY",
  6  "api_endpoint": "$OPENAI_API_ENDPOINT",
  7  "default_large_model_id": "gpt-5",
  8  "default_small_model_id": "gpt-4o",
  9  "models": [
 10    {
 11      "id": "gpt-5",
 12      "name": "GPT-5",
 13      "cost_per_1m_in": 1.25,
 14      "cost_per_1m_out": 10,
 15      "cost_per_1m_in_cached": 0.25,
 16      "cost_per_1m_out_cached": 0.25,
 17      "context_window": 400000,
 18      "default_max_tokens": 128000,
 19      "can_reason": true,
 20      "has_reasoning_effort": true,
 21      "default_reasoning_effort": "minimal",
 22      "supports_attachments": true
 23    },
 24    {
 25      "id": "gpt-5-mini",
 26      "name": "GPT-5 Mini",
 27      "cost_per_1m_in": 0.25,
 28      "cost_per_1m_out": 2,
 29      "cost_per_1m_in_cached": 0.025,
 30      "cost_per_1m_out_cached": 0.025,
 31      "context_window": 400000,
 32      "default_max_tokens": 128000,
 33      "can_reason": true,
 34      "has_reasoning_effort": true,
 35      "default_reasoning_effort": "low",
 36      "supports_attachments": true
 37    },
 38    {
 39      "id": "gpt-5-nano",
 40      "name": "GPT-5 Nano",
 41      "cost_per_1m_in": 0.05,
 42      "cost_per_1m_out": 0.4,
 43      "cost_per_1m_in_cached": 0.005,
 44      "cost_per_1m_out_cached": 0.005,
 45      "context_window": 400000,
 46      "default_max_tokens": 128000,
 47      "can_reason": true,
 48      "has_reasoning_effort": true,
 49      "default_reasoning_effort": "low",
 50      "supports_attachments": true
 51    },
 52    {
 53      "id": "o4-mini",
 54      "name": "o4 Mini",
 55      "cost_per_1m_in": 1.1,
 56      "cost_per_1m_out": 4.4,
 57      "cost_per_1m_in_cached": 0,
 58      "cost_per_1m_out_cached": 0.275,
 59      "context_window": 200000,
 60      "default_max_tokens": 50000,
 61      "can_reason": true,
 62      "has_reasoning_effort": true,
 63      "default_reasoning_effort": "low",
 64      "supports_attachments": true
 65    },
 66    {
 67      "id": "o3",
 68      "name": "o3",
 69      "cost_per_1m_in": 2,
 70      "cost_per_1m_out": 8,
 71      "cost_per_1m_in_cached": 0,
 72      "cost_per_1m_out_cached": 0.5,
 73      "context_window": 200000,
 74      "default_max_tokens": 50000,
 75      "can_reason": true,
 76      "has_reasoning_effort": true,
 77      "default_reasoning_effort": "medium",
 78      "supports_attachments": true
 79    },
 80    {
 81      "id": "gpt-4.1",
 82      "name": "GPT-4.1",
 83      "cost_per_1m_in": 2,
 84      "cost_per_1m_out": 8,
 85      "cost_per_1m_in_cached": 0,
 86      "cost_per_1m_out_cached": 0.5,
 87      "context_window": 1047576,
 88      "default_max_tokens": 16384,
 89      "can_reason": false,
 90      "supports_attachments": true
 91    },
 92    {
 93      "id": "gpt-4.1-mini",
 94      "name": "GPT-4.1 Mini",
 95      "cost_per_1m_in": 0.39999999999999997,
 96      "cost_per_1m_out": 1.5999999999999999,
 97      "cost_per_1m_in_cached": 0,
 98      "cost_per_1m_out_cached": 0.09999999999999999,
 99      "context_window": 1047576,
100      "default_max_tokens": 16384,
101      "can_reason": false,
102      "supports_attachments": true
103    },
104    {
105      "id": "gpt-4.1-nano",
106      "name": "GPT-4.1 Nano",
107      "cost_per_1m_in": 0.09999999999999999,
108      "cost_per_1m_out": 0.39999999999999997,
109      "cost_per_1m_in_cached": 0,
110      "cost_per_1m_out_cached": 0.024999999999999998,
111      "context_window": 1047576,
112      "default_max_tokens": 16384,
113      "can_reason": false,
114      "supports_attachments": true
115    },
116    {
117      "id": "o3-mini",
118      "name": "o3 Mini",
119      "cost_per_1m_in": 1.1,
120      "cost_per_1m_out": 4.4,
121      "cost_per_1m_in_cached": 0,
122      "cost_per_1m_out_cached": 0.55,
123      "context_window": 200000,
124      "default_max_tokens": 50000,
125      "can_reason": true,
126      "has_reasoning_effort": true,
127      "default_reasoning_effort": "medium",
128      "supports_attachments": false
129    },
130    {
131      "id": "gpt-4o",
132      "name": "GPT-4o",
133      "cost_per_1m_in": 2.5,
134      "cost_per_1m_out": 10,
135      "cost_per_1m_in_cached": 0,
136      "cost_per_1m_out_cached": 1.25,
137      "context_window": 128000,
138      "default_max_tokens": 8192,
139      "can_reason": false,
140      "supports_attachments": true
141    },
142    {
143      "id": "gpt-4o-mini",
144      "name": "GPT-4o-mini",
145      "cost_per_1m_in": 0.15,
146      "cost_per_1m_out": 0.6,
147      "cost_per_1m_in_cached": 0,
148      "cost_per_1m_out_cached": 0.075,
149      "context_window": 128000,
150      "default_max_tokens": 8192,
151      "can_reason": false,
152      "reasoning_effort": "",
153      "supports_attachments": true
154    }
155  ]
156}