POST
/
pub
/
v1
/
generations
/
estimate

Headers

X-API-KEY
string
required

API key needed to access our public endpoints. You can find yours under the 'Account' section of the website

Body

application/json · object[]
aspect_ratio
enum<string>

The aspect ratio of the image for the generation

Available options:
1:1,
2:3,
3:2,
4:5,
16:9,
9:16
batch_size
integer

The batch size of the generation (Max permissible value depends on your subscription plan). Visit RenderNet pricing for more details

cfg_scale
number

AI guidance for this generation. Higher the value, the output will be closer to the prompt (but may result in distorted images after a point)

character
object

If you want to create images of a character, use the character’s name in the positive prompt. Example: {character_name} riding a bike

control_net
object

The control net(pose control) for the generation if you want to use (optional)

facelock
object

The face you want to restore for the generation if you want to use (optional)

loras
object[]

Query the list resources endpoint GET /pub/v1/loras to view all available LoRAs. You can add multiple LoRAs to a single generation. Make sure your LoRAs have the same base model (SD 1.5 / SDXL) as your selected style/model.

model
string

Query the list models endpoint GET /pub/v1/models to view all available models.

narrator
object

For Narrator generation, pass either script or audio_asset_id along with other required details in narrator payload.

prompt
object

The prompt for the generation

quality
enum<string>

The quality of the image for the generation (Case Sensitive)

Available options:
Plus,
Regular
sampler
enum<string>

The sampler you want to use for the generation (Case Sensitive)

Available options:
DPM++ 2M Karras,
DPM++ 2M SDE Karras,
DPM++ 2S a Karras,
DPM++ SDE,
DPM++ SDE Karras,
Euler a
seed
integer

The seed for the generation (randomized if you don't want to use a seed)

segment
object

Changes the input asset image based on the find and replace prompts

steps
integer

The number of steps you want AI to take for the generation

style
string

Query the list styles endpoint GET /pub/v1/styles to view all available styles.

true_touch
object

Enhances and upscales the input image passed in the asset_id

Response

200 - application/json
data
object
error
object

The error if the request was not successful