Skip to content

Commit 0b56f71

Browse files
techpro-aimlapigitbook-bot
authored andcommitted
GITBOOK-712: docs: add try-in-playground buttons for the rest of llms
1 parent 6705031 commit 0b56f71

23 files changed

Lines changed: 249 additions & 39 deletions

docs/api-references/text-models-llm/OpenAI/o1.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# o1
22

3+
{% columns %}
4+
{% column width="66.66666666666666%" %}
35
{% hint style="info" %}
46
This documentation is valid for the following list of our models:
57

68
* `o1`
79
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/o1" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
816

917
## Model Overview
1018

docs/api-references/text-models-llm/OpenAI/o3-mini.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# o3-mini
22

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>o3-mini</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/o3-mini" class="button primary">Try in Playground</a></td></tr></tbody></table>
3+
{% columns %}
4+
{% column width="66.66666666666666%" %}
5+
{% hint style="info" %}
6+
This documentation is valid for the following list of our models:
7+
8+
* `o3-mini`
9+
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/o3-mini" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
416

517
## Model Overview
618

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# gpt-4.1-mini
22

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-4.1-mini-2025-04-14</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/openai/gpt-4-1-mini-2025-04-14" class="button primary">Try in Playground</a></td></tr></tbody></table>
3+
{% columns %}
4+
{% column width="66.66666666666666%" %}
5+
{% hint style="info" %}
6+
This documentation is valid for the following list of our models:
7+
8+
* `openai/gpt-4.1-mini-2025-04-14`
9+
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/openai/gpt-4.1-mini-2025-04-14" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
416

517
## Model Overview
618

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# gpt-4.1-nano
22

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-4.1-nano-2025-04-14</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/openai/gpt-4-1-nano-2025-04-14" class="button primary">Try in Playground</a></td></tr></tbody></table>
3+
{% columns %}
4+
{% column width="66.66666666666666%" %}
5+
{% hint style="info" %}
6+
This documentation is valid for the following list of our models:
7+
8+
* `openai/gpt-4.1-nano-2025-04-14`
9+
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/openai/gpt-4.1-nano-2025-04-14" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
416

517
## Model Overview
618

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# gpt-4.1
22

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-4.1-2025-04-14</code></li></ul></div></td><td valign="top"><a href="https://aimlapi.com/app/openai/gpt-4-1-2025-04-14" class="button primary">Try in Playground</a></td></tr></tbody></table>
3+
{% columns %}
4+
{% column width="66.66666666666666%" %}
5+
{% hint style="info" %}
6+
This documentation is valid for the following list of our models:
7+
8+
* `openai/gpt-4.1-2025-04-14`
9+
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/openai/gpt-4.1-2025-04-14" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
416

517
## Model Overview
618

docs/api-references/text-models-llm/openai/gpt-4o-audio-preview.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# gpt-4o-audio-preview
22

3+
{% columns %}
4+
{% column width="66.66666666666666%" %}
35
{% hint style="info" %}
46
This documentation is valid for the following list of our models:
57

68
* `gpt-4o-audio-preview`
79
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/gpt-4o-audio-preview" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
816

917
## Model Overview
1018

docs/api-references/text-models-llm/openai/gpt-4o-mini-audio-preview.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# gpt-4o-mini-audio-preview
22

3+
{% columns %}
4+
{% column width="66.66666666666666%" %}
35
{% hint style="info" %}
46
This documentation is valid for the following list of our models:
57

68
* `gpt-4o-mini-audio-preview`
79
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/gpt-4o-mini-audio-preview" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
816

917
## Model Overview
1018

docs/api-references/text-models-llm/openai/gpt-4o-mini-search-preview.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# gpt-4o-mini-search-preview
22

3+
{% columns %}
4+
{% column width="66.66666666666666%" %}
35
{% hint style="info" %}
46
This documentation is valid for the following list of our models:
57

68
* `gpt-4o-mini-search-preview`
79
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/gpt-4o-mini-search-preview" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
816

917
## Model Overview
1018

@@ -16,25 +24,25 @@ A specialized model trained to understand and execute web search queries with th
1624

1725
<summary>Step-by-Step Instructions</summary>
1826

19-
#### :digit\_one: Setup You Can’t Skip
27+
:digit\_one: **Setup You Can’t Skip**
2028

2129
:black\_small\_square: [**Create an Account**](https://aimlapi.com/app/sign-up): Visit the AI/ML API website and create an account (if you don’t have one yet).\
2230
:black\_small\_square: [**Generate an API Key**](https://aimlapi.com/app/keys): After logging in, navigate to your account dashboard and generate your API key. Ensure that key is enabled on UI.
2331

24-
#### :digit\_two: Copy the code example
32+
:digit\_two: **Copy the code example**
2533

2634
At the bottom of this page, you'll find [a code example](gpt-4o-mini-search-preview.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.
2735

28-
#### :digit\_three: Modify the code example
36+
:digit\_three: **Modify the code example**
2937

3038
:black\_small\_square: Replace `<YOUR_AIMLAPI_KEY>` with your actual AI/ML API key from your account.\
3139
:black\_small\_square: Insert your question or request into the `content` field—this is what the model will respond to.
3240

33-
#### :digit\_four: <sup><sub><mark style="background-color:yellow;">(Optional)<mark style="background-color:yellow;"><sub></sup> Adjust other optional parameters if needed
41+
:digit\_four: <sup><sub><mark style="background-color:yellow;">**(Optional)**<mark style="background-color:yellow;"><sub></sup>**&#x20;Adjust other optional parameters if needed**
3442

3543
Only `model` and `messages` are required parameters for this model (and we’ve already filled them in for you in the example), but you can include optional parameters if needed to adjust the model’s behavior. Below, you can find the corresponding [API schema](gpt-4o-mini-search-preview.md#api-schema), which lists all available parameters along with notes on how to use them.
3644

37-
#### :digit\_five: Run your modified code
45+
:digit\_five: **Run your modified code**
3846

3947
Run your modified code in your development environment. Response time depends on various factors, but for simple prompts it rarely exceeds a few seconds.
4048

docs/api-references/text-models-llm/openai/gpt-4o-search-preview.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# gpt-4o-search-preview
22

3+
{% columns %}
4+
{% column width="66.66666666666666%" %}
35
{% hint style="info" %}
46
This documentation is valid for the following list of our models:
57

68
* `gpt-4o-search-preview`
79
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/gpt-4o-search-preview" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
816

917
## Model Overview
1018

@@ -16,25 +24,25 @@ A specialized model trained to understand and execute web search queries with th
1624

1725
<summary>Step-by-Step Instructions</summary>
1826

19-
#### :digit\_one: Setup You Can’t Skip
27+
:digit\_one: **Setup You Can’t Skip**
2028

2129
:black\_small\_square: [**Create an Account**](https://aimlapi.com/app/sign-up): Visit the AI/ML API website and create an account (if you don’t have one yet).\
2230
:black\_small\_square: [**Generate an API Key**](https://aimlapi.com/app/keys): After logging in, navigate to your account dashboard and generate your API key. Ensure that key is enabled on UI.
2331

24-
#### :digit\_two: Copy the code example
32+
:digit\_two: **Copy the code example**
2533

2634
At the bottom of this page, you'll find [a code example](gpt-4o-search-preview.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.
2735

28-
#### :digit\_three: Modify the code example
36+
:digit\_three: **Modify the code example**
2937

3038
:black\_small\_square: Replace `<YOUR_AIMLAPI_KEY>` with your actual AI/ML API key from your account.\
3139
:black\_small\_square: Insert your question or request into the `content` field—this is what the model will respond to.
3240

33-
#### :digit\_four: <sup><sub><mark style="background-color:yellow;">(Optional)<mark style="background-color:yellow;"><sub></sup> Adjust other optional parameters if needed
41+
:digit\_four: <sup><sub><mark style="background-color:yellow;">**(Optional)**<mark style="background-color:yellow;"><sub></sup>**&#x20;Adjust other optional parameters if needed**
3442

3543
Only `model` and `messages` are required parameters for this model (and we’ve already filled them in for you in the example), but you can include optional parameters if needed to adjust the model’s behavior. Below, you can find the corresponding [API schema](gpt-4o-search-preview.md#api-schema), which lists all available parameters along with notes on how to use them.
3644

37-
#### :digit\_five: Run your modified code
45+
:digit\_five: **Run your modified code**
3846

3947
Run your modified code in your development environment. Response time depends on various factors, but for simple prompts it rarely exceeds a few seconds.
4048

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This documentation is valid for the following list of our models:
1010
{% endcolumn %}
1111

1212
{% column width="33.33333333333334%" %}
13-
13+
<a href="https://aimlapi.com/app/openai/gpt-5-1-codex-mini" class="button primary">Try in Playground</a>
1414
{% endcolumn %}
1515
{% endcolumns %}
1616

@@ -75,7 +75,7 @@ Note: This model can ONLY be called via the `/responses` endpoint!
7575
{% endhint %}
7676

7777
{% openapi-operation spec="gpt-5-1-codex-mini" path="/v1/responses" method="post" %}
78-
[OpenAPI gpt-5-1-codex-mini](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-5-1-codex-mini.json)
78+
[OpenAPI gpt-5-1-codex-mini](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-5-1-codex-mini-RESPONSES.json)
7979
{% endopenapi-operation %}
8080

8181
## Code Example: Using /responses Endpoint

0 commit comments

Comments
 (0)