Generate image using AI
post/collection/{collection_id}/generate/image/
Path parameters
collection_idstring required
Example:default
Request body
Example request
{
"prompt": "A beautiful sunset over mountains",
"aspect_ratio": "16:9",
"model_name": "black-forest-labs/FLUX.1-dev",
"sandbox_id": "bx-123abc",
"callback_url": "https://webhook.example.com/callback"
}Response
Image generation started
Example response
{
"success": true,
"status": "processing",
"data": {
"id": "job-123",
"output_url": "https://api.videodb.io/async-response/job-123"
}
}Changes
Changed in 1 of the 5 revisions of this API.3
- ○
added the new optional request property
confignew-optional-request-property
- ○
added the new optional request property
model_namenew-optional-request-property
- ○
added the new optional request property
sandbox_idnew-optional-request-property
- ○