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."}'
Given a description, the model generates image(s).
POST
/
dedicated
/
v1
/
images
/
generations
Image generations
Copy
Ask AI
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."}'
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.
This API is currently in Beta.
While we strive to provide a stable and reliable experience, this feature is still under active development.
As a result, you may encounter unexpected behavior or limitations.
We encourage you to provide feedback to help us improve the feature before its official release.