IMAGE
Base-Path:
https://api.hyprlab.io/v1Image Path:
https://api.hyprlab.io/v1/images/generationsMaking Request:
curl https://api.hyprlab.io/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-d '{
"model": "grok-2-image",
"prompt": "A cute cat",
"response_format": "url",
}'
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: "<HYPRLAB_API_KEY>",
baseURL: "https://api.hyprlab.io/v1",
});
async function main() {
const image = await openai.images.generate({
model: "grok-2-image",
prompt: "A cute cat",
response_format: "url",
});
console.log(image.data);
}
main();from openai import OpenAI
client = OpenAI(
api_key="<HYPRLAB_API_KEY>",
base_url="https://api.hyprlab.io/v1",
)
client.images.generate(
model="grok-2-image",
prompt="A cute cat",
response_format="url",
)🖼️ Image Models
Model Name:
grok-2-image
Discount:
10% off
Price:
$0.063 / Image
Last updated
