Перейти к содержимому
EN

List generations

GET
/generations
curl --request GET \
--url 'https://api.mixen.ai/v1/generations?type=image&limit=50' \
--header 'Authorization: Bearer <token>'

Previously generated artifacts of the account that owns this API key: images, videos and music from the bot, the web cabinet and the API alike — newest first. Pass next_cursor as cursor for the next older page. Fetch the artifact bytes from /v1/generations/{type}/{id}/content. Prompts are returned as stored; charged_rub is a decimal string.

type
required
Type

Artifact kind — histories live in separate tables with separate ids.

string
Allowed values: image video music

Artifact kind — histories live in separate tables with separate ids.

cursor
Any of:
integer

Item id from a previous response’s next_cursor.

limit
Limit

Page size, max 200.

integer
default: 50 >= 1 <= 200

Page size, max 200.

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}