Gemini compatible
The pricing API declares a gemini endpoint; Gemini model IDs also work over OpenAI Chat (group permitting).
Model ID
Use IDs visible to your account: the recommended models table (pricing API) or
GET /v1/models. Don't copy sample names from docs/blogs.Terminal usage: Gemini CLI chapter.
Native path (as declared)
text
POST /v1beta/models/{model}:generateContent?key=sk-xxxxbash
curl "https://api.daoxe.com/v1beta/models/your-gemini-model-id:generateContent?key=sk-xxxx" \
-H "Content-Type: application/json" \
-d '{"contents":[{"parts":[{"text":"ping"}]}],"generationConfig":{"maxOutputTokens":64}}'Or via Chat compatibility
bash
curl https://api.daoxe.com/v1/chat/completions \
-H "Authorization: Bearer sk-xxxx" \
-H "Content-Type: application/json" \
-N \
-d '{
"model": "your-gemini-model-id",
"messages": [{"role":"user","content":"ping"}],
"max_tokens": 64
}'Response / errors (structure)
json
{"candidates":[{"content":{"parts":[{"text":"..."}],"role":"model"},"finishReason":"STOP"}]}
{"error":{"message":"model not found or not available for this token group"}}