Skip to main content

apiV1DiffusionPost()

Create a new text-to-image generation task.
Promise-based:
Async/Await:
Parameters:
  • xApiKey (String): Your API key
  • body (Object): Request body with:
    • text (String): Text prompt (1-8192 characters)
    • callback (String, optional): Webhook URL
Returns: Promise resolving to response with job_id and status

apiV1VaryPost()

Create variations of a generated image.

apiV1UpscalePost()

Upscale a generated image.

apiV1RerollPost()

Regenerate with the same prompt.

apiV1BlendPost()

Blend 2-5 images together.

apiV1DescribePost()

Generate text descriptions from an image.

apiV1EditPost()

Edit an image by positioning it on a canvas and filling empty areas.

apiV1InpaintPost()

Fill masked regions in an image.

apiV1OutpaintPost()

Extend image boundaries by scaling.

apiV1PanPost()

Create panoramic or panned views.

apiV1RemixPost()

Remix an image with a new prompt and style intensity.

apiV1ShortenPost()

Optimize and simplify prompts.

Next Steps