Gemini native API
Aikey365 implements Gemini v1beta-native routes.
Base URL
text
https://aikey365.comModels
text
GET /v1beta/modelsGenerate content
text
POST /v1beta/models/{model}:generateContentbash
curl "https://aikey365.com/v1beta/models/YOUR_MODEL_ID:generateContent" \
-H "x-goog-api-key: $AIKEY365_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{"parts": [{"text": "Reply with one short sentence."}]}
]
}'Authentication
Use x-goog-api-key for backend applications. A key query parameter is also recognized where applicable.
Protocol difference
Gemini native requests are not OpenAI Chat Completions requests with a different URL. Use the correct request body for the protocol.