{
"log": 0.03538944,
"url": "https://api-images-getimg.b74c4cef8e39fc0d1de2c7604852a487.r2.cloudflarestorage.com/org-TDbvHEbvwvJJvDEq7yXSj/key-0s6SJ5WhDPYPcSPB2FgSc/req-PRzfAOAEZZ3F5JpLtBDjz.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=cc8699d8ce09388bb5461b1e1bf500e8%2F20240822%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240822T134027Z&X-Amz-Expires=3600&X-Amz-Signature=7c496fbc90877fb0dc02a1b5dc27874d8a4ef09066697e632ccd41fc692ee14f&X-Amz-SignedHeaders=host"
}
curl --location --request POST 'https://pr213-testing.zylalabs.com/api/4925/text+to+image+creator+api/6198/generate+image' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"style": "art",
"prompt": "turtle",
"response_format": "url",
"aspect_ratio": "1:1",
"output_format": "jpeg"
}'
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 Text To Image Creator API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
Our API is designed to transform how images are created and interacted with. Utilizing advanced artificial intelligence and machine learning, it allows users to generate precise and visually striking images based on specific text or keywords. The API excels at interpreting linguistic nuances and converting them into high-quality, detailed visuals that align with the provided descriptions.
It accommodates a broad spectrum of text inputs, from simple keywords to complex phrases, enabling users to produce both specific and imaginative images that fulfill diverse creative needs. Whether dealing with a single word or a detailed description, the API provides flexibility and precision.
Overall, this API marks a major advancement at the intersection of language and visual content. Its capability to generate contextually relevant, high-quality images from text or keywords signifies a significant leap in visual media creation and interaction. As technology evolves, it promises to offer even greater functionality and versatility, enhancing its value across a wide array of applications.
Receives a text and provides an image.
Social media content creation: Marketers and influencers can quickly generate eye-catching visuals for posts and stories based on trending topics or specific themes.
E-commerce product visualization: Online retailers can create custom product images from descriptions, enhancing product listings and providing a more engaging shopping experience.
Blog and article illustrations: Bloggers and content creators can generate relevant images to accompany articles or posts, making content more visually appealing and engaging to readers.
Creative design and art projects: Artists and designers can use the API to explore new creative ideas by generating visual elements from descriptions or abstract concepts, which will help them in the design and idea generation process.
Branding and identity design: Companies can develop unique visual elements for branding, such as logos or marketing materials, based on descriptive input related to their brand identity and values.
Besides the number of API calls, there is no other limitation.
To use the API users must enter a prompt, choose an optional style, set the aspect_ratio and select the output_format.
There are different plans suits everyone including a free plan for small amount of requests per day, but it’s rate is limit to prevent abuse of the service.
Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.
The API returns the URL of the generated image in jpeg or png format.
The Text To Image Creator API generates visual content from textual descriptions or keywords.
The Generate Image endpoint accepts several parameters: `prompt` (required), `style` (optional, e.g., art, photorealism, anim), `aspect_ratio` (optional, e.g., 1:1, 4:5), and `output_format` (optional, jpeg or png). These allow users to customize the image generation process.
The response data is structured in JSON format, containing key fields such as `log` (processing time) and `url` (link to the generated image). This organization allows for easy parsing and integration into applications.
The Generate Image endpoint provides information about the generated image, including its URL and processing log. Users can retrieve high-quality images based on their textual input.
The key fields in the response data include `log`, which indicates the time taken to generate the image, and `url`, which provides the direct link to access the generated image.
Users can customize their requests by specifying the `style`, `aspect_ratio`, and `output_format` parameters in addition to the required `prompt`. This flexibility allows for tailored image outputs.
Typical use cases include creating social media visuals, enhancing e-commerce product listings, generating blog illustrations, and assisting in creative design projects. The API caters to diverse creative needs.
Data accuracy is maintained through advanced AI and machine learning algorithms that interpret text inputs and generate images. Continuous updates and improvements to the model enhance output quality.
Users can expect consistent output patterns where the generated images closely align with the provided prompts. The API effectively translates various text inputs into visually coherent images.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund