Skip to main content

GenerateImage()

Create a new text-to-image generation task.
Parameters:
  • Text (string): Text prompt (1-8192 characters)
  • Callback (string, optional): Webhook URL for completion notification
Returns: Response with JobId and Status

VaryImage()

Create variations of a generated image.
Parameters:
  • JobId (string): Original image job ID
  • ImageNo (int32): Image index (0-3)
  • Type (int32): Variation type (0=Subtle, 1=Strong)
  • RemixPrompt (string, optional): Additional prompt for variation
  • Callback (string, optional): Webhook URL

RemixImage()

Transform an image with a new prompt.
Parameters:
  • JobId (string): Original image job ID
  • ImageNo (int32): Image index (0-3)
  • RemixPrompt (string): New prompt to apply to the image
  • Mode (int32): Remix intensity (0=Strong, 1=Subtle)
  • Callback (string, optional): Webhook URL

UpscaleImage()

Upscale a generated image to higher resolution.
Parameters:
  • JobId (string): Original image job ID
  • ImageNo (int32): Image index (0-3)
  • Type (int32): Upscale type (0=Subtle, 1=Creative)
  • Callback (string, optional): Webhook URL

RerollImage()

Regenerate with the same prompt.
Parameters:
  • JobId (string): Original image job ID
  • Callback (string, optional): Webhook URL

BlendImages()

Blend 2-5 images together.
Parameters:
  • ImgUrls ([]string): Array of 2-5 image URLs
  • AspectRatio (string, optional): Output aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3)
  • Callback (string, optional): Webhook URL

DescribeImage()

Generate text descriptions from an image.
Parameters:
  • ImgUrl (string): URL of the image to describe
  • Callback (string, optional): Webhook URL

EditImage()

Edit an image with text description.
Parameters:
  • JobId (string): Original image job ID
  • ImageNo (int32): Image index (0-3)
  • Canvas (string): Canvas size (e.g., “1:1”)
  • ImgPos (int32): Image position
  • RemixPrompt (string): Edit instructions
  • Callback (string, optional): Webhook URL

InpaintImage()

Fill masked regions in an image.
Parameters:
  • JobId (string): Original image job ID
  • ImageNo (int32): Image index (0-3)
  • RemixPrompt (string): Inpainting prompt
  • Mask (string): Mask data or coordinates
  • Callback (string, optional): Webhook URL

OutpaintImage()

Extend image boundaries.
Parameters:
  • JobId (string): Original image job ID
  • ImageNo (int32): Image index (0-3)
  • Scale (float32): Scale factor (1.1-3.0)
  • RemixPrompt (string, optional): Outpainting prompt
  • Callback (string, optional): Webhook URL

PanImage()

Create panoramic or panned views.
Parameters:
  • JobId (string): Original image job ID
  • ImageNo (int32): Image index (0-3)
  • Direction (int32): Pan direction (0=Down, 1=Right, 2=Up, 3=Left)
  • Scale (float32): Scale factor (1.1-3.0)
  • RemixPrompt (string, optional): Panning prompt
  • Callback (string, optional): Webhook URL

ShortenPrompt()

Optimize and simplify prompts.
Parameters:
  • Prompt (string): Long prompt to optimize
Returns: Response with ShortenedPrompt

Complete Example


Next Steps