curl --location "https://randomseed.lol/v1/status/${REQUEST_ID}" \
  --header "Authorization: Bearer $RANDOMSEED_API_KEY" \
{
  "executionTime": 12936,
  "id": "${REQUEST_ID}",
  "output": {
    "image_urls": [
      "..."
    ],
  },
  "status": "COMPLETED"
}

API key

Create your account on RandomSeed & grab your api key

Headers

Authorization
string

Your API key. This is required by most endpoints to access our API programatically. You can get your api key by clicking on ‘API reference’ tab under your profile icon.

Params

request_id
string

Your request id from txt2img or img2img endpoint. It should be located in the response payload under response["result"]["id"]

Response

executionTime
integer

How long it took to process the request

id
string

Request id

output
object
staus
string

Status of the response. Can be one of IN_QUEUE, IN_PROGRESS, FAILED, COMPLETED

curl --location "https://randomseed.lol/v1/status/${REQUEST_ID}" \
  --header "Authorization: Bearer $RANDOMSEED_API_KEY" \
{
  "executionTime": 12936,
  "id": "${REQUEST_ID}",
  "output": {
    "image_urls": [
      "..."
    ],
  },
  "status": "COMPLETED"
}