partner_generate
Generate images with hosted PARTNER models (Flux, Ideogram, DALL·E, Recraft) by sending prompts and parameters to remote infrastructure, spending credits only after user consent, and optionally saving outputs to a specified path.
Instructions
Run a hosted PARTNER model (Flux / Ideogram / DALL·E / Recraft / …) — SPENDS CREDITS.
Wraps comfy generate <model> [--param=value]…. Runs entirely on the
PARTNER's infrastructure — the user's local ComfyUI never executes anything.
For local execution, use emit_partner_workflow -> run_workflow ->
fetch_outputs instead (covers only the models comfy-cli can render as a
node).
Args:
params: the model's own inputs (prompt, aspect_ratio, seed,
…), forwarded verbatim. Discover them with list_partner_models()
and partner_model_schema(model) — not nodes /
search_templates, which answer a local-install question.
confirm_spend: this call ALWAYS spends credits. Set True ONLY when the
user has actually agreed to spend on this call — never merely to
clear an error. A client that supports MCP elicitation prompts the
user anyway, so this is the fallback for one that cannot. A durable
comfy generate consent always in comfy-cli's own config skips
the prompt — the engine consenting to itself, not this server.
out_path: forwards --download <path>; a save-path TEMPLATE, not a
filename — {request_id}/{index}/{ext} are substituted,
and a trailing slash means "default filename in this directory".
Gotchas:
- With no consent source available, comfy-cli fails CLOSED — nothing
is spent.
- Saved paths come back as saved_paths, verbatim from what
comfy-cli printed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| params | No | ||
| out_path | No | ||
| confirm_spend | No | ||
| timeout_seconds | No |