Authorization: Bearer YOUR_API_KEY.
| Request | International endpoint |
|---|---|
| Standard | POST https://infistar.ai/v1beta/models/{model}:generateContent |
| Streaming | POST https://infistar.ai/v1beta/models/{model}:streamGenerateContent?alt=sse |
{model} with an exact ID from your key’s GET /v1/models response. The ID belongs in the URL path.
| Body field | Meaning |
|---|---|
contents | Required conversation content, with text or multimodal parts |
generationConfig | Optional generation settings such as temperature, topP and maxOutputTokens |
systemInstruction | Optional system instruction |
safetySettings | Optional safety settings supported by the model |