Skip to main content

Overview

The Skimming AI API lets you build chat-with-your-content experiences programmatically. Upload files, ingest URLs, and chat with any content type.

Base URL

For staging/testing:

Authentication

All requests require a Bearer token in the Authorization header.
Never expose your API key in client-side code. Use server-side requests only.

Required Headers

Every API request must include these headers:

Core Workflow

1

Ingest

Upload a file or URL to get a file_id.Endpoints:
  • POST /source/v1/api/document — Documents, images, audio, video
  • POST /source/v1/api/youtube — YouTube videos
  • POST /source/v1/api/website — Websites and social posts
2

Chat

Use the file_id to ask questions about the content.Endpoints:
  • POST /chat/v1/api/document/{type} — PDF, XLSX, PPTX, TXT, EPUB
  • POST /chat/v1/api/image/{type} — JPG, PNG, GIF, WebP, etc.
  • POST /chat/v1/api/video/{type} — YouTube, MP4, MOV, etc.
  • POST /chat/v1/api/audio/{type} — MP3, WAV, OGG, etc.
  • POST /chat/v1/api/website/{type} — Website, Instagram, X, LinkedIn, Facebook

Request Format

Ingest Request (File Upload)

Chat Request (JSON)


Response Format

Success Response

Error Response


Streaming

Set "streaming": true to receive responses as Server-Sent Events (SSE).
The response will stream in text/event-stream format.

Models

Specify the AI model with model and model_type:

Rate Limits & Credits

Credit usage per model:
  • GPT-4o Mini / Gemini Flash: 1 credit
  • GPT-4o: 5 credits
  • Gemini Pro: 16 credits
  • Claude 3.5/3.7: 25 credits
  • GPT-4: 100 credits

HTTP Status Codes