Skip to main content
Gemini 3 Pro Preview (Stream) provides streaming text generation based on the Google Gemini 3 Pro Preview model, accessible through Starrise AI. Responses are delivered in real time via Server-Sent Events (SSE).

Key Capabilities

  • SSE streaming — Real-time token-by-token response delivery
  • Thinking mode — Supports thinking configuration for enhanced reasoning
  • Multi-turn conversation — Complex conversations with system instructions
  • Safety filtering — Configurable content safety filters

Quick Example

curl "https://ai.alad.com/v1beta/models/gemini-3-pro-preview:streamGenerateContent?key=YOUR_API_KEY&alt=sse" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      {
        "role": "user",
        "parts": [{ "text": "Write a short poem about the ocean." }]
      }
    ],
    "generationConfig": {
      "temperature": 1,
      "topP": 1,
      "thinkingConfig": {
        "includeThoughts": true,
        "thinkingBudget": 26240
      }
    }
  }'

Parameters

ParameterTypeRequiredDescription
keystringYesAPI key (query parameter)
altstringNoSet to sse to enable SSE streaming
contentsarrayYesArray of { role, parts } objects
systemInstructionobjectNoSystem instruction with parts array
generationConfig.temperaturefloatNo02, controls randomness, default 1
generationConfig.topPfloatNoNucleus sampling threshold, default 1
generationConfig.thinkingConfigobjectNoThinking mode configuration
safetySettingsarrayNoContent safety filter settings

API Reference

View the interactive API Playground for Gemini 3 Pro Preview (Stream).