Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model
string
required

Model ID, e.g. gemini-2.5-flash or openai/gpt-4o-mini

Body

application/json

Gemini generateContent request

contents
object[]
required
cachedContent
string

CachedContent is not supported: a request that sets it is refused with a 400.

generationConfig
object
safetySettings
object[]

SafetySettings are accepted and ignored: they have no portable equivalent, and a provider's own defaults apply.

store
boolean

Store is whether the provider may retain the request. It is carried as the Chat Completions store flag, which means the same.

systemInstruction
object
toolConfig
object
tools
object[]

Response

OK

candidates
object[]
modelVersion
string
responseId
string
usageMetadata
object