Library

Get a generation's status

Returns the current status of a generation started with POST /v1/library/generations. Poll until status is completed (then item holds the finished library item) or failed (then error says why; start a new generation).

get/v1/library/generations/{id}

Path parameters

idstring required

Generation ID — the generation.id returned when it was started

Example:mi_abc123def456

Generation ID — the generation.id returned when it was started

Response

OK

Example response

{
  "generation": {
    "id": "mi_abc123def456",
    "item": {
      "category": "Everyday",
      "durationMs": 4200,
      "id": "media_abc123def456",
      "name": "Intro camera take",
      "presetId": "cha-ching",
      "scope": "private",
      "sourceId": "su_abc123def456",
      "type": "video"
    },
    "prompt": "A watercolor illustration of a lighthouse at dawn",
    "status": "completed",
    "type": "image"
  }
}

Changes

Changed in 3 of the 19 revisions of this API.101

    • ●

      added the new edit_conflict enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new edit_conflict enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new edit_conflict enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new edit_conflict enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new edit_conflict enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new edit_conflict enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new edit_conflict enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new edit_conflict enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new edit_conflict enum value to the response property for the response status

      response-property-enum-value-added

    • ●

      added the new screenshot enum value to the ////// response property for the response status

      response-property-enum-value-added

    • ○

      endpoint added

      endpoint-added

Of the 19 revisions, 1 has no diff computed.