Back to Dashboard
API Documentation

List Generations

GET
Base URL/api/v1/generations

Returns a list of your generations. The generations are returned in sorted order, with the most recent generations appearing first. The response includes details such as the generation status, prompt, and output URL.

Parameters

limitinteger

Limit response count (max 100).

Default: 10
offsetinteger

Skip N items.

Default: 0
typestring

Filter by type.

Responses

200Successful response
application/json
{
  "data": [
    {
      "id": "gen_123456789",
      "type": "video",
      "prompt": "A futuristic city skyline",
      "status": "completed",
      "output_url": "https://api.streamsai.com/v1/outputs/gen_123.mp4",
      "created_at": "2024-03-20T14:30:00Z"
    }
  ]
}
curl
curl "/api/v1/generations" \
  -H "Authorization: Bearer sk_live_..."

Need help?

Join our Discord developer community for support and troubleshooting.