get_model_params
Fetch the exact input schema for a Pixio model to build the params object for generation. Use after listing models to get required parameters and defaults.
Instructions
Fetch the exact input schema for one Pixio model.
Step 2 of the three-call contract: list_models -> get_model_params ->
generate. Build the params object for generate() strictly from this
response — the server embeds no per-model knowledge.
Critical gotchas when building params for generate():
For select-type params the allowed values are
options[].value(there is no ".values" array). Send select values as STRINGS even when they look numeric — e.g. "5", not 5.Some params marked optional-with-default are still required by the gateway. On your first attempt send EVERY listed param, using each param's
defaultValuewhere you have no better value.
Args: model_id: Catalog model id from list_models, e.g. "pixio/flux-1/schnell".
Returns: The gateway /params response verbatim: {"model": {...}, "params": [{"name", "type", "label", "required", "defaultValue", "placeholder"?, "options"?: [{"value", "label"}]}, ...]}. An unknown model id yields a NOT_FOUND error dict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes |