v1
latestOpenAPI 3.0.02026-07-13650400.5 KBGenerate Vector Graphics - Base (Beta)
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
<img src="https://i.ibb.co/FBd4Cwj/sticker-of-a-cute-kitten-ec34b3c9918ecec1.png" width="200" height="200"/> <img src="https://i.ibb.co/dcNzBYR/kitten-2.png" width="200" height="200"/> <img src="https://i.ibb.co/WcgDjsx/kitten-4.png" width="200" height="200"/> <img src="https://i.ibb.co/YT66fGv/kitten-5.png" width="200" height="200"/>
prompt: A beautiful butterfly
<img src="https://i.ibb.co/1sRxRvp/butterfly-1.png" width="266" height="200"/><img src="https://i.ibb.co/Gxm7X9J/4-butterflies.png" width="266" height="200"/>
On the left, a generated vector illustration. On the right, the same illustration after being re-colored in a vector editor
Guidance Methods
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.
ControlNets:
A set of methods that allow conditioning the model on additional inputs, providing detailed control over image generation.
- controlnet_canny: Uses edge information from the input image to guide generation based on structural outlines.
- controlnet_depth: Derives depth information to influence spatial arrangement in the generated image.
- controlnet_recoloring: Uses a grayscale version of the input image to guide recoloring while preserving geometry.
- controlnet_color_grid: Extracts a 16x16 color grid from the input image to guide the color scheme of the generated image.
Using ControlNets
You can specify up to four ControlNet guidance methods in a single request. Each method requires an accompanying image and a scale parameter to determine its impact on the generation inference. The table below provides detailed information about each guidance method, with an example os use:
To use ControlNets guidance method, include the following parameters in your request:
-
guidance_method_X: Specify the guidance method (where X is 1, 2). 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_1
-
guidance_method_X_scale: Set the impact of the guidance (0.0 to 1.0)
-
guidance_method_X_image_file: Provide the base64-encoded input image IP_adapter:
Guides the model based on the input image and its associated style. This method offers two modes:
- regular: Uses the full input image to condition the model, influencing both content and style.
- style_only: Focuses only on the style of the input image, allowing the model to generate images based on the provided aesthetic without altering the content.
Using IP-Adapter <table>
<tr> <th>Guidance Method</th> <th>Prompt</th> <th>Mode</th> <th>Scale</th> <th style="width: 150px;">Guidance Image</th> <th style="width: 150px;">Output Image</th> </tr> <tr> <td>IP-adapter</td> <td>A drawing of a lion laid on a table.</td> <td>regular</td> <td>0.85</td> <td style="width: 150px;"><img src="https://images.pexels.com/photos/3246665/pexels-photo-3246665.png?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2" alt="Input Image" style="width: 150px; height: 150px; object-fit: contain;"></td> <td style="width: 150px;"><img src="https://bria-datasets.s3.us-east-1.amazonaws.com/temp_exp_or/image.png" alt="Output Image" style="width: 150px; height: 150px; object-fit: contain;"></td> </tr> <tr> <td>IP-adapter</td> <td>A drawing of a bird.</td> <td>style</td> <td>1</td> <td style="width: 150px;"><img src="https://bria-datasets.s3.us-east-1.amazonaws.com/temp_exp_or/photo-1575995872537-3793d29d972c.avif" alt="Input Image" style="width: 150px; height: 150px; object-fit: contain;"></td> <td style="width: 150px;"><img src="https://bria-datasets.s3.us-east-1.amazonaws.com/temp_exp_or/seed_627499055.png" alt="Output Image" style="width: 150px; height: 150px; object-fit: contain;"></td> </tr> </table>Path parameters
The model version you would like to use in the request.
Headers
Request body
Response
Successful operation.