Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key created in the DreamTo console, sent as Authorization: Bearer <API Key>.

Body

application/json

Request body of generateContent.

contents
object[]
required

Conversation content. A single-turn request has one user item; for multi-turn edits send the turns in order.

generationConfig
object

Generation config.

Response

Content generated.

generateContent response.

candidates
object[]
required

Generated candidates, usually one.

usageMetadata
object

Token usage.

modelVersion
string

Model version used.

responseId
string

Response ID.