Model API guides / Google Gemini
Google Gemini API integration
Google model family
Gemini native requests use contents and parts. Put the exact model ID in the request URL and supply the API key in the request header.
Check model access
Model availability depends on the channels enabled for your account and the scope of your TokenPilot key. Request the model list and copy an exact ID before calling the model.
curl "https://api.tokentpilot.com/v1/models" \
-H "Authorization: Bearer $TOKENPILOT_API_KEY"
Choose a compatible endpoint
/v1beta/models/{model}:generateContent
Check which model supports your input modality, and use the matching endpoint for streaming. The native request body differs from OpenAI’s messages array.