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

# image-to-text

> Generate textual descriptions from images for tasks like image captioning, content generation, and accessibility features



## OpenAPI

````yaml post /models/v2/Salesforce/blip-image-captioning-base
openapi: 3.0.3
info:
  title: Open Source AI Models API – Multimodal
  description: >-
    API for running open-source AI models that take text, vision, audio, and
    video as input.
  version: 1.0.0
servers:
  - url: https://api.bytez.com
    description: Production server
security: []
paths:
  /models/v2/Salesforce/blip-image-captioning-base:
    post:
      summary: image-to-text
      description: >-
        Generate textual descriptions from images for tasks like image
        captioning, content generation, and accessibility features
      operationId: image-to-text
      requestBody:
        description: Schema for image-to-text models
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  example: >-
                    https://as1.ftcdn.net/v2/jpg/03/03/55/82/1000_F_303558268_YNUQp9NNMTE0X4zrj314mbWcDHd1pZPD.jpg
                base64:
                  type: string
                  example: >-
                    data:image/jpg;base64,...BASE_64_GOES_HERE (Only use this is
                    you are not using a url)
              required:
                - url
      responses:
        '200':
          description: Successful image-to-text response.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - output
                properties:
                  error:
                    type: string
                    nullable: true
                    description: Null on success; otherwise an error message.
                  output:
                    type: string
                    description: Successful response with a generated caption
                    example: A blind man walking a dog
        '401':
          description: Auth error - check your api key and how you're sending it.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized
                  output:
                    type: string
                    example: null
        '429':
          description: Too Many Requests – You have hit the rate limit.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Rate limit exceeded
                  output:
                    type: string
                    example: null
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: |
        Set `Authorization` header to `BYTEZ_KEY` 
        ``` 'Authorization: YOUR_BYTEZ_KEY_HERE' ```

````