Skip to main content
Every image model is called through POST /api/generate/submit. Send a model ID in model, the model’s parameters in input, and an optional callback_url. The request returns a task_id right away and the task runs asynchronously.

Workflow

  1. Submit a task to POST /api/generate/submit with a model ID from the table below.
  2. Poll Get Task Status with the returned task_id, or receive the result at callback_url (see Webhook Callbacks).
  3. Download the files in files when the status is finished.
Model IDs ending in -edit are the image-editing variants and take input images. Check each model page for which IDs also accept reference images.

Models

Notes

  • Each model page lists the parameters, limits, and modes for its model IDs. Parameters are not shared across models.
  • Generated image files are accessible for 3 days after creation. Download and store them promptly.
  • URL inputs must be publicly accessible HTTP(S) URLs. To use local files, upload them first with File Management.