diff --git a/docs/api-inference/tasks/image-to-image.md b/docs/api-inference/tasks/image-to-image.md index 1c2f277b3..cd1079e74 100644 --- a/docs/api-inference/tasks/image-to-image.md +++ b/docs/api-inference/tasks/image-to-image.md @@ -51,9 +51,8 @@ No snippet available for this task. | **        guidance_scale** | _number_ | For diffusion models. A higher guidance scale value encourages the model to generate images closely linked to the text prompt at the expense of lower image quality. | | **        negative_prompt** | _string[]_ | One or several prompt to guide what NOT to include in image generation. | | **        num_inference_steps** | _integer_ | For diffusion models. The number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference. | -| **        target_size** | _object_ | The size in pixel of the output image. | -| **                width*** | _integer_ | | -| **                height*** | _integer_ | | +| **        width** | _integer_ | The width in pixel of the output image. | +| **        height** | _integer_ | The heigh in pixel of the output image. | Some options can be configured by passing headers to the Inference API. Here are the available headers: diff --git a/docs/api-inference/tasks/text-to-image.md b/docs/api-inference/tasks/text-to-image.md index df2bb4d2c..9307a584d 100644 --- a/docs/api-inference/tasks/text-to-image.md +++ b/docs/api-inference/tasks/text-to-image.md @@ -106,9 +106,8 @@ To use the JavaScript client, see `huggingface.js`'s [package reference](https:/ | **        guidance_scale** | _number_ | A higher guidance scale value encourages the model to generate images closely linked to the text prompt, but values too high may cause saturation and other artifacts. | | **        negative_prompt** | _string[]_ | One or several prompt to guide what NOT to include in image generation. | | **        num_inference_steps** | _integer_ | The number of denoising steps. More denoising steps usually lead to a higher quality image at the expense of slower inference. | -| **        target_size** | _object_ | The size in pixel of the output image | -| **                width*** | _integer_ | | -| **                height*** | _integer_ | | +| **        width** | _integer_ | Image width. | +| **        height** | _integer_ | Image height. | | **        scheduler** | _string_ | Override the scheduler with a compatible one. | | **        seed** | _integer_ | Seed for the random number generator. |