Hugging Face · Example Payload

Hugging Face Texttoimage Example

Hugging Face Texttoimage Example is an example object payload from Hugging Face, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "textToImage",
  "method": "POST",
  "path": "/models/{model_id}/text-to-image",
  "summary": "Text to Image Generation",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "TexttoimageRequestExample",
      "example": {
        "inputs": "example_value",
        "parameters": {
          "negative_prompt": "example_value",
          "height": 10,
          "width": 10,
          "num_inference_steps": 10,
          "guidance_scale": 42.5
        }
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "image/png",
      "name": "Texttoimage200Example",
      "example": "example_value"
    }
  ]
}