https://github.com/prakhardoneria/text-to-image-rapidapi
https://github.com/prakhardoneria/text-to-image-rapidapi
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/prakhardoneria/text-to-image-rapidapi
- Owner: PrakharDoneria
- Created: 2024-03-16T03:21:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-09T15:48:59.000Z (over 1 year ago)
- Last Synced: 2025-07-30T22:25:53.297Z (2 months ago)
- Language: Python
- Homepage: replit.com/@prakhardoneria/Text-to-Image-RapidAPI
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Text to Image v4
## Endpoints
### 1. /generate (GET)
Generate and upload an image using Gradio and Free Image Host APIs.#### Parameters
- prompt (string): The prompt for generating the image.
- negative (string): The negative prompt for generating the image.
- useNegative (boolean): Whether to use the negative prompt or not.
- seed (integer): Seed for randomization (between 0 and 2147483647).
- width (integer): Width of the generated image (between 256 and 1536).
- height (integer): Height of the generated image (between 256 and 1536).
- scale (float): Guidance scale (between 0.1 and 20).
- randomSeed (boolean): Whether to randomize the seed or not.#### Sample Request
```
GET /generate?prompt=cat&negative=ugle&useNegative=True&seed=0&width=256&height=256&scale=0.1&randomSeed=True
```#### Sample Response
```json
{
"imgURL": "http://freeimage.host/images/2006/15/06/example.png"
}
```## Parameter Ranges
- `seed`: 0 to 2147483647
- `width`: 256 to 1536
- `height`: 256 to 1536
- `scale`: 0.1 to 20