LogoLogo
  • Overview
  • Quick Start
  • Authentication
  • Rate limits
  • Errors
  • Image Editing API
    • Image I/O
    • Image Operations
      • Restorations
      • Resizing
      • Outpainting
      • Generative Editing
      • Color Adjustments
      • Background
      • Padding
      • Privacy
    • API Reference
    • Async API Reference
    • Batch API Reference
    • Upload API Reference
  • image generation api
    • Image Generation I/O
    • Image Generation Options
    • API Reference
  • AI Background API
    • AI Background I/O
    • AI Background Options
      • Object
      • Scene
      • Product Shadow
    • API Reference
  • Image to Video API
    • Image to Video I/O
    • Image to Video Options
    • Async API Reference
  • Storage Connectors
    • Overview
    • AWS S3
    • Google Cloud Storage
    • Web Folder
    • API Reference
  • Guides
    • E-commerce
    • Real Estate
    • Printing
  • Redoc
  • Blog
Powered by GitBook
On this page
  • Intro
  • Input
  • Output
Edit on GitHub
  1. image generation api

Image Generation I/O

Learn how to configure input and output to generate images with Claid API.

Intro

The Image Generation Endpoint enables you to generate unique images based on text descriptions (prompts). The generated images have a size of 1024x1024 pixels. You can further improve their resolution and quality using our Image Editing API (see the Resizing and Upscale sections).

Input

Our image generation API accepts text prompts as inputs. The prompt must be between 3 and 1024 characters.

Provide a detailed prompt to increase the likelihood of achieving the desired result.

{
    "input": "A delicious ceviche cheesecake slice"
}

Limitations

Our system has a built-in filter that removes NSFW content. If you receive a plain black image as an output, it's possible that the content filter detected an NSFW result. If you believe this was a mistake, you can try adjusting the prompt.

Output

Configuring output is optional. You may configure the output or omit it for default settings. If you omit the output, the API stores the result in a temporary bucket for 24 hours and provides you with a public URL to the image.

Connected storage

Alternatively, you can use a connected Cloud Storage. Once connected, you can refer to the storage directory as an output path. The output path must always end with a / character.

Currently, our API supports AWS S3 and Google Cloud Storage.

{
    "output": "storage://storage-name/path/"
}
PreviousUpload API ReferenceNextImage Generation Options

Last updated 1 year ago