Dyvo API relies on Bearer token authorization. Simply pass your API token in the header:
API is limited to 2 queries per second. Contact us if you need to make requests with higher frequency. The maximum image file size is 10MB.
Each generated image consumes 1 credit (you can specify how many images you want to have).
All POST API endpoints accept callback_url send in response the session_id of the current job, and send a webhook to this URL with this session_id when finished processing.
Use this endpoint to remove background from your photo.
Request:
curl -X POST\
'https://api.dyvo.ai/v1/remove_bg'\
-H 'Authorization=Bearer API_TOKEN'\
-H 'Content-Type=application/json'\
Request Body:
{
image_src: "LINK_TO_YOUR_IMAGE",
calback_url: "WEBHOOK_LINK"
}
Callback Data:
{
session_id: "14b52bb7-80aa-15b6-a43f-8502761e40d52", image_url: "https://...",
status: "COMPLETED"
}
Use this endpoint to create AI product photos (product backgrounds) for products with already removed backgrounds.
Request:
curl -X POST\
'https://api.dyvo.ai/v1/scene'\
-H 'Authorization=Bearer API_TOKEN'\
-H 'Content-Type=application/json'\
Request Body:
{
reference_image: "LINK_TO_YOUR_IMAGE",
prompt: "standing on a white marble stand,
studio photo",
prompt_negative: "hands, people, watermark", image_url: "LINK_TO_YOUR_IMAGE",
x: 50,
y: 50,
width: 300,
height: 400,
scaleX: 1.0,
scaleY: 1.0,
rotation: 0,
number_of_images: 2,
calback_url: "WEBHOOK_LINK"
}
Response:
{
session_id: "14b52bb7-80aa-15b6-a43f-8502761e40d52" }
Callback Data:
{
session_id: "14b52bb7-80aa-15b6-a43f-8502761e40d52", image_urls: ["https://url_1", "https://url_2"], number_of_images: 2,
status: "COMPLETED"
}
Use this endpoint to upscale any photo.
Request:
curl -X POST\
'https://api.dyvo.ai/v1/upscale'\
-H 'Authorization=Bearer API_TOKEN'\
-H 'Content-Type=application/json'\
Request Body:
{
image_src: "LINK_TO_YOUR_IMAGE",
scale: 4.0,
calback_url: "WEBHOOK_LINK"
}
Response:
{
session_id: "14b52bb7-80aa-15b6-a43f-8502761e40d52" }
Callback Data:
{
session_id: "14b52bb7-80aa-15b6-a43f-8502761e40d52", image_url: "https://...", scale: 4.0,
status: "COMPLETED"
}