Use a model whose current catalog entry supports the Gemini format. Authenticate with Authorization: Bearer YOUR_API_KEY.
RequestInternational endpoint
StandardPOST https://infistar.ai/v1beta/models/{model}:generateContent
StreamingPOST https://infistar.ai/v1beta/models/{model}:streamGenerateContent?alt=sse
Replace {model} with an exact ID from your key’s GET /v1/models response. The ID belongs in the URL path.
Body fieldMeaning
contentsRequired conversation content, with text or multimodal parts
generationConfigOptional generation settings such as temperature, topP and maxOutputTokens
systemInstructionOptional system instruction
safetySettingsOptional safety settings supported by the model
Optional fields and capabilities depend on the selected model. For address and authentication problems, see Gateway configuration.