POST
/
models
/
v2
/
google
/
{model}
curl --request POST \
  --url https://api.bytez.com/models/v2/google/{model} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Provider-Key: <api-key>' \
  --data '{
  "messages": [
    {
      "role": "<string>",
      "content": "<string>"
    }
  ],
  "stream": true,
  "params": {
    "temperature": 123,
    "topP": 123,
    "topK": 123,
    "candidateCount": 123,
    "maxOutputTokens": 123,
    "presencePenalty": 123,
    "frequencyPenalty": 123
  }
}'
{
  "output": "<string>"
}

Authorizations

Authorization
string
header
required

Provide your API key as Key your-key-here in the Authorization header.

Provider-Key
string
header
required

Provide your provider API key as Provider-Key your-provider-key-here in the header.

Path Parameters

model
string
required

The specific Google model to interact with (e.g., gemini-1.5-flash).

Body

application/json
Send messages to the specified Google model.
messages
object[]
required

Messages to process.

params
object
required
stream
boolean

Enable or disable streaming responses.

Response

200 - application/json
Successful response from the specified Google model.
output
string

Model output text.