Skip to content

Commit 5368c74

Browse files
feat: re-re-gen claude-opus-4-5
1 parent edaca2c commit 5368c74

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

docs/api-references/text-models-llm/Anthropic/claude-opus-4-5.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"model": {
2424
"type": "string",
2525
"enum": [
26+
"anthropic/claude-opus-4-5",
2627
"claude-opus-4-5",
27-
"anthropic/claude-opus-4.5",
2828
"claude-opus-4-5-20251101"
2929
]
3030
},
@@ -1374,7 +1374,7 @@
13741374
"model": {
13751375
"type": "string",
13761376
"description": "The model used for the chat completion.",
1377-
"example": "claude-opus-4-5"
1377+
"example": "anthropic/claude-opus-4-5"
13781378
},
13791379
"usage": {
13801380
"type": "object",
@@ -1816,19 +1816,19 @@
18161816
"x-codeSamples": [
18171817
{
18181818
"lang": "JavaScript",
1819-
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'claude-opus-4-5',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
1819+
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'anthropic/claude-opus-4-5',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
18201820
},
18211821
{
18221822
"lang": "Python",
1823-
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"claude-opus-4-5\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
1823+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"anthropic/claude-opus-4-5\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
18241824
},
18251825
{
18261826
"lang": "cURL",
1827-
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"claude-opus-4-5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
1827+
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"anthropic/claude-opus-4-5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
18281828
},
18291829
{
18301830
"lang": "HTTP",
1831-
"source": "POST /v1/chat/completions HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\nContent-Length: 59\n\n{\n \"model\": \"claude-opus-4-5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
1831+
"source": "POST /v1/chat/completions HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\nContent-Length: 59\n\n{\n \"model\": \"anthropic/claude-opus-4-5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
18321832
}
18331833
]
18341834
}
@@ -1846,8 +1846,8 @@
18461846
"model": {
18471847
"type": "string",
18481848
"enum": [
1849+
"anthropic/claude-opus-4-5",
18491850
"claude-opus-4-5",
1850-
"anthropic/claude-opus-4.5",
18511851
"claude-opus-4-5-20251101"
18521852
]
18531853
},
@@ -3197,7 +3197,7 @@
31973197
"model": {
31983198
"type": "string",
31993199
"description": "The model used for the chat completion.",
3200-
"example": "claude-opus-4-5"
3200+
"example": "anthropic/claude-opus-4-5"
32013201
},
32023202
"usage": {
32033203
"type": "object",
@@ -3639,19 +3639,19 @@
36393639
"x-codeSamples": [
36403640
{
36413641
"lang": "JavaScript",
3642-
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'claude-opus-4-5',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
3642+
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'anthropic/claude-opus-4-5',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
36433643
},
36443644
{
36453645
"lang": "Python",
3646-
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"claude-opus-4-5\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
3646+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"anthropic/claude-opus-4-5\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
36473647
},
36483648
{
36493649
"lang": "cURL",
3650-
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"claude-opus-4-5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
3650+
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"anthropic/claude-opus-4-5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
36513651
},
36523652
{
36533653
"lang": "HTTP",
3654-
"source": "POST /v1/chat/completions HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\nContent-Length: 59\n\n{\n \"model\": \"claude-opus-4-5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
3654+
"source": "POST /v1/chat/completions HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\nContent-Length: 59\n\n{\n \"model\": \"anthropic/claude-opus-4-5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
36553655
}
36563656
]
36573657
}

packages/generators-v2/src/json_for-docs_generation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "anthropic/claude-opus-4.5",
44
"url": "https://ai.aimlapi.com/docs-json?endpoint=openai/chat-completions&model=claude-opus-4-5-20251101",
55
"alias": "claude-opus-4-5",
6-
"models": ["claude-opus-4-5", "anthropic/claude-opus-4.5", "claude-opus-4-5-20251101"],
6+
"models": ["anthropic/claude-opus-4-5", "claude-opus-4-5", "claude-opus-4-5-20251101"],
77
"category": "text-models-llm",
88
"vendor": "Anthropic",
99
"codeSamples": "chat-completion"

0 commit comments

Comments
 (0)