Generations
Create Sync Generation
Changed onRun a generation and return the finished result in the same response. Only sync-capable models are accepted. The request may take up to ~27 seconds before the service times out.
post/generationssync
Request
- Base URLhttps://cloud.leonardo.ai/api/rest/v2
- URLhttps://cloud.leonardo.ai/api/rest/v2/generationssync
- AuthHTTP bearer
Request body
Example request
{
"model": "remove-bg",
"parameters": {
"size": "full",
"channels": "rgba",
"quantity": 1,
"guidances": "your guidances here",
"shadow_type": "none",
"semitransparency": true
}
}Response
Responses for POST /generationssync
Changes
- info
endpoint added
- info