Generation History
curl --request GET \
--url https://api.example.com/api/v2/user/historyimport requests
url = "https://api.example.com/api/v2/user/history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v2/user/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v2/user/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v2/user/history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v2/user/history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/user/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyUser
Generation History
List past generations with filtering, favorites, and ratings
GET
/
api
/
v2
/
user
/
history
Generation History
curl --request GET \
--url https://api.example.com/api/v2/user/historyimport requests
url = "https://api.example.com/api/v2/user/history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v2/user/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v2/user/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v2/user/history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v2/user/history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/user/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyQuery Parameters
integer
default:"1"
Page number.
integer
default:"20"
Items per page (max 100).
string
Filter:
text, image, video, tts, stt, toolstring
Filter by model slug.
string
Filter:
completed, pending, failedboolean
Show only favorited generations.
Request
curl "https://elumenta.ru/api/v2/user/history?category=image&limit=10" \
-H "Authorization: Bearer nb_YOUR_API_KEY"
Response
{
"items": [
{
"id": 18491,
"model_slug": "flux-1.1-pro",
"model_name": "Flux 1.1 Pro",
"category": "image",
"prompt": "Portrait of a CEO in a modern office",
"status": "completed",
"result_text": null,
"result_url": "https://storage.elumenta.ru/generations/18491.webp",
"tokens_spent": 8,
"is_favorited": false,
"user_rating": null,
"created_at": "2026-03-08T12:02:30Z"
}
],
"total": 142,
"page": 1,
"limit": 10
}
Toggle Favorite
POST /api/v2/user/history/{generation_id}/favorite
Rate a Generation
POST /api/v2/user/history/{generation_id}/rate
Content-Type: application/json
{"rating": 5}
Delete
DELETE /api/v2/user/history/{generation_id}
File retention depends on your plan: Starter 7 days, Basic 30 days, Pro/VIP 90 days, Elite unlimited.
⌘I

