POST /v1beta/models/{model}:generateContentStandard GenerateContent request
Compatible API guide
Services already using the Google Gemini contents, parts, and generationConfig structure can connect to currently available Gemini models through the Infistar GenerateContent-compatible endpoint. The model ID is part of the request path and must match a live callable ID.
Use POST /v1beta/models/{model}:generateContent for standard generation and POST /v1beta/models/{model}:streamGenerateContent?alt=sse for streaming. Infistar authenticates these requests with Authorization: Bearer YOUR_API_KEY.
POST /v1beta/models/{model}:generateContentStandard GenerateContent request
POST /v1beta/models/{model}:streamGenerateContent?alt=sseStreaming generation over SSE
contents[].parts[]Text or multimodal parts supported by the model
generationConfigTemperature, topP, and maximum output settings
systemInstructionSystem instruction when supported by the model
MODEL_ID is a path placeholder. Replace it with a model visible to your API key that supports the Gemini endpoint.
curl "https://infistar.ai/v1beta/models/MODEL_ID:generateContent" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{
"role": "user",
"parts": [{"text": "Hello"}]
}]
}'