905 lines
42 KiB
Python
905 lines
42 KiB
Python
import json
|
|
import re
|
|
from urllib.parse import urlparse
|
|
|
|
# Load creds
|
|
with open("/home/creserver/Desktop/Vaishno_workspace/Jsons/credentials_23-10-2026.json") as f:
|
|
creds_raw = json.load(f)
|
|
creds = creds_raw["data"]
|
|
|
|
# Load existing index.html
|
|
with open("web/docs/index.html") as f:
|
|
html = f.read()
|
|
|
|
m = re.search(r'<script id="api-data" type="application/json">(.*?)</script>', html, re.DOTALL)
|
|
old_data = json.loads(m.group(1))
|
|
|
|
# Collect all existing endpoints by path
|
|
old_eps_by_path = {}
|
|
for s in old_data["sections"]:
|
|
for ep in s["eps"]:
|
|
old_eps_by_path[ep["path"]] = ep
|
|
# Also map without trailing slash
|
|
old_eps_by_path[ep["path"].rstrip("/")] = ep
|
|
|
|
print(f"Total old endpoints indexed: {len(old_eps_by_path)}")
|
|
|
|
# Helper to find endpoint
|
|
def get_old_ep(path):
|
|
if path in old_eps_by_path:
|
|
return old_eps_by_path[path]
|
|
p_clean = path.rstrip("/")
|
|
if p_clean in old_eps_by_path:
|
|
return old_eps_by_path[p_clean]
|
|
# Search for substring
|
|
for k, v in old_eps_by_path.items():
|
|
if p_clean.endswith(k) or k.endswith(p_clean):
|
|
return v
|
|
return None
|
|
|
|
# Map each of the 68 credentials to an API structure with endpoints
|
|
api_definitions = [
|
|
# 1. Cre_Aws_Waifu2x_Model
|
|
{
|
|
"api_key": "Cre_Aws_Waifu2x_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/new_enhancer/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "Real-ESRGAN + CodeFormer Super-Resolution and Face Restoration pipeline.",
|
|
"endpoints": [
|
|
{"path": "/new_enhancer/image/", "subpath": "image/", "title": "Face & Image Enhancer (Super-Resolution)"},
|
|
{"path": "/new_enhancer/image_previous/", "subpath": "image_previous/", "title": "Face & Image Enhancer — Legacy Alias"}
|
|
]
|
|
},
|
|
# 2. Cre_Aws_Colorization_Model
|
|
{
|
|
"api_key": "Cre_Aws_Colorization_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/colorization/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "DeOldify self-attention GAN for monochrome photo colorization.",
|
|
"endpoints": [
|
|
{"path": "/colorization/image/", "subpath": "image/", "title": "B&W Photo Colorization (DeOldify)"}
|
|
]
|
|
},
|
|
# 3. Cre_Aws_Old_Photo_Restore_Model
|
|
{
|
|
"api_key": "Cre_Aws_Old_Photo_Restore_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/oldPhotoRestore/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "Scratch, crease, and fading restoration for vintage family photographs.",
|
|
"endpoints": [
|
|
{"path": "/oldPhotoRestore/image/", "subpath": "image/", "title": "Old Photo Restoration Pipeline"}
|
|
]
|
|
},
|
|
# 4. Cre_Aws_Advance_Image_Segment_Anything_Dichotomous_Model
|
|
{
|
|
"api_key": "Cre_Aws_Advance_Image_Segment_Anything_Dichotomous_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/advance_image_segment_anything_dichotomous/",
|
|
"section": "sec-segmentation",
|
|
"summary": "Dichotomous image segmentation (DIS) + SAM for pixel-perfect foreground alpha masks.",
|
|
"endpoints": [
|
|
{"path": "/advance_image_segment_anything_dichotomous/image/", "subpath": "image/", "title": "Dichotomous Image Segmentation (DIS/SAM)"}
|
|
]
|
|
},
|
|
# 5. Cre_Aws_cloth_segmentation_Model
|
|
{
|
|
"api_key": "Cre_Aws_cloth_segmentation_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/cloth_segmentation/",
|
|
"section": "sec-segmentation",
|
|
"summary": "Multi-class garment and apparel segmentation identifier.",
|
|
"endpoints": [
|
|
{"path": "/cloth_segmentation/image", "subpath": "image", "title": "Cloth Segmentation (Clothing Identifier)"}
|
|
]
|
|
},
|
|
# 6. dress_segmentation_auto
|
|
{
|
|
"api_key": "dress_segmentation_auto",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/dress_segmentation_auto_newurl/",
|
|
"section": "sec-segmentation",
|
|
"summary": "Automated garment boundary isolation and multi-garment separation.",
|
|
"endpoints": [
|
|
{"path": "/dress_segmentation_auto_newurl/image/", "subpath": "image/", "title": "Automated Garment Segmentation (Auto URL)"}
|
|
]
|
|
},
|
|
# 7. Cre_Aws_Lama_Cleaner_Model
|
|
{
|
|
"api_key": "Cre_Aws_Lama_Cleaner_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/lamaCleaner/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "Large Mask Inpainting (LaMa) object remover and watermark eraser.",
|
|
"endpoints": [
|
|
{"path": "/lamaCleaner/image/", "subpath": "image/", "title": "LaMa Object Remover & Inpainting Cleaner"}
|
|
]
|
|
},
|
|
# 8. Cre_Aws_Background_Remover_Model
|
|
{
|
|
"api_key": "Cre_Aws_Background_Remover_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/background_remover_p3m/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "P3M-Net privacy-preserving portrait matting producing transparent PNGs.",
|
|
"endpoints": [
|
|
{"path": "/background_remover_p3m/image/", "subpath": "image/", "title": "Background Remover P3M-Net"}
|
|
]
|
|
},
|
|
# 9. Cre_Aws_Cartoon_Model
|
|
{
|
|
"api_key": "Cre_Aws_Cartoon_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/cartoon_effects/",
|
|
"section": "sec-sd15",
|
|
"summary": "AnimeGAN2 and White-box cartoon stylization filters.",
|
|
"endpoints": [
|
|
{"path": "/cartoon_effects/image/", "subpath": "image/", "title": "Cartoon & Anime Stylization Filter"}
|
|
]
|
|
},
|
|
# 10. Face_Coordinates
|
|
{
|
|
"api_key": "Face_Coordinates",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/face_landmark/",
|
|
"section": "sec-segmentation",
|
|
"summary": "MediaPipe & InsightFace 68/468-point facial landmark mesh array and eye iris extraction.",
|
|
"endpoints": [
|
|
{"path": "/face_landmark/image/", "subpath": "image/", "title": "68-Point & 468-Point Facial Landmark Detection"},
|
|
{"path": "/face_landmark/image2/", "subpath": "image2/", "title": "Face Landmark — Mesh Array (image2)"},
|
|
{"path": "/face_landmark/image3/", "subpath": "image3/", "title": "Face Landmark — Contour (image3)"},
|
|
{"path": "/face_landmark/image4/", "subpath": "image4/", "title": "Face Landmark — Variant 4 (image4)"},
|
|
{"path": "/face_landmark/image5/", "subpath": "image5/", "title": "Face Landmark — Variant 5 (image5)"},
|
|
{"path": "/face_landmark/image6/", "subpath": "image6/", "title": "Face Landmark — Eye Iris Mask (image6)"},
|
|
{"path": "/face_landmark/image7/", "subpath": "image7/", "title": "Face Landmark — Visualized Overlay PNG (image7)"},
|
|
{"path": "/face_landmark/get_eye_mask", "subpath": "get_eye_mask", "title": "Face Landmark — Fetch Eye Mask (get_eye_mask)"}
|
|
]
|
|
},
|
|
# 11. Stable_Diffusion_Text_To_Image_Model
|
|
{
|
|
"api_key": "Stable_Diffusion_Text_To_Image_Model",
|
|
"api_ip_link": "https://apigp0905.creinnovations.in/apis/lxds/sdxl/text_to_image/",
|
|
"section": "sec-sdxl-comfy",
|
|
"summary": "RealVisXL V5.0 photorealistic generative text-to-image synthesis.",
|
|
"endpoints": [
|
|
{"path": "/sdxl/text_to_image/image/", "subpath": "image/", "title": "SDXL Text to Image (RealVisXL V5.0)"}
|
|
]
|
|
},
|
|
# 12. Stable_Diffusion_Image_To_Image_Model
|
|
{
|
|
"api_key": "Stable_Diffusion_Image_To_Image_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion/",
|
|
"section": "sec-sd15",
|
|
"summary": "Stable Diffusion 1.5 general-purpose image-to-image guided inpainting.",
|
|
"endpoints": [
|
|
{"path": "/stable_diffusion/image/", "subpath": "image/", "title": "Stable Diffusion 1.5 General Inpainter"}
|
|
]
|
|
},
|
|
# 13. Stable_Diffusion_Realistic_Avatar
|
|
{
|
|
"api_key": "Stable_Diffusion_Realistic_Avatar",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion_avatar_with_original_face/",
|
|
"section": "sec-sd15",
|
|
"summary": "Photorealistic AI avatar synthesis retaining the user's authentic facial geometry.",
|
|
"endpoints": [
|
|
{"path": "/stable_diffusion_avatar_with_original_face/image/", "subpath": "image/", "title": "Avatar with Original Face (FaceID + Roop)"}
|
|
]
|
|
},
|
|
# 14. Cre_Face_With_Hair_Segment_Model
|
|
{
|
|
"api_key": "Cre_Face_With_Hair_Segment_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/face_hair_segmentation/",
|
|
"section": "sec-segmentation",
|
|
"summary": "Dual multi-channel face and hair semantic parsing.",
|
|
"endpoints": [
|
|
{"path": "/face_hair_segmentation/image/", "subpath": "image/", "title": "Dual Face & Hair Multi-Channel Segmentation"}
|
|
]
|
|
},
|
|
# 15. Cre_Cartoonify_Caricature_Effects_Model
|
|
{
|
|
"api_key": "Cre_Cartoonify_Caricature_Effects_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/cartoonify_caricature_effects/",
|
|
"section": "sec-sd15",
|
|
"summary": "Anime & CartoonGAN stylizer transforming portraits into hand-drawn illustrations.",
|
|
"endpoints": [
|
|
{"path": "/cartoonify_caricature_effects/image/", "subpath": "image/", "title": "CartoonGAN & Anime Stylizer"}
|
|
]
|
|
},
|
|
# 16. Cre_Hair_Detection_Segment_Model
|
|
{
|
|
"api_key": "Cre_Hair_Detection_Segment_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/hair_segmentation/",
|
|
"section": "sec-segmentation",
|
|
"summary": "Hair follicle strand detection and boundary mask extractor (Sapiens + YOLO-SAM).",
|
|
"endpoints": [
|
|
{"path": "/hair_segmentation/image/", "subpath": "image/", "title": "High-Precision Hair Segmentation"},
|
|
{"path": "/hair_segmentation_yolo_sam/image/", "subpath": "yolo_sam/", "title": "Hair Segmentation YOLO + SAM"}
|
|
]
|
|
},
|
|
# 17. Stable_Diffusion_Hair_Color_Changer_And_Hair_Style_Changer
|
|
{
|
|
"api_key": "Stable_Diffusion_Hair_Color_Changer_And_Hair_Style_Changer",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxf/flux_fill/hair_color_changer/",
|
|
"section": "sec-flux-fill",
|
|
"summary": "FLUX.1-Fill inpainting suite for hair recoloring (36 presets) and restyling (60 male/female presets).",
|
|
"endpoints": [
|
|
{"path": "/flux_fill/hair_color_changer/image/", "subpath": "hair_color_changer/image/", "title": "Hair Color Changer (FLUX.1-Fill • 36 Presets)"},
|
|
{"path": "/flux_fill/hair_style_changer/image/", "subpath": "hair_style_changer/image/", "title": "Hair Style Changer (FLUX.1-Fill • 60 Presets)"}
|
|
]
|
|
},
|
|
# 18. Stable_Diffusion_Hair_Segmentation
|
|
{
|
|
"api_key": "Stable_Diffusion_Hair_Segmentation",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion_hair_segmentation/",
|
|
"section": "sec-segmentation",
|
|
"summary": "Neural hair segmentation router optimized for generative diffusion pipelines.",
|
|
"endpoints": [
|
|
{"path": "/stable_diffusion_hair_segmentation/image/", "subpath": "image/", "title": "Stable Diffusion Hair Segmentation Router"}
|
|
]
|
|
},
|
|
# 19. Stable_Diffusion_Outpainting
|
|
{
|
|
"api_key": "Stable_Diffusion_Outpainting",
|
|
"api_ip_link": "https://apigp0905.creinnovations.in/apis/lxds/sdxl/outpainting/",
|
|
"section": "sec-sdxl-comfy",
|
|
"summary": "Expands image canvas in 4 directions while hallucinating photorealistic environments.",
|
|
"endpoints": [
|
|
{"path": "/sdxl/outpainting/image/", "subpath": "image/", "title": "SDXL RealVisXL Outpainting & Canvas Extender"}
|
|
]
|
|
},
|
|
# 20. Stable_Diffusion_Art_Style_Transfer
|
|
{
|
|
"api_key": "Stable_Diffusion_Art_Style_Transfer",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion_art_style_transfer/",
|
|
"section": "sec-sd15",
|
|
"summary": "Neural style transfer applying classical painting mediums (Van Gogh, Monet, Cyberpunk).",
|
|
"endpoints": [
|
|
{"path": "/stable_diffusion_art_style_transfer/image/", "subpath": "image/", "title": "SD1.5 Fine-Art Style Transfer"}
|
|
]
|
|
},
|
|
# 21. Stable_Diffusion_Reaslistic_Background_Changer
|
|
{
|
|
"api_key": "Stable_Diffusion_Reaslistic_Background_Changer",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion_realistic_background_changer/",
|
|
"section": "sec-sd15",
|
|
"summary": "Segments foreground subjects and synthesizes realistic contextual backgrounds.",
|
|
"endpoints": [
|
|
{"path": "/stable_diffusion_realistic_background_changer/image/", "subpath": "image/", "title": "Realistic Background Changer (SD1.5)"}
|
|
]
|
|
},
|
|
# 22. Stable_Diffusion_Headshot
|
|
{
|
|
"api_key": "Stable_Diffusion_Headshot",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/flux/headshots/",
|
|
"section": "sec-flux-kontext",
|
|
"summary": "FLUX.1-Kontext executive studio lighting, corporate attire, and depth bokeh.",
|
|
"endpoints": [
|
|
{"path": "/flux/headshots/image1_1/", "subpath": "image1_1/", "title": "FLUX.1-Kontext Professional Headshots"}
|
|
]
|
|
},
|
|
# 23. Stable_Diffusion_Eye_Changer
|
|
{
|
|
"api_key": "Stable_Diffusion_Eye_Changer",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxf/flux_fill/eye_changer/",
|
|
"section": "sec-flux-fill",
|
|
"summary": "Iris color inpainting (5 colors) and stylish eyewear generation (20 styles).",
|
|
"endpoints": [
|
|
{"path": "/flux_fill/eye_changer/image/", "subpath": "image/", "title": "Eye Changer & Glasses Inpainting (FLUX.1-Fill)"}
|
|
]
|
|
},
|
|
# 24. Stable_Diffusion_Silhouette_Maker
|
|
{
|
|
"api_key": "Stable_Diffusion_Silhouette_Maker",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion_silhouette_maker/",
|
|
"section": "sec-sd15",
|
|
"summary": "High-contrast silhouette isolation and dynamic rim-lighting synthesizer.",
|
|
"endpoints": [
|
|
{"path": "/flux/silhouette/image/", "subpath": "image/", "title": "Silhouette Maker Pipeline"}
|
|
]
|
|
},
|
|
# 25. Stable_Diffusion_Caricature_Effects
|
|
{
|
|
"api_key": "Stable_Diffusion_Caricature_Effects",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion_caricature_effects/image/",
|
|
"section": "sec-sd15",
|
|
"summary": "Facial exaggeration and cartoon caricature generation with artistic caricature styles.",
|
|
"endpoints": [
|
|
{"path": "/stable_diffusion_caricature_effects/image/", "subpath": "image/", "title": "Caricature Effects Pipeline"}
|
|
]
|
|
},
|
|
# 26. Stable_Diffusion_Head_Cartoon_Effects
|
|
{
|
|
"api_key": "Stable_Diffusion_Head_Cartoon_Effects",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/flux/head_cartoon_effect/",
|
|
"section": "sec-flux-kontext",
|
|
"summary": "FLUX.1-Kontext 3D bobblehead cartoon effect with enhanced head-to-body ratio.",
|
|
"endpoints": [
|
|
{"path": "/flux/head_cartoon_effect/image/", "subpath": "image/", "title": "Head Cartoon Effect (FLUX.1-Kontext)"}
|
|
]
|
|
},
|
|
# 27. Stable_Diffusion_Comic_Generator
|
|
{
|
|
"api_key": "Stable_Diffusion_Comic_Generator",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion_comic_generator/",
|
|
"section": "sec-sd15",
|
|
"summary": "Multi-frame comic strip generation with speech balloons and ink shading.",
|
|
"endpoints": [
|
|
{"path": "/stable_diffusion_comic_generator/image/", "subpath": "image/", "title": "Comic Panel Generator"}
|
|
]
|
|
},
|
|
# 28. Stable_Diffusion_Inpaint_Object_Replacer
|
|
{
|
|
"api_key": "Stable_Diffusion_Inpaint_Object_Replacer",
|
|
"api_ip_link": "https://apigp0905.creinnovations.in/apis/lxds/sdxl/inpaint_object_replacer/",
|
|
"section": "sec-sdxl-comfy",
|
|
"summary": "Replaces masked items with photorealistic user-described objects.",
|
|
"endpoints": [
|
|
{"path": "/sdxl/inpaint_object_replacer/image/", "subpath": "image/", "title": "SDXL Inpaint Object Replacer"}
|
|
]
|
|
},
|
|
# 29. Eye_Bag_Remover
|
|
{
|
|
"api_key": "Eye_Bag_Remover",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/eye_bag_remover/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "Neural under-eye tear trough smoothing and dark circle luminance brightening.",
|
|
"endpoints": [
|
|
{"path": "/eye_bag_remover/image/", "subpath": "image/", "title": "Under-Eye Bag & Dark Circle Remover"}
|
|
]
|
|
},
|
|
# 30. Stable_Diffusion_Modified_Head_Cartoon_Effects
|
|
{
|
|
"api_key": "Stable_Diffusion_Modified_Head_Cartoon_Effects",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/flux/modified_head_cartoon_effects",
|
|
"section": "sec-flux-kontext",
|
|
"summary": "FLUX.1-Kontext modified head caricature stylization with preserved facial identity.",
|
|
"endpoints": [
|
|
{"path": "/flux/modified_head_cartoon_effects/image/", "subpath": "image/", "title": "Modified Head Cartoon Effects (FLUX.1-Kontext)"}
|
|
]
|
|
},
|
|
# 31. Skin_Detection
|
|
{
|
|
"api_key": "Skin_Detection",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/skin_detection/",
|
|
"section": "sec-segmentation",
|
|
"summary": "Multi-tone probabilistic skin tone segmentation producing binary alpha masks.",
|
|
"endpoints": [
|
|
{"path": "/skin_detection/image/", "subpath": "image/", "title": "Skin Detection & Mask Extractor"}
|
|
]
|
|
},
|
|
# 32. Sky_Detection
|
|
{
|
|
"api_key": "Sky_Detection",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/sky_detection/",
|
|
"section": "sec-segmentation",
|
|
"summary": "Sky horizon segmentation separating sky regions from buildings, vegetation, and terrain.",
|
|
"endpoints": [
|
|
{"path": "/sky_detection/image/", "subpath": "image/", "title": "Sky Detection & Horizon Mask Extractor"}
|
|
]
|
|
},
|
|
# 33. Stable_Diffusion_Dress_Pattern
|
|
{
|
|
"api_key": "Stable_Diffusion_Dress_Pattern",
|
|
"api_ip_link": "https://apigp0905.creinnovations.in/apis/lxds/sdxl/advanced_dress_pattern/",
|
|
"section": "sec-sdxl-comfy",
|
|
"summary": "Applies intricate fabric patterns (floral, polka, geometric) to clothing with realistic folds.",
|
|
"endpoints": [
|
|
{"path": "/sdxl/dress_pattern/image/", "subpath": "image/", "title": "SDXL Dress Pattern Inpainter"}
|
|
]
|
|
},
|
|
# 34. Stable_Diffusion_Photo_2_Caricature
|
|
{
|
|
"api_key": "Stable_Diffusion_Photo_2_Caricature",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion_photo_2_caricature/",
|
|
"section": "sec-sd15",
|
|
"summary": "End-to-end photo-to-caricature conversion with hand-painted artistic finishes.",
|
|
"endpoints": [
|
|
{"path": "/stable_diffusion_photo_2_caricature/image/", "subpath": "image/", "title": "Photo to Caricature Converter"}
|
|
]
|
|
},
|
|
# 35. Stable_Diffusion_Caricature_Hair_Face_Effect
|
|
{
|
|
"api_key": "Stable_Diffusion_Caricature_Hair_Face_Effect",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion_caricature_hair_face_effect/",
|
|
"section": "sec-sd15",
|
|
"summary": "Caricature morphing targeting hair volume and exaggerated expressions.",
|
|
"endpoints": [
|
|
{"path": "/stable_diffusion_caricature_hair_face_effect/image/", "subpath": "image/", "title": "Caricature Hair & Face Effect"}
|
|
]
|
|
},
|
|
# 36. Stable_Diffusion_Blend_Collage
|
|
{
|
|
"api_key": "Stable_Diffusion_Blend_Collage",
|
|
"api_ip_link": "https://apigp0905.creinnovations.in/apis/lxds/sdxl/blend_collage/",
|
|
"section": "sec-sdxl-comfy",
|
|
"summary": "Seamless multi-image seamless collage and harmonization with neural lighting matching.",
|
|
"endpoints": [
|
|
{"path": "/sdxl/blend_collage/image/", "subpath": "image/", "title": "SDXL Blend Collage Harmonizer"}
|
|
]
|
|
},
|
|
# 37. Stable_Diffusion_Dress_Replacer
|
|
{
|
|
"api_key": "Stable_Diffusion_Dress_Replacer",
|
|
"api_ip_link": "https://apigp0905.creinnovations.in/apis/lxds/sdxl/dress_replacer/",
|
|
"section": "sec-sdxl-comfy",
|
|
"summary": "Complete garment substitution with designer couture and trending attire.",
|
|
"endpoints": [
|
|
{"path": "/sdxl/dress_replacer/image/", "subpath": "image/", "title": "SDXL Dress Replacer"}
|
|
]
|
|
},
|
|
# 38. Stable_Diffusion_Comic_Coverpage_Generator
|
|
{
|
|
"api_key": "Stable_Diffusion_Comic_Coverpage_Generator",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/flux/comic_cover/",
|
|
"section": "sec-flux-kontext",
|
|
"summary": "FLUX.1-Kontext stylized vintage and superhero comic book cover artist.",
|
|
"endpoints": [
|
|
{"path": "/flux/comic_cover/image/", "subpath": "image/", "title": "FLUX.1-Kontext Comic Cover Art"}
|
|
]
|
|
},
|
|
# 39. Stable_Diffusion_Text_To_Cartoon_Character_Generator
|
|
{
|
|
"api_key": "Stable_Diffusion_Text_To_Cartoon_Character_Generator",
|
|
"api_ip_link": "https://apigp0905.creinnovations.in/apis/lxds/sdxl/text_to_cartoon/",
|
|
"section": "sec-sdxl-comfy",
|
|
"summary": "Generates animated cartoon character avatars from natural text prompts.",
|
|
"endpoints": [
|
|
{"path": "/sdxl/text_to_cartoon/image/", "subpath": "image/", "title": "SDXL Text to Cartoon Character Generator"}
|
|
]
|
|
},
|
|
# 40. Stable_Diffusion_Dress_Changer
|
|
{
|
|
"api_key": "Stable_Diffusion_Dress_Changer",
|
|
"api_ip_link": "https://apigp0905.creinnovations.in/apis/cmf/dress-changer/",
|
|
"section": "sec-sdxl-comfy",
|
|
"summary": "ComfyUI Sapiens skin-seg + SDXL round-robin inpainting wardrobe changer.",
|
|
"endpoints": [
|
|
{"path": "/dress-changer/image/", "subpath": "image/", "title": "ComfyUI Dress Changer (Sapiens Skin-Seg)"}
|
|
]
|
|
},
|
|
# 41. Cloth_Segmentation_Model_V2
|
|
{
|
|
"api_key": "Cloth_Segmentation_Model_V2",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/cloth_segmentation_v2/",
|
|
"section": "sec-segmentation",
|
|
"summary": "Multi-part apparel parsing separating upper clothing, lower clothing, shoes, and accessories.",
|
|
"endpoints": [
|
|
{"path": "/cloth_segmentation_v2/segment/", "subpath": "segment/", "title": "Cloth Segmentation V2 (Multi-Part Router)"}
|
|
]
|
|
},
|
|
# 42. Stable_Diffusion_Text_To_Caricature
|
|
{
|
|
"api_key": "Stable_Diffusion_Text_To_Caricature",
|
|
"api_ip_link": "https://apigp0905.creinnovations.in/apis/lxds/sdxl/text_to_caricature/",
|
|
"section": "sec-sdxl-comfy",
|
|
"summary": "Generates humorous caricature portraits directly from descriptive text prompts.",
|
|
"endpoints": [
|
|
{"path": "/sdxl/text_to_caricature/image/", "subpath": "image/", "title": "SDXL Text to Caricature"}
|
|
]
|
|
},
|
|
# 43. Stable_Diffusion_Face_Expressions_Changer
|
|
{
|
|
"api_key": "Stable_Diffusion_Face_Expressions_Changer",
|
|
"api_ip_link": "https://apigp0905.creinnovations.in/apis/lxds/sdxl/expressions_changer/",
|
|
"section": "sec-sdxl-comfy",
|
|
"summary": "Morphs facial expressions (smile, laugh, surprised, pout, stern) seamlessly.",
|
|
"endpoints": [
|
|
{"path": "/sdxl/expressions_changer/image/", "subpath": "image/", "title": "SDXL Expressions Changer"}
|
|
]
|
|
},
|
|
# 44. Pose_Detection
|
|
{
|
|
"api_key": "Pose_Detection",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/pose_detection/",
|
|
"section": "sec-segmentation",
|
|
"summary": "33 full-body anatomical keypoint estimation via MediaPipe & OpenPose.",
|
|
"endpoints": [
|
|
{"path": "/pose_detection/image/", "subpath": "image/", "title": "MediaPipe & OpenPose Keypoint Detection"}
|
|
]
|
|
},
|
|
# 45. Stable_Diffusion_New_Cartoon Effects
|
|
{
|
|
"api_key": "Stable_Diffusion_New_Cartoon Effects",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion_new_cartoon_effects/",
|
|
"section": "sec-sd15",
|
|
"summary": "Artistic cel-shaded, comic book, and 3D Disney/Pixar cartoon stylizer.",
|
|
"endpoints": [
|
|
{"path": "/stable_diffusion_new_cartoon_effects/image/", "subpath": "image/", "title": "New Cartoon Effects (Artistic Cel & Anime)"}
|
|
]
|
|
},
|
|
# 46. Stable_Diffusion_Artistic_Effects
|
|
{
|
|
"api_key": "Stable_Diffusion_Artistic_Effects",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/stable_diffusion_artistic_effects/",
|
|
"section": "sec-sd15",
|
|
"summary": "Artistic photo filters featuring automated demographic and gender detection.",
|
|
"endpoints": [
|
|
{"path": "/stable_diffusion_artistic_effects/image/", "subpath": "image/", "title": "Artistic Effects with Gender Detection"}
|
|
]
|
|
},
|
|
# 47. Caricature_Avatar
|
|
{
|
|
"api_key": "Caricature_Avatar",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/caricature_avatar/",
|
|
"section": "sec-sd15",
|
|
"summary": "Single and couple caricature composite pipeline onto pre-rendered illustrations.",
|
|
"endpoints": [
|
|
{"path": "/caricature_avatar/image/", "subpath": "image/", "title": "Caricature Avatar Composite Pipeline"},
|
|
{"path": "/caricature_avatar/image1/", "subpath": "image1/", "title": "Caricature Avatar — Couple Composite (image1)"},
|
|
{"path": "/caricature_avatar/single_couple_image/", "subpath": "single_couple_image/", "title": "Caricature Avatar — Single Source Couple Template"}
|
|
]
|
|
},
|
|
# 48. Teeth_Whitener
|
|
{
|
|
"api_key": "Teeth_Whitener",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/teeth_whitener/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "Natural CIELAB dental enamel whitening and aggressive brightening pipeline.",
|
|
"endpoints": [
|
|
{"path": "/teeth_whitener/image/", "subpath": "image/", "title": "Natural CIELAB Teeth Whitener"},
|
|
{"path": "/teeth_whitener/image_full/", "subpath": "image_full/", "title": "Teeth Whitener — Full Aggressive Mode"}
|
|
]
|
|
},
|
|
# 49. Blemish_Remover
|
|
{
|
|
"api_key": "Blemish_Remover",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/blemish_remover/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "Acne, mole, blemish removal with dermatological skin tone restoration.",
|
|
"endpoints": [
|
|
{"path": "/blemish_remover/image/", "subpath": "image/", "title": "Blemish Remover, Eye Fix & Skin Improver"},
|
|
{"path": "/blemish_remover/improver/", "subpath": "improver/", "title": "Skin Improver & Eye Fix (improver)"}
|
|
]
|
|
},
|
|
# 50. Eye_Redness_Remover
|
|
{
|
|
"api_key": "Eye_Redness_Remover",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/eye_redness_remover/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "Removes red-eye flash artifacts and sclera vascular bloodshot veining.",
|
|
"endpoints": [
|
|
{"path": "/eye_redness_remover/image/", "subpath": "image/", "title": "Eye Redness & Flash Artifact Corrector"}
|
|
]
|
|
},
|
|
# 51. Polaroid_Effect
|
|
{
|
|
"api_key": "Polaroid_Effect",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/polaroid_effect/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "Classic instant Polaroid film borders, grain emulation, and retro color science.",
|
|
"endpoints": [
|
|
{"path": "/polaroid_effect/image/", "subpath": "image/", "title": "Vintage Polaroid Frame & Film Emulation"}
|
|
]
|
|
},
|
|
# 52. Face_Swapper
|
|
{
|
|
"api_key": "Face_Swapper",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/face_swapper/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "InsightFace single face, couple face, and targeted eye region swapping suite.",
|
|
"endpoints": [
|
|
{"path": "/face_swapper/image/", "subpath": "image/", "title": "InsightFace Single & Couple Face Swapper"},
|
|
{"path": "/face_swapper/couple_swap/", "subpath": "couple_swap/", "title": "Couple Face Swap (Two Source Targets)"},
|
|
{"path": "/face_swapper/eyes/", "subpath": "eyes/", "title": "Eye Region Targeted Swap"},
|
|
{"path": "/face_swapper/open_eye_new/", "subpath": "open_eye_new/", "title": "Open Eye Corrector (New)"},
|
|
{"path": "/face_swapper/couple_swap_single/", "subpath": "couple_swap_single/", "title": "Couple Swap (Single Source)"}
|
|
]
|
|
},
|
|
# 53. Stable_Diffusion_Relighter
|
|
{
|
|
"api_key": "Stable_Diffusion_Relighter",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/relighting_effect/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "Virtual studio portrait relighting, ray-traced shadows, and directional key lights.",
|
|
"endpoints": [
|
|
{"path": "/relighting_effect/image/", "subpath": "image/", "title": "Neural Studio Relighting & Shadow Synthesizer"}
|
|
]
|
|
},
|
|
# 54. Feedbacks
|
|
{
|
|
"api_key": "Feedbacks",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/feedback/",
|
|
"section": "sec-system",
|
|
"summary": "Collects user star ratings and qualitative comments on AI model output quality.",
|
|
"endpoints": [
|
|
{"path": "/feedback/submit/", "subpath": "submit/", "title": "User Feedback & Model Quality Rating"}
|
|
]
|
|
},
|
|
# 55. Flux_Hairstyles
|
|
{
|
|
"api_key": "Flux_Hairstyles",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/flux/hairstyles/",
|
|
"section": "sec-flux-kontext",
|
|
"summary": "FLUX.1-Kontext hairstyles transformer across male and female trendy haircuts.",
|
|
"endpoints": [
|
|
{"path": "/flux/hairstyles/image/", "subpath": "image/", "title": "FLUX.1-Kontext Hairstyles"}
|
|
]
|
|
},
|
|
# 56. Flux_Sculpture_Effect
|
|
{
|
|
"api_key": "Flux_Sculpture_Effect",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/flux/sculptures/",
|
|
"section": "sec-flux-kontext",
|
|
"summary": "Turns portrait subjects into marble, bronze, clay, and terracotta statues.",
|
|
"endpoints": [
|
|
{"path": "/flux/sculptures/image/", "subpath": "image/", "title": "FLUX.1-Kontext Sculptures"}
|
|
]
|
|
},
|
|
# 57. Flux_Silhouette_Effect
|
|
{
|
|
"api_key": "Flux_Silhouette_Effect",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/flux/silhouette/",
|
|
"section": "sec-flux-kontext",
|
|
"summary": "FLUX.1-Kontext backlit sunset, studio spotlight, and profile shadow silhouettes.",
|
|
"endpoints": [
|
|
{"path": "/flux/silhouette/image/", "subpath": "image/", "title": "FLUX.1-Kontext Silhouette Maker"}
|
|
]
|
|
},
|
|
# 58. Flux_Couple_Dress_Changer
|
|
{
|
|
"api_key": "Flux_Couple_Dress_Changer",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxf/flux_fill/couple_dress_changer/",
|
|
"section": "sec-flux-fill",
|
|
"summary": "Inpaints matching outfits, wedding attire, and formal fashion onto couple photos.",
|
|
"endpoints": [
|
|
{"path": "/flux_fill/couple_dress_changer/image/", "subpath": "image/", "title": "Couple Dress Changer (FLUX.1-Fill)"}
|
|
]
|
|
},
|
|
# 59. Flux_Glasses
|
|
{
|
|
"api_key": "Flux_Glasses",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/flux/glasses_maker/",
|
|
"section": "sec-flux-kontext",
|
|
"summary": "Adds designer sunglasses, reading frames, and aviators to portraits.",
|
|
"endpoints": [
|
|
{"path": "/flux/glasses_maker/image/", "subpath": "image/", "title": "Glasses Maker (FLUX.1-Kontext)"}
|
|
]
|
|
},
|
|
# 60. Reports
|
|
{
|
|
"api_key": "Reports",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/reports/",
|
|
"section": "sec-system",
|
|
"summary": "Captures client error telemetry, crash dumps, and device rendering tickets.",
|
|
"endpoints": [
|
|
{"path": "/reports/data/", "subpath": "data/", "title": "Bug Reports & Diagnostics Collector"}
|
|
]
|
|
},
|
|
# 61. Flux_Cartoon
|
|
{
|
|
"api_key": "Flux_Cartoon",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/flux/cartoon/",
|
|
"section": "sec-flux-kontext",
|
|
"summary": "FLUX.1-Kontext anime, comic book, and vector art character stylizer.",
|
|
"endpoints": [
|
|
{"path": "/flux/cartoon/image/", "subpath": "image/", "title": "Cartoon Effect (FLUX.1-Kontext)"}
|
|
]
|
|
},
|
|
# 62. Flux_Background_Changer
|
|
{
|
|
"api_key": "Flux_Background_Changer",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/flux/background_with_depth/",
|
|
"section": "sec-flux-kontext",
|
|
"summary": "Inpaints scenic environments while computing depth maps for natural lighting blend.",
|
|
"endpoints": [
|
|
{"path": "/flux/background_with_depth/image/", "subpath": "image/", "title": "Background With Depth (FLUX.1-Kontext)"}
|
|
]
|
|
},
|
|
# 63. Credits_Limit
|
|
{
|
|
"api_key": "Credits_Limit",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/",
|
|
"section": "sec-system",
|
|
"summary": "Multi-tenant credit allocation, billing deduction, and admin quota portal.",
|
|
"endpoints": [
|
|
{"path": "/credits/use", "subpath": "credits/use", "title": "Credits & Billing Client API"},
|
|
{"path": "/credits/admin/api/accounts", "subpath": "credits/admin/api/accounts", "title": "Credits Admin Portal & REST CRUD API"}
|
|
]
|
|
},
|
|
# 64. Multi_Segmentation_Model
|
|
{
|
|
"api_key": "Multi_Segmentation_Model",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/multi_segmentation_yolo_sam/",
|
|
"section": "sec-segmentation",
|
|
"summary": "ComfyUI YOLO + SAM multi-object segmentation microservice.",
|
|
"endpoints": [
|
|
{"path": "/multi_segmentation_yolo_sam/image/", "subpath": "image/", "title": "ComfyUI Multi-Segmentation (YOLO + SAM)"}
|
|
]
|
|
},
|
|
# 65. Vintage_Look
|
|
{
|
|
"api_key": "Vintage_Look",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxk/flux/vintage_look/",
|
|
"section": "sec-flux-kontext",
|
|
"summary": "FLUX.1-Kontext vintage 1970s/80s analog film stock with chromatic grain.",
|
|
"endpoints": [
|
|
{"path": "/flux/vintage_look/image/", "subpath": "image/", "title": "Vintage Look (FLUX.1-Kontext)"}
|
|
]
|
|
},
|
|
# 66. Face_Analyzer
|
|
{
|
|
"api_key": "Face_Analyzer",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/skin_analyzer/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "Dermatological facial diagnostic scoring acne, redness, oiliness, and skin age.",
|
|
"endpoints": [
|
|
{"path": "/skin_analyzer/analyze", "subpath": "analyze", "title": "Comprehensive AI Skin Health & Metrics Analyzer"}
|
|
]
|
|
},
|
|
# 67. Flux_Dress_Changer
|
|
{
|
|
"api_key": "Flux_Dress_Changer",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/flxf/flux_fill/dress_changer/",
|
|
"section": "sec-flux-fill",
|
|
"summary": "FLUX.1-Fill wardrobe restyling across dresses, evening gowns, jackets, and casual wear.",
|
|
"endpoints": [
|
|
{"path": "/flux_fill/dress_changer/image/", "subpath": "image/", "title": "Dress Changer (FLUX.1-Fill)"}
|
|
]
|
|
},
|
|
# 68. Trendy
|
|
{
|
|
"api_key": "Trendy",
|
|
"api_ip_link": "https://apigp0006.creinnovations.in/apis/mlm/trendy/",
|
|
"section": "sec-vision-ml",
|
|
"summary": "Trendy AI aesthetic enhancement and viral visual effects.",
|
|
"endpoints": [
|
|
{"path": "/trendy/image/", "subpath": "image/", "title": "Trendy AI Stylization Filter"}
|
|
]
|
|
}
|
|
]
|
|
|
|
print(f"Total API definitions created: {len(api_definitions)}")
|
|
|
|
# Build full API objects by attaching endpoints from old_eps_by_path
|
|
processed_apis = []
|
|
|
|
for api in api_definitions:
|
|
key = api["api_key"]
|
|
link = api["api_ip_link"]
|
|
sec = api["section"]
|
|
summary = api["summary"]
|
|
|
|
eps_list = []
|
|
for ep_def in api["endpoints"]:
|
|
path = ep_def["path"]
|
|
subpath = ep_def["subpath"]
|
|
custom_title = ep_def["title"]
|
|
|
|
old_ep = get_old_ep(path)
|
|
|
|
# Calculate full URL
|
|
full_url = link.rstrip("/") + "/" + subpath.lstrip("/")
|
|
|
|
if old_ep:
|
|
ep_obj = {
|
|
"id": old_ep["id"],
|
|
"method": old_ep.get("method", "POST"),
|
|
"subpath": subpath,
|
|
"full_url": full_url,
|
|
"path": path,
|
|
"title": custom_title or old_ep.get("title", key),
|
|
"summary": old_ep.get("summary", summary),
|
|
"desc": old_ep.get("desc", old_ep.get("summary", summary)),
|
|
"params": old_ep.get("params", []),
|
|
"chips": old_ep.get("chips", []),
|
|
"resp": old_ep.get("resp", "image/png"),
|
|
"subs": old_ep.get("subs", [])
|
|
}
|
|
else:
|
|
# Fallback default endpoint schema
|
|
ep_obj = {
|
|
"id": "ep-" + re.sub(r'[^a-zA-Z0-9]', '-', key).lower() + "-" + re.sub(r'[^a-zA-Z0-9]', '-', subpath).lower(),
|
|
"method": "POST",
|
|
"subpath": subpath,
|
|
"full_url": full_url,
|
|
"path": path,
|
|
"title": custom_title,
|
|
"summary": summary,
|
|
"desc": summary,
|
|
"params": [
|
|
{"n": "image0", "al": "image", "ty": "file (binary)", "lc": "multipart/form-data", "rq": True, "df": "None", "ds": "Input image file (JPEG/PNG/WEBP)."},
|
|
{"n": "secretKey", "al": "", "ty": "string", "lc": "multipart/form-data", "rq": True, "df": "'abcdef'", "ds": "🔑 Authentication secret key."}
|
|
],
|
|
"chips": [],
|
|
"resp": "image/png",
|
|
"subs": []
|
|
}
|
|
|
|
eps_list.append(ep_obj)
|
|
|
|
api_entry = {
|
|
"id": "api-" + re.sub(r'[^a-zA-Z0-9]', '-', key).lower(),
|
|
"api_key": key,
|
|
"api_ip_link": link,
|
|
"section": sec,
|
|
"title": key, # USER REQUEST: Show the api with their actual api key!
|
|
"path": link, # Complete actual URL
|
|
"summary": summary,
|
|
"method": "POST" if len(eps_list) == 1 else "MULTI",
|
|
"endpoints": eps_list
|
|
}
|
|
processed_apis.append(api_entry)
|
|
|
|
print(f"Processed {len(processed_apis)} unified API objects.")
|
|
|
|
# Section metadata
|
|
sections_meta = [
|
|
{
|
|
"id": "sec-vision-ml",
|
|
"title": "Vision & Retouching ML",
|
|
"tag": "Inference ML",
|
|
"lead": "High-throughput computer vision models for restoration, colorization, blemish fix, dental whitening, and face swapping.",
|
|
"hue": 172
|
|
},
|
|
{
|
|
"id": "sec-segmentation",
|
|
"title": "Segmentation & Landmarks",
|
|
"tag": "Semantic Masks",
|
|
"lead": "MediaPipe facial landmarks, Sapiens hair parsing, dichotomous garment isolation, and anatomical keypoint extractors.",
|
|
"hue": 210
|
|
},
|
|
{
|
|
"id": "sec-flux-fill",
|
|
"title": "FLUX.1-Fill Inpainting",
|
|
"tag": "Flow Matching 12B",
|
|
"lead": "State-of-the-art 12B flow-matching inpainting models specialized in precision wardrobe restyling, hair color/style transforms, and couple outfits.",
|
|
"hue": 268
|
|
},
|
|
{
|
|
"id": "sec-flux-kontext",
|
|
"title": "FLUX.1-Kontext Stylization",
|
|
"tag": "Context Guidance",
|
|
"lead": "Single-step subject context guidance for professional corporate headshots, 3D bobbleheads, sculptures, and vintage aesthetic emulation.",
|
|
"hue": 312
|
|
},
|
|
{
|
|
"id": "sec-sd15",
|
|
"title": "Stable Diffusion 1.5 & Anime",
|
|
"tag": "Latent Diffusion",
|
|
"lead": "SD1.5 latent diffusion engines for caricature stylization, comic strips, anime art transfer, and composite avatar templates.",
|
|
"hue": 28
|
|
},
|
|
{
|
|
"id": "sec-sdxl-comfy",
|
|
"title": "SDXL RealVisXL & ComfyUI",
|
|
"tag": "SDXL High-Res",
|
|
"lead": "1024px native RealVisXL V5.0 photorealistic synthesis, outpainting canvas extensions, and ComfyUI workflow pipelines.",
|
|
"hue": 46
|
|
},
|
|
{
|
|
"id": "sec-system",
|
|
"title": "Credits, Reports & System",
|
|
"tag": "Infrastructure",
|
|
"lead": "Tenant credit allocation, client billing deduction, asynchronous error logging, user feedback metrics, and gateway health monitors.",
|
|
"hue": 195
|
|
}
|
|
]
|
|
|
|
# Assemble final sections
|
|
final_sections = []
|
|
for sm in sections_meta:
|
|
sec_apis = [a for a in processed_apis if a["section"] == sm["id"]]
|
|
final_sections.append({
|
|
"id": sm["id"],
|
|
"title": sm["title"],
|
|
"tag": sm["tag"],
|
|
"lead": sm["lead"],
|
|
"hue": sm["hue"],
|
|
"apis": sec_apis
|
|
})
|
|
|
|
print("\nFinal Sections Summary:")
|
|
total_eps_count = 0
|
|
for fs in final_sections:
|
|
eps_in_sec = sum(len(a["endpoints"]) for a in fs["apis"])
|
|
total_eps_count += eps_in_sec
|
|
print(f"- {fs['title']}: {len(fs['apis'])} APIs ({eps_in_sec} endpoints)")
|
|
|
|
print(f"\nTotal APIs: {len(processed_apis)} | Total Endpoints: {total_eps_count}")
|
|
|
|
# Save JSON structure to file
|
|
with open("scratch/unified_docs_data.json", "w") as f:
|
|
json.dump({
|
|
"meta": {
|
|
"title": "FastAPI Generative AI Backend API Reference",
|
|
"heading": "FastAPI Generative AI Backend API Reference",
|
|
"intro": "Complete interactive documentation for all 68 production AI services with full direct URLs, categorized multi-route endpoints, and verified preset codes.",
|
|
"authNote": "All inference endpoints authenticate using secretKey form-data parameter (default: 'abcdef')."
|
|
},
|
|
"sections": final_sections
|
|
}, f, indent=2)
|
|
|
|
print("Saved scratch/unified_docs_data.json successfully.")
|