Skip to content

Commit 81bff6b

Browse files
committed
Sync OpenAI latest GPT docs
# Conflicts: # docs/api-references/model-database.md
1 parent 419d218 commit 81bff6b

7 files changed

Lines changed: 4623 additions & 2335 deletions

File tree

docs/SUMMARY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@
242242
* [o4 mini](api-references/text-models-llm/openai/o4-mini.md)
243243
* [GPT OSS 20b](api-references/text-models-llm/openai/gpt-oss-20b.md)
244244
* [GPT OSS 120b](api-references/text-models-llm/openai/gpt-oss-120b.md)
245+
* [GPT Latest](api-references/text-models-llm/openai/gpt-latest.md)
246+
* [GPT Mini Latest](api-references/text-models-llm/openai/gpt-mini-latest.md)
247+
* [GPT Chat Latest](api-references/text-models-llm/openai/gpt-chat-latest.md)
245248
* [GPT 5](api-references/text-models-llm/openai/gpt-5.md)
246249
* [GPT 5 mini](api-references/text-models-llm/openai/gpt-5-mini.md)
247250
* [GPT 5 nano](api-references/text-models-llm/openai/gpt-5-nano.md)

docs/api-references/model-database.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
# GPT Chat Latest
2+
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-chat-latest`
9+
{% endhint %}
10+
{% endcolumn %}
11+
12+
{% column width="33.33333333333334%" %}
13+
<a href="https://aimlapi.com/app/openai/gpt-chat-latest" class="button primary">Try in Playground</a>
14+
{% endcolumn %}
15+
{% endcolumns %}
16+
17+
## Model Overview
18+
19+
GPT Chat Latest is the latest OpenAI chat-optimized model alias available through the AI/ML API.
20+
21+
## How to Make a Call
22+
23+
<details>
24+
25+
<summary>Step-by-Step Instructions</summary>
26+
27+
:digit\_one: **Setup You Can’t Skip**
28+
29+
: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).\
30+
: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.
31+
32+
:digit\_two: **Copy the code example**
33+
34+
At the bottom of this page, you'll find [a code example](gpt-chat-latest.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.
35+
36+
:digit\_three: **Modify the code example**
37+
38+
:black\_small\_square: Replace `<YOUR_AIMLAPI_KEY>` with your actual AI/ML API key from your account.\
39+
:black\_small\_square: Insert your question or request into the `content` field—this is what the model will respond to.
40+
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**
42+
43+
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-chat-latest.md#api-schema), which lists all available parameters along with notes on how to use them.
44+
45+
:digit\_five: **Run your modified code**
46+
47+
Run your modified code in your development environment. Response time depends on various factors, but for simple prompts it rarely exceeds a few seconds.
48+
49+
{% hint style="success" %}
50+
If you need a more detailed walkthrough for setting up your development environment and making a request step by step — feel free to use our [Quickstart guide](/broken/pages/ngeSCZKxiGVWqYZTHDjY).
51+
{% endhint %}
52+
53+
</details>
54+
55+
## API Schema
56+
57+
58+
{% openapi-operation spec="gpt-chat-latest" path="/v1/chat/completions" method="post" %}
59+
[OpenAPI gpt-chat-latest](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/OpenAI/gpt-chat-latest.json)
60+
{% endopenapi-operation %}
61+
62+
## Code Example
63+
64+
{% tabs %}
65+
{% tab title="Python" %}
66+
{% code overflow="wrap" %}
67+
```python
68+
import requests
69+
import json # for getting a structured output with indentation
70+
71+
response = requests.post(
72+
"https://api.aimlapi.com/v1/chat/completions",
73+
headers={
74+
# Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>:
75+
"Authorization":"Bearer <YOUR_AIMLAPI_KEY>",
76+
"Content-Type":"application/json"
77+
},
78+
json={
79+
"model":"openai/gpt-chat-latest",
80+
"messages":[
81+
{
82+
"role":"user",
83+
"content":"Hello" # insert your prompt here, instead of Hello
84+
}
85+
]
86+
}
87+
)
88+
89+
data = response.json()
90+
print(json.dumps(data, indent=2, ensure_ascii=False))
91+
```
92+
{% endcode %}
93+
{% endtab %}
94+
95+
{% tab title="JavaScript" %}
96+
{% code overflow="wrap" %}
97+
```javascript
98+
async function main() {
99+
const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {
100+
method: 'POST',
101+
headers: {
102+
// insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>
103+
'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',
104+
'Content-Type': 'application/json',
105+
},
106+
body: JSON.stringify({
107+
model: 'openai/gpt-chat-latest',
108+
messages:[
109+
{
110+
role:'user',
111+
content: 'Hello' // insert your prompt here, instead of Hello
112+
}
113+
],
114+
}),
115+
});
116+
117+
const data = await response.json();
118+
console.log(JSON.stringify(data, null, 2));
119+
}
120+
121+
main();
122+
```
123+
{% endcode %}
124+
{% endtab %}
125+
{% endtabs %}
126+
127+
<details>
128+
129+
<summary>Response</summary>
130+
131+
{% code overflow="wrap" %}
132+
```json5
133+
{
134+
"id": "chatcmpl-C2LzHL8ho70oHYKMGSWr6wanLutvD",
135+
"object": "chat.completion",
136+
"choices": [
137+
{
138+
"index": 0,
139+
"finish_reason": "stop",
140+
"logprobs": null,
141+
"message": {
142+
"role": "assistant",
143+
"content": "Hi there! 👋 How’s your day going?",
144+
"refusal": null,
145+
"annotations": []
146+
}
147+
}
148+
],
149+
"created": 1754677211,
150+
"model": "gpt-chat-latest",
151+
"usage": {
152+
"prompt_tokens": 21,
153+
"completion_tokens": 231,
154+
"total_tokens": 252,
155+
"prompt_tokens_details": {
156+
"cached_tokens": 0,
157+
"audio_tokens": 0
158+
},
159+
"completion_tokens_details": {
160+
"reasoning_tokens": 0,
161+
"audio_tokens": 0,
162+
"accepted_prediction_tokens": 0,
163+
"rejected_prediction_tokens": 0
164+
}
165+
},
166+
"system_fingerprint": "fp_8e31f7e21a"
167+
}
168+
```
169+
{% endcode %}
170+
171+
</details>

docs/api-references/text-models-llm/README.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)