


























Every model on Replicate describes its inputs and outputs with OpenAPI Schema Objects in the openapi_schema property. This is a structured JSON object that includes the name, description, type, and allowed values for each input or output parameter.
Today we’ve improved our API reference documentation to clarify how to get a model’s input and output schema.
See the updated docs at https://replicate.com/docs/reference/http#models.versions.get
Here’s an example of how to get the input schema for Stable Diffusion using cURL:
Using this command, we can see all the inputs to Stable Diffusion, including their types, description, min and max values, etc:
And here’s a command to the get the output schema:
From this command, we can see that Stable Diffusion output format is a list of URL strings:
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。