Text to Image API
Turn text descriptions into high-quality, custom visuals in seconds. This AI-powered feature enables users to quickly generate unique, royalty-free images tailored to their specific needs, offering flexibility for diverse creative applications.
A futuristic cityscape at night with neon lights

Key Features
Rapid Image Creation: Generate visuals instantly from text prompts, from simple ideas to complex scenes.
Customization: Define styles, moods, and compositional details directly through text input.
Versatility: Produce images in various styles, including photorealistic and abstract, for digital, print, or marketing use.
Refinement: Fine-tune results through iterative prompts for precise outputs.
Strategic Value
Accelerate the image creation process while reducing costs and resource demands. This feature enables rapid prototyping, efficient brainstorming, and agile design workflows, empowering teams to deliver visually compelling content faster and more effectively.
Industries
Technology and Software: Generate UI elements, marketing visuals, Prototype concepts and mockups
Media and Entertainment: Visualize storyboards and concept art and promotional material.
E-commerce and Retail: Create product images from descriptions
Marketing and Advertising: Design ad creatives and social media graphics
Education and Training: Create illustrations for teaching materials
Interior Design: Visualize room designs and layouts
Food and Hospitality: Generate appetizing food visuals and menu imagery
Healthcare: Visualize anatomy, treatment plans and medical illustrations
Finance: Create visuals for reports and marketing materials
Manufacturing and Product Development: Visualize product designs and concepts
Endpoint
The endpoint for Text to Image API is
POST https://api.vyro.ai/v2/image/generations
Headers
You need to pass the following headers along with the request.
Authorization
Pass your API token as a Bearer token in the Authorization header. Refer to the Authorization Section for guidance on managing your API keys.
Authorization: Bearer {{API_TOKEN}}
Request Body Parameters
Below are the parameters that allow for a high degree of customization when generating images. Click on each parameter to learn more about its use and best practices:
prompt
The main text description of the image you want to generate. Use descriptive and detailed language to achieve optimal results. See Creating Prompt.
prompt="A futuristic cityscape at night with neon lights"
style
Specifies the style of the generated image. Experiment with different styles to find the look that best suits your needs. See Selecting the Right Style
style="realistic"
aspect_ratio
Defines the width-to-height ratio of the output image, such as "1:1"
for square images. You can try other available aspect ratios such as "3:2"
"4:3"
"3:4"
"16:9"
and "9:16"
.
aspect_ratio="1:1"
Example API Call
Here’s a sample curl
request that uses the parameters above:
curl --location --request POST 'https://api.vyro.ai/v2/image/generations' \
--header 'Authorization: Bearer {{API_TOKEN}}' \
--form 'prompt="A futuristic cityscape at night with neon lights"' \
--form 'style="realistic"' \
--form 'aspect_ratio="1:1"'
Response
Upon a successful request, the API returns a binary image file which can be directly rendered or saved.
Response Attributes:
image (binary): The generated image in binary format. You can decode and display or store it based on your application needs.
Error Handling
In case of errors, the response includes status codes and error messages. See the Errors and Troubleshooting section for help with interpreting and resolving these errors.
If you encounter issues or need additional assistance, please reach out to our support team. We’re here to help you get the most out of the Imagine Art APIs.
Last updated