Skip to main content
POST
/
dedicated
/
v1
/
images
/
generations
Image generations
curl --request POST \
  --url https://api.friendli.ai/dedicated/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "(endpoint-id)",
  "num_inference_steps": 10,
  "prompt": "An orange Lamborghini driving down a hill road at night with a beautiful ocean view in the background."
}'
{
  "data": [
    {
      "url": "(url-to-generated-image)",
      "seed": 123,
      "response_format": "url"
    }
  ]
}
Given a description, the model generates image(s). To request successfully, it is mandatory to enter a Friendli Token (e.g. flp_XXX) value in the Bearer Token field. Refer to the authentication section on our introduction page to learn how to acquire this variable and visit here to generate your token.

Authorizations

Authorization
string
header
required

Headers

X-Friendli-Team
string | null

Body

application/json
model
string
required
Examples:
prompt
string
required
num_inference_steps
integer
required
guidance_scale
number | null
seed
integer | null
response_format
enum<string> | null
default:url
Available options:
url,
raw,
png,
jpeg,
jpg
control_images
ImageInput · object[] | null
controlnet_weights
number[] | null

Response

data
required