Skip to main content
GET
/
generations
List
curl --request GET \
  --url https://api.hedra.com/web-app/public/generations \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.hedra.com/web-app/public/generations"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api.hedra.com/web-app/public/generations', 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.hedra.com/web-app/public/generations",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "X-API-Key: <api-key>"
  ],
]);

$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.hedra.com/web-app/public/generations"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-Key", "<api-key>")

	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.hedra.com/web-app/public/generations")
  .header("X-API-Key", "<api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.hedra.com/web-app/public/generations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "page_info": {
    "limit": 123,
    "offset": 123
  },
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "input": {
        "generated_video_inputs": {
          "text_prompt": "<string>",
          "ai_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "resolution": "<string>",
          "aspect_ratio": "<string>",
          "duration_ms": 123,
          "bounding_box_target": {
            "[0]": 0.5,
            "[1]": 0.5
          },
          "enhance_prompt": false
        },
        "workspace_id": "<string>",
        "agent_thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "generation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "generation_ids": [
          "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        ],
        "type": "video",
        "ai_model_id": "d1dd37a3-e39a-4854-a298-6510289f9cf2",
        "start_keyframe_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "start_keyframe_url": "<string>",
        "end_keyframe_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "end_keyframe_url": "<string>",
        "audio_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "audio_generation": {
          "voice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "text": "<string>",
          "workspace_id": "<string>",
          "agent_thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "generation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "generation_ids": [
            "3c90c3cc-0d44-4b50-8888-8dd25736052a"
          ],
          "type": "text_to_speech",
          "model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "stability": 1,
          "speed": 1,
          "language": "auto"
        },
        "audio_start_ms": 123,
        "reference_image_ids": [
          "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        ],
        "video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "batch_size": 1
      },
      "progress": 123,
      "created_at": "<string>",
      "eta_sec": 123,
      "credit_cost": 123,
      "batch_generation_id": "<string>",
      "asset": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "thumbnail_url": "<string>",
        "created_at": "<string>",
        "asset": {
          "width": 123,
          "height": 123,
          "url": "<string>",
          "type": "uploaded_image"
        },
        "description": "<string>",
        "is_favorite": false,
        "recent": false,
        "favorited_at": "<string>"
      },
      "error": {
        "message": "<string>"
      },
      "error_message": "<string>"
    }
  ]
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Query Parameters

type
Available options:
text,
image,
audio,
video,
voice
created_before
string<date-time> | null
created_after
string<date-time> | null
prompt_query
string | null
agent_thread_id
string<uuid> | null
ids
string | null
paging_params
PagingParams · object

Response

Successful Response

page_info
PageInfo · object
required

Paging information.

data
Generation · object[]
required

Page data.