> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenkit.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Extract SVG Icon

> Extracts an SVG icon from an input image

## Request body

`multipart/form-data`

* `image` (`file | string`, required): Uploaded image or image URL, max `15MB` for uploads

## Validation rules

* `image` is required


## OpenAPI

````yaml POST /v2/image-utils/extract-svg-icon
openapi: 3.1.0
info:
  title: TokenKit
  description: >-
    Building image agents and tools, with APIs for businesses that want to put
    them to work.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.tokenkit.co
security:
  - bearerAuth: []
paths:
  /v2/image-utils/extract-svg-icon:
    post:
      description: Extract an SVG icon from an uploaded image or image URL.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ExtractSvgIconRequest'
      responses:
        '202':
          description: Job accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobAccepted'
        '400':
          description: Validation error
        '429':
          description: Queue saturated
components:
  schemas:
    ExtractSvgIconRequest:
      type: object
      properties:
        image:
          $ref: '#/components/schemas/FileOrUrl'
      required:
        - image
    JobAccepted:
      type: object
      properties:
        data:
          type: object
          properties:
            job_id:
              type: string
              example: job_123
            links:
              $ref: '#/components/schemas/JobLinks'
          required:
            - job_id
            - links
        errors:
          nullable: true
      required:
        - data
    FileOrUrl:
      oneOf:
        - type: string
          format: binary
        - type: string
          format: uri
    JobLinks:
      type: object
      properties:
        self:
          type: string
          example: /v1/jobs/job_123
        stream:
          type: string
          example: /v1/jobs/job_123/stream
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````