AI Services

Generate marketing-ready images

Generate branded images with automatic failover between DALL·E 3 and Stable Diffusion XL, with built-in credit tracking.

For AI agents: Use when a user asks for social media creatives, hero images, thumbnails, or ad visuals.

post/ai/generate-image

Request

  • Base URL: https://us-central1-paymentgateway-ab783.cloudfunctions.net/api
  • URL: https://us-central1-paymentgateway-ab783.cloudfunctions.net/api/ai/generate-image
  • Auth: HTTP bearer

Headers

x-app-idstring required

Application identifier used for metering and credit management.

Request body

promptstring required

Visual description of the desired image.

size'1024x1024' | '1536x1024' | '1024x1536'

Output resolution in pixels.

quality'low' | 'medium' | 'high' | 'auto'

Rendering quality level.

style'professional' | 'creative' | 'minimal' | 'technical'

High-level art direction.

Example request

{
  "prompt": "Futuristic call center with AI assistants helping customers."
}

Response

Image generated successfully

imageUrlstring uri

Signed URL for the generated image (valid for 1 year).

filenamestring
revisedPromptstring

Provider-optimized prompt, if available.

durationnumber

Processing time in milliseconds.

Changes

No recorded changes to this operation across all 1 revision of this API.