Generate Request
dp_apikeystringrequired
To get an api key, please visit Getting started page
Example:
INSERT_YOUR_API_KEY_HEREdp_session_idstringrequired
To get a session, use the Login command
Example:
INSERT_YOUR_AUTH_SESSION_HEREdp_promptstringrequired
The prompt for image generation. Maximum length is 400
Example:
A beautiful sunset over the oceandp_callback_urlstring
Optional. Callback URL where the results will be sent
Example:
https://example.com/callbackdp_aspect_ratiostring
Optional. The aspect ratio of the image. Default is 1:1
Possible values: [1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9]
dp_mediumstring
Optional. Medium of the generated images
Possible values: [art, photography]
Generate Request
{
"dp_apikey": "INSERT_YOUR_API_KEY_HERE",
"dp_session_id": "INSERT_YOUR_AUTH_SESSION_HERE",
"dp_prompt": "A beautiful sunset over the ocean",
"dp_callback_url": "https://example.com/callback",
"dp_aspect_ratio": "1:1",
"dp_medium": "art"
}