AI Image Generator ยท https://hostapi.in/
GET /generate
Generates AI images from a given text prompt.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| prompt | string | โ | โ | Text description of the image. |
| image | int | โ | 1 | Number of images (1โ6). |
| dimensions | string | โ | square | Options: square, tall, wide. |
| safety | boolean | โ | true | Enable or disable NSFW safety filter. |
GET https://hostapi.in/generate?prompt=A+cat+on+the+moon&image=2&dimensions=wide&safety=true
{
"images": [
"https://hostapi.in/images/68d2ae4ceef19.png",
"https://hostapi.in/images/68d2ae4e9c3e1.png"
],
"Info": "Images auto-delete after 5 minutes",
"join": "@Qualityapis"
}
500 โ { "error": "Failed to fetch turbo token" }500 โ { "error": "Failed to generate or save images" }404 โ { "error": "Invalid request" }fetch("https://hostapi.in/generate?prompt=A+cyberpunk+city&image=3")
.then(res => res.json())
.then(data => console.log(data));
$response = file_get_contents("https://hostapi.in/generate?prompt=A+dog+with+glasses&image=2");
$data = json_decode($response, true);
print_r($data);
import requests
url = "https://hostapi.in/generate"
params = {
"prompt": "A dragon flying over mountains",
"image": 2,
"dimensions": "tall"
}
resp = requests.get(url, params=params)
print(resp.json())