Recraft V3 Svg
Recraft V3 SVG generates high-quality, customizable vector graphics with precision and ease. Perfect for logos, infographics, illustrations, and more.
Recraft V3 SVG generates high-quality, customizable vector graphics with precision and ease. Perfect for logos, infographics, illustrations, and more.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/recraft-v3-svg"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "size": "1024x1024",
12 "style": "any",
13 "prompt": "a portrait of a cute red panda, smiling, holding a sign that has the title \"recraft-it\", against a red background"
14}
15
16response = requests.post(url, headers=headers, json=data)
17
18if response.status_code == 200:
19 result = response.json()
20 print(json.dumps(result, indent=2))
21else:
22 print(f"Error: {response.status_code}")
23 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/recraft-v3-svg"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "size": "1024x1024",
12 "style": "any",
13 "prompt": "a portrait of a cute red panda, smiling, holding a sign that has the title \"recraft-it\", against a red background"
14}
15
16response = requests.post(url, headers=headers, json=data)
17
18if response.status_code == 200:
19 result = response.json()
20 print(json.dumps(result, indent=2))
21else:
22 print(f"Error: {response.status_code}")
23 print(response.text)https://api.segmind.com/v1/recraft-v3-svgpromptrequiredstringText prompt for image generation
"a portrait of a cute red panda, smiling, holding a sign that has the title 'recraft-it', against a red background"sizeoptionalstringWidth and height of the generated image
"1024x1024""1024x1024""1365x1024""1024x1365""1536x1024""1024x1536""1820x1024""1024x1820""1024x2048""2048x1024""1434x1024"+5 morestyleoptionalstringStyle of the generated image.
"any""any""engraving""line_art""line_circuit""linocut"Returns: Text/JSON
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Invalid parameters or request format
Missing or invalid API key
Insufficient permissions
Model or endpoint not found
Not enough credits to process request
Too many requests
Internal server error
Service temporarily unavailable
Request timed out