When trying to access openai models such as gpt-5-mini I am encountering following error.
As shown in the image other endpoints are working fine but openai endpoints are not working. Kindly look into the issue.
Terminal output:
root@LenovoPC:~# curl https://aipipe.org/openai/v1/models -H "Authorization: Bearer $AIPIPE_TOKEN"
{
"error": {
"message": "Incorrect API key provided: sk-proj-********************************************************************************************************************************************************_UkA. You can find your API key at https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
}
root@LenovoPC:~# curl https://aipipe.org/openai/v1/responses \
-H "Authorization: Bearer $AIPIPE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-5-nano", "input": "What is 2 + 2?" }'
{
"error": {
"message": "Incorrect API key provided: sk-proj-********************************************************************************************************************************************************_UkA. You can find your API key at https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"code": "invalid_api_key",
"param": null
},
"status": 401
}root@LenovoPC:~#curl https://aipipe.org/geminiv1beta/models/gemini-2.5-flash-lite:generateContent \\
-H "x-goog-api-key: $AIPIPE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"contents":[{"parts":[{"text":"What is 2 + 2?"}]}]}'
{
"candidates": [
{
"content": {
"parts": [
{
"text": "2 + 2 equals **4**."
}
],
"role": "model"
},
"finishReason": "STOP",
"index": 0
}
],
"usageMetadata": {
"promptTokenCount": 8,
"candidatesTokenCount": 8,
"totalTokenCount": 16,
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 8
}
]
},
"modelVersion": "gemini-2.5-flash-lite",
"responseId": "AA2GaYL2KfaAjuMP-seq0Aw"
}
root@LenovoPC:~#
When trying to access openai models such as gpt-5-mini I am encountering following error.
As shown in the image other endpoints are working fine but openai endpoints are not working. Kindly look into the issue.
Terminal output: