Generate PhotoReal with Leonardo AI

I try to generate PhotoReal from Leonardo AI, But I don’t found paramter name ‘photoReal’

To referenct with api document Generate Images Using PhotoReal
curl --request POST
–url https://cloud.leonardo.ai/api/rest/v1/generations
–header ‘accept: application/json’
–header ‘authorization: Bearer <YOUR_API_KEY>’
–header ‘content-type: application/json’
–data ’
{
“height”: 512,
“prompt”: “A cat staring at a window”,
“width”: 512,
“alchemy”: true,
“photoReal”: true,
“photoRealStrength”: 0.5,
“presetStyle”: “CINEMATIC”
}

Please help to set paramter ==> “photoReal”: true
in module Leonardo.AI
Thank you

1 Like

Hey @jomy_nn ,

Good question! The photoReal parameter in Leonardo AI is meant to help create more photorealistic images, but from what you’ve shared, it seems like it might not be recognized by the API as expected. This could happen for a few reasons:

  1. API Updates or Changes: Sometimes, parameters like photoReal might be deprecated or renamed in newer versions of the API. It’s always a good idea to double-check the latest documentation to confirm the available parameters.
  2. Misconfiguration: If the photoReal feature requires specific combinations of other parameters (like alchemy or presetStyle), it’s possible the current setup isn’t compatible.

To help, it might be useful to know more about what you’re trying to achieve with the final result. Are you aiming for super-realistic images, certain lighting effects, or a specific style? Knowing this can help explore alternative solutions.

If Leonardo AI doesn’t offer the flexibility you need, you could try other text-to-image providers like Picsart. While Picsart doesn’t have a dedicated module for generating images yet, you can easily use its generic module to call the Text2Image API. You can find the API documentation here: Text2Image.

Give it a try, and let me know how it goes or if you’d like help setting things up!

Cheers!

1 Like