{"components":{"parameters":{"billing":{"in":"query","name":"billing","schema":{"$ref":"#/components/schemas/BillingType"}}},"schemas":{"BasicStyle":{"properties":{"model":{"$ref":"#/components/schemas/TransformModel"},"style":{"type":"string"},"style_id":{"format":"uuid","type":"string","x-go-name":"StyleID","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}}},"required":["style_id","style","model"],"type":"object"},"BillingType":{"enum":["api","subscription"],"type":"string","x-enum-varnames":["BillingTypeAPI","BillingTypeSubscription"]},"ColorHexAndWeight":{"properties":{"hex":{"type":"string"},"weight":{"type":"number"}},"required":["hex"],"type":"object"},"ColorMapping":{"properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"type":"object"},"ColorReduction":{"enum":["on","off"],"type":"string"},"CreateStyleRequest":{"properties":{"image_weights":{"items":{"type":"number"},"type":"array"},"images":{"items":{"format":"binary","type":"string"},"type":"array"},"mix_policy":{"$ref":"#/components/schemas/MixPolicy"},"model":{"$ref":"#/components/schemas/TransformModel"},"palette":{"$ref":"#/components/schemas/PaletteSuggest"},"private":{"type":"boolean"},"prompt":{"type":"string"},"source_style_weights":{"items":{"type":"number"},"type":"array"},"source_styles":{"items":{"format":"uuid","type":"string","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}},"type":"array"},"style":{"$ref":"#/components/schemas/ImageStyle"}},"required":["images","style"],"type":"object"},"CreateStyleResponse":{"allOf":[{"$ref":"#/components/schemas/Style"},{"properties":{"credits":{"type":"integer"}},"required":["credits"],"type":"object"}]},"EraseRegionRequest":{"properties":{"expire":{"type":"boolean"},"image":{"format":"binary","type":"string"},"image_format":{"$ref":"#/components/schemas/ImageFormat"},"mask":{"format":"binary","type":"string"},"response_format":{"$ref":"#/components/schemas/ResponseFormat"}},"required":["image","mask"],"type":"object"},"ExploreRequest":{"properties":{"block_nsfw":{"type":"boolean"},"controls":{"$ref":"#/components/schemas/UserControls"},"expire":{"type":"boolean"},"image_format":{"$ref":"#/components/schemas/ImageFormat"},"model":{"$ref":"#/components/schemas/TransformModel"},"prompt":{"type":"string"},"response_format":{"$ref":"#/components/schemas/ResponseFormat"},"size":{"$ref":"#/components/schemas/ImageSize"},"style":{"type":"string"},"style_id":{"format":"uuid","type":"string","x-go-name":"StyleID","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}},"substyle":{"$ref":"#/components/schemas/ImageSubStyle"}},"required":["prompt"],"type":"object"},"ExploreSimilarRequest":{"properties":{"block_nsfw":{"type":"boolean"},"expire":{"type":"boolean"},"image_format":{"$ref":"#/components/schemas/ImageFormat"},"response_format":{"$ref":"#/components/schemas/ResponseFormat"},"similarity":{"type":"integer"},"source_image_id":{"format":"uuid","type":"string","x-go-name":"SourceImageID","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}}},"required":["source_image_id","similarity"],"type":"object"},"GenerateImageRequest":{"properties":{"block_nsfw":{"type":"boolean"},"calculate_features":{"type":"boolean"},"controls":{"$ref":"#/components/schemas/UserControls"},"expire":{"type":"boolean"},"image_format":{"$ref":"#/components/schemas/ImageFormat"},"model":{"$ref":"#/components/schemas/TransformModel"},"n":{"type":"integer"},"negative_prompt":{"type":"string"},"prompt":{"type":"string"},"random_seed":{"format":"uint32","type":"integer"},"response_format":{"$ref":"#/components/schemas/ResponseFormat"},"size":{"$ref":"#/components/schemas/ImageSize"},"style":{"type":"string"},"style_id":{"format":"uuid","type":"string","x-go-name":"StyleID","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}},"substyle":{"$ref":"#/components/schemas/ImageSubStyle"},"text_layout":{"$ref":"#/components/schemas/TextLayout"},"upscale":{"$ref":"#/components/schemas/UpscaleMode"}},"required":["prompt"],"type":"object"},"GenerateImageResponse":{"properties":{"created":{"type":"integer"},"credits":{"type":"integer"},"data":{"items":{"$ref":"#/components/schemas/Image"},"type":"array"}},"required":["created","data","credits"],"type":"object"},"Image":{"properties":{"b64_json":{"type":"string"},"features":{"$ref":"#/components/schemas/ImageFeatures"},"image_id":{"format":"uuid","type":"string","x-go-name":"ImageID","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}},"revised_prompt":{"type":"string"},"url":{"type":"string"}},"required":["image_id"],"type":"object"},"ImageColor":{"properties":{"rgb":{"items":{"type":"integer"},"type":"array"},"std":{"items":{"type":"number"},"type":"array"},"weight":{"type":"number"}},"type":"object"},"ImageFeatures":{"properties":{"nsfw_score":{"type":"number"}},"type":"object"},"ImageFormat":{"enum":["webp","png"],"type":"string"},"ImageSize":{"enum":["1024x1024","1365x1024","1024x1365","1536x1024","1024x1536","1820x1024","1024x1820","1024x2048","2048x1024","1434x1024","1024x1434","1024x1280","1280x1024","1024x1707","1707x1024","1024x1024","1216x896","896x1216","1280x832","832x1280","1152x896","896x1152","1280x896","896x1280","832x1344","768x1344","1344x768","768x1536","1536x768","2048x2048","2432x1792","1792x2432","2560x1664","1664x2560","2304x1792","1792x2304","2560x1792","1792x2560","1664x2688","1536x2688","2688x1536","1536x3072","3072x1536","1:1","2:1","1:2","3:2","2:3","4:3","3:4","5:4","4:5","6:10","14:10","10:14","16:9","9:16"],"type":"string"},"ImageStyle":{"enum":["any","digital_illustration","icon","realistic_image","vector_illustration","logo_raster"],"type":"string"},"ImageSubStyle":{"enum":["2d_art_poster","3d","80s","glow","grain","hand_drawn","infantile_sketch","kawaii","pixel_art","psychedelic","seamless","voxel","watercolor","broken_line","colored_outline","colored_shapes","colored_shapes_gradient","doodle_fill","doodle_offset_fill","offset_fill","outline","outline_gradient","cartoon","doodle_line_art","engraving","flat_2","line_art","linocut","b_and_w","enterprise","hard_flash","hdr","motion_blur","natural_light","studio_portrait","line_circuit","2d_art_poster_2","engraving_color","hand_drawn_outline","handmade_3d","plastic","pictogram","antiquarian","bold_fantasy","child_book","cover","crosshatch","digital_engraving","expressionism","freehand_details","grain_20","graphic_intensity","hard_comics","long_shadow","modern_folk","multicolor","neon_calm","noir","nostalgic_pastel","outline_details","pastel_gradient","pastel_sketch","pop_art","pop_renaissance","street_art","tablet_sketch","urban_glow","urban_sketching","young_adult_book","young_adult_book_2","evening_light","faded_nostalgia","forest_life","mystic_naturalism","natural_tones","organic_calm","real_life_glow","retro_realism","retro_snapshot","urban_drama","village_realism","warm_folk","bold_stroke","chemistry","colored_stencil","cosmics","cutout","depressive","editorial","emotional_flat","marker_outline","mosaic","naivector","roundish_flat","segmented_colors","sharp_contrast","thin","vector_photo","vivid_shapes","emblem_graffiti","emblem_pop_art","emblem_punk","emblem_stamp","emblem_vintage"],"type":"string"},"ImageToImageRequest":{"properties":{"block_nsfw":{"type":"boolean"},"calculate_features":{"type":"boolean"},"controls":{"$ref":"#/components/schemas/UserControls"},"expire":{"type":"boolean"},"image":{"format":"binary","type":"string"},"image_format":{"$ref":"#/components/schemas/ImageFormat"},"model":{"$ref":"#/components/schemas/TransformModel"},"n":{"type":"integer"},"negative_prompt":{"type":"string"},"prompt":{"type":"string"},"random_seed":{"format":"uint32","type":"integer"},"response_format":{"$ref":"#/components/schemas/ResponseFormat"},"strength":{"type":"number"},"style":{"type":"string"},"style_id":{"format":"uuid","type":"string","x-go-name":"StyleID","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}},"substyle":{"$ref":"#/components/schemas/ImageSubStyle"},"text_layout":{"$ref":"#/components/schemas/TextLayout"}},"required":["prompt","image","strength"],"type":"object"},"LimitNumShapes":{"enum":["on","off"],"type":"string","x-enum-varnames":["LimitNumShapesOn","LimitNumShapesOff"]},"ListBasicStylesResponse":{"properties":{"styles":{"items":{"$ref":"#/components/schemas/BasicStyle"},"type":"array"}},"required":["styles"],"type":"object"},"ListStylesResponse":{"properties":{"styles":{"items":{"$ref":"#/components/schemas/Style"},"type":"array"}},"required":["styles"],"type":"object"},"MixPolicy":{"enum":["PaletteMatch","MaxWeight"],"type":"string"},"OptimizeColorsRequest":{"properties":{"colors":{"items":{"$ref":"#/components/schemas/ColorHexAndWeight"},"type":"array"},"num_colors_limit":{"type":"integer"}},"required":["colors","num_colors_limit"],"type":"object"},"OptimizeColorsResponse":{"properties":{"credits":{"type":"integer"},"mapping":{"items":{"$ref":"#/components/schemas/ColorMapping"},"type":"array"}},"required":["mapping","credits"],"type":"object"},"PaletteSuggest":{"properties":{"background_color":{"$ref":"#/components/schemas/ImageColor"},"colors":{"items":{"$ref":"#/components/schemas/ImageColor"},"type":"array"}},"required":["colors"],"type":"object"},"ProcessImageRequest":{"properties":{"expire":{"type":"boolean"},"image":{"format":"binary","type":"string"},"image_format":{"$ref":"#/components/schemas/ImageFormat"},"response_format":{"$ref":"#/components/schemas/ResponseFormat"},"upscale":{"$ref":"#/components/schemas/UpscaleMode"}},"required":["image"],"type":"object"},"ProcessImageResponse":{"properties":{"created":{"type":"integer"},"credits":{"type":"integer"},"image":{"$ref":"#/components/schemas/Image"}},"required":["created","image","credits"],"type":"object"},"ResponseFormat":{"enum":["url","b64_json"],"type":"string"},"ReturnGradients":{"enum":["on","off"],"type":"string","x-enum-varnames":["ReturnGradientsOn","ReturnGradientsOff"]},"ShapeStacking":{"enum":["cut_out","hierarchical"],"type":"string","x-enum-varnames":["ShapeStackingCutOut","ShapeStackingHierarchical"]},"SmallShapeFilter":{"enum":["on","off"],"type":"string"},"Style":{"properties":{"creation_time":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string","x-go-name":"ID","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}},"is_private":{"type":"boolean"},"style":{"$ref":"#/components/schemas/ImageStyle"},"substyle":{"$ref":"#/components/schemas/ImageSubStyle"}},"required":["id","style","creation_time","is_private"],"type":"object"},"SvgCompression":{"enum":["on","off"],"type":"string","x-enum-varnames":["SvgCompressionOn","SvgCompressionOff"]},"SystemStatus":{"properties":{"generation":{"type":"boolean"},"service":{"type":"boolean"}},"required":["service","generation"],"type":"object"},"TextLayout":{"items":{"$ref":"#/components/schemas/TextLayoutItem"},"type":"array"},"TextLayoutItem":{"properties":{"bbox":{"items":{"items":{"type":"number","x-go-type":"float32"},"type":"array"},"type":"array"},"text":{"type":"string"}},"required":["text","bbox"],"type":"object"},"TransformImageRequest":{"properties":{"block_nsfw":{"type":"boolean"},"calculate_features":{"type":"boolean"},"expire":{"type":"boolean"},"image":{"format":"binary","type":"string"},"image_format":{"$ref":"#/components/schemas/ImageFormat"},"model":{"$ref":"#/components/schemas/TransformModel"},"n":{"type":"integer"},"negative_prompt":{"type":"string"},"prompt":{"type":"string"},"random_seed":{"format":"uint32","type":"integer"},"response_format":{"$ref":"#/components/schemas/ResponseFormat"},"style":{"type":"string"},"style_id":{"format":"uuid","type":"string","x-go-name":"StyleID","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}},"substyle":{"$ref":"#/components/schemas/ImageSubStyle"},"text_layout":{"$ref":"#/components/schemas/TextLayout"}},"required":["image","prompt"],"type":"object"},"TransformImageWithMaskRequest":{"allOf":[{"$ref":"#/components/schemas/TransformImageRequest"},{"properties":{"mask":{"format":"binary","type":"string"}},"required":["mask"],"type":"object"}]},"TransformModel":{"enum":["refm1","recraft20b","recraftv2","recraftv2_raster","recraftv2_vector","recraftv3","recraftv3_raster","recraftv3_vector","recraftv4","recraftv4_raster","recraftv4_vector","recraftv4_pro","recraftv4_pro_raster","recraftv4_pro_vector","flux1_kontext_pro","flux1_kontext_max","flux1_1pro","flux1dev","imagen3","imagen4","imagen4_ultra","hidream_i1_dev","gpt_image_1_low","gpt_image_1_medium","gpt_image_1_high","gpt_image_1p5_low","gpt_image_1p5_medium","gpt_image_1p5_high","ideogram_v3_turbo","ideogram_v3_default","ideogram_v3_quality","qwen_image","qwen_image_2","gemini_25_flash_image","bytedance-seedreamv4","bytedance_seedreamv4p5","nano_banana_pro","nano_banana_pro_4k","nano_banana_2","nano_banana_2_with_4k","flux2_dev","flux2_pro","flux2_flex","flux2_max","z_image_turbo","bytedance_seedreamv5_lite","qwen_image_2_pro","flux1_schnell","grok_imagine_image","veo3p1","veo3p1_fast","veo3p1_lite","veo3","veo3_fast","veo2","sora2_pro","sora2","ray2","ray2_flash","kling2p6_pro","kling2p5_turbo","kling2p1_master","hailuo02_pro","hailuo02_standard","hailuo2p3_pro","hailuo2p3_standard","wan2p6","wan2p5_preview","wan2p2_a14b","bytedance_seedance1p5","pixverse_v5p5","grok_imagine_video","kling3_pro","kling3_standard","kling3_omni_pro","kling3_omni_standard","recraft_super_resolution","recraft_generative_upscale","topaz"],"type":"string"},"UpscaleMode":{"enum":["upscale4mp","upscale16mp"],"type":"string"},"User":{"properties":{"credits":{"type":"integer"},"email":{"format":"email","type":"string"},"id":{"format":"uuid","type":"string","x-go-name":"ID","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}},"name":{"type":"string"}},"required":["id","credits"],"type":"object"},"UserControls":{"properties":{"artistic_level":{"type":"integer"},"background_color":{"$ref":"#/components/schemas/ImageColor"},"colors":{"items":{"$ref":"#/components/schemas/ImageColor"},"type":"array"},"no_text":{"type":"boolean"}},"type":"object"},"VariateImageRequest":{"properties":{"expire":{"type":"boolean"},"image":{"format":"binary","type":"string"},"image_format":{"$ref":"#/components/schemas/ImageFormat"},"n":{"type":"integer"},"random_seed":{"format":"uint32","type":"integer"},"response_format":{"$ref":"#/components/schemas/ResponseFormat"},"size":{"$ref":"#/components/schemas/ImageSize"}},"required":["image","size"],"type":"object"},"VectorizeImageRequest":{"allOf":[{"$ref":"#/components/schemas/ProcessImageRequest"},{"properties":{"color_reduction":{"$ref":"#/components/schemas/ColorReduction"},"limit_num_shapes":{"$ref":"#/components/schemas/LimitNumShapes"},"max_num_shapes":{"format":"uint32","type":"integer"},"return_gradients":{"$ref":"#/components/schemas/ReturnGradients"},"shape_stacking":{"$ref":"#/components/schemas/ShapeStacking"},"small_shape_filter":{"$ref":"#/components/schemas/SmallShapeFilter"},"svg_compression":{"$ref":"#/components/schemas/SvgCompression"}},"type":"object"}]}},"securitySchemes":{"auth0":{"scheme":"bearer","type":"http"}}},"info":{"title":"recraft.ai external api","version":"0.0.1"},"openapi":"3.0.3","paths":{"/ping":{"get":{"operationId":"GetPing","responses":{"200":{"description":"OK"}}}},"/status":{"get":{"operationId":"GetSystemStatus","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemStatus"}}},"description":"OK"}},"summary":"Get System Status"}},"/v1/colors/optimize":{"post":{"operationId":"OptimizeColors","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptimizeColorsRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptimizeColorsResponse"}}},"description":"OK"}},"summary":"Optimize colors","tags":["colors"]}},"/v1/images/clarityUpscale":{"post":{"deprecated":true,"operationId":"ClarityUpscale","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ProcessImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessImageResponse"}}},"description":"OK"}},"summary":"Clarity Upscale","tags":["image"]}},"/v1/images/creativeUpscale":{"post":{"operationId":"CreativeUpscale","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ProcessImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessImageResponse"}}},"description":"OK"}},"summary":"Creative Upscale","tags":["image"]}},"/v1/images/crispUpscale":{"post":{"operationId":"CrispUpscale","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ProcessImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessImageResponse"}}},"description":"OK"}},"summary":"Crisp Upscale","tags":["image"]}},"/v1/images/eraseRegion":{"post":{"operationId":"EraseRegion","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/EraseRegionRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessImageResponse"}}},"description":"OK"}},"summary":"Erase Region","tags":["image"]}},"/v1/images/explore":{"post":{"operationId":"Explore","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExploreRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageResponse"}}},"description":"OK"}},"summary":"Exploration","tags":["image"]}},"/v1/images/explore/similar":{"post":{"operationId":"ExploreSimilar","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExploreSimilarRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageResponse"}}},"description":"OK"}},"summary":"Continue exploration from a source image","tags":["image"]}},"/v1/images/generateBackground":{"post":{"operationId":"GenerateBackground","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/TransformImageWithMaskRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageResponse"}}},"description":"OK"}},"summary":"Generate Background","tags":["image"]}},"/v1/images/generations":{"post":{"operationId":"GenerateImage","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageResponse"}}},"description":"OK"}},"summary":"Generate image from prompt","tags":["image"]}},"/v1/images/generations/raster":{"post":{"operationId":"GenerateImageRaster","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageResponse"}}},"description":"OK"}},"summary":"Generate raster image from prompt","tags":["image"]}},"/v1/images/generations/vector":{"post":{"operationId":"GenerateImageVector","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageResponse"}}},"description":"OK"}},"summary":"Generate vector image from prompt","tags":["image"]}},"/v1/images/generativeUpscale":{"post":{"deprecated":true,"operationId":"GenerativeUpscale","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ProcessImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessImageResponse"}}},"description":"OK"}},"summary":"Generative Upscale","tags":["image"]}},"/v1/images/imageToImage":{"post":{"operationId":"ImageToImage","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ImageToImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageResponse"}}},"description":"OK"}},"summary":"Generate image from image and prompt","tags":["image"]}},"/v1/images/inpaint":{"post":{"operationId":"InpaintImage","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/TransformImageWithMaskRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageResponse"}}},"description":"OK"}},"summary":"Inpaint Image","tags":["image"]}},"/v1/images/removeBackground":{"post":{"operationId":"RemoveBackground","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ProcessImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessImageResponse"}}},"description":"OK"}},"summary":"Remove background","tags":["image"]}},"/v1/images/replaceBackground":{"post":{"operationId":"ReplaceBackground","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/TransformImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageResponse"}}},"description":"OK"}},"summary":"Replace Background","tags":["image"]}},"/v1/images/variateImage":{"post":{"operationId":"VariateImage","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/VariateImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateImageResponse"}}},"description":"OK"}},"summary":"Variate Image","tags":["image"]}},"/v1/images/vectorize":{"post":{"operationId":"VectorizeImage","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/VectorizeImageRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessImageResponse"}}},"description":"OK"}},"summary":"Vectorize image","tags":["image"]}},"/v1/styles":{"get":{"operationId":"ListStyles","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListStylesResponse"}}},"description":"OK"}},"summary":"List Styles","tags":["style"]},"post":{"operationId":"CreateStyle","parameters":[{"$ref":"#/components/parameters/billing"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CreateStyleRequest"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStyleResponse"}}},"description":"OK"}},"summary":"Create Style","tags":["style"]}},"/v1/styles/basic":{"get":{"operationId":"ListBasicStyles","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBasicStylesResponse"}}},"description":"OK"}},"summary":"List Basic Styles","tags":["style"]}},"/v1/styles/{style_id}":{"delete":{"operationId":"DeleteStyle","parameters":[{"in":"path","name":"style_id","required":true,"schema":{"format":"uuid","type":"string","x-go-name":"StyleID","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"}},"summary":"Delete Style","tags":["style"]},"get":{"operationId":"GetStyle","parameters":[{"in":"path","name":"style_id","required":true,"schema":{"format":"uuid","type":"string","x-go-name":"StyleID","x-go-type":"uuid.UUID","x-go-type-import":{"path":"github.com/gofrs/uuid/v5"}}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Style"}}},"description":"OK"}},"summary":"Get Style","tags":["style"]}},"/v1/users/me":{"get":{"operationId":"GetCurrentUser","parameters":[{"$ref":"#/components/parameters/billing"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":"OK"}},"summary":"Get current user info","tags":["user"]}}},"security":[{"auth0":[]}],"servers":[{"description":"Production","url":"https://external.api.recraft.ai"}]}