API Reference
Dedicated
- Overview
- Inference
- EndpointBeta
Serverless
Container
Dataset
BetaFile
BetaFriendli SDK
Integrations
- Overview
- OpenAI
- LangChain
- Weaviate
- Vercel AI SDK
- LlamaIndex
- LiteLLM
Container
Container image generations
Given a description, the model generates image.
POST
/
v1
/
images
/
generations
Copy
Ask AI
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."
}'
Copy
Ask AI
{
"image": "<base64 encoded image>"
}
Body
application/json
Response
200
application/json
Successfully generated image.
The response is of type object
.
Was this page helpful?
Copy
Ask AI
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."
}'
Copy
Ask AI
{
"image": "<base64 encoded image>"
}
Assistant
Responses are generated using AI and may contain mistakes.