Skip to content

Commit 9ebddf2

Browse files
techpro-aimlapigitbook-bot
authored andcommitted
GITBOOK-366: docs: move the lastest chat models' examples up
1 parent 6dc59cc commit 9ebddf2

7 files changed

Lines changed: 95 additions & 113 deletions

File tree

‎docs/api-references/text-models-llm/openai/gpt-5-chat.md‎

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# gpt-5-chat
22

3-
{% hint style="info" %}
4-
This documentation is valid for the following list of our models:
53

6-
* `openai/gpt-5-chat-latest`
7-
{% endhint %}
4+
5+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following list of our models:</p><ul><li><code>openai/gpt-5-chat-latest</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=openai/gpt-5-chat-latest&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
86

97
## Model Overview
108

@@ -23,7 +21,7 @@ The non-reasoning version of [GPT‑5](gpt-5.md).
2321

2422
### &#x20;:digit\_two: Copy the code example
2523

26-
At the bottom of this page, you'll find [a code example](gpt-5-chat.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
24+
Below, you'll find [a code example](gpt-5-chat.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2725

2826
### :digit\_three: Modify the code example
2927

@@ -44,20 +42,6 @@ If you need a more detailed walkthrough for setting up your development environm
4442

4543
</details>
4644

47-
## API Schema
48-
49-
{% openapi-operation spec="gpt-5-chat" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI gpt-5-chat](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-5-chat.json)
51-
{% endopenapi-operation %}
52-
53-
### Responses Endpoint
54-
55-
This endpoint is currently used _only_ with OpenAI models. Some models support both the `/chat/completions` and `/responses` endpoints, while others support only one of them. OpenAI has announced plans to expand the capabilities of the `/responses` endpoint in the future.
56-
57-
{% openapi-operation spec="responses-all-models" path="/v1/responses" method="post" %}
58-
[OpenAPI responses-all-models](https://api.aimlapi.com/docs-public-yaml)
59-
{% endopenapi-operation %}
60-
6145
## Code Example
6246

6347
{% tabs %}
@@ -185,6 +169,20 @@ main();
185169

186170
</details>
187171

172+
## API Schema
173+
174+
{% openapi-operation spec="gpt-5-chat" path="/v1/chat/completions" method="post" %}
175+
[OpenAPI gpt-5-chat](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-5-chat.json)
176+
{% endopenapi-operation %}
177+
178+
### Responses Endpoint
179+
180+
This endpoint is currently used _only_ with OpenAI models. Some models support both the `/chat/completions` and `/responses` endpoints, while others support only one of them. OpenAI has announced plans to expand the capabilities of the `/responses` endpoint in the future.
181+
182+
{% openapi-operation spec="responses-all-models" path="/v1/responses" method="post" %}
183+
[OpenAPI responses-all-models](https://api.aimlapi.com/docs-public-yaml)
184+
{% endopenapi-operation %}
185+
188186
## Code Example #2: Using /responses Endpoint
189187

190188
{% tabs %}

‎docs/api-references/text-models-llm/openai/gpt-5-mini.md‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ OA quicker, more budget-friendly variant of [GPT-5](gpt-5.md), ideal for clear t
2323

2424
### &#x20;:digit\_two: Copy the code example
2525

26-
At the bottom of this page, you'll find [a code example](gpt-5-mini.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
26+
Below, you'll find [a code example](gpt-5-mini.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2727

2828
### :digit\_three: Modify the code example
2929

@@ -44,20 +44,6 @@ If you need a more detailed walkthrough for setting up your development environm
4444

4545
</details>
4646

47-
## API Schema
48-
49-
{% openapi-operation spec="gpt-5-mini" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI gpt-5-mini](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-5-mini.json)
51-
{% endopenapi-operation %}
52-
53-
### Responses Endpoint
54-
55-
This endpoint is currently used _only_ with OpenAI models. Some models support both the `/chat/completions` and `/responses` endpoints, while others support only one of them. OpenAI has announced plans to expand the capabilities of the `/responses` endpoint in the future.
56-
57-
{% openapi-operation spec="responses-all-models" path="/v1/responses" method="post" %}
58-
[OpenAPI responses-all-models](https://api.aimlapi.com/docs-public-yaml)
59-
{% endopenapi-operation %}
60-
6147
## Code Example
6248

6349
{% tabs %}
@@ -184,6 +170,20 @@ main();
184170

185171
</details>
186172

173+
## API Schema
174+
175+
{% openapi-operation spec="gpt-5-mini" path="/v1/chat/completions" method="post" %}
176+
[OpenAPI gpt-5-mini](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-5-mini.json)
177+
{% endopenapi-operation %}
178+
179+
### Responses Endpoint
180+
181+
This endpoint is currently used _only_ with OpenAI models. Some models support both the `/chat/completions` and `/responses` endpoints, while others support only one of them. OpenAI has announced plans to expand the capabilities of the `/responses` endpoint in the future.
182+
183+
{% openapi-operation spec="responses-all-models" path="/v1/responses" method="post" %}
184+
[OpenAPI responses-all-models](https://api.aimlapi.com/docs-public-yaml)
185+
{% endopenapi-operation %}
186+
187187
## Code Example #2: Using /responses Endpoint
188188

189189
{% tabs %}

‎docs/api-references/text-models-llm/openai/gpt-5-nano.md‎

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# gpt-5-nano
22

3-
{% hint style="info" %}
4-
This documentation is valid for the following list of our models:
5-
6-
* `openai/gpt-5-nano-2025-08-07`
7-
{% endhint %}
3+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following list of our models:</p><ul><li><code>openai/gpt-5-nano-2025-08-07</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=openai/gpt-5-nano-2025-08-07&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
84

95
## Model Overview
106

@@ -23,7 +19,7 @@ The smallest, fastest, and most affordable model in the GPT-5 lineup. While it
2319

2420
### &#x20;:digit\_two: Copy the code example
2521

26-
At the bottom of this page, you'll find [a code example](gpt-5-nano.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
22+
Below, you'll find [a code example](gpt-5-nano.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2723

2824
### :digit\_three: Modify the code example
2925

@@ -44,20 +40,6 @@ If you need a more detailed walkthrough for setting up your development environm
4440

4541
</details>
4642

47-
## API Schema
48-
49-
{% openapi-operation spec="gpt-5-nano" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI gpt-5-nano](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-5-nano.json)
51-
{% endopenapi-operation %}
52-
53-
### Responses Endpoint
54-
55-
This endpoint is currently used _only_ with OpenAI models. Some models support both the `/chat/completions` and `/responses` endpoints, while others support only one of them. OpenAI has announced plans to expand the capabilities of the `/responses` endpoint in the future.
56-
57-
{% openapi-operation spec="responses-all-models" path="/v1/responses" method="post" %}
58-
[OpenAPI responses-all-models](https://api.aimlapi.com/docs-public-yaml)
59-
{% endopenapi-operation %}
60-
6143
## Code Example
6244

6345
{% tabs %}
@@ -184,6 +166,20 @@ main();
184166

185167
</details>
186168

169+
## API Schema
170+
171+
{% openapi-operation spec="gpt-5-nano" path="/v1/chat/completions" method="post" %}
172+
[OpenAPI gpt-5-nano](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-5-nano.json)
173+
{% endopenapi-operation %}
174+
175+
### Responses Endpoint
176+
177+
This endpoint is currently used _only_ with OpenAI models. Some models support both the `/chat/completions` and `/responses` endpoints, while others support only one of them. OpenAI has announced plans to expand the capabilities of the `/responses` endpoint in the future.
178+
179+
{% openapi-operation spec="responses-all-models" path="/v1/responses" method="post" %}
180+
[OpenAPI responses-all-models](https://api.aimlapi.com/docs-public-yaml)
181+
{% endopenapi-operation %}
182+
187183
## Code Example #2: Using /responses Endpoint
188184

189185
{% tabs %}

‎docs/api-references/text-models-llm/openai/gpt-5.md‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ OpenAI’s most advanced (and the most capable coding) model as of **August 2025
2323

2424
### &#x20;:digit\_two: Copy the code example
2525

26-
At the bottom of this page, you'll find [a code example](gpt-5.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
26+
Below, you'll find [a code example](gpt-5.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2727

2828
### :digit\_three: Modify the code example
2929

@@ -44,20 +44,6 @@ If you need a more detailed walkthrough for setting up your development environm
4444

4545
</details>
4646

47-
## API Schema
48-
49-
{% openapi-operation spec="gpt-5-test" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI gpt-5-test](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-5.json)
51-
{% endopenapi-operation %}
52-
53-
### Responses Endpoint
54-
55-
This endpoint is currently used _only_ with OpenAI models. Some models support both the `/chat/completions` and `/responses` endpoints, while others support only one of them. OpenAI has announced plans to expand the capabilities of the `/responses` endpoint in the future.
56-
57-
{% openapi-operation spec="responses-all-models" path="/v1/responses" method="post" %}
58-
[OpenAPI responses-all-models](https://api.aimlapi.com/docs-public-yaml)
59-
{% endopenapi-operation %}
60-
6147
## Code Example
6248

6349
{% tabs %}
@@ -184,6 +170,20 @@ main();
184170

185171
</details>
186172

173+
## API Schema
174+
175+
{% openapi-operation spec="gpt-5-test" path="/v1/chat/completions" method="post" %}
176+
[OpenAPI gpt-5-test](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-5.json)
177+
{% endopenapi-operation %}
178+
179+
### Responses Endpoint
180+
181+
This endpoint is currently used _only_ with OpenAI models. Some models support both the `/chat/completions` and `/responses` endpoints, while others support only one of them. OpenAI has announced plans to expand the capabilities of the `/responses` endpoint in the future.
182+
183+
{% openapi-operation spec="responses-all-models" path="/v1/responses" method="post" %}
184+
[OpenAPI responses-all-models](https://api.aimlapi.com/docs-public-yaml)
185+
{% endopenapi-operation %}
186+
187187
## Code Example #2: Using /responses Endpoint
188188

189189
{% tabs %}

‎docs/api-references/text-models-llm/openai/gpt-oss-120b.md‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# gpt-oss-120b
22

3-
{% hint style="info" %}
4-
This documentation is valid for the following list of our models:
5-
6-
* `openai/gpt-oss-120b`
7-
{% endhint %}
3+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following list of our models:</p><ul><li><code>openai/gpt-oss-120b</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=openai/gpt-oss-120b&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
84

95
## Model Overview
106

@@ -23,7 +19,7 @@ This OSS model is text-only and designed for strong reasoning and tool use.
2319

2420
### &#x20;:digit\_two: Copy the code example
2521

26-
At the bottom of this page, you'll find [a code example](gpt-oss-120b.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
22+
Below, you'll find [a code example](gpt-oss-120b.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2723

2824
### :digit\_three: Modify the code example
2925

@@ -44,12 +40,6 @@ If you need a more detailed walkthrough for setting up your development environm
4440

4541
</details>
4642

47-
## API Schema
48-
49-
{% openapi-operation spec="gpt-oss-120b" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI gpt-oss-120b](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-oss-120b.json)
51-
{% endopenapi-operation %}
52-
5343
## Code Example
5444

5545
{% tabs %}
@@ -166,3 +156,9 @@ main();
166156
{% endcode %}
167157

168158
</details>
159+
160+
## API Schema
161+
162+
{% openapi-operation spec="gpt-oss-120b" path="/v1/chat/completions" method="post" %}
163+
[OpenAPI gpt-oss-120b](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-oss-120b.json)
164+
{% endopenapi-operation %}

‎docs/api-references/text-models-llm/openai/gpt-oss-20b.md‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# gpt-oss-20b
22

3-
{% hint style="info" %}
4-
This documentation is valid for the following list of our models:
5-
6-
* `openai/gpt-oss-20b`
7-
{% endhint %}
3+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following list of our models:</p><ul><li><code>openai/gpt-oss-20b</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=openai/gpt-oss-20b&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
84

95
## Model Overview
106

@@ -23,7 +19,7 @@ This OSS model is text-only and designed for strong reasoning and tool use.
2319

2420
### &#x20;:digit\_two: Copy the code example
2521

26-
At the bottom of this page, you'll find [a code example](gpt-oss-20b.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
22+
Below, you'll find [a code example](gpt-oss-20b.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2723

2824
### :digit\_three: Modify the code example
2925

@@ -44,12 +40,6 @@ If you need a more detailed walkthrough for setting up your development environm
4440

4541
</details>
4642

47-
## API Schema
48-
49-
{% openapi-operation spec="gpt-oss-20b" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI gpt-oss-20b](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-oss-20b.json)
51-
{% endopenapi-operation %}
52-
5343
## Code Example
5444

5545
{% tabs %}
@@ -166,3 +156,9 @@ main();
166156
{% endcode %}
167157

168158
</details>
159+
160+
## API Schema
161+
162+
{% openapi-operation spec="gpt-oss-20b" path="/v1/chat/completions" method="post" %}
163+
[OpenAPI gpt-oss-20b](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-oss-20b.json)
164+
{% endopenapi-operation %}

‎docs/api-references/text-models-llm/openai/o4-mini.md‎

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# o4-mini
22

3-
{% hint style="info" %}
4-
This documentation is valid for the following list of our models:
5-
6-
* `openai/o4-mini-2025-04-16`
7-
{% endhint %}
3+
<table data-header-hidden data-full-width="true"><thead><tr><th width="546.4443969726562" valign="top"></th><th width="202.666748046875" valign="top"></th></tr></thead><tbody><tr><td valign="top"><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This documentation is valid for the following list of our models:</p><ul><li><code>openai/o4-mini-2025-04-16</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/?model=openai/o4-mini-2025-04-16&#x26;mode=chat" class="button primary">Try in Playground</a></td></tr></tbody></table>
84

95
## Model Overview
106

@@ -23,7 +19,7 @@ The newest small model in our o-series lineup, built for speed and smart reasoni
2319

2420
### &#x20;:digit\_two: Copy the code example
2521

26-
At the bottom of this page, you'll find [a code example](o4-mini.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
22+
Below, you'll find [a code example](o4-mini.md#code-example) that shows how to structure the request. Choose the code snippet in your preferred programming language and copy it into your development environment.
2723

2824
### :digit\_three: Modify the code example
2925

@@ -44,20 +40,6 @@ If you need a more detailed walkthrough for setting up your development environm
4440

4541
</details>
4642

47-
## API Schema
48-
49-
{% openapi-operation spec="o4-mini" path="/v1/chat/completions" method="post" %}
50-
[OpenAPI o4-mini](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/o4-mini.json)
51-
{% endopenapi-operation %}
52-
53-
### Responses Endpoint
54-
55-
This endpoint is currently used _only_ with OpenAI models. Some models support both the `/chat/completions` and `/responses` endpoints, while others support only one of them. OpenAI has announced plans to expand the capabilities of the `/responses` endpoint in the future.
56-
57-
{% openapi-operation spec="responses-all-models" path="/v1/responses" method="post" %}
58-
[OpenAPI responses-all-models](https://api.aimlapi.com/docs-public-yaml)
59-
{% endopenapi-operation %}
60-
6143
## Code Example
6244

6345
{% code overflow="wrap" %}
@@ -103,6 +85,20 @@ print(data)
10385

10486
</details>
10587

88+
## API Schema
89+
90+
{% openapi-operation spec="o4-mini" path="/v1/chat/completions" method="post" %}
91+
[OpenAPI o4-mini](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/o4-mini.json)
92+
{% endopenapi-operation %}
93+
94+
### Responses Endpoint
95+
96+
This endpoint is currently used _only_ with OpenAI models. Some models support both the `/chat/completions` and `/responses` endpoints, while others support only one of them. OpenAI has announced plans to expand the capabilities of the `/responses` endpoint in the future.
97+
98+
{% openapi-operation spec="responses-all-models" path="/v1/responses" method="post" %}
99+
[OpenAPI responses-all-models](https://api.aimlapi.com/docs-public-yaml)
100+
{% endopenapi-operation %}
101+
106102
## Code Example #2: Using /responses Endpoint
107103

108104
{% tabs %}

0 commit comments

Comments
 (0)