The Text2Image feature in Fotor OpenAPI leverages advanced AI technology to transform your textual descriptions into realistic images. Simply input a text description, and the system quickly generates a corresponding image—no design skills required.This feature supports a variety of styles and templates, offering fine-grained control options to help you effortlessly create diverse and creative visuals.
Here, <your_api_key> is the API key you obtained from the Fotor Developer Platform.
Example:
Bearer <your api key>
Body Params application/json
content
string
required
Describe the content of the image you want to generate, for example, "A cute cat playing on the grass."
sizeId
string
required
Image dimensions, used to specify the size of the generated image. For example(1:1、4:3、3:4、16:9、9:16)。
templateId
string
required
Template ID, used to specify the specific style template for the generated image. Refer to the template table for available options.
negativePrompt
string
optional
Negative prompts are used to describe content you want to avoid in the generated image, such as "blurry" or "distorted." Using negative prompts helps you have better control over the output, preventing unwanted elements from appearing.