Skip to Content

Gemini Native Format

Call Gemini models using a Gemini-style request body when your integration expects Google-native semantics.

Endpoint

POST https://123api.co/v1beta/models/{model}:generateContent

Example

curl --request POST \ --url 'https://123api.co/v1beta/models/gemini-2.0-flash:generateContent' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "contents": [ { "parts": [ { "text": "Write a two-sentence product introduction." } ] } ] }'

Use this format only if your upstream client or tooling expects Gemini-native requests. Otherwise, the general chat endpoint is easier to standardize.