Generate from a pose preset
All guides

Guide · 5 min read

Generate from a pose preset

Pick a public preset id. Pass a character or an image. No engine names.

GET /v2/models lists every live preset as goonify/presets/{slug}. Those ids are stable. POST /v2/jobs with the preset and either input.character or input.image_url, not both.

Use a public preset id from GET /v2/models. If an id is not in the catalog, do not send it.

A posed still from your character or image.

Steps

  1. 1

    List live presets with GET /v2/models.

  2. 2

    Pick a public id such as goonify/presets/missionary.

  3. 3

    Pass input.character or input.image_url, not both.

  4. 4

    Reuse a public id from GET /v2/models.

Install the SDK

pip install "goonify @ git+https://github.com/Goonify/goonify.git#subdirectory=sdks/python"

Modelgoonify/presets/missionary

from goonify import Goonify

client = Goonify()

job = client.run(
    "goonify/presets/missionary",
    input={"character": "char_42"},
)
print(job.output["url"])

What it looks like

Run it with a sandbox key

Sandbox keys return example media and spend nothing. Switch to a live key when you are ready.

Next recipes