1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import requests
api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/recraft-v3-svg"
# Prepare data and files
data = {}
files = {}
data['size'] = "1024x1024"
data['style'] = "any"
data['prompt'] = "a portrait of a cute red panda, smiling, holding a sign that has the title \"recraft-it\", against a red background"
headers = {'x-api-key': api_key}
response = requests.post(url, data=data, files=files, headers=headers)
print(response.content) # The response is the generated image
Width and height of the generated image
Allowed values:
Style of the generated image.
Allowed values:
Text prompt for image generation
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Recraft V3 SVG is a cutting-edge AI model designed to streamline design workflows and produce high-quality vector graphics. Recraft V3 SVG offers unparalleled precision and customization capabilities.
Accurate Text Integration: Seamlessly incorporate text into images, ensuring clarity and legibility.
Anatomical Precision: Generate anatomically correct illustrations, adhering to realistic proportions and structures.
Aesthetically Pleasing Designs: Produce visually appealing graphics that align with established design principles.
Extensive Customization Options: Tailor designs to specific needs, adjusting text, size, position, and style.
Logo Design: Create scalable logos with sharp details.
Infographic Creation: Generate informative graphics with accurate text placement.
Illustration: Design anatomically correct illustrations for various purposes.
Promotional Materials: Produce visually striking flyers, posters, and social media graphics