|
23 | 23 | "model": { |
24 | 24 | "type": "string", |
25 | 25 | "enum": [ |
26 | | - "anthropic/claude-opus-4.5", |
27 | | - "claude-opus-4-5", |
28 | | - "claude-opus-4-5-20251101" |
| 26 | + "anthropic/claude-haiku-4.5", |
| 27 | + "claude-haiku-4-5", |
| 28 | + "claude-haiku-4-5-20251001" |
29 | 29 | ] |
30 | 30 | }, |
31 | 31 | "frequency_penalty": { |
|
989 | 989 | "model", |
990 | 990 | "messages" |
991 | 991 | ], |
992 | | - "title": "claude-opus-4-5-20251101" |
| 992 | + "title": "claude-haiku-4-5-20251001" |
993 | 993 | } |
994 | 994 | } |
995 | 995 | } |
|
1374 | 1374 | "model": { |
1375 | 1375 | "type": "string", |
1376 | 1376 | "description": "The model used for the chat completion.", |
1377 | | - "example": "anthropic/claude-opus-4.5" |
| 1377 | + "example": "anthropic/claude-haiku-4.5" |
1378 | 1378 | }, |
1379 | 1379 | "usage": { |
1380 | 1380 | "type": "object", |
|
1816 | 1816 | "x-codeSamples": [ |
1817 | 1817 | { |
1818 | 1818 | "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: '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();" |
| 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-haiku-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();" |
1820 | 1820 | }, |
1821 | 1821 | { |
1822 | 1822 | "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\":\"anthropic/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-haiku-4.5\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)" |
1824 | 1824 | }, |
1825 | 1825 | { |
1826 | 1826 | "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\": \"anthropic/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-haiku-4.5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'" |
1828 | 1828 | }, |
1829 | 1829 | { |
1830 | 1830 | "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\": \"anthropic/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-haiku-4.5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}" |
1832 | 1832 | } |
1833 | 1833 | ] |
1834 | 1834 | } |
|
1846 | 1846 | "model": { |
1847 | 1847 | "type": "string", |
1848 | 1848 | "enum": [ |
1849 | | - "anthropic/claude-opus-4.5", |
1850 | | - "claude-opus-4-5", |
1851 | | - "claude-opus-4-5-20251101" |
| 1849 | + "anthropic/claude-haiku-4.5", |
| 1850 | + "claude-haiku-4-5", |
| 1851 | + "claude-haiku-4-5-20251001" |
1852 | 1852 | ] |
1853 | 1853 | }, |
1854 | 1854 | "frequency_penalty": { |
|
2812 | 2812 | "model", |
2813 | 2813 | "messages" |
2814 | 2814 | ], |
2815 | | - "title": "claude-opus-4-5-20251101" |
| 2815 | + "title": "claude-haiku-4-5-20251001" |
2816 | 2816 | } |
2817 | 2817 | } |
2818 | 2818 | } |
|
3197 | 3197 | "model": { |
3198 | 3198 | "type": "string", |
3199 | 3199 | "description": "The model used for the chat completion.", |
3200 | | - "example": "anthropic/claude-opus-4.5" |
| 3200 | + "example": "anthropic/claude-haiku-4.5" |
3201 | 3201 | }, |
3202 | 3202 | "usage": { |
3203 | 3203 | "type": "object", |
|
3639 | 3639 | "x-codeSamples": [ |
3640 | 3640 | { |
3641 | 3641 | "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: '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();" |
| 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-haiku-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();" |
3643 | 3643 | }, |
3644 | 3644 | { |
3645 | 3645 | "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\":\"anthropic/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-haiku-4.5\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)" |
3647 | 3647 | }, |
3648 | 3648 | { |
3649 | 3649 | "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\": \"anthropic/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-haiku-4.5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'" |
3651 | 3651 | }, |
3652 | 3652 | { |
3653 | 3653 | "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\": \"anthropic/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-haiku-4.5\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}" |
3655 | 3655 | } |
3656 | 3656 | ] |
3657 | 3657 | } |
|
0 commit comments