Price: 1 credit/run (~$0.0250)
Request Body:
{
"prompt": "Your text here",
"control_image": "base64_encoded_string_of_image",
"batch_size": 0,
"image_width": 0,
"image_height": 0,
"seed": 0
}
Request Headers:
Authorization: Bearer YOUR_API_KEY
Note:
prompt
(text) is required.control_image
(image) is required.batch_size
(number) is required. Value should be between 1 and 4.image_width
(number) is required. Value should be between 512 and 2048.image_height
(number) is required. Value should be between 512 and 2048.seed
(number) is required. Value should be between 0 and 10000000.curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"prompt": "Your text here",
"control_image": "base64_encoded_string_of_image",
"batch_size": 0,
"image_width": 0,
"image_height": 0,
"seed": 0
}' \
https://rerender.genly.ai/api/workflows/674829a60a1c7e0df43198b8
Response Body:
{
"render_id": "unique_render_id_string"
}
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
https://rerender.genly.ai/api/renders/{render_id}
Response Body:
{
"_id": "unique_render_id_string",
"workflow_id": "associated_workflow_id",
"inputs": [
{
"name": "input_name",
"type": "input_type",
"desc": "input_description",
"cover_src": "input_cover_image_url",
"cover_width": 100,
"cover_height": 100
}
],
"outputs": [
{
"name": "output_name",
"type": "output_type",
"desc": "output_description",
"cover_src": "output_cover_image_url",
"cover_width": 100,
"cover_height": 100
}
],
"phase": "pending | processing | completed | failed | dead",
"is_sample": false,
"is_public": false,
"created_at": 1234567890,
"updated_at": 1234567890,
"misc": {
// Additional metadata
}
}
Note:
phase
field indicates the current status of the render.phase
periodically until it becomes "completed" or "failed".phase
is "completed", you can access the output results.inputs
and outputs
arrays contain details about the workflow's input and output data.