πŸ‘·Using the API

Integrate image creation into your workflows using the dreamlook.ai API

Start an image generation job

  1. Generate an API key on dreamlook.ai/api-keys. Treat this key like a password: keep it safe, and don't expose it publicly!

  2. Export your API key as the environment variable DREAMLOOK_API_KEY :

export DREAMLOOK_API_KEY="dl-YOURKEYHERE"
  1. Go to https://dreamlook.ai/image-gen and configure your generation parameters as described in Using the website

  2. Copy the content of "API request" and paste it into a terminal. Running the command will trigger a new generation job:

  1. You will get a unique job ID as a response:

Jobs created from the API are also visible from the website, so you can check https://dreamlook.ai/jobs/image-gen to see how your job is progressing.

Keeping track of your jobs

Check the documentation in Using the API to see how to list your jobs and check their state. Image generation jobs have the job type image-gen.

Here's an example of a image generation job response:

Last updated