Container
Container image generations (Beta)
API Reference
Dedicated
- Overview
- POSTChat completions
- POSTCompletions
- POSTTokenization
- POSTDetokenization
- POSTImage generations
- Chat completions chunk object
- Completions chunk object
- GETList endpoints
- GETRetrieve an endpoint specification
- GETRetrieve an endpoint status
- POSTCreate an endpoint with Hugging Face model
- POSTCreate endpoint from W&B artifact
- PUTUpdate an endpoint with new configuration
- PUTTerminate an endpoint
- PUTRestart an endpoint
Container
Container
Container image generations (Beta)
Given a description, the model generates image.
POST
/
v1
/
images
/
generations
curl --request POST \
--url http://localhost:8000/v1/images/generations \
--header 'Content-Type: application/json' \
--data '{
"guidance_scale": 3.5,
"num_inference_steps": 10,
"prompt": "An orange Lamborghini driving down a hill road at night with a beautiful ocean view in the background."
}'
{
"image": "<base64 encoded image>"
}
Body
application/json
Response
200
application/json
Successfully generated image.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url http://localhost:8000/v1/images/generations \
--header 'Content-Type: application/json' \
--data '{
"guidance_scale": 3.5,
"num_inference_steps": 10,
"prompt": "An orange Lamborghini driving down a hill road at night with a beautiful ocean view in the background."
}'
{
"image": "<base64 encoded image>"
}