Skip to main content
POST
/
v1
/
images
/
generations
Generate an image
curl --request POST \
  --url https://api.agipower.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "google/gemini-2.5-flash-image",
  "prompt": "A clean product shot of a futuristic API dashboard",
  "size": "1024x1024",
  "n": 1
}
'
{}

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.

Body

application/json
model
string
required
Example:

"google/gemini-2.5-flash-image"

prompt
string
required
Example:

"A clean product shot of a futuristic API dashboard"

size
string
Example:

"1024x1024"

n
integer
Example:

1

Response

200 - application/json

Generated image response

The response is of type object.