AI Image GeneratorAPI

Generate high-quality images from text prompts using advanced AI models

image generation~8 credits/callv1.0.0

Endpoint

POST https://backend.aaddyy.com/api/ai/image-generation

Authentication

Authorization: Bearer YOUR_API_KEY

Parameters

Required

promptrequired

Optional

size
num_images
seed
guidance_scale
num_inference_steps
enable_safety_checker
output_format
model

Example Request

curl -X POST https://backend.aaddyy.com/api/ai/image-generation \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A serene mountain landscape at sunset",
    "size": "1024x1024",
    "num_images": 1
  }'

Request Body

{
  "prompt": "A serene mountain landscape at sunset",
  "size": "1024x1024",
  "num_images": 1
}

Example Response

{
  "success": true,
  "message": "AI Image Generator completed successfully",
  "timestamp": "2026-04-01T22:35:24.433Z",
  "requestId": "req_ahd3ocdzu",
  "data": {
    "cost": 0.08,
    "remainingCredits": 9.95,
    "images": [
      {
        "url": "https://example.com/generated-image-xyz.png",
        "size": "1024x1024",
        "format": "png"
      }
    ],
    "numImages": 1
  }
}

SDK

import { AADDYY } from 'aaddyy'

const client = new AADDYY()
const result = await client._request('POST', '/api/ai/image-generation', {
  "prompt": "A serene mountain landscape at sunset",
  "size": "1024x1024",
  "num_images": 1
})

Install: npm install aaddyy

Pricing

~8 credits (~$0.08) per request

Rate Limits

20 requests per 1m

Burst: 5