AI Image Generator API

Generate images from text with this API. Easy to implement and use.

About the API:

This API uses Stable-Diffusion to create the images you want basing on your text. 

 

What this API receives and what your API provides (input/output)?

This API will receive a text and deliver a list of different created images. 

You can find your created image in the "src" field.

 

What are the most common uses cases of this API?

Text-to-image APIs are beneficial to create images copyright free for different purposes. 

For example, you can use this API to create images for your magazines, research, and many more. 

You can use this API to programmatically create images for blogs and websites. 

 

Are there any limitations to your plans?

Besides the number of API calls per month, there are no other limitations. 

API Documentation

Endpoints


Using Stable-Diffusion, this API will deliver images based on your texts. 

Receive an array of different options for you to choose from. They will be available in the "src" field. 



                                                                            
GET https://www.zylalabs.com/api/685/ai+image+generator+api/431/text+to+image
                                                                            
                                                                        

Text To Image - Endpoint Features

Object Description
q [Required] Inser the text that will help the AI to generate an image.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"images":[{"id":"06e9e8a5-1755-469a-b533-3d0225f4e499","gallery":"https://lexica.art?q=06e9e8a5-1755-469a-b533-3d0225f4e499","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/06e9e8a5-1755-469a-b533-3d0225f4e499","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/06e9e8a5-1755-469a-b533-3d0225f4e499","prompt":"action portrait of a beautiful futuristic robot barbarian, massive glowing neon axe, realistic, artgerm and peter mohrbacher style, intrincate detailing, cyberpunk","width":1024,"height":1024,"seed":"1496887731","grid":false,"model":"stable-diffusion","guidance":7,"promptid":"25d353c3-3d76-42e9-99c7-f30bb1f5e105","nsfw":false},{"id":"06f90893-7a63-4d52-98ce-630e5ad63f12","gallery":"https://lexica.art?q=06f90893-7a63-4d52-98ce-630e5ad63f12","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/06f90893-7a63-4d52-98ce-630e5ad63f12","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/06f90893-7a63-4d52-98ce-630e5ad63f12","prompt":"bright weapon of warcraft blizzard weapon art, a spiral magic staff, bright art masterpiece artstation. 8k, sharp high quality illustration in style of Jose Daniel Cabrera Pena and Leonid Kozienko, blue colored theme, concept art by Tooth Wu,","width":640,"height":768,"seed":"68055833","grid":false,"model":"stable-diffusion","guidance":13,"promptid":"e08a10d3-eba1-42ea-a350-3d76c4227fa7","nsfw":false},{"id":"08735d67-0487-4481-af5e-b43d88ed35ef","gallery":"https://lexica.art?q=08735d67-0487-4481-af5e-b43d88ed35ef","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/08735d67-0487-4481-af5e-b43d88ed35ef","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/08735d67-0487-4481-af5e-b43d88ed35ef","prompt":"diablo action game robot shaman by artgerm, cgsociety and beeple highly detailed, sharp focus, cinematic lighting, illustration, art, octane render, unreal engine lumen, very coherent. cinematic, hyper realism, high detail, octane render, 8 k ","width":512,"height":640,"seed":"535928245","grid":false,"model":"stable-diffusion","guidance":12,"promptid":"6eac2850-a518-484a-9ebf-1615e392e5ac","nsfw":false},{"id":"0cec966b-4f9e-4dc9-a62e-6b88eb31b20f","gallery":"https://lexica.art?q=0cec966b-4f9e-4dc9-a62e-6b88eb31b20f","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/0cec966b-4f9e-4dc9-a62e-6b88eb31b20f","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/0cec966b-4f9e-4dc9-a62e-6b88eb31b20f","prompt":"shield fantasy epic legends game icon stylized digital illustration radiating a glowing aura global illumination ray tracing hdr fanart arstation by ian pesty and katarzyna da „ bek - chmiel ","width":512,"height":768,"seed":"947336176","grid":false,"model":"stable-diffusion","guidance":7,"promptid":"f27dd883-6c48-4209-8a61-44e25a0991bf","nsfw":false},{"id":"0ec853d9-38a0-4243-8538-3b2cd938ac6d","gallery":"https://lexica.art?q=0ec853d9-38a0-4243-8538-3b2cd938ac6d","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/0ec853d9-38a0-4243-8538-3b2cd938ac6d","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/0ec853d9-38a0-4243-8538-3b2cd938ac6d","prompt":"tron legacy jesus, diffuse lighting, hyper realistic, concept art, intricate, hyper detailed, smooth, sharp focus, illustration, artstation, greg rutkowski, james gurney, alphonse mucha ","width":512,"height":640,"seed":"2587517137","grid":false,"model":"stable-diffusion","guidance":16,"promptid":"7cbebb88-1e80-4d19-9a46-a8cc30ad0424","nsfw":false},{"id":"0ed7cf38-5aa1-406d-8fc7-c6af9ad3c4d5","gallery":"https://lexica.art?q=0ed7cf38-5aa1-406d-8fc7-c6af9ad3c4d5","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/0ed7cf38-5aa1-406d-8fc7-c6af9ad3c4d5","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/0ed7cf38-5aa1-406d-8fc7-c6af9ad3c4d5","prompt":"symmetry!! product render poster puzzle cube scifi, glowing lights!! intricate, elegant, highly detailed, digital painting, artstation, concept art, smooth, sharp focus, illustration, art by artgerm ","width":512,"height":704,"seed":"395936329","grid":false,"model":"stable-diffusion","guidance":10,"promptid":"13970254-f107-46cd-a82d-bcff7f8d8ebf","nsfw":false},{"id":"120b89b8-1db0-4a6f-8fff-16946c799c70","gallery":"https://lexica.art?q=120b89b8-1db0-4a6f-8fff-16946c799c70","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/120b89b8-1db0-4a6f-8fff-16946c799c70","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/120b89b8-1db0-4a6f-8fff-16946c799c70","prompt":"front shot of a court jester character mesmerizing fractal hyper cubes platinum cracked dark future metallic galactic cryst edges poly elegant detailed concept artstation sharp focus ray tracing cinematic masterpiece fine portrait ","width":768,"height":896,"seed":"456791263","grid":false,"model":"stable-diffusion","guidance":20,"promptid":"88e27f4b-1b37-4704-b7fc-a650ea6a4cb7","nsfw":false},{"id":"1ccf1a1d-65d5-4358-8c90-a588d7c838fa","gallery":"https://lexica.art?q=1ccf1a1d-65d5-4358-8c90-a588d7c838fa","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/1ccf1a1d-65d5-4358-8c90-a588d7c838fa","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/1ccf1a1d-65d5-4358-8c90-a588d7c838fa","prompt":"Dialga the Pokémon, mini figure, photo, volumetric lighting, smoke effects, lazers, anime effects, vibrant, movement, trending on artstation","width":512,"height":512,"seed":"403582083","grid":false,"model":"stable-diffusion","guidance":7,"promptid":"00e76221-ad64-404e-a797-9f562b19a59d","nsfw":false},{"id":"247d9b76-2818-4dbc-b225-7a2b53ad6f19","gallery":"https://lexica.art?q=247d9b76-2818-4dbc-b225-7a2b53ad6f19","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/247d9b76-2818-4dbc-b225-7a2b53ad6f19","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/247d9b76-2818-4dbc-b225-7a2b53ad6f19","prompt":"robot ninja mask helmet halo master chief radiating a glowing aura global illumination ray tracing hdr fanart arstation by ian pesty and katarzyna da „ bek - chmiel ","width":512,"height":768,"seed":"3497361506","grid":false,"model":"stable-diffusion","guidance":7,"promptid":"b3318ccb-8a60-4637-b375-686e6d58f92d","nsfw":false},{"id":"24c84da2-6a85-42ba-a1ea-eb69faf184d8","gallery":"https://lexica.art?q=24c84da2-6a85-42ba-a1ea-eb69faf184d8","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/24c84da2-6a85-42ba-a1ea-eb69faf184d8","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/24c84da2-6a85-42ba-a1ea-eb69faf184d8","prompt":"shield fantasy epic legends game icon stylized digital illustration radiating a glowing aura global illumination ray tracing hdr fanart arstation by ian pesty and katarzyna da „ bek - chmiel ","width":512,"height":768,"seed":"947336176","grid":false,"model":"stable-diffusion","guidance":7,"promptid":"f27dd883-6c48-4209-8a61-44e25a0991bf","nsfw":false},{"id":"32cb72ed-88cb-402d-bf70-affb200b9683","gallery":"https://lexica.art?q=32cb72ed-88cb-402d-bf70-affb200b9683","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/32cb72ed-88cb-402d-bf70-affb200b9683","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/32cb72ed-88cb-402d-bf70-affb200b9683","prompt":"epic mask helmet robot ninja portrait stylized as fornite style game design fanart by concept artist gervasio canda, behance hd by jesper ejsing, by rhads, makoto shinkai and lois van baarle, ilya kuvshinov, rossdraws global illumination radiating a glowing aura global illumination ray tracing hdr render in unreal engine 5 ","width":512,"height":768,"seed":"2288190554","grid":false,"model":"stable-diffusion","guidance":7,"promptid":"f9defe23-64be-44d4-8b81-8c3222751cfb","nsfw":false},{"id":"369924ea-ca84-416e-b288-7540a0ed0e85","gallery":"https://lexica.art?q=369924ea-ca84-416e-b288-7540a0ed0e85","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/369924ea-ca84-416e-b288-7540a0ed0e85","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/369924ea-ca84-416e-b288-7540a0ed0e85","prompt":"shield fantasy epic legends game icon stylized digital illustration radiating a glowing aura global illumination ray tracing hdr fanart arstation by ian pesty and katarzyna da „ bek - chmiel ","width":512,"height":768,"seed":"1585773347","grid":false,"model":"stable-diffusion","guidance":7,"promptid":"7571a038-582f-4a85-ab95-9049bb819faa","nsfw":false},{"id":"3b2a53ef-016a-4b4f-855c-39f12910ab60","gallery":"https://lexica.art?q=3b2a53ef-016a-4b4f-855c-39f12910ab60","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/3b2a53ef-016a-4b4f-855c-39f12910ab60","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/3b2a53ef-016a-4b4f-855c-39f12910ab60","prompt":"symmetry!! product render poster treasure chest scifi, glowing lights!! intricate, elegant, highly detailed, digital painting, artstation, concept art, smooth, sharp focus, illustration, art by artgerm ","width":512,"height":704,"seed":"395936329","grid":false,"model":"stable-diffusion","guidance":13,"promptid":"07d1b562-f988-4c67-a5d1-7f75f698e997","nsfw":false},{"id":"3de0e800-77c4-4a92-8049-c9f7fd9a410a","gallery":"https://lexica.art?q=3de0e800-77c4-4a92-8049-c9f7fd9a410a","src":"https://lexica-serve-encoded-images.sharif.workers.dev/md/3de0e800-77c4-4a92-8049-c9f7fd9a410a","srcSmall":"https://lexica-serve-encoded-images.sharif.workers.dev/sm/3de0e800-77c4-4a92-8049-c9f7fd9a410a","prompt":"hyperrealistic close-up blue neon exoskeleton!! chinese man covered highly detailed concept art eric zener elson peter cinematic side soft yellow light low angle hd 8k sharp shallow depth of field","width":512,"height":768,"seed":"2161857481","grid":false,"model":"stable-diffusion","guidance":15,"promptid":"9970d07d-52d3-41f1-b228-0ae152ce6466","nsfw":false},{"id":"41b7d117-5e4e-4edf-be1f-d0269e737c5a","gallery":"https://lexica.art?q=41b7d117-5e4e-4edf-be1f-d0269e737c5a",...
                                                                                                                                                                                                                    
                                                                                                    

Text To Image - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/685/ai+image+generator+api/431/text+to+image?q=grapes painting' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the AI Image Generator API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the ‘X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the ‘X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The ‘X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
757ms

Category:


Related APIs