Description
The /text-to-vector/base route offers the ability to generate high-quality, editable vector graphic assets from textual prompts at scale. This endpoint allows for generating quality vector graphics such as icons, logos, and other illustrations.
Examples:
prompt: A sticker of a cute kitten
prompt: A beautiful butterfly
On the left, a generated vector illustration. On the right, the same illustration after being re-colored in a vector editor
This API supports various guidance methods to provide greater control over text-to-image generation. These methods condition the model on additional inputs derived from user-provided images, allowing for more precise and controlled image generation.
Importantly, users can provide any image they want as input. Our pipeline automatically transforms the input image according to the selected guidance method. For example, if you choose the depth guidance method, our pipeline will extract a depth map from your provided image and use it during the generation inference.
Currently, we support the following guidance methods:
Using Guidance Methods You can specify up to four guidance methods in a single request. Each method requires an accompanying image and a scale parameter to determine its impact on the generation inference. Note: When using multiple guidance methods, all input images must have the same aspect ratio, which will determine the aspect ratio of the generated results. To use a guidance method, include the following parameters in your request:
guidance_method_X
: Specify the guidance method (where X is 1, 2, 3, or 4). If the paramter guidance_method_2 is used, so does guidance_method_1 has to be used, and so on. If you would like to use only one method, use the paratmer guidance_method_1guidance_method_X_scale
: Set the impact of the guidance (0.0 to 1.0)guidance_method_X_image_file
: Provide the base64-encoded input imageBy leveraging these guidance methods, you can achieve more precise control over the generated images, tailoring them to your specific needs and creative vision.
Successful operation.
Successful operation, a model version that is no longer available was requested. The request was redirected to the latest model version.
Bad request.
Method not allowed.
Internal server error.
Description
The /text-to-vector/fast route is optimized for speed, enabling rapid vector graphics creation without compromising quality. This endpoint allows for generating high-quality vector graphics such as icons, logos, and other illustrations.
Examples:
prompt: An icon of a bird with a blue head and yellow beak against a solid background
This API supports various guidance methods to provide greater control over text-to-image generation. These methods condition the model on additional inputs derived from user-provided images, allowing for more precise and controlled image generation.
Importantly, users can provide any image they want as input. Our pipeline automatically transforms the input image according to the selected guidance method. For example, if you choose the depth guidance method, our pipeline will extract a depth map from your provided image and use it during the generation inference.
Currently, we support the following guidance methods:
Using Guidance Methods
You can specify up to four guidance methods in a single request. Each method requires an accompanying image and a scale parameter to determine its impact on the generation inference. Note: When using multiple guidance methods, all input images must have the same aspect ratio, which will determine the aspect ratio of the generated results. To use a guidance method, include the following parameters in your request:
guidance_method_X
: Specify the guidance method (where X is 1, 2, 3, or 4). If the paramter guidance_method_2 is used, so does guidance_method_1 has to be used, and so on. If you would like to use only one method, use the paratmer guidance_method_1guidance_method_X_scale
: Set the impact of the guidance (0.0 to 1.0)guidance_method_X_image_file
: Provide the base64-encoded input imageBy leveraging these guidance methods, you can achieve more precise control over the generated images, tailoring them to your specific needs and creative vision.
Successful operation.
Bad request.
Method not allowed.
Internal server error.