Skip to main content
POST
/
assets_generated
Assets generated
curl --request POST \
  --url https://modelslab.com/api/assets_generated \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "type": "image",
  "per_page": 123,
  "page": 123
}
'
{
  "status": "success",
  "type": "<string>",
  "data": [
    {
      "id": 123,
      "output": [
        "<string>"
      ]
    }
  ],
  "pagination": {
    "current_page": 2,
    "per_page": 15,
    "total": 53,
    "last_page": 4,
    "from": 16,
    "to": 30
  }
}

Request

Send a POST request to below endpoint.
curl
--request POST 'https://modelslab.com/api/v6/assets_generated' \

Body

json
{  
  "key": "your_api_key",  
  "type": "image"
}

Body

application/json
key
string
required

Your enterprise API Key used for request authorization

type
enum<string>
required

The type of asset

Available options:
image,
video,
voice,
3d
per_page
integer

Number of assets to return per page (default: 10, max: 30)

page
integer

Page number (default: 1)

Response

NSFW prompt check response

status
enum<string>
Available options:
success
type
string

The type of asset generated

data
object[]

Array of generated assets

pagination
object

Pagination information for the response