Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 830 Bytes

SDK_EXAMPLES.md

File metadata and controls

34 lines (19 loc) · 830 Bytes

SDK Usage Examples

Module v1.image_projects

Get image project details

Get the details of a image project. The download field will be null unless the image was successfully rendered.

The image can be one of the following status

  • draft - not currently used
  • queued - the job is queued and waiting for a GPU
  • rendering - the generation is in progress
  • complete - the image is successful created
  • error - an error occurred during rendering
  • canceled - image render is canceled by the user

API Endpoint: GET /v1/image-projects/{id}

Example Snippet

import Client from "magic-hour";

const client = new Client({ token: process.env["API_TOKEN"]!! });

const res = await client.v1.imageProjects.get({ id: "string" });

Upgrade to see all examples