Livepeer generate API

Operations related to AI generate api

Operations 17

POST /text-to-image Text To Image #
POST /image-to-image Image To Image #
POST /image-to-video Image To Video #
POST /upscale Upscale #
POST /audio-to-text Audio To Text #
POST /segment-anything-2 Segment Anything 2 #
POST /llm LLM #
POST /image-to-text Image To Text #
POST /live-video-to-video Live Video To Video #
POST /text-to-speech Text To Speech #
POST /api/generate/text-to-image Text To Image #
POST /api/generate/image-to-image Image To Image #
POST /api/generate/image-to-video Image To Video #
POST /api/generate/upscale Upscale #
POST /api/generate/audio-to-text Audio To Text #
POST /api/generate/segment-anything-2 Segment Anything 2 #
POST /api/generate/llm LLM #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/livepeer-generate-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

livepeer-generate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Livepeer Generate API
  version: '1.0'
  description: 'Operations tagged generate across 4 of this provider''s published API definitions: livepeer-ai-worker-openapi.yml, livepeer-gateway-openapi.yml, livepeer-openapi.yml, livepeer-studio-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://dream-gateway.livepeer.cloud
  description: Livepeer Cloud Community Gateway
- url: https://livepeer.studio/api/beta/generate
  description: Livepeer Studio Gateway
- url: https://livepeer.studio/api
tags:
- name: generate
paths:
  /text-to-image:
    post:
      tags:
      - generate
      summary: Text To Image
      description: Generate images from text prompts.
      operationId: genTextToImage
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TextToImageParams'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-speakeasy-name-override: textToImage
    servers:
    - url: https://dream-gateway.livepeer.cloud
      description: Livepeer Cloud Community Gateway
    - url: https://livepeer.studio/api/beta/generate
      description: Livepeer Studio Gateway
  /image-to-image:
    post:
      tags:
      - generate
      summary: Image To Image
      description: Apply image transformations to a provided image.
      operationId: genImageToImage
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_genImageToImage'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-speakeasy-name-override: imageToImage
    servers:
    - url: https://dream-gateway.livepeer.cloud
      description: Livepeer Cloud Community Gateway
    - url: https://livepeer.studio/api/beta/generate
      description: Livepeer Studio Gateway
  /image-to-video:
    post:
      tags:
      - generate
      summary: Image To Video
      description: Generate a video from a provided image.
      operationId: genImageToVideo
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_genImageToVideo'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-speakeasy-name-override: imageToVideo
    servers:
    - url: https://dream-gateway.livepeer.cloud
      description: Livepeer Cloud Community Gateway
    - url: https://livepeer.studio/api/beta/generate
      description: Livepeer Studio Gateway
  /upscale:
    post:
      tags:
      - generate
      summary: Upscale
      description: Upscale an image by increasing its resolution.
      operationId: genUpscale
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_genUpscale'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-speakeasy-name-override: upscale
    servers:
    - url: https://dream-gateway.livepeer.cloud
      description: Livepeer Cloud Community Gateway
    - url: https://livepeer.studio/api/beta/generate
      description: Livepeer Studio Gateway
  /audio-to-text:
    post:
      tags:
      - generate
      summary: Audio To Text
      description: Transcribe audio files to text.
      operationId: genAudioToText
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_genAudioToText'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TextResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '413':
          description: Request Entity Too Large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '415':
          description: Unsupported Media Type
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-speakeasy-name-override: audioToText
    servers:
    - url: https://dream-gateway.livepeer.cloud
      description: Livepeer Cloud Community Gateway
    - url: https://livepeer.studio/api/beta/generate
      description: Livepeer Studio Gateway
  /segment-anything-2:
    post:
      tags:
      - generate
      summary: Segment Anything 2
      description: Segment objects in an image.
      operationId: genSegmentAnything2
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_genSegmentAnything2'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MasksResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-speakeasy-name-override: segmentAnything2
    servers:
    - url: https://dream-gateway.livepeer.cloud
      description: Livepeer Cloud Community Gateway
    - url: https://livepeer.studio/api/beta/generate
      description: Livepeer Studio Gateway
  /llm:
    post:
      tags:
      - generate
      summary: LLM
      description: Generate text using a language model.
      operationId: genLLM
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LLMRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LLMResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-speakeasy-name-override: llm
    servers:
    - url: https://dream-gateway.livepeer.cloud
      description: Livepeer Cloud Community Gateway
    - url: https://livepeer.studio/api/beta/generate
      description: Livepeer Studio Gateway
  /image-to-text:
    post:
      tags:
      - generate
      summary: Image To Text
      description: Transform image files to text.
      operationId: genImageToText
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_genImageToText'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageToTextResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '413':
          description: Request Entity Too Large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-speakeasy-name-override: imageToText
    servers:
    - url: https://dream-gateway.livepeer.cloud
      description: Livepeer Cloud Community Gateway
    - url: https://livepeer.studio/api/beta/generate
      description: Livepeer Studio Gateway
  /live-video-to-video:
    post:
      tags:
      - generate
      summary: Live Video To Video
      description: Apply transformations to a live video streamed to the returned endpoints.
      operationId: genLiveVideoToVideo
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LiveVideoToVideoParams'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LiveVideoToVideoResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-speakeasy-name-override: liveVideoToVideo
    servers:
    - url: https://dream-gateway.livepeer.cloud
      description: Livepeer Cloud Community Gateway
    - url: https://livepeer.studio/api/beta/generate
      description: Livepeer Studio Gateway
  /text-to-speech:
    post:
      tags:
      - generate
      summary: Text To Speech
      description: Generate a text-to-speech audio file based on the provided text input and speaker description.
      operationId: genTextToSpeech
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TextToSpeechParams'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-speakeasy-name-override: textToSpeech
    servers:
    - url: https://dream-gateway.livepeer.cloud
      description: Livepeer Cloud Community Gateway
    - url: https://livepeer.studio/api/beta/generate
      description: Livepeer Studio Gateway
  /api/generate/text-to-image:
    post:
      tags:
      - generate
      summary: Text To Image
      description: Generate images from text prompts.
      operationId: genTextToImage
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TextToImageParams_3'
        required: true
      responses:
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/studio-api-error'
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPValidationError'
                - $ref: '#/components/schemas/studio-api-error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
      x-speakeasy-name-override: textToImage
      x-codeSamples:
      - lang: typescript
        label: genTextToImage
        source: "import { Livepeer } from \"livepeer\";\n\nconst livepeer = new Livepeer({\n  apiKey: \"<YOUR_BEARER_TOKEN_HERE>\",\n});\n\nasync function run() {\n  const result = await livepeer.generate.textToImage({\n    prompt: \"<value>\",\n  });\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();"
      security:
      - apiKey: []
    servers:
    - url: https://livepeer.studio/api
  /api/generate/image-to-image:
    post:
      tags:
      - generate
      summary: Image To Image
      description: Apply image transformations to a provided image.
      operationId: genImageToImage
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_genImageToImage_3'
        required: true
      responses:
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/studio-api-error'
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPValidationError'
                - $ref: '#/components/schemas/studio-api-error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
      x-speakeasy-name-override: imageToImage
      x-codeSamples:
      - lang: typescript
        label: genImageToImage
        source: "import { Livepeer } from \"livepeer\";\nimport { openAsBlob } from \"node:fs\";\n\nconst livepeer = new Livepeer({\n  apiKey: \"<YOUR_BEARER_TOKEN_HERE>\",\n});\n\nasync function run() {\n  const result = await livepeer.generate.imageToImage({\n    prompt: \"<value>\",\n    image: await openAsBlob(\"example.file\"),\n  });\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();"
      security:
      - apiKey: []
    servers:
    - url: https://livepeer.studio/api
  /api/generate/image-to-video:
    post:
      tags:
      - generate
      summary: Image To Video
      description: Generate a video from a provided image.
      operationId: genImageToVideo
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_genImageToVideo_3'
        required: true
      responses:
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/studio-api-error'
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoResponse_3'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPValidationError'
                - $ref: '#/components/schemas/studio-api-error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
      x-speakeasy-name-override: imageToVideo
      x-codeSamples:
      - lang: typescript
        label: genImageToVideo
        source: "import { Livepeer } from \"livepeer\";\nimport { openAsBlob } from \"node:fs\";\n\nconst livepeer = new Livepeer({\n  apiKey: \"<YOUR_BEARER_TOKEN_HERE>\",\n});\n\nasync function run() {\n  const result = await livepeer.generate.imageToVideo({\n    image: await openAsBlob(\"example.file\"),\n  });\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();"
      security:
      - apiKey: []
    servers:
    - url: https://livepeer.studio/api
  /api/generate/upscale:
    post:
      tags:
      - generate
      summary: Upscale
      description: Upscale an image by increasing its resolution.
      operationId: genUpscale
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_genUpscale_3'
        required: true
      responses:
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/studio-api-error'
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPValidationError'
                - $ref: '#/components/schemas/studio-api-error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
      x-speakeasy-name-override: upscale
      x-codeSamples:
      - lang: typescript
        label: genUpscale
        source: "import { Livepeer } from \"livepeer\";\nimport { openAsBlob } from \"node:fs\";\n\nconst livepeer = new Livepeer({\n  apiKey: \"<YOUR_BEARER_TOKEN_HERE>\",\n});\n\nasync function run() {\n  const result = await livepeer.generate.upscale({\n    prompt: \"<value>\",\n    image: await openAsBlob(\"example.file\"),\n  });\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();"
      security:
      - apiKey: []
    servers:
    - url: https://livepeer.studio/api
  /api/generate/audio-to-text:
    post:
      tags:
      - generate
      summary: Audio To Text
      description: Transcribe audio files to text.
      operationId: genAudioToText
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_genAudioToText_3'
        required: true
      responses:
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/studio-api-error'
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TextResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '413':
          description: Request Entity Too Large
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '415':
          description: Unsupported Media Type
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPValidationError'
                - $ref: '#/components/schemas/studio-api-error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
      x-speakeasy-name-override: audioToText
      x-codeSamples:
      - lang: typescript
        label: genAudioToText
        source: "import { Livepeer } from \"livepeer\";\nimport { openAsBlob } from \"node:fs\";\n\nconst livepeer = new Livepeer({\n  apiKey: \"<YOUR_BEARER_TOKEN_HERE>\",\n});\n\nasync function run() {\n  const result = await livepeer.generate.audioToText({\n    audio: await openAsBlob(\"example.file\"),\n  });\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();"
      security:
      - apiKey: []
    servers:
    - url: https://livepeer.studio/api
  /api/generate/segment-anything-2:
    post:
      tags:
      - generate
      summary: Segment Anything 2
      description: Segment objects in an image.
      operationId: genSegmentAnything2
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_genSegmentAnything2_3'
        required: true
      responses:
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/studio-api-error'
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MasksResponse'
                x-speakeasy-name-override: data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPValidationError'
                - $ref: '#/components/schemas/studio-api-error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/HTTPError'
                - $ref: '#/components/schemas/studio-api-error'
      x-speakeasy-name-override: segmentAnything2
      x-codeSamples:
      - lang: typescript
        label: genSegmentAnything2
        source: "import { Livepeer } from \"livepeer\";\nimport { openAsBlob } from \"node:fs\";\n\nconst livepeer = new Livepeer({\n  apiKey: \"<YOUR_BEARER_TOKEN_HERE>\",\n});\n\nasync function run() {\n  const result = await livepeer.generate.segmentAnything2({\n    image: await openAsBlob(\"example.file\"),\n  });\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();"
      sec

# --- truncated at 32 KB (92 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/livepeer/refs/heads/main/openapi/livepeer-generate-api-openapi.yml