{
  "opencollection": "1.0.0",
  "info": {
    "name": "Google Books About Content Generation API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Content Generation",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Google Count Tokens",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.googleapis.com/books/v1/models/:model:countTokens",
            "params": [
              {
                "name": "model",
                "value": "",
                "type": "path",
                "description": "The model to use for token counting"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Get a count of the number of tokens in content, including audio, video, images, and text.\nUseful for estimating costs and ensuring content fits within model context windows.\n"
        },
        {
          "info": {
            "name": "Google Generate Content",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.googleapis.com/books/v1/models/:model:generateContent",
            "params": [
              {
                "name": "model",
                "value": "",
                "type": "path",
                "description": "The model to use for generation"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates text output from various inputs including text, images, video, audio, and PDF documents.\n\n**Document Understanding**: Process PDF documents up to 1000 pages using native vision to:\n- Analyze and interpret text, images, diagrams, charts, and tables\n- Extract information into structured output formats\n- Summarize and answer questions based on visual and textual elements\n- Transcribe document content (e.g., to HTML) preserving layouts and formatting\n- Process multiple PDFs in a single req"
        },
        {
          "info": {
            "name": "Google Stream Generate Content",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.googleapis.com/books/v1/models/:model:streamGenerateContent",
            "params": [
              {
                "name": "model",
                "value": "",
                "type": "path",
                "description": "The model to use for generation"
              },
              {
                "name": "alt",
                "value": "",
                "type": "query",
                "description": "Alternative response format"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates text output with streaming responses, receiving GenerateContentResponse instances incrementally"
        }
      ]
    }
  ],
  "bundled": true
}