Skip to main content
POST
/
v1
/
predictions
Create a prediction
curl --request POST \
  --url https://api.agipower.ai/v1/predictions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "replicate/black-forest-labs/flux-schnell",
  "input": {}
}
'
{}

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:

"replicate/black-forest-labs/flux-schnell"

input
object
required

Response

200 - application/json

Created prediction

The response is of type object.