POST
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
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


sizeenum:str ( default: 1024x1024 )

Width and height of the generated image

Allowed values:


styleenum:str ( default: any )

Style of the generated image.

Allowed values:


promptstr *

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

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.

Key Features of Recraft V3 SVG

  • 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.

Use cases

  • 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