Generate image based on the provided image.The provided image URL needs to follow the followings:
Image prompts go at the front of a prompt.
Prompts must have only one image URL and text to work.
An image URL must be a direct link to an online image. If you don't know where to upload your image, you can use this tool to upload your image to our server, and copy the image URL.
Your file should end in .png, .gif, .webp, .jpg, or .jpeg.
Please make sure the image is not huge, file size less than 1MB is recommended.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
prompt
string
required
The imagine prompt, you can also include an image URL or other valid parameters in it, same like you using Midjourney in Discord.
ref
string
optional
The reference metadata which will return as part of the webhook.
webhookOverride
string
optional
The webhook URL which the response will send to, the payload of this webhook is same as our Message endpoint.
Example
{"prompt":"https://cdn.discordapp.com/attachments/123/123/123.png A little cat running on the grass"}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.imaginepro.ai/api/v1/nova/imagine' \
--header'Content-Type: application/json' \
--data-raw'{
"prompt": "https://cdn.discordapp.com/attachments/123/123/123.png A little cat running on the grass"
}'
Responses
🟢200Success
application/json
Body
success
boolean
required
The status of the request.
messageId
string
required
The messageId of the request, which will be used for querying the progress, sending subsequential actions later, etc.