Run in Apifox
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. Key Features# Easy to Use : Generate images effortlessly by simply entering a text description, with an intuitive and quick process.
Diverse Styles : Offers a wide range of artistic styles and templates, including:And more, to suit various creative needs.
Precise Control : Supports specifying:Negative prompts for fine-tuned results
High-Quality Output : Delivers high-resolution images with rich details, ready for commercial use.
Fast Generation : Powered by advanced AI algorithms and optimized server architecture, ensuring quick image creation.
Text to Image Styles# Request Body Params application/json
{
"content" : "a boy" ,
"sizeId" : "6361e03bc09cb851c66328a4" ,
"templateId" : "7b3b1f40-60b0-41df-8280-238baae78c38" ,
"negativePrompt" : "girl"
}
Request Code Samples
curl --location --request POST 'https://api-b.fotor.com/v1/aiart/text2img' \
--header 'Authorization: Bearer <your api key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"content": "a boy",
"sizeId": "6361e03bc09cb851c66328a4",
"templateId": "7b3b1f40-60b0-41df-8280-238baae78c38",
"negativePrompt": "girl"
}'
Responses application/json Generate Code
{
"code" : "000" ,
"msg" : "success" ,
"data" : {
"taskId" : "e0dc194703174b6eafeacb4ee8e02850"
}
}
Modified at 2025-06-25 07:51:22