Generate Images
Generate Images.
Last updated
curl -X GET '{API_URL}/api/v1/images/generation' \
-H 'Authorization: Bearer {TOKEN/KEY}' \
-H 'Content-Type: application/json' \
-d '{
"model": "stabilityai/stable-diffusion-xl-base-1.0",
"prompt": "insert your prompt here",
"num_steps": 25,
"guidance_scale": 9,
"width": 1024,
"height": 1024,
"negative_prompt": null
}'curl -X POST "https://api.nebulablock.com/api/v1/images/generation" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $NEBULA_API_KEY" \
--data-raw '{
"model":"black-forest-labs/FLUX.1-Fill-dev",
"prompt": "a red baseball cap",
"num_steps": 40,
"guidance_scale": 4.5,
"width": 1024,
"height": 1024,
"image": "/9j/4…/Z",
"mask": "/9j/4…ACgD/9k="
}'{
"model": "black-forest-labs/FLUX.1-schnell",
"object": "list",
"data": [
{
"timings": {
"inference": 13.366829872131348
},
"index": 0,
"b64_json": "sdj23kjjk2..."
}
],
"message": "Image generated successfully",
"status": "success"
}