{
 "openapi": "3.0.3",
 "info": {
  "title": "Vector graphics (SVG) (default): OmniSVG 1.1 (8B / 4B)",
  "version": "2026-11-21",
  "description": "Curated ZeroGPU tool from the ZeroGPU lineup catalog. Calls go straight to the upstream Space OmniSVG/OmniSVG-3B; send your own HF token as a bearer token so the call uses your ZeroGPU quota."
 },
 "servers": [
  {
   "url": "https://omnisvg-omnisvg-3b.hf.space"
  }
 ],
 "x-zerogpu": {
  "category": "Image generation",
  "slot": "Vector graphics (SVG)",
  "need": "Icons, logos and flat illustrations that stay editable and scale cleanly.",
  "role": "default",
  "space": "OmniSVG/OmniSVG-3B",
  "space_url": "https://huggingface.co/spaces/OmniSVG/OmniSVG-3B",
  "model": "OmniSVG 1.1 (8B / 4B)",
  "license": "Apache-2.0",
  "license_class": "open",
  "gpu_seconds_booked": "120",
  "notes": "Official Space; despite the repo name it serves OmniSVG 1.1. Covers both text-to-SVG and image-to-SVG.",
  "caveats": "Good for simple icons and flat art, not photos.",
  "lineup_call": "/gradio_text_to_svg(text_description, model_size=\"8B\", temperature=0.5, max_length=512) \u2192 SVG code\n/gradio_image_to_svg(image, model_size=\"8B\", temperature=0.3, replace_background=true) \u2192 SVG code",
  "api_style": "v1"
 },
 "components": {
  "securitySchemes": {
   "hfToken": {
    "type": "http",
    "scheme": "bearer",
    "description": "Your own Hugging Face token (read scope is enough). It is sent only to the upstream Space and bills that call to your account's ZeroGPU quota. Without it the call runs on the small anonymous quota."
   }
  },
  "schemas": {}
 },
 "paths": {
  "/gradio_api/call/gradio_text_to_svg": {
   "post": {
    "description": "Icons, logos and flat illustrations that stay editable and scale cleanly. Step 1 of 2: returns {\"event_id\"}; then GET /gradio_api/call/gradio_text_to_svg/{event_id} reads an SSE stream whose `event: complete` data is the JSON output array (`event: error` on failure). Upstream: https://huggingface.co/spaces/OmniSVG/OmniSVG-3B. License: Apache-2.0. Caveats: Good for simple icons and flat art, not photos. \n\nUpstream description: Gradio interface - text-to-svg with model selection\nReturns, in order: value_29: str; output: str; Status: str",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "data"
        ],
        "properties": {
         "data": {
          "type": "array",
          "minItems": 1,
          "maxItems": 8,
          "items": {},
          "description": "Positional inputs, in this order:\n0. text_description: str (required)\n1. model_size: Literal['8B', '4B'] (default \"8B\")\n2. num_candidates: float (default 1)\n3. temperature: float (default 0.5)\n4. top_p: float (default 0.88)\n5. top_k: float (default 50)\n6. repetition_penalty: float (default 1.05)\n7. max_length: float (default 512)"
         }
        }
       }
      }
     }
    },
    "x-gradio-parameters": [
     {
      "name": "text_description",
      "schema": {
       "type": "string"
      },
      "required": true,
      "default": null
     },
     {
      "name": "model_size",
      "schema": {
       "type": "string",
       "enum": [
        "8B",
        "4B"
       ]
      },
      "required": false,
      "default": "8B"
     },
     {
      "name": "num_candidates",
      "schema": {
       "type": "number",
       "description": "numeric value between 1 and 4"
      },
      "required": false,
      "default": 1
     },
     {
      "name": "temperature",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.1 and 1.0"
      },
      "required": false,
      "default": 0.5
     },
     {
      "name": "top_p",
      "schema": {
       "type": "number",
       "description": "numeric value between 0.5 and 1.0"
      },
      "required": false,
      "default": 0.88
     },
     {
      "name": "top_k",
      "schema": {
       "type": "number",
       "description": "numeric value between 10 and 100"
      },
      "required": false,
      "default": 50
     },
     {
      "name": "repetition_penalty",
      "schema": {
       "type": "number",
       "description": "numeric value between 1.0 and 1.3"
      },
      "required": false,
      "default": 1.05
     },
     {
      "name": "max_length",
      "schema": {
       "type": "number",
       "description": "numeric value between 256 and 2048"
      },
      "required": false,
      "default": 512
     }
    ],
    "operationId": "image_gen_vector_graphics_svg",
    "tags": [
     "Image generation"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ],
    "summary": "Vector graphics (SVG) (default): OmniSVG 1.1 (8B / 4B)",
    "responses": {
     "200": {
      "description": "Job accepted.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "event_id"
         ],
         "properties": {
          "event_id": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/gradio_api/call/gradio_text_to_svg/{event_id}": {
   "get": {
    "summary": "Read the result stream for /gradio_text_to_svg",
    "description": "Server-sent events. The final `event: complete` carries a JSON array of outputs; `event: error` means the call failed.",
    "parameters": [
     {
      "name": "event_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "SSE stream",
      "content": {
       "text/event-stream": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    },
    "operationId": "image_gen_vector_graphics_svg_result",
    "tags": [
     "Image generation"
    ],
    "security": [
     {
      "hfToken": []
     },
     {}
    ]
   }
  }
 }
}