added new attributes
Browse files
README.md
CHANGED
|
@@ -32,7 +32,8 @@ Send a POST request to the endpoint URL with the following JSON payload:
|
|
| 32 |
"negative_prompt": "<negative_prompt>",
|
| 33 |
"height": <height>,
|
| 34 |
"width": <width>,
|
| 35 |
-
"guidance_scale": <guidance_scale
|
|
|
|
| 36 |
}
|
| 37 |
```
|
| 38 |
## Request Parameters
|
|
@@ -40,10 +41,11 @@ Send a POST request to the endpoint URL with the following JSON payload:
|
|
| 40 |
| Parameter | Type | Required | Description |
|
| 41 |
|-------------------|----------|----------|----------------------------------------------------|
|
| 42 |
| inputs | string | Yes | The positive prompt for the inference. |
|
| 43 |
-
| negative_prompt | string | No | The negative prompt for the inference (optional).
|
| 44 |
| height | integer | Yes | The height of the image. |
|
| 45 |
| width | integer | Yes | The width of the image. |
|
| 46 |
| guidance_scale | float | Yes | The guidance scale for the inference. |
|
|
|
|
| 47 |
|
| 48 |
## Response Format
|
| 49 |
The API response will be a JSON object with the following structure:
|
|
@@ -58,11 +60,10 @@ The API response will be a JSON object with the following structure:
|
|
| 58 |
|
| 59 |
| Field | Type | Description |
|
| 60 |
|--------|--------|------------------------------------------------|
|
| 61 |
-
| image | string | The base64-encoded image generated by the API.
|
| 62 |
-
|
| 63 |
-
## Example Request
|
| 64 |
|
| 65 |
|
|
|
|
| 66 |
|
| 67 |
|
| 68 |
### Here's an example request using Python:
|
|
@@ -78,7 +79,8 @@ requestData = {
|
|
| 78 |
'negative_prompt': 'Negative prompt goes here',
|
| 79 |
'height': 512,
|
| 80 |
'width': 512,
|
| 81 |
-
'guidance_scale': 7.5
|
|
|
|
| 82 |
}
|
| 83 |
|
| 84 |
headers = {
|
|
@@ -102,7 +104,8 @@ const requestData = {
|
|
| 102 |
negative_prompt: 'Negative prompt goes here',
|
| 103 |
height: 512,
|
| 104 |
width: 512,
|
| 105 |
-
guidance_scale: 7.5
|
|
|
|
| 106 |
};
|
| 107 |
|
| 108 |
const headers = {
|
|
|
|
| 32 |
"negative_prompt": "<negative_prompt>",
|
| 33 |
"height": <height>,
|
| 34 |
"width": <width>,
|
| 35 |
+
"guidance_scale": <guidance_scale>,
|
| 36 |
+
"inference_steps" : <inference_steps>,
|
| 37 |
}
|
| 38 |
```
|
| 39 |
## Request Parameters
|
|
|
|
| 41 |
| Parameter | Type | Required | Description |
|
| 42 |
|-------------------|----------|----------|----------------------------------------------------|
|
| 43 |
| inputs | string | Yes | The positive prompt for the inference. |
|
| 44 |
+
| negative_prompt | string | No | The negative prompt for the inference (optional). |
|
| 45 |
| height | integer | Yes | The height of the image. |
|
| 46 |
| width | integer | Yes | The width of the image. |
|
| 47 |
| guidance_scale | float | Yes | The guidance scale for the inference. |
|
| 48 |
+
| inference_steps | integer | No | The steps for inference.(25 default) |
|
| 49 |
|
| 50 |
## Response Format
|
| 51 |
The API response will be a JSON object with the following structure:
|
|
|
|
| 60 |
|
| 61 |
| Field | Type | Description |
|
| 62 |
|--------|--------|------------------------------------------------|
|
| 63 |
+
| image | string | The base64-encoded image generated by the API. |
|
|
|
|
|
|
|
| 64 |
|
| 65 |
|
| 66 |
+
## Example Request
|
| 67 |
|
| 68 |
|
| 69 |
### Here's an example request using Python:
|
|
|
|
| 79 |
'negative_prompt': 'Negative prompt goes here',
|
| 80 |
'height': 512,
|
| 81 |
'width': 512,
|
| 82 |
+
'guidance_scale': 7.5,
|
| 83 |
+
'inference_steps': 50,
|
| 84 |
}
|
| 85 |
|
| 86 |
headers = {
|
|
|
|
| 104 |
negative_prompt: 'Negative prompt goes here',
|
| 105 |
height: 512,
|
| 106 |
width: 512,
|
| 107 |
+
guidance_scale: 7.5,
|
| 108 |
+
inference_steps: 50,
|
| 109 |
};
|
| 110 |
|
| 111 |
const headers = {
|