Text Gemini

Gemini 3.5 Flash

Fast Gemini text model for complex coding, agent and long-running tasks.

Capabilities

Vision input Tool calling 1048576 token context

Parameters and specs

Max output
65.5K tokens

Model API

Model endpoints route to this capability through the model field or app/action fields in the request body. Include a MediaGo developer API key before calling them.

Method

POST

Endpoint

/api/v1/chat/completions

Auth

Authorization: Bearer <mgak_...>

Result

text/event-stream

The text endpoint returns OpenAI-compatible SSE data chunks until [DONE].

Key fields

model
Required. Use the current model ID.
messages
Required. Chat message array supporting system, user, and assistant roles.
temperature
Optional. Sampling temperature from 0 to 2.
max_tokens
Optional. Limits the maximum output tokens for one response.
stream
Optional. When true, text deltas are returned through SSE.

Request example

{
  "model": "gemini-3.5-flash",
  "messages": [
    {
      "role": "user",
      "content": "Rewrite this product description into three short social posts."
    }
  ],
  "temperature": 0.7,
  "max_tokens": 1024,
  "stream": true
}

Example uses

Example prompt

Rewrite this product launch note into three social posts with different tones and suggested headlines.

Example prompt

Read the meeting notes below and extract decisions, risks, owners, and next-week action items.

Example prompt

Compare two technical approaches by complexity, launch risk, and maintenance cost.