BrightShotBrightShot API
Status

List recent predictions

Get a list of your recent generation requests.

GET
/api/v1/predictions
AuthorizationBearer <token>

API key in format: bs_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

In: header

Query Parameters

limit?integer

Maximum number of predictions to return

Default20
Rangevalue <= 100

Response Body

application/json

application/json

curl -X GET "https://api.bright-shot.com/api/v1/predictions"
{
  "predictions": [
    {
      "prediction_id": "string",
      "status": "processing",
      "output": [
        "http://example.com"
      ],
      "error": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "completed_at": "2019-08-24T14:15:22Z"
    }
  ],
  "count": 0
}
{
  "error": "Invalid API key"
}