Skip to main content
POST
/
v1
/
publishers
/
{provider}
/
models
/
{model}
:generateContent
Generate Content
curl --request POST \
  --url https://api.agipower.ai/v1/publishers/{provider}/models/{model}:generateContent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contents": [
    {}
  ],
  "generationConfig": {},
  "tools": [
    {}
  ]
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.agipower.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

provider
string
required
Example:

"google"

model
string
required
Example:

"gemini-2.0-flash"

Body

application/json
contents
object[]
required
generationConfig
object
tools
object[]

Response

200 - application/json

Generated content response

The response is of type object.