capabilities.work

Generate From a Catalog Model Version

A 4-step recipe with Civitai. We can help you get access.

Recipe · 4 steps

Generate From a Catalog Model Version

with Civitai · Artificial Intelligence Management

Resolve a model version AIR, generate with it, poll, and read the result.

  1. Resolve the catalog model version to obtain its AIR identifier and base model for generation.
  2. Submit an imageGen workflow that uses the resolved AIR as the model and capture the new workflow id.
  3. Poll the generation workflow until it reaches a terminal state, looping while still processing and continuing on success.
  4. Read the completed workflow and collect the generated output blob URL and Buzz cost.
What you'll need to have ready
  • apiKey: Civitai personal API token used as a Bearer credential.
  • modelVersionId: The catalog model version id to generate with.
  • engine: Generation engine identifier (e.g. flux2, sdxl, sd1).
  • prompt: The positive text prompt for the image.
  • quantity: Number of images to generate (1-10).
For your developer

Arazzo workflow civitai:model-version-to-generation, 4 operations: getModelVersion → submitWorkflow → getWorkflow → getWorkflow. Specs on APIs.io.