Generate image
curl --request POST \
--url https://api.autoadify.com/v1/generations/image \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"model": "nano-banana-2",
"aspectRatio": "1:1"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>', model: 'nano-banana-2', aspectRatio: '1:1'})
};
fetch('https://api.autoadify.com/v1/generations/image', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.autoadify.com/v1/generations/image"
payload = {
"prompt": "<string>",
"model": "nano-banana-2",
"aspectRatio": "1:1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"generation": "<unknown>"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}Generation
Generate image
Generates an image and saves it to the media library. Waits up to ~50 s; if status is still pending, poll Get generation. Screened against the content policy first; refused and failed requests cost nothing.
Requires the generate scope.
POST
/
generations
/
image
Generate image
curl --request POST \
--url https://api.autoadify.com/v1/generations/image \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"model": "nano-banana-2",
"aspectRatio": "1:1"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>', model: 'nano-banana-2', aspectRatio: '1:1'})
};
fetch('https://api.autoadify.com/v1/generations/image', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.autoadify.com/v1/generations/image"
payload = {
"prompt": "<string>",
"model": "nano-banana-2",
"aspectRatio": "1:1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"generation": "<unknown>"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}Authorizations
An API key from Autoadify → Settings → API & MCP, sent as Authorization: Bearer aak_live_….
Body
application/json
What to generate. Be specific about subject, style, setting and any text to render.
Required string length:
1 - 4000A model id from list_ai_models. Default nano-banana-2.
Available options:
nano-banana-2, gpt-image-2, qwen-image-3, krea-2-medium, krea-2-medium-turbo, recraft-v4.1-flash 1:1 feed, 4:5 Instagram portrait, 9:16 stories/reels, 16:9 landscape.
Available options:
1:1, 4:5, 9:16, 16:9 Response
The generation: completed, or pending to poll.

