Skip to main content
POST
/
v1beta
/
models
/
{model}
:generateContent
gemini-2.5-flash-nothinking (text to text no stream)
curl --request POST \
  --url https://api.example.com/v1beta/models/{model}:generateContent
Gemini’s official format for the text to text no stream API.
curl --location 'https://gptproto.com/v1beta/models/gemini-2.5-flash-nothinking:generateContent' \
--header 'Authorization: sk-***********' \
--header 'Content-Type: application/json' \
--data '{
    "contents": [
        {
            "role": "user",
            "parts": [
                {
                    "text": "hello"
                }
            ]
        }
    ]
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Path Parameters

Parameters

ParameterTypeRequiredDefaultDescription
contentsarray✅ Yes-An array of content objects representing the conversation history. The role of the message sender. Typically "user" or "model".
partsarray✅ Yes-An array of parts that make up the message content. Text content of the message.
inlineDataobject❌ No-Inline data for images or other media (base64 encoded).
functionResponseobject❌ No-Response from a function call.
fileDataobject❌ No-Reference to uploaded file data.
videoMetadataobject❌ No-Metadata for video content.
functionCallobject❌ No-Function call request.
functionCallsarray❌ No-Multiple function calls.
thoughtSignaturestring❌ No-Signature for thought content.
thoughtstring❌ No-Thought content for reasoning models.